/* ==========================================================================
   Base Variables & Styles
   ========================================================================== */
:root {
    --imperial-purple: #4B0082; /* Deep purple */
    --onyx-black: #0D0D0D;      /* Very dark grey/black */
    --platinum-white: #E5E5E5; /* Light grey/off-white */

    --primary-color: var(--imperial-purple);
    --background-color: var(--platinum-white);
    --text-color: var(--onyx-black);
    --secondary-background: #f5f5f5;
    --card-background: #ffffff;
    --border-color: #dddddd;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --link-color: #6c0eb9;
    --link-hover-color: #8a2be2; /* Lighter purple */
    --button-text-color: #ffffff;

    --form-background: #ffffff;
    --form-border: #dddddd;
    --input-background: #ffffff;
    --input-text: var(--onyx-black);
    --input-border: #cccccc;
    --input-focus-border: var(--imperial-purple);

    --focus-outline: 3px solid var(--imperial-purple);
}

body.dark-mode {
    --primary-color: var(--imperial-purple);
    --background-color: var(--onyx-black);
    --text-color: var(--platinum-white);
    --secondary-background: #1a1a1a;
    --card-background: #1e1e1e;
    --border-color: #333333;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --link-color: #b388ff;       /* Lighter purple for dark mode */
    --link-hover-color: #d1b3ff;   /* Even lighter purple */
    --button-text-color: #ffffff;

    --form-background: #1e1e1e;
    --form-border: #333333;
    --input-background: #2d2d2d;
    --input-text: var(--platinum-white);
    --input-border: #444444;
    --input-focus-border: #b388ff;

    --focus-outline: 3px solid #b388ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    padding-top: 70px; /* Match navbar height */
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden; /* Prevent horizontal scroll */
    /* Base text align is left, use .text-center where needed */
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color); /* Headings use primary color */
    line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-top: 2rem; }
h3 { font-size: 1.5rem; margin-top: 1.5rem; }
h4 { font-size: 1.25rem; margin-top: 1rem; }

p {
    margin-bottom: 1.5rem;
    max-width: 70ch; /* Improve readability */
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--link-hover-color);
}

img, video { /* Apply to both image and video */
    max-width: 100%;
    height: auto;
    display: block; /* Prevent bottom space */
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;  /* Center the container */
    margin-right: auto; /* Center the container */
    padding-left: 20px;  /* Space on sides */
    padding-right: 20px; /* Space on sides */
}

section {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}
/* Ensure paragraphs within text-center containers are also centered */
.text-center p {
    margin-left: auto;
    margin-right: auto;
}


/* Focus outline for accessibility */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: var(--focus-outline);
    outline-offset: 2px;
}

/* Basic Margins */
.mt-30 { margin-top: 30px; }
.mt-50 { margin-top: 50px; }

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: var(--onyx-black);
    z-index: 999;
    padding: 0 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: none;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.navbar-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.navbar-logo a {
    display: inline-block;
    text-decoration: none;
    color: inherit;
    line-height: 1;
    flex-shrink: 0;
}

.navbar-logo img {
    height: 40px;
    width: auto;
    flex-shrink: 0;
    display: block;
}

.navbar-logo h1.navbar-site-title {
    margin: 0;
    padding: 0;
    border: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--platinum-white);
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
}

.navbar-site-title a {
    text-decoration: none;
    color: inherit;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.navbar-menu li {
    position: relative;
}

.navbar-menu a {
    color: var(--platinum-white);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    display: block;
}

.navbar-menu a:hover {
    color: var(--platinum-white);
}

.navbar-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0px;
    left: 0;
    background-color: var(--imperial-purple);
    transition: width 0.3s ease;
}

.navbar-menu a:hover::after {
    width: 100%;
}

/* Dropdown Menu */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--onyx-black);
    min-width: 250px;
    border-radius: 4px;
    padding: 10px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

.navbar-menu li:hover > .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-weight: 400;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background-color: rgba(75, 0, 130, 0.3);
}

.dropdown-menu a::after {
    display: none;
}

/* Mobile Controls */
.navbar-mobile-controls {
    display: none; /* Hidden by default, shown in media query */
    align-items: center;
    gap: 1rem;
}

.navbar-toggle,
.theme-toggle-mobile {
    background: transparent;
    border: none;
    color: var(--platinum-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

/* Mobile Submenu Toggle Icon */
.mobile-submenu-toggle {
    display: none; /* Hidden by default, shown in media query */
    padding: 10px;
    cursor: pointer;
    color: var(--platinum-white);
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    z-index: 2;
    background: transparent;
    border: none;
    font-size: 0.9rem;
    line-height: 1;
}
.mobile-submenu-toggle i { transition: transform 0.3s ease; }
.mobile-submenu-toggle.open i { transform: rotate(180deg); }


/* Desktop Theme Toggle */
.theme-toggle {
    background: transparent;
    border: none;
    color: var(--platinum-white);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex; /* Shown by default, hidden in media query */
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.theme-toggle:hover {
     background-color: rgba(255, 255, 255, 0.1);
}

/* Icon visibility handled by JS */
.theme-toggle .fa-sun,
.theme-toggle-mobile .fa-sun { display: none; }
.theme-toggle .fa-moon,
.theme-toggle-mobile .fa-moon { display: inline-block; } /* JS might override */

body.dark-mode .theme-toggle .fa-sun,
body.dark-mode .theme-toggle-mobile .fa-sun { display: inline-block; } /* JS might override */
body.dark-mode .theme-toggle .fa-moon,
body.dark-mode .theme-toggle-mobile .fa-moon { display: none; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: var(--button-text-color);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    min-height: 44px;
    min-width: 44px;
    line-height: normal;
}

.btn:hover {
    background-color: #5c0e9e;
    transform: translateY(-2px);
    color: var(--button-text-color);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--button-text-color);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 22px;
}
.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--button-text-color);
    transform: translateY(-2px);
}

.feature-hero .btn-outline {
    border-color: var(--platinum-white);
    color: var(--platinum-white);
}
.feature-hero .btn-outline:hover {
    background-color: var(--platinum-white);
    color: var(--primary-color);
}

/* ==========================================================================
   Hero Section (Standard & Feature/Page Hero)
   ========================================================================== */
.hero,
.feature-hero {
    background: linear-gradient(135deg, var(--onyx-black) 0%, #2a0845 100%);
    color: var(--platinum-white);
    padding: 100px 0 80px;
    text-align: center;
    margin-top: 0 !important;
    padding-top: 80px !important;
}

.hero h1,
.feature-hero h1 {
    margin-bottom: 1.5rem;
    color: var(--platinum-white);
}
.hero h1 { font-size: 3rem; }
.feature-hero h1 { font-size: 2.5rem; }

.hero p,
.feature-hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* ==========================================================================
   Core Capabilities & Shared Features Sections
   ========================================================================== */
/* Shared background colors */
.core-capabilities,
.features,
.key-benefits,
.infographic-section,
.faq-section,
.form-section,
.alt-bg,
.investment-overview, /* Adding specific sections */
.competitive-advantage,
.testimonials {
   background-color: var(--secondary-background);
}
.stats,
.how-it-works,
.feature-overview,
.pricing-section,
.market-opportunity, /* Adding specific sections */
.financial-projections,
.cta-section {
     background-color: var(--background-color);
}

/* Shared heading/paragraph styles for sections */
.core-capabilities h2,
.features h2,
.key-benefits h2,
.infographic-section h2,
.stats h2,
.how-it-works h2,
.feature-overview h2,
.pricing-section h2,
.faq-section h2,
.form-section h2,
.cta-section h2,
.investment-overview h2, /* Adding specific sections */
.market-opportunity h2,
.competitive-advantage h2,
.financial-projections h2,
.testimonials h2 {
    margin-bottom: 1rem;
}

/* Shared centered paragraph styles below headings */
.core-capabilities p.text-center,
.features p.text-center,
.key-benefits p.text-center,
.infographic-section p.text-center,
.stats p.text-center,
.how-it-works p.text-center,
.feature-overview > .container > p.text-center,
.pricing-section p.pricing-subheading,
.faq-section p.text-center,
.form-section p.text-center,
.cta-section > .container > p,
.investment-overview p.text-center, /* Adding specific sections */
.market-opportunity p.text-center,
.competitive-advantage p.text-center,
.financial-projections p.text-center,
.testimonials p.text-center {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
    color: var(--text-color);
    opacity: 0.9;
}
/* Adjustments for specific sections */
.pricing-section h2 { margin-bottom: 15px; }
.pricing-subheading { margin-bottom: 50px; }
.faq-section h2 { margin-bottom: 40px; }
.cta-section h2 { margin-bottom: 15px; }
.cta-section > .container > p { margin-bottom: 40px; }


/* Feature Grid (used on index and potentially market opportunity) */
.features-grid,
.section-grid { /* Added .section-grid from investor page */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    align-items: center; /* Vertically align items */
}
.section-grid {
     grid-template-columns: 1fr 1fr; /* Force 2 columns for market opportunity layout */
     gap: 50px;
}
.section-content { /* For two-column text/image layouts */
    /* Default styles */
}
.section-image img {
    border-radius: 8px;
    box-shadow: 0 8px 20px var(--shadow-color);
}


/* Feature Card / Advantage Card / Highlight Card (using similar base) */
.feature-card,
.advantage-card,
.highlight-card {
    background-color: var(--card-background);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: center; /* Center card content */
}
.feature-card:hover,
.advantage-card:hover,
.highlight-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow-color);
}
.feature-icon,
.advantage-icon,
.highlight-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin: 0 auto 20px auto; /* Center icon horizontally */
    width: 60px; /* Slightly larger */
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(75, 0, 130, 0.1); /* Icon background */
    border-radius: 50%;
}
.feature-card h3,
.advantage-card h3,
.highlight-card h3 { font-size: 1.3rem; margin-bottom: 10px; margin-top: 0; }
.feature-card p,
.advantage-card p,
.highlight-card p { margin-bottom: 0; flex-grow: 1; font-size: 0.95rem; opacity: 0.9; }
.feature-card .btn { margin-top: auto; align-self: center; } /* Center button */


/* Benefit Card (used on AFFF page) */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.two-column-grid { /* For specific 2x2 layout */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}
.benefit-card {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 12px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow-color);
}
.benefit-card .benefit-icon {
    height: 50px; width: 50px; margin-bottom: 20px;
    background-color: rgba(75, 0, 130, 0.1); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: var(--primary-color);
}
.benefit-card h3 { font-size: 1.2rem; margin-bottom: 10px; margin-top: 0; }
.benefit-card p { margin-bottom: 0; font-size: 0.95rem; opacity: 0.9; }

/* ==========================================================================
   Stats Section
   ========================================================================== */
.stats { text-align: center; }
.stats h2 { margin-bottom: 1rem; }
.stats p.text-center { max-width: 700px; margin: 0 auto 50px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; margin-top: 50px; }
.stat-item { padding: 20px; }
.stat-number { font-size: 2.5rem; font-weight: 700; color: var(--primary-color); margin-bottom: 10px; min-height: 1.2em; display: flex; align-items: center; justify-content: center; }
.stats .stat-item h3 { font-size: 1.2rem; color: var(--primary-color); margin-bottom: 10px; margin-top: 0; }
.stats .stat-item p { margin-bottom: 0; font-size: 1rem; opacity: 0.8; }

/* ==========================================================================
   How it Works / Steps Section
   ========================================================================== */
.how-it-works h2 { margin-bottom: 1rem; }
.how-it-works p.text-center { max-width: 700px; margin: 0 auto 50px; }
.steps-container { display: flex; flex-direction: column; gap: 30px; max-width: 800px; margin: 50px auto 0; position: relative; }
.step { display: flex; align-items: flex-start; gap: 20px; position: relative; z-index: 1; }
.step-number { flex-shrink: 0; width: 70px; height: 70px; border-radius: 50%; background-color: var(--primary-color); color: var(--button-text-color); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; font-weight: 600; box-shadow: 0 3px 10px rgba(75, 0, 130, 0.3); }
.step-content { padding-top: 10px; }
.step-content h3 { margin-top: 0; font-size: 1.5rem; margin-bottom: 0.5rem; }
.step-content p { margin-bottom: 0; }

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta, .cta-section { /* Combine general CTA and specific CTA section */
    background-color: var(--imperial-purple);
    color: var(--platinum-white);
    text-align: center;
}
.cta h2, .cta-section h2 { color: var(--platinum-white); margin-bottom: 1rem; }
.cta p, .cta-section > .container > p { /* Target paragraphs correctly */
    max-width: 700px; margin: 0 auto 30px; color: rgba(255, 255, 255, 0.9);
}
.cta-buttons { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
/* CTA Button Styles (Swapped appearances) */
.cta .btn, .cta-section .btn { background-color: transparent; color: var(--platinum-white); border: 2px solid var(--platinum-white); }
.cta .btn:hover, .cta-section .btn:hover { background-color: var(--platinum-white); color: var(--imperial-purple); border-color: var(--platinum-white); }
.cta .btn-secondary, .cta-section .btn-secondary { background-color: var(--platinum-white); border-color: var(--platinum-white); color: var(--imperial-purple); }
.cta .btn-secondary:hover, .cta-section .btn-secondary:hover { background-color: rgba(229, 229, 229, 0.9); border-color: rgba(229, 229, 229, 0.9); color: var(--imperial-purple); transform: translateY(-2px); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--onyx-black);
    color: rgba(255, 255, 255, 0.9);
    padding: 60px 0 30px;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-logo { display: flex; flex-direction: column; align-items: flex-start; }
.footer-logo img { height: 70px; width: auto; margin-bottom: 15px; }
.footer-logo p { margin-bottom: 20px; max-width: none; opacity: 0.8; text-align: left; }
.social-links { display: flex; gap: 15px; margin-top: 20px; align-self: flex-start; }
.social-links a { color: var(--platinum-white); font-size: 1.2rem; opacity: 0.8; transition: opacity 0.3s ease, transform 0.2s ease; }
.social-links a:hover { opacity: 1; transform: scale(1.1); }
.footer-links h4 { color: var(--platinum-white); margin-bottom: 20px; font-size: 1.2rem; }
.footer-links ul { padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--platinum-white); opacity: 0.8; transition: opacity 0.3s ease; }
.footer-links a:hover { opacity: 1; text-decoration: underline; }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.9rem; opacity: 0.7; }

/* ==========================================================================
   Animations
   ========================================================================== */
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Form Styles (Shared)
   ========================================================================== */
.form-section { background-color: var(--secondary-background); padding-top: 60px; padding-bottom: 60px; }
.form-container { background-color: var(--card-background); border-radius: 12px; padding: 40px 50px 50px 50px; box-shadow: 0 8px 25px var(--shadow-color), 0 1px 3px rgba(0,0,0,0.08); border: 1px solid var(--border-color); max-width: 780px; margin: 0 auto; }
.form-header { text-align: center; margin-bottom: 40px; }
.form-header-image { max-width: 120px; height: auto; margin: 0 auto 25px auto; display: block; opacity: 0.9; }
body.dark-mode .form-header-image { filter: invert(1) brightness(1.5) contrast(0.9); }
.form-header h2 { font-size: 1.9rem; margin-bottom: 15px; }
.form-header p { font-size: 1rem; margin-bottom: 0; max-width: 600px; margin-left: auto; margin-right: auto; opacity: 0.8; }
.form-subheading { margin-top: 30px; margin-bottom: 20px; font-size: 1.3rem; color: var(--primary-color); border-bottom: 1px solid var(--border-color); padding-bottom: 10px; }
.form-divider { border: none; height: 1px; background-color: var(--border-color); margin: 40px 0; }
#pre-registration-form h3:first-of-type, /* Assuming specific form IDs if needed */
#afff-inquiry-form h3:first-of-type,
#covid-injury-lead-form h3:first-of-type,
#contact-form h3:first-of-type { margin-top: 0; } /* Apply to contact form too */
label:not(:has(span.required)) { opacity: 0.85; }
.form-row { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 20px; }
.form-row .form-group { flex: 1; min-width: calc(50% - 10px); margin-bottom: 0; }
.form-group { margin-bottom: 20px; }
.form-label, label { display: block; margin-bottom: 8px; font-weight: 500; color: var(--text-color); }
.required { color: #d32f2f; margin-left: 4px; font-weight: bold; }
.form-input, input[type="text"], input[type="email"], input[type="tel"], select, textarea, .form-textarea { /* Added .form-textarea */
    width: 100%; padding: 12px 15px; border: 1px solid var(--input-border); border-radius: 4px; background-color: var(--input-background); color: var(--input-text); font-family: inherit; font-size: 1rem; transition: border-color 0.3s ease, box-shadow 0.3s ease; min-height: 48px;
}
.form-input:focus, input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus, select:focus, textarea:focus, .form-textarea:focus { outline: 0; border-color: var(--input-focus-border); box-shadow: 0 0 0 3px rgba(75, 0, 130, 0.15); }
body.dark-mode .form-input:focus, body.dark-mode input[type="text"]:focus, body.dark-mode input[type="email"]:focus, body.dark-mode input[type="tel"]:focus, body.dark-mode select:focus, body.dark-mode textarea:focus, body.dark-mode .form-textarea:focus { box-shadow: 0 0 0 3px rgba(179, 136, 255, 0.2); }
textarea, .form-textarea { min-height: 100px; resize: vertical; }
select { appearance: none; -webkit-appearance: none; -moz-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor' width='18px' height='18px'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 40px; color: var(--input-text); }
body.dark-mode select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23E5E5E5' width='18px' height='18px'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); }
select option[disabled] { color: #999; }
body.dark-mode select option[disabled] { color: #777; }
select option { background-color: var(--input-background); color: var(--input-text); }
.checkbox-group { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.checkbox-group input[type="checkbox"] { width: auto; flex-shrink: 0; accent-color: var(--primary-color); height: 18px; width: 18px; margin-top: 2px; }
.checkbox-group label { margin-bottom: 0; font-weight: 400; line-height: 1.4; cursor: pointer; flex-grow: 1; }
.checkbox-group label a { text-decoration: underline; }
.checkbox-group label a:hover { color: var(--primary-color); }
.form-container .btn[type="submit"] { width: 100%; margin-top: 10px; font-size: 1.1rem; padding: 14px 20px; }
::placeholder { color: var(--text-color); opacity: 0.6; }
:-ms-input-placeholder { color: var(--text-color); opacity: 0.6; }
::-ms-input-placeholder { color: var(--text-color); opacity: 0.6; }
body.dark-mode ::placeholder { color: var(--text-color); opacity: 0.5; }
body.dark-mode :-ms-input-placeholder { color: var(--text-color); opacity: 0.5; }
body.dark-mode ::-ms-input-placeholder { color: var(--text-color); opacity: 0.5; }

/* Infographic Section */
.infographic-section h2 { margin-bottom: 50px; }
.infographic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; align-items: start; }
.infographic-item { text-align: center; padding: 20px; }
.infographic-icon { font-size: 3rem; color: var(--primary-color); margin-bottom: 25px; display: inline-block; transition: transform 0.3s ease; }
.infographic-item:hover .infographic-icon { transform: scale(1.1) rotate(-5deg); }
.infographic-icon i { display: inline-block; }
.infographic-content h3 { font-size: 1.3rem; margin-bottom: 10px; }
.infographic-content p { font-size: 0.95rem; opacity: 0.9; margin-bottom: 0; max-width: none; }

/* Pricing Section */
.pricing-section h2 { margin-bottom: 15px; }
.pricing-subheading { max-width: 600px; margin: 0 auto 50px auto; opacity: 0.8; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; align-items: stretch; }
.pricing-tier { background-color: var(--card-background); border: 1px solid var(--border-color); border-radius: 8px; padding: 30px; box-shadow: 0 5px 15px var(--shadow-color); display: flex; flex-direction: column; transition: transform 0.3s ease, box-shadow 0.3s ease; position: relative; overflow: hidden; }
.pricing-tier:hover { transform: translateY(-10px); box-shadow: 0 15px 30px var(--shadow-color); }
.pricing-tier.featured { border-color: var(--primary-color); border-width: 2px; padding: 29px; box-shadow: 0 8px 25px rgba(75, 0, 130, 0.2); }
body.dark-mode .pricing-tier.featured { box-shadow: 0 8px 25px rgba(179, 136, 255, 0.2); }
.tier-badge { position: absolute; top: 15px; right: -40px; background-color: var(--primary-color); color: var(--button-text-color); padding: 5px 40px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; transform: rotate(45deg); transform-origin: center; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.tier-header { text-align: center; margin-bottom: 25px; border-bottom: 1px solid var(--border-color); padding-bottom: 20px; }
.tier-header h3 { margin-bottom: 5px; font-size: 1.6rem; }
.tier-header .tier-audience { font-size: 0.9rem; opacity: 0.7; margin-bottom: 0; max-width: none; }
.tier-price { text-align: center; margin-bottom: 30px; }
.tier-price .price-value { display: block; font-size: 1.8rem; font-weight: 700; color: var(--primary-color); margin-bottom: 5px; }
.tier-price .price-note { font-size: 0.9rem; opacity: 0.7; }
.tier-features { list-style: none; padding: 0; margin-bottom: 30px; flex-grow: 1; }
.tier-features li { margin-bottom: 12px; display: flex; align-items: center; gap: 10px; font-size: 0.95rem; }
.tier-features li i { flex-shrink: 0; width: 18px; text-align: center; display: inline-block; }
.tier-features li .fa-check { color: #4CAF50; }
.tier-features li .fa-times { color: #F44336; opacity: 0.7; }
.tier-cta { margin-top: auto; text-align: center; }
.tier-cta p { font-size: 0.9rem; opacity: 0.8; margin-bottom: 0; }
.pricing-section + .footer, .form-section + .footer { margin-top: 0; }


/* ==========================================================================
   AFFF / COVID / Investor Page Specific Styles
   ========================================================================== */
/* Feature Overview Section (AFFF page variant) */
.feature-overview > .container > h2.text-center { margin-bottom: 40px; }
.feature-overview > .container > p.text-center { max-width: 800px; margin-bottom: 50px; }
.feature-overview .feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.feature-overview .feature-image { width: 100%; margin: 0; }
.feature-overview .feature-image img,
.feature-overview .feature-image video { display: block; width: 100%; height: auto; max-width: 100%; object-fit: cover; border-radius: 10px; box-shadow: 0 10px 30px var(--shadow-color); }
.feature-overview .feature-image video { background-color: #000; }
.feature-overview .feature-highlights { margin-top: 30px; display: flex; flex-direction: column; gap: 25px; }
.feature-overview .highlight-item { padding-left: 25px; position: relative; border-left: 3px solid var(--primary-color); }
.feature-overview .highlight-item h3 { font-size: 1.1rem; margin-bottom: 5px; margin-top: 0; }
.feature-overview .highlight-item p { margin-bottom: 0; font-size: 0.95rem; opacity: 0.9; }
.feature-overview.alt-bg { background-color: var(--secondary-background); }

/* FAQ Section Styling */
.faq-section h2 { margin-bottom: 40px; }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { background-color: var(--card-background); border: 1px solid var(--border-color); border-radius: 8px; margin-bottom: 15px; overflow: hidden; }
.faq-question { padding: 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; transition: background-color 0.2s ease; }
.faq-question:hover { background-color: rgba(75, 0, 130, 0.05); }
body.dark-mode .faq-question:hover { background-color: rgba(179, 136, 255, 0.08); }
.faq-question h3 { margin: 0; font-size: 1.1rem; color: var(--text-color); }
.faq-toggle { color: var(--primary-color); transition: transform 0.3s ease; }
.faq-toggle i { display: inline-block; }
.faq-item.active .faq-toggle { transform: rotate(180deg); }
.faq-answer { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out, padding 0.4s ease-out; }
.faq-item.active .faq-answer { padding: 5px 20px 20px 20px; max-height: 500px; border-top: 1px solid var(--border-color); }
.faq-answer p { margin-bottom: 1rem; }
.faq-answer p:last-child { margin-bottom: 0; }

/* Contact Form Section on AFFF/COVID Pages (Adjustments) */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; margin-top: 40px; }
.contact-grid .form-container { padding: 0; box-shadow: none; border: none; max-width: none; background-color: transparent; }
/* Style specific form wrappers */
.contact-grid #afff-inquiry-form,
.contact-grid #covid-injury-lead-form,
.contact-grid #contact-form { /* Added contact page form */
    background-color: var(--card-background); padding: 40px; border-radius: 8px; box-shadow: 0 5px 15px var(--shadow-color); border: 1px solid var(--border-color);
}
.contact-grid .contact-info { display: flex; flex-direction: column; gap: 30px; padding-top: 10px; }
.contact-method h3 { font-size: 1.3rem; margin-bottom: 8px; margin-top: 0; }
.contact-method p { margin-bottom: 5px; font-size: 1rem; opacity: 0.9; }
.contact-method p:last-child { margin-bottom: 0; }
.contact-method .btn, .contact-method .btn-secondary, .contact-method .btn-outline { margin-top: 15px; }

/* Investor Page Specific Styles */
.investment-highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; margin-top: 50px; }
.advantage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 50px; }
.projections-table-container { overflow-x: auto; margin: 40px 0; } /* Allow horizontal scroll */
.projections-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Prevent excessive shrinking */
    background-color: var(--card-background);
    box-shadow: 0 4px 12px var(--shadow-color);
    border-radius: 8px;
    overflow: hidden; /* Clip corners */
}
.projections-table th,
.projections-table td {
    padding: 12px 15px;
    text-align: right;
    border: 1px solid var(--border-color);
}
.projections-table th:first-child,
.projections-table td:first-child {
    text-align: left;
    font-weight: 500;
}
.projections-table thead th {
    background-color: var(--primary-color);
    color: var(--button-text-color);
    font-weight: 600;
    border-color: var(--primary-color);
}
.projections-table tbody tr:nth-child(even) {
    background-color: var(--secondary-background);
}
body.dark-mode .projections-table tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.05); /* Slight contrast in dark mode */
}
.testimonials { background-color: var(--background-color); } /* Ensure correct bg */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 50px; }
.testimonial-card { text-align: left; } /* Override card center align */
.testimonial-content { margin-bottom: 20px; font-style: italic; opacity: 0.9; }
.testimonial-author { display: flex; align-items: center; gap: 15px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--border-color); }
.testimonial-author img.company-logo { height: 40px; width: 40px; border-radius: 50%; object-fit: contain; background-color: #fff; padding: 2px; }
.testimonial-author h4 { font-size: 1rem; margin-bottom: 2px; color: var(--text-color); }
.testimonial-author p { font-size: 0.9rem; opacity: 0.7; margin-bottom: 0; }


/* ==========================================================================
   Responsiveness (Consolidated)
   ========================================================================== */
@media (max-width: 992px) {
    .stats-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
    .step-number { width: 60px; height: 60px; font-size: 1.5rem; }
    .step-content h3 { font-size: 1.3rem; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 500px; margin-left: auto; margin-right: auto; }
    .contact-grid { grid-template-columns: 1fr; gap: 50px; }
    .contact-grid .contact-info { order: -1; text-align: center; align-items: center; }
    .two-column-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
    .section-grid { grid-template-columns: 1fr; } /* Stack 2-col text/image */
    .section-image { margin-top: 30px; order: 1; } /* Image below text */
    .section-content { order: 2; }
}

@media (max-width: 768px) {
    body { padding-top: 60px; }
    .navbar { height: 60px; padding: 0 15px; }

    .navbar-logo { flex-wrap: nowrap; }

    .navbar-menu {
        display: none; position: fixed; top: 60px; left: 0; width: 100%; height: calc(100vh - 60px);
        background-color: var(--onyx-black); flex-direction: column; align-items: stretch;
        padding: 0; overflow-y: auto; gap: 0; transform: translateY(-100%); opacity: 0; visibility: hidden;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease; z-index: 999;
    }
    .navbar-menu.active { display: flex; transform: translateY(0); opacity: 1; visibility: visible; }
    .navbar-menu li { margin: 0; width: 100%; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, 0.1); position: relative; }
    .navbar-menu li:last-child { border-bottom: none; }
    .navbar-menu a { padding: 15px 20px; width: 100%; display: block; padding-right: 50px; }
    .navbar-menu a::after { display: none; }

    .navbar-menu li:hover > .dropdown-menu { display: none; opacity: 0; visibility: hidden; }
    .dropdown-menu {
        position: static; background-color: rgba(0,0,0,0.2); min-width: auto; box-shadow: none;
        opacity: 1; visibility: visible; transform: none; display: none; width: 100%; padding: 0;
        border-top: 1px solid rgba(75, 0, 130, 0.3); margin-top: 0;
    }
    .dropdown-menu a { font-size: 0.95rem; color: rgba(255, 255, 255, 0.8); padding: 12px 20px 12px 40px; width: 100%; }
    .dropdown-menu a:hover { background-color: rgba(75, 0, 130, 0.2); color: var(--platinum-white); }
    .navbar-menu li.submenu-open > .dropdown-menu { display: block; }

    .mobile-submenu-toggle { display: flex; align-items: center; justify-content: center; height: 100%; }
    .navbar-mobile-controls { display: flex; }
    .theme-toggle { display: none; }

    section { padding: 60px 0; }
    .hero, .feature-hero { padding: 80px 0 60px; }
    .hero h1, .feature-hero h1 { font-size: 2.2rem; }
    .hero p, .feature-hero p { font-size: 1.1rem; }
    h1 { font-size: 2rem; } h2 { font-size: 1.75rem; } h3 { font-size: 1.4rem; }
    /* Stack all grids */
    .features-grid, .benefits-grid, .two-column-grid, .investment-highlights, .advantage-grid, .testimonial-grid {
        gap: 20px; grid-template-columns: 1fr;
    }
    .feature-card, .benefit-card, .advantage-card, .highlight-card, .testimonial-card { padding: 25px; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .stat-number { font-size: 2rem; }
    .steps-container { gap: 20px; }
    .step { gap: 15px; }
    .step-number { width: 50px; height: 50px; font-size: 1.4rem; }
    .step-content h3 { font-size: 1.2rem; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .footer-logo { align-items: center; }
    .footer-logo p { text-align: center; }
    .social-links { justify-content: center; align-self: center; }
    .footer-links ul { padding: 0; }
    .infographic-grid { grid-template-columns: 1fr 1fr; }
    .infographic-item { padding: 15px; }
    .infographic-icon { font-size: 2.5rem; margin-bottom: 15px; }
    .infographic-content h3 { font-size: 1.1rem; }
    .infographic-content p { font-size: 0.9rem; }
    .pricing-grid { max-width: none; gap: 20px; }
    .pricing-tier { padding: 25px; }
    .feature-overview .feature-grid { grid-template-columns: 1fr; }
    .feature-overview .feature-content { order: 1; }
    .feature-overview .feature-image { order: 2; margin-top: 30px; max-width: 100%; }

}

@media (max-width: 576px) {
    .hero-buttons { flex-direction: column; gap: 15px; align-items: center; }
    .hero-buttons .btn { width: 80%; max-width: 300px; }
    .stats-grid { grid-template-columns: 1fr; }
    .step { flex-direction: column; align-items: center; text-align: center;}
    .step-number { margin-bottom: 10px; }
    .step-content { padding-top: 0; }
    .form-row { gap: 0; }
    .form-row .form-group { min-width: 100%; margin-bottom: 20px; }
    .form-container { padding: 30px 20px; }
    .infographic-grid { grid-template-columns: 1fr; }
    /* Ensure 2-column grid also stacks */
    .two-column-grid { grid-template-columns: 1fr; }
    .projections-table th, .projections-table td { padding: 8px 10px; font-size: 0.9rem; } /* Smaller padding/font on mobile */
}

/* Ensure there is a final closing brace if any was missing */