.quiz-container {
    max-width: 100%;
    width: 100%;
    flex: 1;
    align-self: stretch;
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    padding: 1.6rem 1.8rem 1.4rem;
    position: relative;
    overflow: hidden;
    border: none;
    box-sizing: border-box;
}

/* ---- Header (hidden — section heading on left panel serves as title) ---- */
.quiz-header {
    display: none;
}

.quiz-title {
    font-family: 'Plus Jakarta Sans', arial, sans-serif;
    font-size: 21px;
    font-weight: 700;
    color: #3e4095;
    margin: 0 0 0.25rem;
    line-height: 1.2;
}

.quiz-subtitle {
    font-family: 'Plus Jakarta Sans', arial, sans-serif;
    font-size: 12px;
    color: #626262;
    font-weight: 500;
    margin: 0;
    line-height: 1.5;
}

/* ---- Progress bar ---- */
.quiz-progress {
    width: 100%;
    height: 5px;
    background: #edf2ff;
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 0.9rem;
}

.quiz-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #f58634, #ff9f4a);
    border-radius: 100px;
    transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Question counter ---- */
.quiz-counter {
    font-family: 'Plus Jakarta Sans', arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #f58634;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.7rem;
}

/* ---- Question text ---- */
.quiz-q-text {
    font-family: 'Plus Jakarta Sans', arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #3e4095;
    line-height: 1.55;
    margin-bottom: 1rem;
}

/* ---- Options wrapper ---- */
.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

/* ---- Option buttons ---- */
.quiz-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 13px;
    background: #edf2ff;
    border: 2px solid transparent;
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    font-family: 'Plus Jakarta Sans', arial, sans-serif;
    position: relative;
    overflow: hidden;
}

.quiz-option:hover:not(.correct):not(.wrong):not(:disabled) {
    border-color: #f58634;
    background: rgba(245, 134, 52, 0.06);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 134, 52, 0.12);
}

.quiz-option:active:not(.correct):not(.wrong):not(:disabled) {
    transform: translateY(0);
}

.quiz-option-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    border-radius: 7px;
    background: #fff;
    color: #3e4095;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
    transition: all 0.25s ease;
    border: 1.5px solid rgba(62, 64, 149, 0.15);
}

.quiz-option-text {
    font-size: 13px;
    font-weight: 500;
    color: #3e4095;
    line-height: 1.45;
}

/* Correct state */
.quiz-option.correct {
    background: rgba(34, 197, 94, 0.08);
    border-color: #22c55e;
    cursor: default;
}

.quiz-option.correct .quiz-option-label {
    background: #22c55e;
    color: #fff;
    border-color: #22c55e;
}

.quiz-option.correct .quiz-option-text {
    color: #166534;
    font-weight: 600;
}

/* Wrong state */
.quiz-option.wrong {
    background: rgba(239, 68, 68, 0.08);
    border-color: #ef4444;
    cursor: default;
}

.quiz-option.wrong .quiz-option-label {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
}

.quiz-option.wrong .quiz-option-text {
    color: #991b1b;
    font-weight: 600;
}

/* Disabled (non-selected after answer) */
.quiz-option:disabled {
    cursor: default;
    opacity: 0.55;
}

.quiz-option:disabled:not(.correct):not(.wrong) {
    background: #edf2ff;
}

/* ---- Footer row ---- */
.quiz-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(62, 64, 149, 0.08);
}

/* ---- Score display ---- */
.quiz-score {
    font-family: 'Plus Jakarta Sans', arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #3e4095;
}

.quiz-score strong {
    color: #f58634;
    font-weight: 800;
}

/* ---- Next button ---- */
.quiz-next-btn {
    padding: 10px 28px;
    border-radius: 22px;
    border: none;
    background: #f58634;
    color: #fff;
    font-family: 'Plus Jakarta Sans', arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.3px;
}

.quiz-next-btn:hover {
    background: #3e4095;
    box-shadow: 0 4px 16px rgba(245, 134, 52, 0.30);
    transform: translateY(-1px);
}

/* ---- Results screen ---- */
.quiz-result {
    text-align: center;
    padding: 1rem 0;
}

.quiz-result-score {
    font-family: 'Plus Jakarta Sans', arial, sans-serif;
    font-size: 42px;
    font-weight: 800;
    color: #3e4095;
    line-height: 1;
    margin-bottom: 0.3rem;
}

.quiz-result-pct {
    font-family: 'Plus Jakarta Sans', arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #f58634;
    margin-bottom: 0.5rem;
}

.quiz-result-label {
    font-family: 'Plus Jakarta Sans', arial, sans-serif;
    font-size: 13px;
    color: #626262;
    font-weight: 500;
    margin-bottom: 1.2rem;
}

/* ---- Restart button ---- */
.quiz-restart-btn {
    padding: 12px 36px;
    border-radius: 22px;
    border: 2px solid #3e4095;
    background: transparent;
    color: #3e4095;
    font-family: 'Plus Jakarta Sans', arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.3px;
}

.quiz-restart-btn:hover {
    background: #3e4095;
    color: #fff;
    box-shadow: 0 4px 16px rgba(62, 64, 149, 0.2);
    transform: translateY(-1px);
}

/* ---- Loading ---- */
.quiz-loading {
    text-align: center;
    font-family: 'Plus Jakarta Sans', arial, sans-serif;
    font-size: 13px;
    color: #626262;
    font-weight: 500;
    padding: 1rem 0;
}

.quiz-loading::before {
    content: "";
    display: block;
    width: 30px;
    height: 30px;
    margin: 0 auto 0.8rem;
    border: 3px solid #edf2ff;
    border-top-color: #f58634;
    border-radius: 50%;
    animation: quizSpin 0.7s linear infinite;
}

@keyframes quizSpin {
    to {
        transform: rotate(360deg);
    }
}

/* ---- Error ---- */
.quiz-error {
    text-align: center;
    font-family: 'Plus Jakarta Sans', arial, sans-serif;
    font-size: 13px;
    color: #ef4444;
    font-weight: 600;
    padding: 1rem 0;
}

/* ---- Fade-in animation ---- */
@keyframes quizFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quiz-fade-in {
    animation: quizFadeIn 0.4s ease-out;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .quiz-container {
        padding: 1.3rem 1.3rem 1.2rem;
    }

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

@media (max-width: 576px) {
    .quiz-container {
        padding: 1.1rem 0.9rem;
        border-radius: 10px;
    }

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

    .quiz-subtitle {
        font-size: 11px;
    }

    .quiz-q-text {
        font-size: 13px;
    }

    .quiz-option {
        padding: 8px 10px;
        gap: 8px;
    }

    .quiz-option-label {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }

    .quiz-option-text {
        font-size: 12px;
    }

    .quiz-footer {
        flex-direction: column;
        gap: 0.6rem;
        align-items: stretch;
    }

    .quiz-score {
        text-align: center;
    }

    .quiz-next-btn {
        width: 100%;
        text-align: center;
    }

    .quiz-result-score {
        font-size: 34px;
    }
}