/* HOW WE SPEAK - QUIZ STYLES */

.quiz-page {
    min-height: 100vh;
    background: var(--cream);
    padding: 120px 24px 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Make navbar absolute on quiz page so it doesn't float down */
#navbar {
    position: absolute !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
}

.quiz-shell {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    background: var(--warm-white);
    border-radius: 24px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.08);
    padding: 56px;
    position: relative;
    overflow: hidden;
}

.quiz-screen {
    display: none;
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    opacity: 0;
}

.quiz-screen.active {
    display: block;
    opacity: 1;
}

/* Animations */
.fade-slide-up {
    animation: fadeSlideUp 0.6s ease-out forwards;
}

@keyframes fadeSlideUp {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.slide-left-out {
    animation: slideLeftOut 350ms ease-out forwards;
}

.slide-right-in {
    animation: slideRightIn 350ms ease-out forwards;
}

@keyframes slideLeftOut {
    0% {
        opacity: 1;
        transform: translateX(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-20px);
    }
}

@keyframes slideRightIn {
    0% {
        opacity: 0;
        transform: translateX(20px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Typography & General */
.eyebrow {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--crimson);
    margin-bottom: 24px;
}

.italic-text {
    font-style: italic;
    color: var(--gray);
}

/* Screen 1: Intro */
.intro-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.intro-heading {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.1;
    color: var(--charcoal);
    margin-bottom: 24px;
}

.intro-body {
    font-family: 'Inter', sans-serif;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 500px;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.trust-item {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--charcoal-mid);
    display: flex;
    align-items: center;
    gap: 8px;
}

.trust-icon {
    color: var(--crimson);
}

.btn-start {
    width: 100%;
    max-width: 280px;
    margin-bottom: 20px;
}

.intro-legal {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: var(--gray);
}

.reveal-stagger>* {
    opacity: 0;
}

.reveal-stagger>*:nth-child(1) {
    animation: fadeSlideUp 0.6s ease-out 0.1s forwards;
}

.reveal-stagger>*:nth-child(2) {
    animation: fadeSlideUp 0.6s ease-out 0.2s forwards;
}

.reveal-stagger>*:nth-child(3) {
    animation: fadeSlideUp 0.6s ease-out 0.3s forwards;
}

.reveal-stagger>*:nth-child(4) {
    animation: fadeSlideUp 0.6s ease-out 0.4s forwards;
}

.reveal-stagger>*:nth-child(5) {
    animation: fadeSlideUp 0.6s ease-out 0.5s forwards;
}

.reveal-stagger>*:nth-child(6) {
    animation: fadeSlideUp 0.6s ease-out 0.6s forwards;
}


.quiz-progress-track {
    width: 100%;
    height: 4px;
    background: var(--border);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 12px;
}

.quiz-progress-fill {
    height: 100%;
    background: var(--crimson);
    border-radius: 999px;
    width: 0%;
    transition: width 400ms cubic-bezier(.4, 0, .2, 1);
}

.quiz-progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 500;
    color: var(--gray);
    letter-spacing: 0.06em;
    margin-bottom: 40px;
}

.q-content {
    opacity: 1;
    /* Initial state, JS handles transitions */
}

.question-eyebrow {
    color: var(--crimson);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 10px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.question-text {
    font-family: var(--font-display);
    font-size: clamp(22px, 4.5vw, 36px);
    font-weight: 400;
    line-height: 1.25;
    color: var(--charcoal);
    margin-bottom: 32px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.option-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    background: var(--warm-white);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 12px;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.45;
    color: var(--charcoal-mid);
    cursor: pointer;
    transition: all 250ms ease-out;
    min-height: 64px;
}

.option-btn:hover,
.option-btn:focus-visible {
    border-color: var(--crimson);
    background: rgba(196, 30, 58, 0.02);
    transform: translateX(4px);
    outline: none;
}

.option-btn.selected {
    border-color: var(--crimson);
    background: rgba(196, 30, 58, 0.04);
}

.option-circle {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 1.5px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 250ms ease-out;
}

.option-btn:hover .option-circle,
.option-btn:focus-visible .option-circle {
    border-color: var(--crimson);
}

.option-btn.selected .option-circle {
    background-color: var(--crimson);
    border-color: var(--crimson);
}

.option-circle::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    margin-bottom: 2px;
}

.option-btn.selected .option-circle::after {
    opacity: 1;
}

.btn-back,
.btn-skip {
    background: none;
    border: none;
    color: var(--gray);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 0;
    text-decoration: underline;
    transition: color 250ms ease-out;
}

.btn-back:hover,
.btn-skip:hover {
    color: var(--charcoal);
}


/* Screen 3: Email Capture */
.email-content {
    text-align: center;
}

.email-heading {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.1;
    color: var(--charcoal);
    margin-bottom: 24px;
}

.email-body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 40px;
}

.email-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 400px;
    margin: 0 auto 30px auto;
}

.input-group {
    position: relative;
    width: 100%;
}

.input-field {
    width: 100%;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    background: #fff;
    transition: border-color 250ms ease;
}

.input-field:focus {
    outline: none;
    border-color: var(--crimson);
}

.input-field.invalid {
    border-color: var(--crimson);
}

.error-msg {
    display: none;
    color: var(--crimson);
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    text-align: left;
    margin-top: 6px;
    padding-left: 4px;
}

.input-field.invalid+.error-msg {
    display: block;
}

.email-legal {
    font-size: 12px;
    color: var(--gray);
    line-height: 1.5;
    margin-bottom: 20px;
}


/* Screen 4: Results */
.result-content {
    text-align: left;
}

.result-badge {
    width: 90px;
    height: 90px;
    border: 1.5px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    font-size: 32px;
}

.result-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(36px, 4.5vw, 58px);
    color: var(--charcoal);
    line-height: 1.1;
    margin-bottom: 12px;
}

.result-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    margin-bottom: 40px;
}

.result-divider {
    border: none;
    height: 1px;
    background-color: var(--crimson);
    width: 80px;
    margin: 0 0 40px 0;
}

.res-h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--charcoal);
}

.res-paragraphs {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: var(--charcoal-mid);
    line-height: 1.6;
    margin-bottom: 40px;
}

.res-paragraphs p {
    margin-bottom: 16px;
}

.res-cards-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 50px;
}

.res-card {
    background: var(--warm-white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
}

.res-card-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--charcoal);
}

.res-card-body {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: var(--charcoal-mid);
    line-height: 1.5;
}

.res-product-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    transition: all 250ms ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.res-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: var(--gold);
}

.res-product-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 22px;
    color: var(--charcoal);
}

.res-product-desc {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: var(--gray);
    line-height: 1.5;
}

.result-confirm {
    background: var(--cream);
    border: 1px solid rgba(196, 30, 58, 0.12);
    border-left: 3px solid var(--crimson);
    border-radius: 0 16px 16px 0;
    padding: 28px 32px;
    margin: 40px 0;
}

.result-confirm__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(196, 30, 58, 0.08);
    color: var(--crimson);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 16px;
}

.result-confirm__title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.result-confirm__body {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.65;
    color: var(--gray);
}

.result-confirm__body strong {
    color: var(--charcoal);
    font-weight: 600;
}

/* @media responsive */
@media (max-width: 860px) {
    .quiz-page {
        padding: 90px 16px 60px;
        align-items: flex-start;
    }

    .quiz-shell {
        border-radius: 20px;
        padding: 32px 22px 28px;
    }
}

@media (max-width: 480px) {
    .question-text {
        font-size: clamp(20px, 5.5vw, 26px);
        margin-bottom: 24px;
    }

    .option-btn {
        padding: 16px 16px;
        font-size: 15px;
        gap: 12px;
        min-height: 56px;
        margin-bottom: 10px;
    }

    .option-btn:hover {
        transform: none;
    }

    .option-circle {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }

    .quiz-progress-label {
        font-size: 11px;
    }

    .quiz-progress-track {
        margin-bottom: 10px;
    }

    .input-field {
        font-size: 16px;
        padding: 15px 16px;
        width: 100%;
    }

    #btn-submit,
    .btn-start {
        width: 100%;
        padding: 17px 24px;
        font-size: 16px;
        max-width: 100%;
    }

    .result-title {
        font-size: clamp(28px, 8vw, 42px);
    }

    .res-card {
        padding: 20px 18px;
    }

    .result-confirm {
        padding: 22px 20px;
    }
}

@media (max-width: 400px) {
    .quiz-page {
        padding: 84px 12px 48px;
    }

    .quiz-shell {
        padding: 26px 18px 24px;
        border-radius: 16px;
        margin: 0;
    }
}

@media (min-width: 1025px) {
    .quiz-screen {
        max-width: 680px;
        padding: 40px 0;
    }
}