/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Open+Sans:wght@400;600&display=swap');

/* New Color Palette Variables (for reference)
:root {
    --primary-blue: #00529B;
    --action-green: #4CAF50;
    --exit-red: #e74c3c;
    --neutral-gray: #6c757d;
    --text-dark: #212529;
    --body-bg: #f0f4f8;
    --header-bg: #ffffff;
    --footer-bg: #2c3e50;
    --dark-theme-bg: #0a2540;
}
*/

/* Base Styles */
body {
    font-family: 'Open Sans', sans-serif;
    color: #212529; /* Darker text for better readability */
    background-color: #f0f4f8; /* Very light blue-gray background */
    margin: 0;
    padding: 0;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: #00529B; /* Primary brand blue */
}

a {
    color: #00529B; /* Primary brand blue */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Override Bootstrap text-success to match our theme */
.text-success {
    color: #4CAF50 !important;
}

/* Header */
.site-header {
    padding: 15px 0;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1020; /* Ensure it's above other content */
}

.site-header .logo {
    max-height: 50px; /* Standardized height */
    width: auto;
}

/* Adsense Placeholders */
.adsense-container {
    width: 100%;
}

.adsense-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Main Content Area */
.main-content {
    padding: 40px 20px;
    text-align: center;
    flex-grow: 1;
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

/* Content Card Effect for regular pages */
.main-content > .container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.08);
}


@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.main-content .lead {
    font-size: 1.1rem;
    color: #495057;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Quiz Section */
.quiz-section {
    margin-top: 30px;
    margin-bottom: 30px;
}

.question-text {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: #212529;
}

.question-text u {
    text-decoration: none;
    border-bottom: 3px solid #4CAF50; /* Accent green */
    padding-bottom: 3px;
}


/* Buttons */
.btn-custom {
    display: inline-block;
    padding: 15px 35px;
    font-size: 1.2rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    color: #fff !important;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease-out, box-shadow 0.3s ease-out, background-size 0.3s ease-out;
    margin: 10px 5px;
    min-width: 220px;
    background-size: 200% 100%;
}

.btn-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    background-position: right center;
}

/* Green for "Yes" or positive progression */
.btn-yes {
    background-image: linear-gradient(to right, #4CAF50, #45a049, #4CAF50);
}

/* Gray for neutral "No" choice that continues flow */
.btn-no {
    background-image: linear-gradient(to right, #6c757d, #5a6268, #6c757d);
}

/* Red for any action that exits the funnel */
.exit-trigger {
    background-image: linear-gradient(to right, #e74c3c, #c0392b, #e74c3c);
}


/* Call to Action Specifics (Step 3) */
.cta-text-box {
    background-color: #E8F5E9; /* Light green */
    color: #2E7D32; /* Dark green text */
    padding: 20px;
    font-weight: 600;
    font-size: 1.2rem;
    border-radius: 8px;
    border: 1px solid #A5D6A7;
    max-width: 600px;
    margin: 20px auto 25px;
}

.btn-call {
    background-image: linear-gradient(to right, #4CAF50, #45a049, #4CAF50); /* Match positive action green */
    font-size: 1.4rem !important;
    padding: 18px 40px !important;
}

/* Disclaimer Text */
.disclaimer-text {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.site-footer {
    background-color: #2c3e50; /* Slightly lighter dark blue/grey */
    color: #f8f9fa;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
}

.site-footer .footer-links a {
    color: #adb5bd;
    margin: 0 10px;
}

.site-footer .footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.site-footer .copyright-text {
    margin-top: 10px;
    color: #adb5bd;
}

/* Exit Offer Page Specifics */
body.exit-offer-page {
    background-color: #0a2540; /* Dark blue */
    color: #fff;
}

/* Remove card effect for exit page */
.exit-offer-page .main-content > .container {
    background-color: transparent;
    box-shadow: none;
    padding: 0;
}

.exit-offer-page .site-header {
    background-color: #e1e1e1; /* Revert to light header to make logo visible */
    box-shadow: none;
    border-bottom: 1px solid #1A3A5A;
}

.exit-offer-page .main-content h1,
.exit-offer-page .main-content p.lead {
    color: #fff;
}

.offer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 20px 0;
}

@media (min-width: 768px) {
    .offer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.offer-grid a.offer-image-link {
    display: block;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
}

.offer-grid a.offer-image-link:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
    text-decoration: none;
}

.offer-grid a.offer-image-link img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: inherit;
}

.exit-offer-page .site-footer {
    background-color: #071c30; /* Slightly darker footer for exit page */
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .btn-custom {
        padding: 12px 25px;
        font-size: 1rem;
        min-width: 180px;
    }

    .question-text {
        font-size: 1.4rem;
    }

    .main-content .lead {
        font-size: 1rem;
    }

    .main-content > .container {
        padding: 25px 15px;
    }

    .cta-text-box {
        font-size: 1rem;
    }

    .btn-call {
        font-size: 1.2rem !important;
        padding: 15px 30px !important;
    }

    .adsense-placeholder {
        min-height: 50px;
    }

    .site-header .logo {
        max-height: 40px;
    }
}

@media (max-width: 575px) {
    .quiz-section .btn-custom {
        display: block;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 15px;
    }

    .quiz-section .btn-custom:last-child {
        margin-bottom: 0;
    }

    .main-content {
        padding: 20px 15px;
    }
}