/**
 * SmartTest Pro – Frontend Quiz Stylesheet
 * Premium quiz experience with orange/white/black palette
 */

/* ══════════════════════════════════════════════════════════
   VARIABLES
   ══════════════════════════════════════════════════════════ */
.stp-quiz-wrapper {
    --stp-orange-50:  #FFFDF0; /* Very light brand yellow tint */
    --stp-orange-100: #FFF9D6; /* Soft brand yellow background */
    --stp-orange-200: #FFEAA3; /* Medium brand yellow tint */
    --stp-orange-300: #FFE066; /* Bright brand yellow border hover */
    --stp-orange-400: #FFD61A; /* Accent yellow */
    --stp-orange-500: #FED100; /* Main AA Zimbabwe brand yellow */
    --stp-orange-600: #E5BC00; /* Darker yellow for active/hover */
    --stp-orange-700: #1C1C1A; /* Sleek black/dark gray for text */
    --stp-orange-800: #111111; /* Sleek pure black/dark gray for text */
    --stp-orange-900: #000000; /* Pure black */
    --stp-gray-50:  #FAF9F6;  /* Soft sleek gray background */
    --stp-gray-100: #F3F3F2;
    --stp-gray-200: #E4E4E2;  /* Thin crisp borders */
    --stp-gray-300: #D4D4D1;
    --stp-gray-400: #A3A29E;
    --stp-gray-500: #73716E;
    --stp-gray-600: #54534E;
    --stp-gray-700: #3C3C3A;
    --stp-gray-800: #1C1C1A;
    --stp-gray-900: #111111;
    --stp-green:    #10B981;  /* Modern emerald green */
    --stp-red:      #EF4444;

    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--stp-gray-800);
    max-width: 100%;
    margin: 0 auto;
    position: relative;
}

.stp-quiz-wrapper *,
.stp-quiz-wrapper *::before,
.stp-quiz-wrapper *::after {
    box-sizing: border-box;
}

/* ══════════════════════════════════════════════════════════
   SCREENS
   ══════════════════════════════════════════════════════════ */
.stp-screen {
    display: none;
    animation: stpFadeIn .4s ease;
}

.stp-screen-active {
    display: block;
}

@keyframes stpFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════
   QUIZ CARD (base wrapper for all screens)
   ══════════════════════════════════════════════════════════ */
.stp-quiz-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--stp-gray-200);
    overflow: hidden;
}

/* ══════════════════════════════════════════════════════════
   BRAND BAR
   ══════════════════════════════════════════════════════════ */
.stp-quiz-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--stp-gray-200);
    background: #fff;
}

.stp-quiz-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.stp-company-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--stp-gray-900);
    letter-spacing: -.01em;
}

/* ══════════════════════════════════════════════════════════
   INTRO SCREEN
   ══════════════════════════════════════════════════════════ */
.stp-intro-card {
    text-align: center;
    padding-bottom: 40px;
}

.stp-intro-icon {
    margin: 32px auto 20px;
    width: 80px;
    height: 80px;
    color: var(--stp-gray-900);
}

.stp-intro-icon svg {
    width: 100%;
    height: 100%;
}

.stp-test-title {
    font-size: 19px;
    font-weight: 700;
    margin: 0 24px 8px;
    color: var(--stp-gray-900);
    letter-spacing: -.01em;
    line-height: 1.25;
}

.stp-test-desc {
    font-size: 13px;
    color: var(--stp-gray-500);
    margin: 0 36px 20px;
    line-height: 1.5;
}

.stp-test-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 24px 28px;
}

.stp-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--stp-gray-50);
    border: 1px solid var(--stp-gray-200);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--stp-gray-700);
}

.stp-meta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    color: var(--stp-gray-600);
    flex-shrink: 0;
}

.stp-meta-icon svg {
    width: 100%;
    height: 100%;
}

/* Start Button */
.stp-btn-start {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    background: var(--stp-orange-500);
    color: var(--stp-orange-900);
    border: 1.5px solid var(--stp-orange-500);
    border-radius: 8px;
    font-size: 14.5px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: none;
    transition: all .2s ease;
    position: relative;
    overflow: hidden;
}

.stp-btn-start:hover {
    transform: translateY(-1px);
    background: var(--stp-orange-900);
    color: var(--stp-orange-500);
    border-color: var(--stp-orange-900);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.stp-btn-start svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
}

/* ══════════════════════════════════════════════════════════
   QUESTIONS SCREEN
   ══════════════════════════════════════════════════════════ */
.stp-questions-card {
    padding: 0;
}

/* Progress bar */
.stp-progress-wrapper {
    padding: 16px 24px 0;
}

.stp-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.stp-progress-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--stp-gray-600);
}

.stp-progress-text span {
    color: var(--stp-gray-900);
    font-weight: 800;
}

.stp-timer {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--stp-gray-800);
    background: var(--stp-gray-100);
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid var(--stp-gray-200);
}

.stp-timer.stp-timer-warning {
    color: var(--stp-red);
    background: #FEF2F2;
    border-color: rgba(239,68,68,0.2);
    animation: stpPulse 1s ease infinite;
}

@keyframes stpPulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: .6; }
}

.stp-timer svg {
    flex-shrink: 0;
}

.stp-progress-bar {
    width: 100%;
    height: 4px;
    background: var(--stp-gray-200);
    border-radius: 2px;
    overflow: hidden;
}

.stp-progress-fill {
    height: 100%;
    background: var(--stp-orange-500);
    border-radius: 2px;
    transition: width .4s ease;
    position: relative;
}

/* Question container */
#stp-question-container {
    padding: 20px 24px;
    min-height: 180px;
}

.stp-question-slide {
    animation: stpSlideInQ .35s ease;
}

@keyframes stpSlideInQ {
    from { opacity: 0; transform: translateX(12px); }
    to   { opacity: 1; transform: translateX(0); }
}

.stp-q-label {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--stp-gray-900);
    margin: 0 0 12px;
}

/* Multiple choice options */
.stp-option-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stp-option-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid var(--stp-gray-200);
    border-radius: 8px;
    cursor: pointer;
    transition: all .15s ease;
    position: relative;
}

.stp-option-item:hover {
    border-color: var(--stp-gray-900);
    background: var(--stp-gray-50);
}

.stp-option-item.selected {
    border-color: var(--stp-gray-900);
    background: var(--stp-orange-50);
    box-shadow: 0 0 0 3px rgba(254, 209, 0, 0.15);
}

.stp-option-item input[type="radio"] {
    display: none;
}

.stp-option-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    border: 1px solid var(--stp-gray-300);
    font-size: 11px;
    font-weight: 700;
    color: var(--stp-gray-700);
    background: var(--stp-gray-50);
    transition: all .15s ease;
    flex-shrink: 0;
}

.stp-option-item.selected .stp-option-marker {
    background: var(--stp-gray-900);
    border-color: var(--stp-gray-900);
    color: #fff;
}

.stp-option-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--stp-gray-700);
    flex: 1;
}

.stp-option-item.selected .stp-option-text {
    color: var(--stp-gray-900);
    font-weight: 600;
}

/* Select answer (dropdown) */
.stp-select-wrapper {
    position: relative;
    margin-top: 8px;
}

.stp-select-answer {
    width: 100%;
    padding: 8px 30px 8px 12px;
    border: 1px solid var(--stp-gray-200);
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    color: var(--stp-gray-800);
    background: #fff;
    appearance: none;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
    outline: none;
}

.stp-select-answer:focus {
    border-color: var(--stp-gray-900);
    box-shadow: 0 0 0 3px rgba(254, 209, 0, 0.15);
}

.stp-select-wrapper::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 0; height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--stp-gray-500);
    pointer-events: none;
}

/* True/False */
.stp-tf-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stp-tf-btn {
    padding: 10px 12px;
    border: 1px solid var(--stp-gray-200);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    text-align: center;
    transition: all .15s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stp-tf-btn:hover {
    border-color: var(--stp-gray-900);
    background: var(--stp-gray-50);
}

.stp-tf-btn.selected {
    border-color: var(--stp-gray-900);
    background: var(--stp-orange-50);
    box-shadow: 0 0 0 3px rgba(254, 209, 0, 0.15);
}

.stp-tf-btn input[type="radio"] {
    display: none;
}

.stp-tf-icon {
    font-size: 18px;
}

.stp-tf-label {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--stp-gray-700);
}

.stp-tf-btn.selected .stp-tf-label {
    color: var(--stp-gray-900);
}

/* Navigation */
.stp-nav-buttons {
    display: flex;
    justify-content: space-between;
    padding: 0 24px 20px;
    gap: 12px;
}

.stp-btn-nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all .2s ease;
    border: 1px solid transparent;
}

.stp-btn-nav svg {
    width: 16px;
    height: 16px;
}

.stp-btn-prev {
    background: #fff;
    color: var(--stp-gray-700);
    border-color: var(--stp-gray-200);
}

.stp-btn-prev:hover:not(:disabled) {
    background: var(--stp-gray-50);
    color: var(--stp-gray-900);
    border-color: var(--stp-gray-300);
}

.stp-btn-prev:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.stp-btn-next {
    background: var(--stp-orange-500);
    color: var(--stp-orange-900);
    border-color: var(--stp-orange-500);
    margin-left: auto;
}

.stp-btn-next:hover {
    background: var(--stp-orange-900);
    color: var(--stp-orange-500);
    border-color: var(--stp-orange-900);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* ══════════════════════════════════════════════════════════
   DETAILS SCREEN
   ══════════════════════════════════════════════════════════ */
.stp-details-card {
    padding: 40px 32px;
    text-align: center;
}

.stp-details-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
}

.stp-details-icon svg {
    width: 100%;
    height: 100%;
}

.stp-details-card h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--stp-gray-900);
    margin: 0 0 8px;
}

.stp-details-subtitle {
    font-size: 14px;
    color: var(--stp-gray-500);
    margin: 0 0 32px;
}

.stp-details-form {
    text-align: left;
    max-width: 560px;
    margin: 0 auto;
}

.stp-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.stp-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--stp-gray-700);
    margin-bottom: 6px;
}

.stp-field label .req {
    color: var(--stp-red);
}

.stp-field input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--stp-gray-200);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: var(--stp-gray-800);
    transition: border-color .15s ease, box-shadow .15s ease;
    outline: none;
}

.stp-field input:focus {
    border-color: var(--stp-gray-900);
    box-shadow: 0 0 0 3px rgba(254, 209, 0, 0.15);
}

.stp-field input::placeholder {
    color: var(--stp-gray-400);
}

.stp-field input.stp-input-error {
    border-color: var(--stp-red);
    box-shadow: 0 0 0 3px rgba(239,68,68,.1);
}

.stp-field .stp-error-msg {
    font-size: 12px;
    color: var(--stp-red);
    margin-top: 4px;
    display: none;
}

.stp-field.has-error .stp-error-msg {
    display: block;
}

/* Submit button */
.stp-btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px;
    margin-top: 24px;
    background: var(--stp-orange-500);
    color: var(--stp-orange-900);
    border: 1.5px solid var(--stp-orange-500);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: none;
    transition: all .2s ease;
}

.stp-btn-submit:hover {
    background: var(--stp-orange-900);
    color: var(--stp-orange-500);
    border-color: var(--stp-orange-900);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.stp-btn-submit:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.stp-spinner {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    animation: stpSpin 1s linear infinite;
}

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

/* ══════════════════════════════════════════════════════════
   RESULTS SCREEN
   ══════════════════════════════════════════════════════════ */
.stp-results-card {
    padding-bottom: 36px;
}

.stp-score-section {
    text-align: center;
    padding: 36px 28px 28px;
}

/* Score Circle */
.stp-score-circle {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
}

.stp-score-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.stp-score-bg {
    fill: none;
    stroke: var(--stp-gray-100);
    stroke-width: 8;
}

.stp-score-ring {
    fill: none;
    stroke: var(--stp-orange-500);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 326.7;
    stroke-dashoffset: 326.7;
    transition: stroke-dashoffset 1.5s cubic-bezier(.4,0,.2,1), stroke 0.5s ease;
}

.stp-score-ring.passed {
    stroke: var(--stp-green);
}

.stp-score-ring.failed {
    stroke: var(--stp-red);
}

.stp-score-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    text-align: center;
}

.stp-score-pct {
    font-size: 36px;
    font-weight: 800;
    color: var(--stp-gray-900);
    line-height: 1;
}

/* Result badge */
.stp-result-badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: .03em;
}

.stp-result-badge.passed {
    background: #DCFCE7;
    color: #15803D;
    border: 1px solid rgba(21,128,61,0.15);
}

.stp-result-badge.failed {
    background: #FEE2E2;
    color: #B91C1C;
    border: 1px solid rgba(185,28,28,0.15);
}

.stp-score-detail {
    font-size: 13.5px;
    color: var(--stp-gray-500);
    margin: 0;
}

/* Answer Breakdown */
.stp-breakdown {
    padding: 0 28px;
    margin-bottom: 28px;
}

.stp-breakdown h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--stp-gray-800);
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--stp-gray-200);
}

.stp-answer-item {
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid;
    animation: stpFadeIn .3s ease both;
}

.stp-answer-item:nth-child(1) { animation-delay: .05s; }
.stp-answer-item:nth-child(2) { animation-delay: .1s; }
.stp-answer-item:nth-child(3) { animation-delay: .15s; }
.stp-answer-item:nth-child(4) { animation-delay: .2s; }
.stp-answer-item:nth-child(5) { animation-delay: .25s; }
.stp-answer-item:nth-child(n+6) { animation-delay: .3s; }

.stp-answer-item.correct {
    background: #F0FDF4;
    border-color: rgba(16,185,129,0.15);
}

.stp-answer-item.incorrect {
    background: #FEF2F2;
    border-color: rgba(239,68,68,0.15);
}

.stp-answer-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 6px;
}

.stp-answer-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 12px;
    margin-top: 2px;
}

.stp-answer-item.correct .stp-answer-icon {
    background: #10B981;
    color: #fff;
}

.stp-answer-item.incorrect .stp-answer-icon {
    background: #EF4444;
    color: #fff;
}

.stp-answer-q-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--stp-gray-900);
    line-height: 1.5;
}

.stp-answer-details {
    margin-left: 32px;
    font-size: 13px;
    color: var(--stp-gray-600);
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
}

.stp-answer-details span {
    display: inline-block;
}

.stp-answer-correct-val {
    color: #15803D;
    font-weight: 600;
}

.stp-answer-user-val.wrong {
    color: #B91C1C;
    font-weight: 600;
    text-decoration: line-through;
}

/* ══════════════════════════════════════════════════════════
   RESULT ACTION BUTTONS
   ══════════════════════════════════════════════════════════ */
.stp-result-actions {
    display: flex;
    gap: 12px;
    padding: 0 28px 28px;
    flex-wrap: wrap;
    justify-content: center;
}

.stp-btn-retake {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all .2s ease;
    border: 1px solid transparent;
    background: #fff;
    color: var(--stp-gray-700);
    border-color: var(--stp-gray-200);
}

.stp-btn-retake:hover {
    background: var(--stp-gray-50);
    color: var(--stp-gray-900);
    border-color: var(--stp-gray-300);
}

.stp-btn-retake svg {
    width: 16px;
    height: 16px;
}

.stp-btn-retake:disabled {
    opacity: .6;
    cursor: wait;
}

/* ══════════════════════════════════════════════════════════
   INTRO / REVIEW NOTES
   ══════════════════════════════════════════════════════════ */
.stp-intro-note {
    margin: 0 28px 20px;
    font-size: 13px;
    color: var(--stp-gray-500);
    text-align: center;
    line-height: 1.5;
}

.stp-email-note {
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--stp-gray-600);
    max-width: 420px;
}

.stp-online-only {
    font-size: 12px;
    font-weight: 500;
    color: var(--stp-gray-500);
}

.stp-review-note {
    margin: 0 0 16px;
    font-size: 13px;
    color: var(--stp-gray-500);
}

/* ══════════════════════════════════════════════════════════
   SEMI-FINAL BOOKING
   ══════════════════════════════════════════════════════════ */
.stp-booking {
    margin: 8px 28px 24px;
    padding: 20px;
    background: var(--stp-orange-50);
    border: 1px solid var(--stp-orange-200);
    border-radius: 10px;
}

.stp-booking h3 {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
    color: var(--stp-gray-900);
}

.stp-booking-intro {
    margin: 0 0 16px;
    font-size: 14px;
    color: var(--stp-gray-600);
    line-height: 1.5;
}

.stp-booking-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.stp-booking-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border: 2px solid var(--stp-gray-200);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.stp-booking-option:hover {
    border-color: var(--stp-orange-400);
}

.stp-booking-option.selected,
.stp-booking-option:has(input:checked) {
    border-color: var(--stp-orange-500);
    box-shadow: 0 0 0 3px rgba(254, 209, 0, 0.25);
}

.stp-booking-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--stp-orange-600);
    flex-shrink: 0;
}

.stp-booking-option-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stp-booking-option-body strong {
    font-size: 15px;
    color: var(--stp-gray-900);
}

.stp-booking-option-body span {
    font-size: 13px;
    color: var(--stp-gray-600);
}

.stp-btn-booking {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 13px 20px;
    background: var(--stp-orange-500);
    color: var(--stp-orange-900);
    border: 1px solid var(--stp-orange-500);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all .2s ease;
}

.stp-btn-booking:hover:not(:disabled) {
    background: var(--stp-orange-900);
    color: var(--stp-orange-500);
    border-color: var(--stp-orange-900);
}

.stp-btn-booking:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.stp-booking-msg {
    margin: 12px 0 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.stp-booking-msg.success {
    color: var(--stp-green);
}

.stp-booking-msg.error {
    color: var(--stp-red);
}

/* ══════════════════════════════════════════════════════════
   CONFETTI
   ══════════════════════════════════════════════════════════ */
.stp-confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99999;
}

/* ══════════════════════════════════════════════════════════
   ERROR STATE
   ══════════════════════════════════════════════════════════ */
.stp-error {
    background: #FEF2F2;
    color: #991B1B;
    padding: 20px 24px;
    border-radius: 12px;
    border: 1px solid #FECACA;
    font-size: 14px;
    text-align: center;
}

.stp-error code {
    background: rgba(0,0,0,.06);
    padding: 2px 6px;
    border-radius: 4px;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
    .stp-quiz-wrapper {
        margin: 0 -10px;
    }

    .stp-quiz-card {
        border-radius: 10px;
    }

    .stp-intro-card {
        padding-bottom: 28px;
    }

    .stp-test-title {
        font-size: 22px;
        margin: 0 20px 10px;
    }

    .stp-test-desc {
        margin: 0 20px 24px;
        font-size: 14px;
    }

    .stp-test-meta {
        margin: 0 16px 24px;
        gap: 8px;
    }

    .stp-meta-item {
        padding: 6px 14px;
        font-size: 12.5px;
    }

    .stp-btn-start {
        padding: 14px 36px;
        font-size: 15px;
    }

    .stp-progress-wrapper {
        padding: 16px 20px 0;
    }

    #stp-question-container {
        padding: 20px;
    }

    .stp-q-label {
        font-size: 15px;
    }

    .stp-option-item {
        padding: 12px 14px;
        gap: 10px;
    }

    .stp-option-marker {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .stp-option-text {
        font-size: 14px;
    }

    .stp-nav-buttons {
        padding: 0 20px 20px;
    }

    .stp-btn-nav {
        padding: 10px 18px;
        font-size: 13px;
    }

    .stp-form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stp-details-card {
        padding: 28px 20px;
    }

    .stp-score-section {
        padding: 28px 20px 20px;
    }

    .stp-score-circle {
        width: 120px;
        height: 120px;
    }

    .stp-score-pct {
        font-size: 28px;
    }

    .stp-breakdown {
        padding: 0 20px;
    }

    .stp-answer-details {
        margin-left: 0;
        margin-top: 8px;
        flex-direction: column;
        gap: 2px;
    }

    .stp-result-actions {
        padding: 0 20px 20px;
        flex-direction: column;
    }

    .stp-btn-retake {
        width: 100%;
        justify-content: center;
    }

    .stp-booking {
        margin: 8px 16px 20px;
        padding: 16px;
    }
}

/* Block printing / discourage circulating answer sheets */
@media print {
    .stp-quiz-wrapper .stp-breakdown,
    .stp-quiz-wrapper #stp-answers-list,
    .stp-quiz-wrapper .stp-answer-item,
    .stp-quiz-wrapper .stp-booking {
        display: none !important;
    }

    .stp-quiz-wrapper::after {
        content: "Answer review is available online only and cannot be printed.";
        display: block;
        padding: 24px;
        text-align: center;
        font-size: 14px;
    }
}

.stp-breakdown,
#stp-answers-list {
    -webkit-user-select: none;
    user-select: none;
}
