/* ========================================================
   ВОЛНА · Медицина здорового долголетия — форма регистрации
   Самописная форма внутри тёмной карточки .reg-card
   (заменила lite-виджет GetCourse; заявка уходит на /api/lead).
   Скоуп — .lb-lng, как и весь остальной CSS лендинга.
   ======================================================== */

.lb-lng .reg-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* --- Поля --- */
.lb-lng .reg-form input[type="text"],
.lb-lng .reg-form input[type="tel"],
.lb-lng .reg-form input[type="email"] {
    width: 100%;
    height: 56px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.07);
    color: var(--lng-white);
    font-family: var(--lng-sans);
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 200ms var(--lng-ease-out),
                background 200ms var(--lng-ease-out),
                box-shadow 200ms var(--lng-ease-out);
}
.lb-lng .reg-form input::placeholder { color: rgba(255, 255, 255, 0.45); font-weight: 400; }
.lb-lng .reg-form input:hover { border-color: rgba(255, 255, 255, 0.24); }
.lb-lng .reg-form input:focus {
    border-color: var(--lng-brand);
    background: rgba(255, 255, 255, 0.11);
    box-shadow: 0 0 0 3px rgba(138, 192, 204, 0.18);
}
.lb-lng .reg-form input.invalid {
    border-color: #E38A8A;
    box-shadow: 0 0 0 3px rgba(227, 138, 138, 0.16);
}
/* Автозаполнение Chrome не должно заливать поле белым */
.lb-lng .reg-form input:-webkit-autofill,
.lb-lng .reg-form input:-webkit-autofill:hover,
.lb-lng .reg-form input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--lng-white);
    -webkit-box-shadow: 0 0 0 1000px #2E4242 inset;
    caret-color: var(--lng-white);
}

/* --- Кнопка --- */
.lb-lng .reg-form .reg-submit {
    width: 100%;
    height: 58px;
    margin-top: 4px;
    border-radius: 999px;
    background: var(--lng-white);
    color: var(--lng-dark);
    font-family: var(--lng-sans);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.7);
    transition: transform 180ms var(--lng-ease-out), background 200ms var(--lng-ease-out), color 200ms var(--lng-ease-out);
}
.lb-lng .reg-form .reg-submit:active { transform: scale(0.985); }
.lb-lng .reg-form .reg-submit[disabled] { opacity: 0.65; cursor: default; }
@media (hover: hover) and (pointer: fine) {
    .lb-lng .reg-form .reg-submit:not([disabled]):hover {
        background: var(--lng-brand);
        color: var(--lng-dark);
        transform: translateY(-1px);
    }
}

/* --- Согласие --- */
.lb-lng .reg-agree {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
}
.lb-lng .reg-agree input {
    flex: none;
    width: 16px; height: 16px;
    margin-top: 1px;
    accent-color: var(--lng-brand);
    cursor: pointer;
}
.lb-lng .reg-agree a { color: rgba(255, 255, 255, 0.8); text-decoration: underline; text-underline-offset: 2px; }

/* --- Ошибка --- */
.lb-lng .reg-error {
    display: none;
    margin-top: 2px;
    font-size: 13px;
    line-height: 1.4;
    color: #F0A9A9;
}

/* --- Успех (на случай, если редирект не сработал) --- */
.lb-lng .reg-success {
    display: none;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding: 12px 0;
}
.lb-lng .reg-success .title { font-size: 22px; font-weight: 600; color: var(--lng-white); }
.lb-lng .reg-success p { font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, 0.6); }

/* --- intl-tel-input под тёмную карточку --- */
.lb-lng .reg-form .iti { width: 100%; display: block; }
.lb-lng .reg-form .iti__selected-country {
    background: transparent;
    border-radius: 999px 0 0 999px;
    padding-left: 10px;
    color: var(--lng-white);
}
.lb-lng .reg-form .iti--separate-dial-code input { padding-left: 96px; }
.lb-lng .reg-form .iti__arrow { border-top-color: rgba(255, 255, 255, 0.6); }
.lb-lng .reg-form .iti__arrow--up { border-bottom-color: rgba(255, 255, 255, 0.6); }
.lb-lng .reg-form .iti__selected-dial-code { color: rgba(255, 255, 255, 0.85); }
/* Выпадающий список — светлый, читаемый (рендерится внутри карточки) */
.lb-lng .reg-form .iti__dropdown-content {
    border-radius: 14px;
    overflow: hidden;
    color: var(--lng-ink);
    box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.6);
}
.lb-lng .reg-form .iti__search-input { padding: 10px 14px; font-family: var(--lng-sans); font-size: 15px; }
