/* ==========================================================================
   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);

    /* Updated Toggle Switch Colors */
    --toggle-bg-off: #ccc; /* Light grey for OFF state (Light Mode) */
    --toggle-bg-on: var(--primary-color); /* OmniConflux Purple for ON state (Light Mode) */
    --toggle-knob-color: #fff; /* White knob */
    --toggle-label-color: var(--platinum-white); /* Label text color in header */
}

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;

    /* Updated Toggle Switch Colors in Dark Mode */
    --toggle-bg-off: #555; /* Darker grey for OFF state (Dark Mode) */
    --toggle-bg-on: var(--primary-color); /* OmniConflux Purple for ON state (Dark Mode) */
    --toggle-knob-color: #fff; /* White knob */
    --toggle-label-color: var(--platinum-white);
}

* {
    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 */
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--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;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: var(--link-hover-color);
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

ul { list-style: none; }
.container { width: 100%; max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }
section { padding: 80px 0; }
.text-center { text-align: center; }
.text-center p { margin-left: auto; margin-right: auto; }
a:focus, button:focus, input:focus, select:focus, textarea:focus { outline: var(--focus-outline); outline-offset: 2px; }
.mt-30 { margin-top: 30px; }
.mt-50 { margin-top: 50px; }
.hidden { display: none !important; }

/* ==========================================================================
   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 { 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; }
@media (min-width: 769px) { .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; }
.navbar-mobile-controls { display: none; 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; line-height: 1; }
.mobile-submenu-toggle { display: none; }
.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; align-items: center; justify-content: center; transition: background-color 0.3s ease; line-height: 1; }
.theme-toggle:hover { background-color: rgba(255, 255, 255, 0.1); }
.theme-toggle .fa-sun, .theme-toggle-mobile .fa-sun { display: none; }
.theme-toggle .fa-moon, .theme-toggle-mobile .fa-moon { display: inline-block; }
.fas, .fab, .far, .fa-solid, .fa-brands, .fa-regular { font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", sans-serif !important; font-weight: 900; font-style: normal; font-variant: normal; text-rendering: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.fab, .fa-brands { font-weight: 400 !important; }
.far, .fa-regular { font-weight: 400 !important; }

/* ==========================================================================
   Buttons, Hero, Content, Features, Stats, How it Works, CTA, Footer (Existing styles)
   ========================================================================== */
.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, .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; }
.content-with-image { display: flex; flex-direction: row; gap: 40px; align-items: center; margin: 40px 0; }
.content-text { flex: 1; } .content-image { flex: 1; display: flex; justify-content: center; align-items: center; }
.content-image img.responsive-img { max-width: 100%; height: auto; border-radius: 8px; box-shadow: 0 5px 15px var(--shadow-color); }
.core-capabilities, .features, .key-benefits, .infographic-section, .faq-section, .form-section, .alt-bg, .investment-overview, .competitive-advantage, .testimonials { background-color: var(--secondary-background); }
.stats, .how-it-works, .feature-overview, .pricing-section, .market-opportunity, .financial-projections, .cta-section { background-color: var(--background-color); }
.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, .market-opportunity h2, .competitive-advantage h2, .financial-projections h2, .testimonials h2 { margin-bottom: 1rem; }
.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, .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; }
.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; }
.features-grid, .section-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 50px; align-items: stretch; }
.section-grid { grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.section-image img { border-radius: 8px; box-shadow: 0 8px 20px var(--shadow-color); }
.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; height: 100%; }
.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; width: 60px; height: 60px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background-color: rgba(75, 0, 130, 0.1); 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: 20px; font-size: 0.95rem; opacity: 0.9; flex-grow: 1; }
.feature-card .btn, .advantage-card .btn, .highlight-card .btn { margin-top: auto; width: 100%; min-height: 3.7em; display: flex; align-items: center; justify-content: center; padding-top: 10px; padding-bottom: 10px; line-height: 1.3; }
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 40px; align-items: stretch; }
.two-column-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 40px; align-items: stretch; }
.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; display: flex; flex-direction: column; height: 100%; }
.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; flex-shrink: 0; 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: 20px; font-size: 0.95rem; opacity: 0.9; flex-grow: 1; }
.benefit-card .btn { margin-top: auto; width: 100%; min-height: 3.7em; display: flex; align-items: center; justify-content: center; padding-top: 10px; padding-bottom: 10px; line-height: 1.3; }
.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 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, .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 { 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 .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 { 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; }
.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-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, #afff-inquiry-form h3:first-of-type, #covid-injury-lead-form h3:first-of-type, #contact-form h3:first-of-type { margin-top: 0; }
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"], input[type="password"], select, textarea, .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, input[type="password"]: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 input[type="password"]: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 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 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; }
.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 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; font-size: 1rem; }
.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-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; }
.contact-grid #afff-inquiry-form, .contact-grid #covid-injury-lead-form, .contact-grid #contact-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; }
.investment-highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; margin-top: 50px; align-items: stretch; }
.advantage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 50px; align-items: stretch; }
.projections-table-container { overflow-x: auto; margin: 40px 0; }
.projections-table { width: 100%; border-collapse: collapse; min-width: 600px; background-color: var(--card-background); box-shadow: 0 4px 12px var(--shadow-color); border-radius: 8px; overflow: hidden; }
.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); }
.testimonials { background-color: var(--background-color); }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 50px; align-items: stretch; }
.testimonial-card { background-color: var(--card-background); border-radius: 8px; padding: 30px; box-shadow: 0 5px 15px var(--shadow-color); display: flex; flex-direction: column; text-align: left; height: 100%; }
.testimonial-content { margin-bottom: 20px; font-style: italic; opacity: 0.9; flex-grow: 1; }
.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; flex-shrink: 0; }
.testimonial-author div { flex-grow: 1; }
.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; }


/* ==========================================================================
   V.E.R.A. Chatbot Styles - Includes new Audio Toggle Styles
   ========================================================================== */
.chatbot-launcher { position: fixed; bottom: 20px; right: 20px; width: 60px; height: 60px; background-color: var(--primary-color); color: var(--button-text-color); border: none; border-radius: 50%; font-size: 24px; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 12px var(--shadow-color); z-index: 1005; transition: background-color 0.3s ease, transform 0.3s ease; }
.chatbot-launcher:hover { background-color: #5c0e9e; transform: scale(1.1); }
.chatbot-launcher:focus { outline: 2px solid var(--primary-color); outline-offset: 2px; }
body.dark-mode .chatbot-launcher:focus { outline-color: var(--link-color); }
.chatbot-launcher .chatbot-launcher-tooltip { position: absolute; bottom: 100%; right: 0; margin-bottom: 8px; background-color: var(--onyx-black); color: var(--platinum-white); padding: 5px 10px; border-radius: 4px; font-size: 0.8rem; white-space: nowrap; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; pointer-events: none; }
.chatbot-launcher:hover .chatbot-launcher-tooltip { opacity: 1; visibility: visible; }

.chatbot-window { position: fixed; bottom: 90px; right: 20px; width: 360px; max-width: calc(100vw - 40px); height: 500px; max-height: calc(100vh - 110px); background-color: var(--card-background); border: 1px solid var(--border-color); border-radius: 12px; box-shadow: 0 8px 25px var(--shadow-color); z-index: 1006; display: flex; flex-direction: column; overflow: hidden; transition: opacity 0.3s ease, transform 0.3s ease; opacity: 0; transform: translateY(20px) scale(0.95); pointer-events: none; }
.chatbot-window:not([hidden]) { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.chatbot-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 15px; background-color: var(--primary-color); color: var(--button-text-color); flex-shrink: 0; }
.chatbot-avatar { width: 36px; height: 36px; border-radius: 50%; margin-right: 10px; object-fit: cover; background-color: rgba(255,255,255,0.2); flex-shrink: 0; }
.chatbot-title-text { font-weight: 600; font-size: 1.05rem; margin-right: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-grow: 1; }

/* Chatbot Controls - Simplified Audio Toggle */
.chatbot-controls { display: flex; align-items: center; gap: 8px; margin-left: 8px; margin-right: 8px; color: var(--toggle-label-color); flex-shrink: 0; }
.audio-toggle-label { font-size: 0.8rem; cursor: pointer; display: flex; align-items: center; line-height: 1; color: var(--toggle-label-color); user-select: none; }
.audio-toggle-label i { font-size: 1rem; margin-right: 4px; }
.chatbot-audio-toggle { appearance: none; -webkit-appearance: none; -moz-appearance: none; width: 38px; height: 20px; background-color: var(--toggle-bg-off); border-radius: 10px; position: relative; cursor: pointer; transition: background-color 0.3s ease; vertical-align: middle; }
.chatbot-audio-toggle::before { content: ''; position: absolute; width: 16px; height: 16px; background-color: var(--toggle-knob-color); border-radius: 50%; top: 2px; left: 2px; transition: transform 0.3s ease; }
.chatbot-audio-toggle:checked { background-color: var(--toggle-bg-on); }
.chatbot-audio-toggle:checked::before { transform: translateX(18px); }
.chatbot-audio-toggle:focus-visible { outline: 2px solid var(--toggle-label-color); outline-offset: 2px; }

.chatbot-close-button { background: none; border: none; color: var(--button-text-color); font-size: 22px; line-height: 1; padding: 5px; cursor: pointer; opacity: 0.8; transition: opacity 0.2s ease; flex-shrink: 0; }
.chatbot-close-button:hover { opacity: 1; }

.chatbot-messages-area { flex-grow: 1; padding: 15px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; background-color: var(--background-color); }
body.dark-mode .chatbot-messages-area { background-color: var(--secondary-background); }
.chatbot-message { padding: 10px 15px; border-radius: 18px; max-width: 80%; line-height: 1.4; font-size: 0.95rem; word-wrap: break-word; }
.chatbot-message.vera-message { background-color: var(--secondary-background); color: var(--text-color); align-self: flex-start; border-bottom-left-radius: 4px; max-width: 90%; }
body.dark-mode .chatbot-message.vera-message { background-color: #2a2a2a; color: var(--platinum-white); }
.chatbot-message.user-message { background-color: var(--primary-color); color: var(--button-text-color); align-self: flex-end; border-bottom-right-radius: 4px; }
.chatbot-message.vera-message strong { display: block; font-size: 0.8em; opacity: 0.7; margin-bottom: 3px; }

.chatbot-initial-options-container { padding: 10px 15px; display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--border-color); background-color: var(--card-background); }
.chatbot-option-button { flex-grow: 1; min-width: calc(50% - 4px); padding: 10px; font-size: 0.9rem; background-color: var(--card-background); color: var(--primary-color); border: 1px solid var(--primary-color); border-radius: 6px; cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease; text-align: center; }
.chatbot-option-button:hover { background-color: var(--primary-color); color: var(--button-text-color); }
body.dark-mode .chatbot-option-button { background-color: var(--input-background); color: var(--link-color); border-color: var(--link-color); }
body.dark-mode .chatbot-option-button:hover { background-color: var(--link-color); color: var(--onyx-black); }

.chatbot-input-area { display: flex; padding: 10px 15px; border-top: 1px solid var(--border-color); background-color: var(--card-background); flex-shrink: 0; align-items: center; }
.chatbot-input { flex-grow: 1; padding: 10px 12px; border: 1px solid var(--input-border); border-radius: 6px; font-size: 0.95rem; background-color: var(--input-background); color: var(--input-text); }
.chatbot-input:focus { outline: none; border-color: var(--input-focus-border); box-shadow: 0 0 0 2px rgba(75, 0, 130, 0.15); }
body.dark-mode .chatbot-input:focus { box-shadow: 0 0 0 2px rgba(179, 136, 255, 0.2); }
.chatbot-input:disabled { background-color: var(--secondary-background); cursor: not-allowed; }
body.dark-mode .chatbot-input:disabled { background-color: #2c2c2c; }

.chatbot-mic-button { width: 40px; height: 40px; background-color: transparent; color: var(--primary-color); border: 1px solid var(--primary-color); border-radius: 6px; font-size: 1rem; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease; margin-left: 8px; margin-right: 8px; flex-shrink: 0; }
.chatbot-mic-button:hover:not(:disabled) { background-color: var(--primary-color); color: var(--button-text-color); }
.chatbot-mic-button:disabled { background-color: #f0f0f0; border-color: #cccccc; color: #aaaaaa; cursor: not-allowed; }
body.dark-mode .chatbot-mic-button { color: var(--link-color); border-color: var(--link-color); }
body.dark-mode .chatbot-mic-button:hover:not(:disabled) { background-color: var(--link-color); color: var(--onyx-black); }
body.dark-mode .chatbot-mic-button:disabled { background-color: #3a3a3a; border-color: #444444; color: #777777; }
.chatbot-mic-button.recording { background-color: #d32f2f; color: white; border-color: #d32f2f; }

.chatbot-send-button { width: 40px; height: 40px; background-color: var(--primary-color); color: var(--button-text-color); border: none; border-radius: 6px; font-size: 1rem; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color 0.2s ease; flex-shrink: 0; }
.chatbot-send-button:hover:not(:disabled) { background-color: #5c0e9e; }
.chatbot-send-button:disabled { background-color: #cccccc; cursor: not-allowed; }
body.dark-mode .chatbot-send-button:disabled { background-color: #444444; }

.chatbot-footer { padding: 8px 15px; text-align: center; font-size: 0.75rem; background-color: var(--secondary-background); color: var(--text-color); opacity: 0.7; border-top: 1px solid var(--border-color); }
body.dark-mode .chatbot-footer { background-color: #1a1a1a; color: var(--platinum-white); }
.chatbot-footer a { color: var(--primary-color); text-decoration: underline; }
body.dark-mode .chatbot-footer a { color: var(--link-color); }

.chatbot-message.vera-message .embedded-chat-form { padding: 10px; background-color: var(--card-background); border-radius: 8px; margin: 5px 0; border: 1px solid var(--border-color); }
body.dark-mode .chatbot-message.vera-message .embedded-chat-form { background-color: var(--secondary-background); border-color: #444; }
.embedded-chat-form p { margin-bottom: 10px; font-size: 0.9em; color: var(--text-color); }
body.dark-mode .embedded-chat-form p { color: var(--platinum-white); }
.embedded-chat-form .form-field { margin-bottom: 8px; }
.embedded-chat-form label { display: block; font-size: 0.85em; margin-bottom: 3px; color: var(--text-color); opacity: 0.9; }
body.dark-mode .embedded-chat-form label { color: var(--platinum-white); }
.embedded-chat-form input[type="text"], .embedded-chat-form input[type="email"], .embedded-chat-form input[type="tel"] { width: 100%; padding: 8px 10px; border: 1px solid var(--input-border); border-radius: 4px; font-size: 0.9em; background-color: var(--input-background); color: var(--input-text); box-sizing: border-box; }
.embedded-chat-form input[type="text"]:focus, .embedded-chat-form input[type="email"]:focus, .embedded-chat-form input[type="tel"]:focus { border-color: var(--input-focus-border); outline: none; box-shadow: 0 0 0 2px rgba(75, 0, 130, 0.1); }
body.dark-mode .embedded-chat-form input[type="text"]:focus, body.dark-mode .embedded-chat-form input[type="email"]:focus, body.dark-mode .embedded-chat-form input[type="tel"]:focus { box-shadow: 0 0 0 2px rgba(179, 136, 255, 0.15); }
.embedded-chat-form .btn-submit-chat-form { display: block; width: 100%; padding: 10px; margin-top: 10px; background-color: var(--primary-color); color: var(--button-text-color); border: none; border-radius: 4px; font-weight: 500; font-size: 0.9em; cursor: pointer; transition: background-color 0.2s ease; }
.embedded-chat-form .btn-submit-chat-form:hover { background-color: #5c0e9e; }
.embedded-chat-form .form-error-message { display: block; font-size: 0.8em; margin-top: 5px; color: #d32f2f; }
body.dark-mode .embedded-chat-form .form-error-message { color: #ff7979; }


/* ==========================================================================
   Responsiveness
   ========================================================================== */
@media (max-width: 992px) { /* Tablet landscape and smaller */
    .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; }
     .section-grid .section-image { margin-top: 30px; order: 2; }
    .section-grid .section-content { order: 1; }
}

@media (max-width: 768px) { /* Tablet portrait and smaller */
    body { padding-top: 60px; } .navbar { height: 60px; padding: 0 15px; z-index: 1000; }
    .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; margin: 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: 1001; }
    .navbar-menu.active { display: flex !important; transform: translateY(0) !important; opacity: 1 !important; visibility: visible !important; }
    .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; color: var(--platinum-white); font-weight: 500; }
    .navbar-menu a:hover { background-color: rgba(75, 0, 130, 0.15); } .navbar-menu a::after { display: none; }
    .navbar-menu li:hover > .dropdown-menu { transform: none; }
    .dropdown-menu { position: static !important; display: none; opacity: 1 !important; visibility: visible !important; transform: none !important; box-shadow: none !important; min-width: auto !important; width: 100% !important; border-radius: 0 !important; padding: 0 !important; margin-top: 0 !important; z-index: auto !important; transition: none !important; background-color: rgba(0,0,0,0.2); border-top: 1px solid rgba(75, 0, 130, 0.3); }
    .navbar-menu li.submenu-open > .dropdown-menu { display: block !important; }
    .dropdown-menu li { margin: 0; width: 100%; border-bottom: none; }
    .dropdown-menu a { display: block; padding: 12px 20px 12px 40px; font-weight: 400; white-space: nowrap; font-size: 0.95rem; color: rgba(255, 255, 255, 0.8); width: 100%; }
    .dropdown-menu a:hover { background-color: rgba(75, 0, 130, 0.2); color: var(--platinum-white); } .dropdown-menu a::after { display: none; }
    .mobile-submenu-toggle { display: flex !important; align-items: center; justify-content: center; position: absolute; right: 0px; top: 0; height: 100%; width: 50px; padding: 0 15px; cursor: pointer; color: var(--platinum-white); opacity: 0.7; z-index: 2; background: transparent; border: none; font-size: 0.9rem; line-height: 1; transform: none !important; }
    .mobile-submenu-toggle i { transition: transform 0.3s ease; display: inline-block; } .mobile-submenu-toggle.open i { transform: rotate(180deg); }
    .navbar-mobile-controls { display: flex; z-index: 1002; } .theme-toggle { display: none; }
    section { padding: 60px 0; } .hero, .feature-hero { padding: 80px 0 60px; padding-top: 60px !important; }
    .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; }
    .features-grid, .benefits-grid, .two-column-grid, .investment-highlights, .advantage-grid, .testimonial-grid, .section-grid { gap: 20px; grid-template-columns: 1fr; }
    .section-grid .section-image { margin-top: 30px; order: 2; } .section-grid .section-content { order: 1; }
    .content-with-image { flex-direction: column; } .content-with-image .content-text { order: 2; } .content-with-image .content-image { order: 1; margin-bottom: 30px; margin-top: 0; }
    .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%; }
    .contact-grid { grid-template-columns: 1fr; gap: 50px; } .contact-grid .contact-info { order: -1; text-align: center; align-items: center; }

    .chatbot-window { bottom: 0; right: 0; width: 100vw; max-width: 100vw; height: calc(100vh - 60px); max-height: 100%; border-radius: 0; border-left: none; border-right: none; }
    .chatbot-launcher { bottom: 15px; right: 15px; width: 50px; height: 50px; font-size: 20px; }
    .chatbot-option-button { min-width: 100%; }
    .chatbot-header { padding: 8px 12px; } .chatbot-avatar { width: 32px; height: 32px; margin-right: 8px;}
    .chatbot-title-text { font-size: 1rem; }
    .chatbot-controls { gap: 6px; margin-left: 6px; margin-right: 6px; }
    .audio-toggle-label { font-size: 0.75rem; }
    .audio-toggle-label i { font-size: 0.9rem; }
    .chatbot-audio-toggle { width: 34px; height: 18px; }
    .chatbot-audio-toggle::before { width: 14px; height: 14px; }
    .chatbot-audio-toggle:checked::before { transform: translateX(16px); }
    .chatbot-close-button { font-size: 20px; }
}

@media (max-width: 576px) { /* Smaller mobile devices */
    .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; } .two-column-grid { grid-template-columns: 1fr; }
    .projections-table th, .projections-table td { padding: 8px 10px; font-size: 0.9rem; }
}

@media (max-width: 380px) { /* Very small screens, further adjust chatbot header */
    .chatbot-header { flex-wrap: wrap; padding-bottom: 6px; }
    .chatbot-title-text { width: calc(100% - 40px); margin-right: 0; margin-bottom: 4px; }
    .chatbot-avatar { margin-bottom: 4px; }
    .chatbot-controls { order: 3; width: 100%; justify-content: center; margin-left:0; margin-right: 0; margin-top: 4px; }
    .chatbot-close-button { position: absolute; top: 6px; right: 8px; }
}

/* ==========================================================================
   FANTASY FOOTBALL APP STYLES (NEW)
   ========================================================================== */

.fantasy-app {
    background-color: var(--secondary-background);
    min-height: calc(100vh - 70px - 250px); /* Full height minus nav and footer */
}

/* Override the generic form-container width for the fantasy app login */
.fantasy-app .form-container {
    max-width: 500px; /* Make the login box narrower */
    margin-left: auto;
    margin-right: auto;
}

#app-section h2 {
    margin-bottom: 40px;
}

#leaderboard-section {
    max-width: 800px;
    margin: 40px auto;
}

#notifications {
    max-width: 800px;
    margin: 40px auto;
    background-color: #fffde7;
    border-left: 5px solid #ffc107;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 4px 12px var(--shadow-color);
}

body.dark-mode #notifications {
    background-color: #3e3c2b;
    border-left-color: #ffc107;
}

/* Fix text alignment for the leaderboard table */
#leaderboard-table th, #leaderboard-table td {
    text-align: left; /* Override default right-align from projections-table */
}