/* ============================================================
   Waitlist (предзапись) — стили страницы /waitlist/.
   Подключается ПОСЛЕ landings/main/styles.css и наследует все
   токены (--color-*, --radius-*, --transition), шрифты
   (Inter) и базовые классы (.container, .plan__cta,
   .header, .footer).
============================================================ */

/* ── Layout страницы ─────────────────────────────────────── */
.enroll-body {
    background: var(--color-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.enroll-main {
    flex: 1;
    padding: 32px 0 64px;
}

@media (max-width: 767px) {
    .enroll-main { padding: 16px 0 32px; }
}

.enroll-container {
    max-width: 560px;
    margin: 0 auto;
}

.enroll-help-hint {
    max-width: 560px;
    margin: 20px auto 0;
    text-align: center;
    font-size: 13px;
    color: var(--color-text-muted);
}

.enroll-help-hint a {
    color: var(--color-text-muted);
    text-decoration: none;
    border-bottom: 1px solid var(--color-divider);
    transition: color var(--transition), border-color var(--transition);
}

.enroll-help-hint a:hover {
    color: var(--color-text);
    border-bottom-color: var(--color-text);
}

/* ── Скелет загрузки ──────────────────────────────────────── */
.enroll-skeleton {
    min-height: max(480px, calc(100vh - 176px));
    border-radius: 16px;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.enroll-skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, .04), transparent);
    animation: wl-shimmer 1.4s linear infinite;
}

@keyframes wl-shimmer {
    from { transform: translateX(-100%); }
    to   { transform: translateX(100%); }
}

/* ── Карточка формы ──────────────────────────────────────── */
.enroll-card {
    background: var(--color-surface);
    border-radius: var(--radius-card-l);
    padding: 40px;
    box-shadow: var(--shadow-card);
    animation: wl-fade-in .25s ease-out;
}

.enroll-card.text-center { text-align: center; }

@keyframes wl-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.enroll-card.enroll-card--no-anim { animation: none; }

@media (max-width: 767px) {
    .enroll-card { padding: 24px; border-radius: var(--radius-card); }
}

/* ── Текст и заголовки шага ──────────────────────────────── */
.enroll-step-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--color-text);
    margin: 0 0 12px;
    text-align: left;
}

.enroll-step-sub {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: var(--color-text);
    margin: 0 0 24px;
}

.enroll-error-text {
    color: #C53030;
    font-size: 14px;
    margin-top: 12px;
}

/* ── Form fields ─────────────────────────────────────────── */
.form-group { margin-bottom: 14px; }
.form-group:last-child { margin-bottom: 0; }
.form-group:not([data-q]) + .form-group[data-q] { padding-top: 14px; }
.form-group[data-q] { margin-bottom: 24px; }
.form-group[data-q]:last-child { margin-bottom: 0; }

.label {
    display: block;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
}

.auth-input {
    width: 100%;
    padding: 14px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--color-text);
    background: var(--color-surface);
    border: 1px solid var(--color-divider);
    border-radius: 12px;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    -webkit-appearance: none;
    appearance: none;
}

.auth-input:hover { border-color: #A8A8A6; }

.auth-input:focus {
    border-color: var(--color-text);
    box-shadow: 0 0 0 3px rgba(195, 253, 114, 0.4);
}

.auth-input::placeholder { color: var(--color-text-muted); }

.field-hint {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--color-text-muted);
}

.field-error {
    margin: 6px 0 0;
    font-size: 13px;
    color: #C53030;
}

.hidden { display: none !important; }

/* ── noscript ────────────────────────────────────────────── */
.enroll-noscript p {
    margin: 0;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 15px;
}

/* ── Успех ───────────────────────────────────────────────── */
.success-check {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--color-green);
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    animation: wl-scale-in .4s cubic-bezier(.175, .885, .32, 1.275);
}

.success-check svg { width: 36px; height: 36px; }

@keyframes wl-scale-in {
    from { transform: scale(0); }
    to   { transform: scale(1); }
}

/* ── Waitlist-специфика ──────────────────────────────────── */
.auth-input--error {
    border-color: #C53030;
}
.auth-input--error:focus {
    border-color: #C53030;
    box-shadow: 0 0 0 3px rgba(197, 48, 48, .2);
}

.wl-card.enroll-card .plan__cta {
    height: 54px;
    margin-top: 16px;
}

.wl-question-label {
    display: block;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
}
.wl-question-label--error {
    color: #C53030;
}

.wl-choices {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.wl-choices--error {
    border: 1.5px solid #C53030;
    border-radius: 10px;
    padding: 4px;
}

.wl-choice {
    display: flex;
    align-items: center;
    padding: 9px 14px;
    border: 0.8px solid var(--color-divider);
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
    color: var(--color-text);
    background: var(--color-surface);
    transition: border-color var(--transition), background-color var(--transition);
    user-select: none;
}

.wl-choice:hover {
    border-color: var(--color-text);
}

.wl-choice--selected {
    border-color: #9BCD44;
    background: var(--color-green-tint);
    font-weight: 500;
}

.wl-choice:focus-within {
    border-color: var(--color-text);
    box-shadow: 0 0 0 3px rgba(195, 253, 114, 0.4);
    outline: none;
}

/* ── Reduced motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .enroll-card,
    .enroll-skeleton::after,
    .success-check {
        animation: none !important;
        transition: none !important;
    }
}
