/* ===== QUIZ STYLES — V2 Amber CTA Theme ===== */
.quiz-wrapper {
    min-height: calc(100vh - 56px - 60px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 110px var(--space-md, 1.5rem) var(--space-md, 1.5rem);
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
}

.quiz-container {
    width: 100%;
    max-width: 600px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    position: relative;
}

/* Progress Bar — Amber */
.quiz-progress {
    height: 6px;
    background: #f1f5f9;
}

.quiz-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #FFD60A, #FFC107);
    border-radius: 0 3px 3px 0;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Steps */
.quiz-step {
    display: none;
    padding: 2.5rem 1.5rem;
    animation: fadeInStep 0.4s ease;
}

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

@keyframes fadeInStep {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

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

.quiz-step-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.quiz-step-tag {
    display: inline-block;
    font-family: var(--ff-heading, 'Montserrat', sans-serif);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #b45309;
    background: rgba(255, 193, 7, 0.12);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.quiz-step-header h2 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.quiz-step-header p {
    font-size: 0.9rem;
    color: #64748b;
}

/* Checkbox Cards */
.quiz-options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.7rem;
}

.quiz-checkbox-card {
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.quiz-checkbox-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.quiz-checkbox-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
    flex: 1;
    border: 2px solid #f1f5f9;
    border-radius: 12px;
    text-align: center;
    font-family: var(--ff-heading, 'Montserrat', sans-serif);
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
    transition: all 0.3s ease;
}

.quiz-checkbox-inner img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.quiz-checkbox-card input:checked+.quiz-checkbox-inner {
    border-color: #FFC107;
    background-color: #fffbeb;
    color: #b45309;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.15);
}

.quiz-checkbox-inner:hover {
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

/* Radio Cards */
.quiz-options-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.quiz-radio-card {
    cursor: pointer;
}

.quiz-radio-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.quiz-radio-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.5rem;
    border: 2px solid #f1f5f9;
    border-radius: 12px;
    font-family: var(--ff-heading, 'Montserrat', sans-serif);
    font-size: 0.95rem;
    font-weight: 500;
    color: #334155;
    transition: all 0.3s ease;
}

.quiz-radio-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s ease;
}

.quiz-radio-dot::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #FFC107;
    transform: scale(0);
    transition: transform 0.2s ease;
}

.quiz-radio-card input:checked+.quiz-radio-inner {
    border-color: #FFC107;
    background: rgba(255, 193, 7, 0.06);
    color: #b45309;
}

.quiz-radio-card input:checked+.quiz-radio-inner .quiz-radio-dot {
    border-color: #FFC107;
}

.quiz-radio-card input:checked+.quiz-radio-inner .quiz-radio-dot::after {
    transform: scale(1);
}

.quiz-radio-inner:hover {
    border-color: #cbd5e1;
}

/* Navigation */
.quiz-nav {
    margin-top: 1.5rem !important;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: center;
}

.quiz-nav-two {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.quiz-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.7rem 1.2rem;
    background: transparent;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.quiz-back-btn:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.quiz-back-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.quiz-next-btn {
    flex: 1;
}

.quiz-next-btn:disabled {
    background: #f1f5f9 !important;
    color: #94a3b8 !important;
    border: 1px solid #e2e8f0;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
    opacity: 1;
}

.quiz-next-btn svg {
    width: 20px;
    height: 20px;
}

/* Processing */
.quiz-processing {
    text-align: center;
    padding: 2.5rem 0;
}

.quiz-spinner {
    margin: 0 auto 2.5rem;
    width: 64px;
    height: 64px;
    position: relative;
}

.spinner-ring {
    width: 100%;
    height: 100%;
    border: 4px solid #f1f5f9;
    border-top-color: #FFC107;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Success checkmark (dopamine hit) */
.quiz-spinner.success-state .spinner-ring {
    display: none;
}

.success-checkmark-svg {
    width: 64px;
    height: 64px;
    color: #10b981;
    animation: checkPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes checkPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.quiz-processing h2.success-text {
    color: #10b981;
}

.quiz-processing h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.processing-sub {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 2.5rem;
}

.processing-steps {
    max-width: 300px;
    margin: 0 auto;
    text-align: left;
}

.processing-step {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s ease;
    font-size: 0.9rem;
    color: #334155;
}

.processing-step.visible {
    opacity: 1;
    transform: translateX(0);
}

.processing-step svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.processing-step.visible svg {
    color: #10b981;
}

/* Success */
.quiz-success {
    text-align: center;
    padding: 1.5rem 0;
}

.success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    0% {
        transform: scale(0);
    }

    80% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.success-icon svg {
    width: 36px;
    height: 36px;
    fill: #ffffff;
}

.quiz-success h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #0f172a;
}

.success-sub {
    font-size: 0.92rem;
    color: #64748b;
    margin-bottom: 2.5rem;
    line-height: 1.65;
}

.success-disclaimer {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #475569;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 480px) {
    .quiz-options-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quiz-step {
        padding: 1.5rem 1rem;
    }

    .quiz-step-header h2 {
        font-size: 1.15rem;
    }

    .quiz-nav-two {
        flex-direction: column-reverse;
    }

    .quiz-back-btn {
        width: 100%;
        justify-content: center;
    }

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

/* ===== REWARD SELECTION GRID ===== */
.reward-selection-grid {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.reward-card {
    flex: 0 1 calc(50% - 1rem);
    min-width: 200px;
    max-width: 280px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
}

@media (max-width: 600px) {
    .reward-card {
        flex: 0 1 100%;
    }
}

.reward-card:hover,
.reward-card:active {
    border-color: #FFC107;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.reward-select-btn {
    display: inline-block;
    margin-top: 1.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
    transition: all 0.2s ease;
}

.reward-card:hover .reward-select-btn {
    color: #0f172a;
    transform: translateX(4px);
}

.reward-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 0 auto 1rem auto;
    display: block;
    mix-blend-mode: darken;
}

.reward-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.reward-scarcity {
    color: #dc2626;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.reward-pulse {
    width: 6px;
    height: 6px;
    background: #dc2626;
    border-radius: 50%;
    display: inline-block;
    animation: pulseRed 2s infinite;
}

@keyframes pulseRed {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(220, 38, 38, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
    }
}

.scarcity-flash {
    animation: scarcityFlash 0.5s ease;
}

@keyframes scarcityFlash {
    0% {
        transform: scale(1);
        color: #dc2626;
    }

    50% {
        transform: scale(1.25);
        color: #ef4444;
    }

    100% {
        transform: scale(1);
        color: #dc2626;
    }
}

/* ===== RESERVATION LOCK OVERLAY ===== */
.reservation-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999; display: none; align-items: center; justify-content: center;
}
.reservation-box {
    background: #fff; padding: 2.5rem 2rem; border-radius: 16px;
    text-align: center; max-width: 400px; width: 90%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2); animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.lock-spinner { font-size: 3rem; margin-bottom: 1rem; animation: pulseLock 1.5s infinite; }
.reservation-box h3 { color: #10b981; margin-bottom: 0.5rem; font-size: 1.5rem; }
.reservation-box p { color: #475569; font-size: 0.95rem; margin-bottom: 1.5rem; }
.progress-bar-container { width: 100%; height: 6px; background: #e2e8f0; border-radius: 10px; overflow: hidden; margin-bottom: 1rem; }
.progress-bar-fill { height: 100%; background: #10b981; width: 0%; transition: width 3s linear; }
.redirect-text { 
    font-size: 0.95rem !important; /* Increased for readability */
    font-weight: 600 !important; /* Bolded for authority */
    color: #334155 !important; /* Dark slate for high contrast */
    margin-top: 1.25rem !important; 
    margin-bottom: 0 !important;
    animation: pulseRedirectText 2s infinite ease-in-out; /* Draws the eye down */
}

@keyframes pulseRedirectText { 
    0%, 100% { opacity: 1; } 
    50% { opacity: 0.5; } 
}

@keyframes pulseLock { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }