/* CSS Variables for Fruition Brand Colors */
:root {
    --fruition-green: #bff12b;
    --fruition-orange: #ff7a00;
    --fruition-dark: #1a1a1a;
    --fruition-gray: #2a2a2a;
    --fruition-light: #e6e6e6;
    --text-white: #ffffff;
    --text-gray: #cccccc;
    --background-dark: #0d0d0d;
    --border-color: #404040;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--fruition-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Page Navigation */

.page {
    display: none;
    min-height: 100vh;
    padding: 40px 0;
    position: relative; /* <-- ADD THIS LINE */
    z-index: 1;         /* <-- ADD THIS LINE */
}


.page.active {
    display: block;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 0;
}

.floating-element {
    position: absolute;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: float 6s ease-in-out infinite;
}

.floating-element-1 {
    top: 80px;
    right: 80px;
    width: 128px;
    height: 128px;
    background-color: var(--fruition-green);
    opacity: 0.1;
}

.floating-element-2 {
    bottom: 80px;
    left: 80px;
    width: 96px;
    height: 96px;
    background-color: var(--fruition-orange);
    opacity: 0.1;
    animation-delay: -2s;
}

.floating-element-3 {
    top: 50%;
    left: 25%;
    width: 64px;
    height: 64px;
    background-color: var(--fruition-green);
    opacity: 0.05;
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-header {
    margin-bottom: 40px;
}

.brand-tag {
    color: var(--fruition-green);
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.brand-line {
    width: 80px;
    height: 4px;
    background-color: var(--fruition-green);
    margin: 0 auto;
}

.hero-title {
    font-size: 4rem;
    font-weight: bold;
    line-height: 1.1;
    margin-bottom: 30px;
}

.text-green {
    color: var(--fruition-green);
}

.hero-subtitle {
    color: var(--fruition-green);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 30px;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--fruition-light);
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-sub-description {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 50px;
}

.cta-button {
    background-color: var(--fruition-green);
    color: var(--fruition-dark);
    font-size: 1.25rem;
    font-weight: bold;
    padding: 16px 48px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(191, 241, 43, 0.3);
}

.cta-button:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.cta-button.orange {
    background-color: var(--fruition-orange);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(255, 122, 0, 0.3);
}

/* Quiz Styles */
.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.progress-section {
    margin-bottom: 50px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.progress-header h2 {
    font-size: 2rem;
    font-weight: bold;
}

.question-counter {
    color: var(--fruition-green);
    font-weight: 600;
    font-size: 1.1rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #444;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--fruition-green) 0%, #a5d625 100%);
    transition: width 0.5s ease;
    border-radius: 4px;
}

.question-card {
    background-color: #5666a4;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
    transition: all 0.3s ease;
}

.question-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(191, 241, 43, 0.1);
}

.question-title {
    color: var(--fruition-green);
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 30px;
    line-height: 1.4;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.option-label {
    display: flex;
    align-items: center;
    padding: 16px;
    background-color: #FFFFFF6B;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.option-label:hover {
    background-color: rgba(191, 241, 43, 0.1);
}

.option-label.selected {
    background-color: rgba(191, 241, 43, 0.2);
    border-color: var(--fruition-green);
}

.option-label input[type="radio"] {
    margin-right: 16px;
    accent-color: var(--fruition-green);
}

.option-text {
    font-size: 1.1rem;
    flex: 1;
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
}

.nav-button {
    background-color: var(--fruition-green);
    color: var(--fruition-dark);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-button:hover {
    opacity: 0.9;
}

.nav-button:disabled {
    background-color: #666;
    color: #999;
    cursor: not-allowed;
}

.nav-button.prev-button {
    background-color: #666;
    color: var(--text-white);
}

.nav-button.invisible {
    visibility: hidden;
}

/* Lead Capture Styles */
.lead-capture-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 0;
}

.lead-capture-header {
    margin-bottom: 40px;
}

.icon-container {
    display: inline-block;
    padding: 24px;
    background-color: rgba(191, 241, 43, 0.1);
    border-radius: 50%;
    margin-bottom: 24px;
}

.chart-icon {
    width: 48px;
    height: 48px;
    color: var(--fruition-green);
}

.lead-capture-header h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 24px;
}

.lead-description {
    font-size: 1.25rem;
    color: var(--fruition-light);
    margin-bottom: 16px;
}

.lead-sub-description {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 40px;
}

.lead-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group input {
    width: 100%;
    padding: 16px;
    border: 2px solid #555;
    border-radius: 8px;
    font-size: 1.1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--fruition-green);
}

.form-group input::placeholder {
    color: #999;
}

.checkbox-group {
    display: flex;
    align-items: center;
    text-align: left;
    gap: 12px;
}

.checkbox-group input[type="checkbox"] {
    accent-color: var(--fruition-green);
    width: 20px;
    height: 20px;
}

.checkbox-group label {
    color: var(--text-gray);
    font-size: 0.95rem;
    cursor: pointer;
}

.submit-button {
    background-color: var(--fruition-green);
    color: var(--fruition-dark);
    font-size: 1.25rem;
    font-weight: bold;
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(191, 241, 43, 0.3);
}

.submit-button:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.submit-button:disabled {
    background-color: #666;
    color: #999;
    cursor: not-allowed;
    transform: none;
}

/* Results Styles */
.results-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 0;
}

.score-display {
    margin-bottom: 50px;
}

.score-icon {
    display: inline-block;
    padding: 32px;
    background-color: rgba(191, 241, 43, 0.1);
    border-radius: 50%;
    margin-bottom: 32px;
    font-size: 4rem;
}

.score-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 24px;
}

.score-grade {
    color: var(--fruition-green);
}

.score-description {
    font-size: 1.25rem;
    color: var(--fruition-light);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.next-steps {
    background-color: #2b4b5b;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
    text-align: left;
}

.next-steps h3 {
    color: var(--fruition-green);
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 24px;
    text-align: center;
}

.next-steps p {
    font-size: 1.1rem;
    color: var(--fruition-light);
    margin-bottom: 24px;
    line-height: 1.6;
}

.benefits-list {
    list-style: none;
    margin: 24px 0;
    padding: 0;
}

.benefits-list li {
    color: var(--fruition-light);
    font-size: 1.1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
}

.benefits-list li::before {
    content: "✓";
    color: var(--fruition-green);
    font-weight: bold;
    margin-right: 12px;
    margin-top: 2px;
}

.floor-plan-link {
    text-align: center;
    margin-top: 20px;
}

.floor-plan-link a {
    color: var(--fruition-green);
    text-decoration: none;
}

.floor-plan-link a:hover {
    text-decoration: underline;
}

.closing-message {
    font-size: 1.25rem;
    color: var(--fruition-light);
}

.closing-message .signature {
    color: var(--fruition-green);
    font-weight: 600;
    margin-top: 8px;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 1000;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    border: 4px solid #333;
    border-top: 4px solid var(--fruition-green);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Message */
.error-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--fruition-gray);
    color: var(--text-white);
    padding: 24px;
    border-radius: 8px;
    border: 2px solid #ff4444;
    display: none;
    z-index: 1001;
}

.error-message.active {
    display: block;
}

.error-message button {
    background-color: var(--fruition-green);
    color: var(--fruition-dark);
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 16px;
}

/* Voucher Code Styles */
.voucher-container {
    background-color: #5666a4;
    border: 2px dashed var(--fruition-green);
    border-radius: 8px;
    padding: 20px;
    margin: 30px auto;
    text-align: center;
}

.voucher-intro {
    color: var(--text-gray);
    font-size: 1rem;
    margin-bottom: 12px !important; /* Use !important to override other p margins if needed */
}

.voucher-code-display {
    color: var(--fruition-green);
    font-size: 1.75rem;
    font-weight: bold;
    letter-spacing: 2px;
    font-family: 'Courier New', Courier, monospace;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .floating-element-1,
    .floating-element-2,
    .floating-element-3 {
        display: none;
    }
    
    .progress-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .progress-header h2 {
        font-size: 1.5rem;
    }
    
    .question-card {
        padding: 24px;
    }
    
    .question-title {
        font-size: 1.25rem;
    }
    
    .container {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .cta-button {
        font-size: 1.1rem;
        padding: 14px 32px;
    }
    
    .quiz-navigation {
        flex-direction: column;
        gap: 16px;
    }
    
    .nav-button {
        width: 100%;
    }
}

/* =================================== */
/* ==      HEADER & NAVIGATION      == */
/* =================================== */

.site-header {
    background-color: #2B4B5B; /* Dark Teal from image */
    padding: 15px 0;
    border-bottom: 5px solid var(--fruition-green);
    position: sticky; /* Makes header stick to top on scroll */
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 50px; /* Adjust as needed */
    display: block;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.main-nav .nav-item a {
    font-family: 'Montserrat', sans-serif; /* ADD THIS */
    color: var(--text-white);
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: color 0.3s ease;
    padding: 5px 0;
}

.main-nav .nav-item a:hover {
    color: var(--fruition-green);
}

.main-nav .arrow-down {
    font-size: 0.7rem;
    display: inline-block;
    margin-left: 4px;
}

/* Contact Button */
.contact-btn {
    color: var(--fruition-orange);
    padding: 10px 25px;
    border-radius: 50px; /* Fully rounded corners */
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Montserrat', sans-serif; /* ADD THIS */
    background-color: white;
}

.contact-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* Services Dropdown */
.nav-item.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none; /* Hidden by default */
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #2B4B5B;
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--fruition-green);
    border-radius: 0 0 8px 8px;
    padding: 10px 0;
    min-width: 200px;
    z-index: 1001;
    flex-direction: column; /* Stack items vertically */
    gap: 0 !important;
}

.nav-item.dropdown:hover .dropdown-menu {
    display: flex; /* Show on hover */
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    width: 100%;
}

/* =================================== */
/* ==      NEW ADVANCED FOOTER      == */
/* =================================== */

.site-footer-v2 {
    background: #2B4B5B; /* Dark Blue/Teal from image */
    color: var(--text-white);
    padding: 60px 0 30px 0;
    font-size: 1rem;
}

.site-footer-v2 .container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Main content grid */
.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr; /* Adjust column ratios as needed */
    gap: 40px;
}

.footer-col h4 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col a {
    color: #E0E0E0; /* Lighter gray for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--fruition-green);
}

.footer-logo-img {
    max-width: 180px; /* Adjust size of logo in footer */
    height: auto;
}

/* Contact Info specific styles */
.contact-info a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: var(--fruition-green);
}

/* Bottom row: copyright and social */
.footer-bottom {
    border-top: 1px solid #4A6370; /* Slightly lighter border */
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 0.9rem;
    color: #B0C4DE; /* Light steel blue */
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: var(--fruition-orange);
    border-radius: 50%;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.social-link:hover {
    transform: scale(1.1) translateY(-2px);
    background-color: #ff912b; /* Lighter orange on hover */
}


/* =================================== */
/* ==   RESPONSIVE HEADER/NAV       == */
/* =================================== */

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    .main-nav {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    .main-nav ul {
        justify-content: center;
        width: 100%;
    }
}

/* =================================== */
/* ==   FOOTER RESPONSIVE STYLES    == */
/* =================================== */

@media (max-width: 992px) {
    .footer-main {
        grid-template-columns: 1fr 1fr; /* 2 columns for tablets */
    }
    .footer-col-logo {
        grid-column: 1 / -1; /* Make logo span full width */
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr; /* 1 column for mobile */
        text-align: center;
    }

    .footer-col-logo {
        margin: 0 auto 20px auto;
    }

    .contact-info a {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }
}

/* In styles.css (add to the very end) */

/* =================================== */
/* == HAMBURGER & RESPONSIVE NAV    == */
/* =================================== */

.nav-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1002; /* Above the nav menu */
}

.hamburger-bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-white);
    transition: all 0.3s ease-in-out;
}

/* Hamburger to "X" animation */
.nav-toggle.active .hamburger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.nav-toggle.active .hamburger-bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active .hamburger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Overriding previous responsive styles with the new hamburger menu */
@media (max-width: 992px) {
    .nav-toggle {
        display: block; /* Show hamburger on mobile/tablet */
    }

    /* Style the mobile navigation panel */
    .main-nav {
        position: absolute;
        top: 100%; /* Position it right below the header */
        left: 0;
        right: 0;
        background-color: #2B4B5B;
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        gap: 25px;
        
        /* Smooth slide-down effect */
        transform: translateY(-110%);
        transition: transform 0.4s ease-in-out;
        opacity: 0;
        visibility: hidden;
    }

    /* The "open" state for the mobile nav */
    body.nav-open .main-nav {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    /* Mobile navigation links */
    .main-nav ul {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .main-nav .nav-item a {
        font-size: 1.2rem;
    }
    
    /* Mobile dropdown behavior */
    .nav-item.dropdown:hover .dropdown-menu {
        display: none; /* Disable hover on mobile */
    }
    .nav-item.dropdown .dropdown-menu {
        position: static;
        display: none; /* Hide by default */
        background: none;
        border: none;
        min-width: unset;
        padding: 15px 0 0 0;
        text-align: center;
        flex-direction: column;
        gap: 15px !important;
    }
    .nav-item.dropdown.open .dropdown-menu {
        display: flex; /* Show when parent has .open class */
    }
    .dropdown-menu a {
        font-size: 1rem !important;
        color: var(--text-gray);
    }
}

/* Cleanup old responsive styles to avoid conflicts */
@media (max-width: 768px) {
    .header-container {
        flex-direction: row; /* Revert back to row for hamburger alignment */
    }
    .main-nav, .main-nav ul {
        flex-direction: column; /* Keep column for the panel content */
    }
}

.results-page-color{
    background: linear-gradient(180deg, #5666A4 0%, #5666A4 100%) !important;
}