:root {
    /* Color Palette */
    --primary-blue: #3b82f6; /* Bright brand blue */
    --primary-dark: #0f172a; /* Slate 900 for dark text */
    --text-muted: #475569; /* Slate 600 for lighter text */
    --bg-main: #f8fafc; /* Slate 50 background */
    --card-bg: #ffffff;
    
    --border-light: #e2e8f0;
    --border-active: #3b82f6;
    
    --success-green: #10b981;
    --success-hover: #059669;
    --star-gold: #fbbf24;
    
    --blue-highlight-bg: #f0f7ff;
    
    /* Layout */
    --max-width: 600px; /* Kept narrow for mobile optimal view on desktop */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-main);
    color: var(--primary-dark);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.app-container {
    max-width: var(--max-width);
    margin: 0 auto;
    background-color: var(--bg-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ================= HEADER ================= */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--card-bg);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-bold {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-dark);
}

.logo-light {
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.contact-area {
    text-align: right;
}

.header-call-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.call-text {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.1;
}

.speak-text {
    font-size: 0.75rem;
    color: var(--success-green);
    font-weight: 700;
    display: flex;
    align-items: center;
}

.pulse-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--success-green);
    border-radius: 50%;
    margin-right: 5px;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.phone-number {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-blue);
}

/* ================= HERO SECTION ================= */
.hero-section {
    position: relative;
    padding: 2.5rem 1.25rem;
    /* We use a gradient overlay that goes from solid near-white on the left to transparent on the right */
    background: linear-gradient(to right, rgba(248,250,252,0.98) 0%, rgba(248,250,252,0.85) 55%, rgba(248,250,252,0) 100%), url('hero-bg.png');
    background-size: cover;
    background-position: right top;
    min-height: 280px;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 65%; /* Constrain text to the left so it doesn't overlap family faces too much */
}

.hero-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.2;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.blue-text {
    color: var(--primary-blue);
}

.hero-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.4;
}

/* ================= TRUST BADGES ROW 1 ================= */
.trust-row-1 {
    display: flex;
    justify-content: space-between;
    padding: 1.25rem;
    background: var(--bg-main);
    border-bottom: 1px solid var(--border-light);
}

.trust-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 0.5rem;
}

.border-right {
    border-right: 1px solid var(--border-light);
}

.stars {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    margin-bottom: 0.25rem;
}

.star-group {
    font-size: 0.7rem;
    letter-spacing: 1px;
    background: var(--success-green);
    color: white;
    padding: 2px 4px;
    border-radius: 3px;
    display: inline-block;
}

.rating-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
}

.trust-icon {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.trust-bold {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.15rem;
}

.trust-subtext {
    font-size: 0.6rem;
    color: var(--text-muted);
    line-height: 1.2;
}

/* ================= TRUST BADGES ROW 2 ================= */
.trust-row-2 {
    display: flex;
    justify-content: space-between;
    background-color: var(--blue-highlight-bg);
    margin: 1.25rem;
    padding: 1rem 0.5rem;
    border-radius: 8px;
}

.trust-badge {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.badge-icon {
    font-size: 1.2rem;
    margin-bottom: 0.35rem;
    background: white;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.badge-text {
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--primary-dark);
    line-height: 1.3;
}

/* ================= MAIN CONTENT (QUIZ) ================= */
.main-content {
    padding: 0 1.25rem 2rem 1.25rem;
}

.card {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.05), 0 4px 8px -4px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(226, 232, 240, 0.6);
}

/* Progress */
.progress-container {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-indicator {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.progress-bar-bg {
    width: 100%;
    height: 6px;
    background-color: var(--border-light);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--primary-blue);
    width: 33%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Questions */
.question-text {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    text-align: center;
    line-height: 1.3;
}

/* Options */
.options-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.option-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 1.25rem 1.5rem;
    background-color: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
    line-height: 1.4;
}

.option-btn:hover {
    border-color: var(--primary-blue);
    background-color: var(--blue-highlight-bg);
    color: var(--primary-blue);
}

.option-btn:active {
    transform: scale(0.98);
}

/* ================= RESULTS SECTION ================= */
.result-title {
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.result-message {
    font-size: 1.05rem;
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.live-status {
    text-align: center;
    color: var(--success-green);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.call-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1.25rem;
    background-color: #ef4444; /* High conversion red */
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: 0 4px 14px 0 rgba(239, 68, 68, 0.39);
    transition: all 0.3s ease;
}

.call-btn:hover {
    background-color: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(239, 68, 68, 0.4);
}

.call-btn-text {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
}

.call-btn-subtext {
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.9;
}

/* ================= REVIEWS CAROUSEL ================= */
.reviews-section {
    padding: 1rem 1.25rem 2rem 1.25rem;
}

.reviews-title {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 1.25rem;
}

.carousel-container {
    display: flex;
    align-items: center;
    position: relative;
}

.carousel-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-muted);
    cursor: pointer;
    flex-shrink: 0;
}

.reviews-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding: 0.5rem;
    scrollbar-width: none; /* Hide scrollbar Firefox */
    -ms-overflow-style: none; /* Hide scrollbar IE/Edge */
}

.reviews-track::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

.review-card {
    flex: 0 0 85%;
    scroll-snap-align: center;
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    text-align: center;
}

.review-stars {
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
}

.review-text {
    font-size: 0.8rem;
    color: var(--primary-dark);
    line-height: 1.5;
    font-weight: 500;
}

/* ================= FOOTER ================= */
.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.25rem;
    background-color: var(--blue-highlight-bg);
    margin-top: auto;
}

.footer-icon {
    margin-bottom: 0.75rem;
}

.footer-text {
    text-align: center;
    font-size: 0.85rem;
    color: var(--primary-dark);
    line-height: 1.4;
}

.footer-bold {
    font-weight: 800;
}

.footer-light {
    color: var(--text-muted);
}

/* Utilities */
.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.4s ease-in-out;
}

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

/* Responsive Adjustments */
@media (min-width: 768px) {
    :root {
        --max-width: 1000px;
    }
    
    .hero-section {
        min-height: 400px;
        padding: 4rem 3rem;
        background-position: center right;
        background-size: cover;
    }
    
    .hero-content {
        max-width: 50%;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .main-content {
        max-width: 600px;
        margin: 0 auto;
        padding: 2rem;
    }

    .trust-row-1 {
        padding: 2rem 3rem;
    }

    .trust-row-2 {
        margin: 2rem 3rem;
        padding: 1.5rem;
    }

    .trust-icon {
        font-size: 1.5rem;
    }

    .trust-bold {
        font-size: 0.85rem;
    }

    .trust-subtext {
        font-size: 0.75rem;
    }

    .badge-icon {
        width: 42px;
        height: 42px;
        font-size: 1.5rem;
    }

    .badge-text {
        font-size: 0.8rem;
    }

    .review-card {
        flex: 0 0 31%;
    }
    
    .header {
        padding: 1.5rem 3rem;
    }
}

/* Specific iPhone / Small Mobile Tweaks */
@media (max-width: 400px) {
    .hero-title {
        font-size: 1.5rem;
    }
    .trust-subtext, .badge-text {
        font-size: 0.55rem;
    }
    .trust-bold {
        font-size: 0.6rem;
    }
    .option-btn {
        padding: 1rem;
        font-size: 0.95rem;
    }
}
