:root {
    /* Earth Tone Palette - Clean & Harmonic */

    /* Backgrounds */
    --color-bg: #F7F6F4;
    /* Requested off-white warm */
    --color-surface: #ffffff;
    --color-surface-hover: #ebe5de;

    /* Primary Actions */
    --color-primary: #9A7B5F;
    /* Requested Marrom Logo */
    --color-primary-hover: #8A6C52;
    /* Darker state */

    /* Text */
    --color-text: #2E2E2E;
    /* Soft Black */
    --color-text-muted: #6b5d52;
    /* Medium Brown/Gray */

    /* Borders & Accents */
    --color-border: #d4c5b3;
    /* Softer border */

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    /* Generous breathing room */

    /* Typography */
    --font-main: 'Montserrat', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --font-quote: 'Poppins', sans-serif;
    /* New font for quotes */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-main);
    font-weight: 400;
    /* Regular */
    line-height: 1.6;
    min-height: 100vh;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    /* Bold */
    line-height: 1.2;
    color: var(--color-text);
}

.app-container {
    max-width: 600px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: var(--spacing-sm);
}

/* Header */
.main-header {
    padding: var(--spacing-xs) 0 4px;
    /* Very tight padding */
    text-align: center;
}

.logo-wrapper {
    display: flex;
    justify-content: center;
    /* Centered again */
    width: 100%;
    margin-bottom: 0;
    /* Removed margin */
    padding-left: 0;
    /* Remove left padding */
}

/* Logo Image Style */
.logo-img {
    max-width: 150px;
    /* Smaller logo */
    width: auto;
    height: auto;
    display: block;
}

.highlight {
    color: var(--color-primary);
    font-weight: 700;
}

/* Main Content */
.quiz-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Question Card */
.question-card {
    width: 100%;
    background-color: transparent;
    /* Clean look, text directly on bg or minimal card */
    padding: var(--spacing-sm) 0;
    /* Vertical spacing only */
    animation: fadeIn 0.6s ease-out;
    text-align: center;
}

.question-title {
    /* UPDATED: Montserrat SemiBold */
    font-family: 'Montserrat', sans-serif;
    font-size: 2.25rem;
    /* 36px desktop */
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    text-align: center;
    line-height: 1.2;
    color: var(--color-text);
    /* Letter spacing reduced slightly */
    letter-spacing: -0.01em;
}

@media (max-width: 768px) {
    .question-title {
        font-size: 1.75rem;
        /* 28px mobile */
    }
}

.question-subtitle {
    text-align: center;
    color: var(--color-text);
    /* UPDATED: Poppins Regular Italic */
    font-family: var(--font-quote);
    font-weight: 400;
    font-style: italic;
    /* Regular Italic */
    font-size: 1.15rem;
    /* ~18-20px */
    margin-bottom: var(--spacing-lg);
    line-height: 1.5;
}

/* Options */
.options-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.option-btn {
    background-color: var(--color-primary);
    /* Brown buttons */
    border: none;
    color: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    /* 8px radius */
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    /* SemiBold */
    font-size: 1rem;
    /* 16px */
    transition: all 0.2s ease;
    text-align: center;
    display: block;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    /* Very subtle shadow */
    text-transform: uppercase;
    /* Slight uppercase for buttons can look premium */
    letter-spacing: 0.5px;
}

/* Overriding Option Btn for Checkbox/Radio inputs to be cleaner (White/Offwhite) */
.option-btn {
    background-color: #ffffff;
    color: var(--color-text);
    border: 1px solid #e0e0e0;
    text-transform: none;
    /* Keep options normal case */
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (hover: hover) {
    .option-btn:hover {
        background-color: #fcfcfc;
        border-color: var(--color-primary);
        transform: translateY(-1px);
    }
}

.option-btn.selected {
    background-color: var(--color-primary);
    /* Brown background */
    border-color: var(--color-primary);
    color: #ffffff;
    /* White text */
    font-weight: 700;
    transform: scale(0.98);
    /* Slight press effect */
}

/* Ensure icons inside selected buttons turn white if they are text/SVG color based (though emojis stay same) */
.option-btn.selected .checkbox-icon {
    background-color: var(--color-primary);
    border-color: #fff;
}

.option-btn.selected span {
    color: #ffffff;
}

/* Main Action Buttons (Continue, Start) */
.continue-btn,
.intro-btn {
    width: 100%;
    max-width: 400px;
    margin: var(--spacing-md) auto 0;
    padding: 1.1rem;
    background-color: var(--color-primary);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    /* SemiBold */
    text-transform: uppercase;
    cursor: pointer;
    font-size: 1.1rem;
    /* 16-18px */
    transition: background-color 0.2s;
    box-shadow: 0 4px 10px rgba(154, 123, 95, 0.2);
    display: block;
}

@media (hover: hover) {

    .continue-btn:hover,
    .intro-btn:hover {
        background-color: var(--color-primary-hover);
        box-shadow: 0 6px 15px rgba(154, 123, 95, 0.3);
    }
}

.continue-btn:disabled {
    background-color: #dcdcdc;
    color: #999;
    cursor: not-allowed;
    box-shadow: none;
}

/* Progress Bar */
.progress-container {
    width: 100%;
    height: 4px;
    /* Thinner */
    background-color: #e0e0e0;
    border-radius: 2px;
    margin-bottom: var(--spacing-lg);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--color-primary);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 2px;
}

/* Footer */
.main-footer {
    text-align: center;
    padding: var(--spacing-lg) 0;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-family: var(--font-main);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Checkbox specific */
.checkbox-icon {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    background: #fff;
}

.option-btn.selected .checkbox-icon {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.option-btn.selected .checkbox-icon::after {
    content: '✓';
    color: white;
    font-weight: 700;
    font-size: 14px;
}

/* Loading Bar */
.loading-bar-container {
    width: 100%;
    height: 6px;
    background-color: #e0e0e0;
    border-radius: 3px;
    margin: var(--spacing-md) 0;
    overflow: hidden;
}

.loading-bar-fill {
    height: 100%;
    background-color: var(--color-primary);
    width: 0%;
    transition: width 0.1s linear;
}

.loading-percentage {
    text-align: center;
    font-weight: 600;
    color: var(--color-primary);
    margin-top: 0.5rem;
}

/* Intro Specifics used in HTML content */
.intro-headline {
    /* UPDATED: Montserrat SemiBold */
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    color: var(--color-text);
    line-height: 1.2;
    font-weight: 600;
}

@media (max-width: 768px) {
    .intro-headline {
        font-size: 1.8rem;
    }
}

.intro-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: var(--color-text);
    line-height: 1.5;
    font-weight: 400;
}

/* Util class for small top label */
.step-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

/* =========================================
   PULSE ANIMATIONS (Requested v19)
   ========================================= */

/* 1. Subtle Pulse for Standard Navigation Buttons */
@keyframes pulse-subtle {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(154, 123, 95, 0.2);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 6px 15px rgba(154, 123, 95, 0.3);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(154, 123, 95, 0.2);
    }
}

.continue-btn,
.intro-btn {
    animation: pulse-strong 2s infinite;
}

/* 2. Strong Pulse for Buy/VSL Buttons (.pulse class) 
   Overriding the subtle animation for these specific buttons */
@keyframes pulse-strong {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(154, 123, 95, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(154, 123, 95, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(154, 123, 95, 0);
    }
}

.pulse {
    animation: pulse-strong 2s infinite;
}

/* 3. NEW: Soft Red Pulse for Status Indicator (Requested v30) DEPRECATED - REPLACED BY STRONG */
/* 
@keyframes pulse-red-soft {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}
.pulse-red-status {
    animation: pulse-red-soft 1.5s infinite ease-in-out;
}
*/

/* 4. NEW: Strong Red Pulse for Status Indicator (Requested v31) */
@keyframes pulse-strong-red {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.7);
        /* Red #F44336 */
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(244, 67, 54, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(244, 67, 54, 0);
    }
}

.pulse-red-strong {
    animation: pulse-strong-red 2s infinite;
}


/* =========================================
   SEQUENTIAL LOADING SCREEN (Requested v21)
   ========================================= */

.loading-header {
    text-align: center;
    margin-bottom: 2rem;
}

.loading-steps-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 3rem;
}

.loading-step {
    margin-bottom: 1.5rem;
}

.loading-step-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.loading-step-bar {
    width: 100%;
    height: 8px;
    /* Thicker than standard */
    background-color: #EAEAEA;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.loading-step-fill {
    height: 100%;
    width: 0%;
    background-color: var(--color-primary);
    /* Green/Primary Color */
    border-radius: 4px;
    transition: width 0.1s linear;
}

/* Social Proof Section */
.social-proof-container {
    text-align: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.social-proof-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

.wreath-icon {
    font-size: 1.5rem;
    color: var(--color-primary);
    vertical-align: middle;
    margin: 0 0.5rem;
}

/* Testimonial Carousel - SHARED */
.testimonial-carousel {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    height: 220px;
    /* Fixed height to prevent jumps, increased for content */
    overflow: hidden;
}

.testimonial-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.5s ease-in-out;
    pointer-events: none;
    /* Prevent interaction during auto-play */
}

/* Active card stays visible */
.testimonial-card.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 10;
}

/* Exiting card moves left and fades out */
.testimonial-card.exit {
    opacity: 0;
    transform: translateX(-50px);
    z-index: 9;
}

.stars {
    color: #FFC107;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.author-name {
    font-weight: 700;
    color: var(--color-text);
    display: inline-block;
    margin-left: 0.5rem;
    font-size: 0.95rem;
}

.testimonial-text {
    font-style: italic;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* =========================================
   INTERRUPTION MODAL (Requested v22)
   ========================================= */

.interruption-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    /* Increased to ensure it's on top */
    padding: 1rem;
    animation: fadeIn 0.3s ease-out;
}

.option-icon {
    font-size: 1.5rem;
    margin-right: 10px;
    display: inline-block;
    vertical-align: middle;
}

.interruption-modal {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
    animation: slideUp 0.3s ease-out;
}

.interruption-modal h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
}

.modal-options {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.modal-btn {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 2px solid var(--color-primary);
    background-color: transparent;
    color: var(--color-primary);
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.2s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.modal-btn.primary {
    background-color: var(--color-primary);
    color: #ffffff;
}

@media (hover: hover) {
    .modal-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(154, 123, 95, 0.2);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   HIGH CONVERSION OFFER PAGE (Requested v23)
   ========================================= */

.offer-section {
    padding: 2.5rem 1rem;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.offer-section:last-child {
    border-bottom: none;
}

/* Block 1: Diagnosis */
.diagnosis-block {
    background-color: #fff;
}

/* Block 2: Problem */
.problem-block {
    background-color: #F9F5F1;
    /* Light brown tint */
}

.rounded-img {
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Block 3: Method */
.method-block {
    background-color: #fff;
}

.phase-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.phase-number {
    background: var(--color-primary);
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Block 4: Feelings */
.feelings-block {
    background-color: #fff;
}

.feeling-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

/* Block 5: Differentiation */
.diff-block {
    background-color: #F2F2F2;
}

.diff-list {
    text-align: left;
    display: inline-block;
}

/* Block 6: Authority */
.authority-block {
    background-color: #fff;
}

.authority-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--color-primary);
    margin-bottom: 1rem;
}

/* Blocks 7-10: Offer Details */
.offer-details-block {
    background-color: #fff;
}

.module-card {
    background: #FAFAFA;
    padding: 0.8rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    text-align: left;
    font-size: 0.95rem;
    border-left: 3px solid var(--color-primary);
}

.diagnosis-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    /* SemiBold */
}

.price-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    /* Bold */
}
/* --- Recap Block Styles --- */
.recap-container {
    background: var(--color-surface);
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.recap-header-img {
    width: 100%;
    display: block;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.recap-content {
    padding: 1.5rem;
}

.recap-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-text);
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.recap-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recap-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
}

.recap-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.recap-icon {
    color: var(--color-primary);
    font-size: 1.2rem;
    flex-shrink: 0;
    font-weight: bold;
}

.recap-text {
    font-size: 0.95rem;
    color: var(--color-text);
    line-height: 1.4;
    font-weight: 600;
}

.recap-subtext {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 400;
    margin-top: 2px;
}
