:root {
    --primary-green: #22c55e;
    --primary-red: #ef4444;
    --dark-text: #1f2937;
    --light-text: #6b7280;
    --bg-color: #f3f4f6;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --font-main: 'Outfit', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--dark-text);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    background-image: radial-gradient(#e5e7eb 1px, transparent 1px);
    background-size: 20px 20px;
}

.app-container {
    width: 100%;
    max-width: 480px;
    background-color: var(--white);
    min-height: 100vh;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Progress Bar */
.progress-container {
    width: 100%;
    height: 8px;
    background-color: #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 50;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-green);
    width: 0%;
    transition: width 0.4s ease;
    border-radius: 0 4px 4px 0;
}

/* Main Content Area */
.content-area {
    flex: 1;
    padding: 1.5rem;
    padding-bottom: 120px;
    /* Ensure content isn't hidden behind fixed button */
    display: flex;
    flex-direction: column;
}

.fixed-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    padding: 1rem;
    background: transparent;
    box-shadow: none;
    pointer-events: none;
    /* Allow clicks to pass through the empty area */
}

.fixed-bottom-bar>* {
    pointer-events: auto;
    /* Re-enable clicks on the button itself */
    z-index: 100;
}

.step-container {
    animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Typography */
h1 {
    font-size: 1.875rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
    text-align: center;
}

h2 {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
}

p {
    color: var(--light-text);
    margin-bottom: 1rem;
}

.highlight-red {
    color: var(--primary-red);
}

.highlight-green {
    color: var(--primary-green);
    font-weight: 700;
}

/* Buttons & Inputs */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1.125rem;
    cursor: pointer;
    transition: transform 0.1s, background-color 0.2s;
    text-decoration: none;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--primary-green);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(34, 197, 94, 0.39);
}

.btn-primary:hover {
    background-color: #16a34a;
}

.btn-back-custom {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    font-weight: 700;
    color: #111;
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 0.5rem;
    padding: 0;
    width: auto;
    font-family: var(--font-main);
}

.btn-back-icon {
    background-color: #007bff;
    color: white;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    font-size: 14px;
    line-height: 1;
    padding-bottom: 2px;
}

/* Quiz Options */
/* Quiz Options */
.option-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    min-height: 80px;
    font-weight: 600;
    color: #020617;
    /* Very dark/robust color */
    font-size: 1.05rem;
}

.option-card:hover {
    border-color: var(--primary-green);
    background-color: #f0fdf4;
    transform: translateY(-2px);
}

.option-card.selected {
    border-color: var(--primary-green);
    background-color: #f0fdf4;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.option-icon {
    font-size: 2rem;
    background: #f3f4f6;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

/* Inputs */
.input-group {
    margin-bottom: 1.5rem;
    width: 100%;
}

input[type="text"],
input[type="number"] {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-lg);
    font-size: 1.1rem;
    outline: none;
    transition: border-color 0.2s;
}

input[type="text"]:focus {
    border-color: var(--primary-green);
}

/* Animations */
@keyframes slideInRight {
    from {
        opacity: 0;
        /* transform: translateX(20px); - Removed to fix position:fixed context issue */
    }

    to {
        opacity: 1;
        /* transform: translateX(0); */
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes pulse-glow {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }

    70% {
        transform: scale(1.02);
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.animate-pulse-red {
    animation: pulse 2s infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 2s infinite;
}

/* Hero Section */
.hero-image {
    width: 100%;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    box-shadow: var(--shadow-lg);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dark-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 90%;
    max-width: 400px;
    z-index: 100;
    opacity: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    transition: opacity 0.5s, transform 0.5s;
    pointer-events: none;
    /* Fixed: Click through when hidden */
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
    /* Fixed: Catch clicks when visible */
}

.toast-hidden {
    transform: translateX(-50%) translateY(20px);
}

/* Slider Customization */
.slider-container {
    width: 100%;
    text-align: center;
    padding: 1rem 0;
}

.slider-display {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

input[type=range] {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    /* Fallback */
    border-radius: 5px;
    outline: none;
    appearance: none;
    /* The linear-gradient will be handled by JS for the progress effect */
}

input[type=range]::-webkit-slider-thumb {
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #007bff;
    /* Blue thumb */
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    border: 3px solid white;
    /* Slightly thicker border for contrast */
}

/* Specific Section Styles */
.sales-price-box {
    background: white;
    border: 2px solid var(--primary-green);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    margin: 1.5rem 0;
}

.old-price {
    text-decoration: line-through;
    color: var(--light-text);
    font-size: 1.25rem;
}

.new-price {
    color: var(--primary-red);
    font-size: 2.5rem;
    font-weight: 800;
}

/* Carousel Styles */
.carousel-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 1rem 0;
    margin-bottom: 2rem;
    /* Mask removed as requested */
}

.carousel-track {
    display: flex;
    width: max-content;
    gap: 1rem;
    animation: scroll 35s linear infinite;
    /* Slowed down from 20s to 35s */
}

.carousel-track.slow-scroll {
    animation-duration: 30s;
    /* Much slower for the last carousel */
}

.carousel-track.slow-scroll .carousel-item img {
    object-fit: contain;
    /* Ensure full image is visible */
    background: #fdfdfd;
    /* Background for letterboxing if needed */
}

.carousel-item {
    width: 280px;
    /* Increased size */
    flex-shrink: 0;
}

.carousel-item img {
    width: 100%;
    height: 380px;
    object-fit: contain;
    background-color: #f9fafb;
    /* Crop to fill */
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

@keyframes scroll {
    to {
        transform: translateX(calc(-50% - 0.5rem));
    }
}

/* FAQ Accordion Styles */
.faq-container {
    background: white;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.faq-item {
    border-bottom: 1px solid #e5e7eb;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.2rem;
    font-weight: 700;
    font-size: 1rem;
    color: #1f2937;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 1.2rem;
}

.faq-answer p {
    padding-bottom: 1.2rem;
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    /* Adjust based on content */
}

.arrow-icon {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
    color: #9ca3af;
}

.faq-item.active .arrow-icon {
    transform: rotate(180deg);
    color: #22c55e;
}