/* ============================================================
   AI MATURITY QUIZ — page styles
   ============================================================ */

/* Intro levels list */
.quiz-intro-levels {
    list-style: none;
    padding: 0;
    margin: 28px 0 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    counter-reset: quiz-level;
}

.quiz-intro-levels li {
    display: flex;
    align-items: baseline;
    gap: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: rgba(10, 10, 10, 0.85);
    counter-increment: quiz-level;
}

.quiz-intro-levels li::before {
    content: counter(quiz-level);
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: rgba(10, 10, 10, 0.4);
    min-width: 14px;
    flex-shrink: 0;
}


/* Quiz section — one question at a time, centered */
.quiz-section {
    padding: 80px 0 100px;
    border-top: 1px solid rgba(10, 10, 10, 0.12);
}

/* Two-column layout: sidebar (progress) left, questions right */
.quiz-inner {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 80px;
    align-items: start;
}

.quiz-main {
    max-width: 650px;
}

/* Progress — lives in the left sidebar column */
.quiz-progress {
    padding-top: 6px;
}

.quiz-progress-text {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    color: rgba(10, 10, 10, 0.4);
    margin-bottom: 10px;
    text-align: left;
}

.quiz-progress-bar {
    height: 1px;
    background: rgba(10, 10, 10, 0.12);
}

.quiz-progress-fill {
    height: 100%;
    background: rgb(10, 10, 10);
    transition: width 0.35s ease;
    width: 0%;
}

/* Question blocks — hidden by default, one shown at a time */
.quiz-question {
    display: none;
    border: none;
    margin: 0;
    padding: 0;
}

.quiz-question.quiz-question--active {
    display: block;
}

.quiz-question-legend {
    padding: 0;
    margin: 0 0 32px;
    display: block;
    width: 100%;
    text-align: left;
}


.quiz-q-text {
    display: block;
    font-family: 'Instrument Serif', serif;
    font-size: 32px;
    font-weight: 300;
    letter-spacing: -0.64px;
    line-height: 40px;
    color: rgb(10, 10, 10);
}

/* Options */
.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border: 1px solid rgba(10, 10, 10, 0.18);
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: rgba(10, 10, 10, 0.85);
    transition: border-color 0.15s, background 0.15s;
    user-select: none;
}

.quiz-option:hover {
    border-color: rgba(10, 10, 10, 0.38);
    background: rgba(10, 10, 10, 0.02);
}

.quiz-option input[type="radio"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    accent-color: rgb(10, 10, 10);
    cursor: pointer;
}

.quiz-option:has(input:checked) {
    border-color: rgb(10, 10, 10);
    background: rgba(10, 10, 10, 0.03);
}

.quiz-option:has(input:focus-visible) {
    outline: 2px solid rgb(10, 10, 10);
    outline-offset: 2px;
}

/* Back navigation */
.quiz-nav {
    margin-top: 28px;
    min-height: 36px;
}

.quiz-back-btn {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: rgba(10, 10, 10, 0.45);
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 0;
    transition: color 0.15s;
}

.quiz-back-btn:hover {
    color: rgb(10, 10, 10);
}

/* Inline result — replaces the question in the same area */
@keyframes quiz-result-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.quiz-result-inline {
    animation: quiz-result-fade-in 0.35s ease both;
}

.quiz-result-card {
    display: contents;
}

.quiz-result-card[hidden] {
    display: none;
}

.quiz-result-card h2 {
    font-family: 'Instrument Serif', serif;
    font-size: 32px;
    font-weight: 300;
    letter-spacing: -0.64px;
    line-height: 40px;
    color: rgb(10, 10, 10);
    margin: 0 0 20px;
}

.quiz-result-card p {
    font-size: 16px;
    line-height: 26px;
    color: rgba(10, 10, 10, 0.85);
    margin: 0 0 16px;
}

.quiz-result-level {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(10, 10, 10, 0.45);
    margin: 28px 0 0;
}

.quiz-restart-wrap {
    margin-top: 24px;
    margin-bottom: 0 !important;
}

.quiz-result-cta {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 26px;
    color: rgba(10, 10, 10, 0.85);
    margin: 12px 0 0;
}

/* Responsive */
@media (max-width: 1200px) {
    .quiz-inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .quiz-section {
        padding: 56px 0 72px;
    }

    .quiz-q-text {
        font-size: 24px;
        letter-spacing: -0.48px;
        line-height: 32px;
    }

    .quiz-option {
        padding: 14px 16px;
    }

    .quiz-result-card h2 {
        font-size: 28px;
        line-height: 34px;
        letter-spacing: -0.56px;
    }
}
