

/* Start:/local/templates/common/components/altit/altit.feedback/reg_education/style.css?17688273909604*/
.form_box_callback .req:invalid {
    border: 1px solid red;
}
.form_box_callback .req:valid {
    border: 1px solid green;
}
.form-group.form_box_callback {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}
label.mf-text {
  margin-bottom: 5px;
}
.feedback_form {
  display: flex;
  flex-direction: column;
}
#button {
  max-width: 200px;
  min-height: 30px;
  background: aliceblue;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s linear;
}
#button:hover {
  background-color: #D8FCFF;
}
.OK_MESSAGE {
  color: green;
  text-align: center;
  margin: 30px 0px 30px 0px;
}
.grecaptcha-badge {
  display: none;
}

/* Дополнения к существующим стилям */

/* Стили для новой формы (сохраняем совместимость) */
.form__content {
    display: flex;
    flex-direction: column;
}

.form__block {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.form__block-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
    font-family: inherit;
}

.form__block-number {
    width: 30px;
    height: 30px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

.form__divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #ddd, transparent);
    margin: 30px 0;
}

/* Grid система */
.form__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .form__grid {
        grid-template-columns: 1fr;
    }
}

/* Поля формы - расширяем существующие стили */
.form__field {
    margin-bottom: 15px;
}

/* Совместимость с существующими классами */
.form__field.form-group {
    margin-bottom: 15px;
}

.form__field--full {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .form__field--full {
        grid-column: 1;
    }
}

/* Label - обновляем существующий стиль */
.form__label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    margin-bottom: 6px;
    line-height: 1.4;
}


/* Совместимость */
.form__label.mf-text {
    margin-bottom: 6px;
}

/* Input - расширяем существующие стили валидации */
.form__input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
    box-sizing: border-box;
    font-family: inherit;
}

/* Совместимость с вашей валидацией */
.form__input.req {
    border-color: #ddd;
}

.form__input.req:invalid {
    border: 1px solid red;
}

.form__input.req:valid {
    border: 1px solid green;
}

.form__input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Специфичные стили input */
.form__input[type="date"] {
    padding: 11px 15px;
}

.form__input--series {
    width: 90px;
    text-align: center;
}

.form__input--number {
    flex: 1;
}

.form__input--snils {
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

/* Паспортная группа */
.form__passport {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form__passport-divider {
    color: #666;
    font-weight: 500;
}

/* Textarea - расширяем существующие стили */
.form__textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
    box-sizing: border-box;
}

/* Совместимость с вашей валидацией */
.form__textarea.req {
    border-color: #ddd;
}

.form__textarea.req:invalid {
    border: 1px solid red;
}

.form__textarea.req:valid {
    border: 1px solid green;
}

.form__textarea--disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

/* Чекбоксы - новые стили */
.form__checkbox {
    margin-bottom: 10px;
}

.form__checkbox-input {
    position: absolute;
    opacity: 0;
}

.form__checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    user-select: none;
    font-weight: normal;
}

.form__checkbox-label:before {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid #007bff;
    border-radius: 3px;
    background: white;
    transition: all 0.2s;
}

.form__checkbox-input:checked + .form__checkbox-label:before {
    background: #007bff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* Подсказки */
.form__hint {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
    font-style: italic;
}

/* Footer формы - совместимость с существующим */
.form__footer {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
}

.form__check {
    margin-bottom: 20px;
}

/* Кнопка - совместимость с существующим */
.form__btn {
    max-width: 200px;
    min-height: 40px; /* Увеличиваем для удобства */
    background: #007bff; /* Современный синий вместо aliceblue */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s linear, opacity 0.3s;
    font-size: 16px;
    padding: 12px 24px;
    align-self: flex-start;
}

.form__btn:hover {
    background-color: #0056b3; /* Темнее при hover */
}

.form__btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #6c757d;
}

/* Адаптивность */
@media (max-width: 480px) {
    .form__passport {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .form__input--series {
        width: 100%;
    }
    
    .form__passport-divider {
        align-self: center;
    }
    
    .form__block {
        padding: 15px;
    }
    
    .form__btn {
        max-width: 100%;
        width: 100%;
    }
}

/* Совместимость классов ошибок/успеха */
.form__error {
    color: red;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.form__input:invalid ~ .form__error {
    display: block;
}

/* Для поддержки старых форм */
.feedback__form .form__block {
    background: transparent;
    border: none;
    padding: 0;
}

.feedback__form .form__grid {
    gap: 15px;
}

/* Стили для select */
.form__select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    padding-right: 40px;
    cursor: pointer;
}

/* Загрузка файлов */
.form__file-upload {
    margin-top: 5px;
}

.form__file-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.form__file-button {
    background: #007bff;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.form__file-button:hover {
    background: #0056b3;
}

.form__file-name {
    font-size: 14px;
    color: #999;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Поля стажа */
.form__experience {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form__input--small {
    width: 80px;
    text-align: center;
}

.form__experience-label {
    font-size: 14px;
    color: #666;
    min-width: 40px;
}

/* Анимация появления/скрытия полей */
#diploma-lastname-field,
#diploma-date-field,
#education-institution-field,
#diploma-series-field,
#diploma-number-field,
#diploma-scan-field {
    transition: all 0.3s ease;
    overflow: hidden;
}

/* Дополнительные подсказки */
.form__hint {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    font-style: normal;
}

/* Для файловых полей */
.form__file-input:valid + .form__file-label .form__file-name {
    color: #28a745;
}

.form__file-input:invalid + .form__file-label .form__file-name {
    color: #dc3545;
}

/* Адаптивность для полей стажа */
@media (max-width: 480px) {
    .form__experience {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .form__input--small {
        width: 100px;
    }
    
    .form__experience-label {
        min-width: auto;
    }
}

.form-label-text {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    margin-bottom: 6px;
    line-height: 1.4;
}
/* End */
/* /local/templates/common/components/altit/altit.feedback/reg_education/style.css?17688273909604 */
