/* Стили формы регистрации.
   Подключается из my_theme_registration_form_scripts().
   
   Основная вёрстка полей (.form-group, .form-control, .form-note, .btn) уже описана
   в custom.css, здесь только то, чего там не было: сообщение о результате отправки,
   состояние кнопки во время отправки и скрытое поле-ловушка для ботов.
   
   Создан 23.09.2026: файл подключался темой, но отсутствовал на диске,
   из-за чего страница запрашивала несуществующий CSS и получала 404. */

/* Сообщение об успехе или ошибке после отправки формы.
   По умолчанию скрыто, иначе пустой блок занимал бы место под кнопкой.
   Класс success или error ставит registration-form.js. */
.custom-registration-form .form-messages {
    display: none;
    margin-top: 18px;
    padding: 14px 18px;
    border-radius: 8px;
    border-left: 4px solid transparent;
    font-size: 15px;
    line-height: 1.45;
}

.custom-registration-form .form-messages.success {
    display: block;
    background-color: #e8f4ef;
    border-left-color: #3a7a6d;
    color: #23574c;
}

.custom-registration-form .form-messages.error {
    display: block;
    background-color: #fdecea;
    border-left-color: #c9302c;
    color: #8f2622;
}

/* Кнопка во время отправки: скрипт ставит disabled и меняет текст на «Отправка…».
   Без этого кнопка выглядит активной, хотя нажатия уже не принимает. */
.custom-registration-form .btn[disabled] {
    opacity: 0.65;
    cursor: progress;
    transform: none;
}

/* Поле-ловушка для ботов. Стили продублированы здесь на случай, если инлайновые
   атрибуты style на элементе будут вырезаны оптимизатором HTML или кэшем. */
.srg-hp {
    position: absolute !important;
    left: -9999px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* Блоки согласий в форме (ТЗ, раздел 5.4). До 24.09.2026 согласие было просто
   текстом под кнопкой — теперь это отдельные чекбоксы со ссылками на документы.
   Первые два блока обязательные, третий (рассылка) — необязательный. */
.custom-registration-form .consent-block {
    margin-top: 16px;
    padding: 13px 16px;
    background-color: #ffffff;
    border: 1px solid #e2e6ea;
    border-radius: 8px;
}

.custom-registration-form .consent-block-optional {
    background-color: #f4f6f8;
}

.custom-registration-form .consent-doc {
    margin: 0 0 8px;
    font-size: 13px;
    line-height: 1.4;
    color: #6c757d;
}

.custom-registration-form .consent-doc a {
    color: #2980b9;
    text-decoration: underline;
}

.custom-registration-form .consent-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 13px;
    line-height: 1.4;
    cursor: pointer;
}

.custom-registration-form .consent-checkbox input {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: 2px 0 0;
    cursor: pointer;
}
