/* =========================================
   QUIZ.CSS - Квиз: тёмно-синяя секция + золото
   Стиль по образцу .cases-section (Примеры из практики)
   Разметка квиза: .quiz-section > .container
   Логика: js/quiz.js, конфиг страницы: window.QUIZ_CONFIG
   ========================================= */

/* Секция */
.quiz-section {
    background: var(--dark-blue, #1C2C46);
    border-top: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    padding: 72px 0;
}

/* display:grid у .quiz-answers перебивает UA-правило [hidden] — явный guard */
.quiz-question[hidden],
.quiz-answers[hidden] {
    display: none;
}

.quiz-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 40px;
}

.quiz-eyebrow {
    display: block;
    color: var(--gold);
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.quiz-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.25;
    margin: 0;
}

.quiz-note {
    color: rgba(255, 255, 255, 0.65);
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    margin-top: 12px;
}

/* Карточка квиза */
.quiz-card {
    max-width: 720px;
    margin: 0 auto;
    padding: 32px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(201, 165, 82, 0.28);
}

/* Прогресс */
.quiz-progress {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.quiz-progress__label {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
}

.quiz-progress__bar {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.quiz-progress__fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: var(--gold);
    transition: width 0.3s ease;
}

/* Вопрос */
.quiz-question {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 20px;
}

/* Варианты ответа */
.quiz-answers {
    display: grid;
    gap: 12px;
}

.quiz-answer {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    padding: 14px 18px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 0;
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    color: #ffffff;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.quiz-answer:hover {
    border-color: var(--gold);
    background: rgba(198, 166, 100, 0.12);
}

.quiz-answer:active {
    transform: scale(0.995);
}

.quiz-answer:focus-visible {
    outline: 1px solid var(--gold);
    outline-offset: 2px;
}

/* Финальный экран */
.quiz-final-text {
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.quiz-answers-summary {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
    margin-bottom: 20px;
}

.quiz-answers-summary strong {
    color: var(--gold);
    font-weight: 600;
}

/* Форма: глобальные .form-group/.checkbox-group в main.css
   уже стилизованы под тёмный фон (светлый текст, прозрачные поля). */
.quiz-notification {
    display: none;
    margin-top: 15px;
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
}

/* Мобильные */
@media (max-width: 640px) {
    .quiz-section {
        padding: 48px 0;
    }

    .quiz-card {
        padding: 22px;
    }

    .quiz-title {
        font-size: 26px;
    }

    .quiz-question {
        font-size: 20px;
    }
}
