/* ============================================
   Register Page Styles - Регистрация
   ============================================ */

.t678 {
    width: 100%;
}

/* Колонка формы - уменьшенная ширина */
.t678 .t-col_9 {
    width: 75% !important;
    flex: 0 0 75% !important;
    max-width: 75% !important;
}

/* Секция формы */
.t-form__inputsbox {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Строка с несколькими полями */
.t-form__row {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0 -10px;
}

/* Группа полей */
.t-input-group {
    margin-bottom: 20px;
    box-sizing: border-box;
}

.t-form__row .t-input-group {
    padding: 0 10px;
    margin-bottom: 20px;
}

.t-input-group_width50 {
    width: 50%;
    flex: 0 0 50%;
}

.t-input-group_width33 {
    width: 33.333%;
    flex: 0 0 33.333%;
}

/* Заголовок секции */
.t-form__section-title {
    font-family: 'MatahariExtended600ExtSemBd', Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #3a3a3a;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

/* Поля ввода */
.t-input-block {
    width: 100%;
}

.t-input,
.t-select,
.t-textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #5b5b5b;
    border-radius: 6px;
    font-size: 14px;
    color: #000000;
    background-color: #fff;
    font-family: 'MatahariExtended600ExtSemBd', Arial, sans-serif;
    font-weight: 400;
    transition: all 0.3s ease;
    box-sizing: border-box;
    line-height: 1.5;
}

.t-textarea {
    min-height: 102px;
    resize: vertical;
}

/* Select стили */
.t-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23000' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
    cursor: pointer;
}

/* Focus состояния */
.t-input:focus,
.t-select:focus,
.t-textarea:focus {
    outline: none;
    border-color: #8a2b18;
    box-shadow: 0 0 0 3px rgba(138, 43, 24, 0.1);
}

/* Placeholder */
.t-input::placeholder,
.t-textarea::placeholder {
    color: #000000;
    opacity: 0.5;
}

/* Загрузка файла */
.t-input-file {
    display: none;
}

.t-form__file-label {
    display: flex;
    flex-direction: column;
    gap: 10px;
    cursor: pointer;
}

.t-form__file-label-text {
    font-family: 'MatahariExtended600ExtSemBd', Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #3a3a3a;
}

.t-form__file-name {
    display: inline-block;
    padding: 14px 18px;
    border: 1px solid #5b5b5b;
    border-radius: 6px;
    font-size: 14px;
    color: #000000;
    background-color: #fff;
    font-family: 'MatahariExtended600ExtSemBd', Arial, sans-serif;
    font-weight: 400;
    transition: all 0.3s ease;
    box-sizing: border-box;
    text-align: center;
}

.t-form__file-label:hover .t-form__file-name {
    border-color: #8a2b18;
    background-color: #f9f9f9;
}

.t-form__file-preview {
    margin-top: 15px;
    position: relative;
    display: inline-block;
    max-width: 200px;
}

.t-form__file-preview-img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid #5b5b5b;
    display: block;
}

.t-form__file-remove {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #8a2b18;
    color: #fff;
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.t-form__file-remove:hover {
    background-color: #6a1f12;
    transform: scale(1.1);
}

/* Этапы формы */
.t-form__step {
    display: block;
}

.t-form__step[style*="display: none"] {
    display: none !important;
}

/* Кнопка отправки */
.t-form__submit {
    margin-top: 30px;
    margin-bottom: 20px;
}

.t-form__submit-buttons {
    display: flex;
    gap: 15px;
}

.t-btnflex {
    color: #000000;
    background-color: #ffffff;
    border: 2px solid #8a2b18;
    border-radius: 5px;
    padding: 12px 32px;
    font-family: 'MatahariExtended600ExtSemBd', Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.t-btnflex.t-btnflex_type_submit {
    flex: 1;
}

.t-btnflex.t-btnflex_type_back {
    flex: 0 0 auto;
    min-width: 120px;
    background-color: transparent;
    color: #8a2b18;
}

.t-btnflex.t-btnflex_type_back:hover {
    background-color: #f5f5f5;
    color: #8a2b18;
}

.t-btnflex.t-btnflex_type_submit:hover {
    background-color: #8a2b18;
    color: #ffffff;
}

.t-form__submit:not(.t-form__submit-buttons) .t-btnflex {
    width: 100%;
}

/* Ошибки */
.t-form__errorbox-wrapper {
    background-color: #fee;
    border: 1px solid #fcc;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
    color: #c33;
}

.t-form__errorbox-text {
    list-style: none;
    padding: 0;
    margin: 0;
}

.t-form__errorbox-item {
    margin-bottom: 5px;
}

.t-form__errorbox-item:last-child {
    margin-bottom: 0;
}

/* Текст согласия */
.t678__form-bottom-text {
    margin-top: 20px;
    font-size: 14px;
    color: #3a3a3a;
    line-height: 1.6;
    font-family: 'Montserrat', sans-serif;
}

.t678__form-bottom-text p {
    margin: 0;
}

.t678__form-bottom-text a {
    color: #3a3a3a;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.t678__form-bottom-text a:hover {
    color: #8a2b18;
}

/* Адаптивность */
@media (max-width: 768px) {
    .t678 .t-col_9 {
        width: 100%;
    }
    
    .t-form__row {
        flex-direction: column;
        margin: 0;
    }
    
    .t-form__row .t-input-group {
        padding: 0;
        width: 100% !important;
        flex: 0 0 100% !important;
    }
    
    .t678__form-bottom-text {
        font-size: 12px;
    }
    
    .t-form__submit-buttons {
        flex-direction: column;
    }
    
    .t-btnflex.t-btnflex_type_back {
        width: 100%;
    }
}

/* Мобильная версия - стандартные отступы как на главной */
@media (max-width: 640px) {
    /* Контейнеры - стандартные отступы слева и справа */
    .t-container {
        padding-left: 20px !important;
        padding-right: 20px !important;
        box-sizing: border-box !important;
    }
    
    /* Заголовок регистрации */
    .t015 .t-container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    /* Колонки - убираем лишние отступы */
    .t-col.t-col_12 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Колонка формы - ширина 100% на мобилке и убираем отступы */
    .t-col.t-col_9,
    .t678 .t-col_9 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Форма регистрации */
    .t678 .t-container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    /* Заголовок секции формы - прижать влево */
    .t015__title {
        font-size: 30px !important;
        text-align: left !important;
    }
    
    .t015__descr {
        text-align: left !important;
        font-size: 14px !important;
    }
    
    /* Уменьшить отступы сверху и снизу в 2 раза */
    .t-rec_pt_0.t-rec_pb_45 {
        padding-top: 20px !important;
        padding-bottom: 22.5px !important;
    }
    
    .r.t-rec.t-rec_pt_0.t-rec_pb_45 {
        padding-top: 20px !important;
        padding-bottom: 22.5px !important;
    }
    
    /* Поля формы */
    .t-input,
    .t-select,
    .t-textarea {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    /* Кнопки */
    .t-btnflex {
        padding: 12px 24px;
        font-size: 14px;
    }
}

