/* Sloped Header Design Variables */
:root {
    /* Theme color system - sloped header style */
    --primary-bg: #f8f8f8;
    --primary-text: #0b1220;
    --secondary-text: rgba(11, 18, 32, 0.7);
    --card-background: #ffffff;
    --header-bg: rgba(248, 248, 248, 0.95);
    --accent-color: #cc0000;
    --accent-secondary: #0033cc;
    --accent-yellow: #ffcc00;
    --accent-text: #ffffff;

    /* Sloped header specific variables */
    --brand-blue: #0b57d0;
    --brand-blue-700: #0a4ab3;
    --text-on-blue: #ffffff;
    --text-muted: #e6eefc;
    --maxw: 1200px;
    --radius: 10px;
    --shadow: 0 8px 24px rgba(0,0,0,.15);
    --transition: 180ms ease;
    --nav-h: 64px;
    --hero-h: 260px;
    --slope: 5.25deg;

    /* UI element colors */
    --hamburger-color: var(--primary-text);
    --dropdown-bg: rgba(248, 248, 248, 0.98);
    --logo-text: var(--accent-color);
    --nav-link: var(--secondary-text);
    --nav-link-hover: var(--accent-color);
    --header-border: rgba(0, 0, 0, 0.1);
    --feature-heading: var(--primary-text);
    
    /* Form inputs */
    --input-bg: rgba(245, 245, 245, 0.8);
    --input-border: rgba(0, 0, 0, 0.2);
    
    /* Common colors */
    --white: #fff;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --shadow-light: rgba(0, 0, 0, 0.2);
    --shadow-deep: rgba(0, 0, 0, 0.25);
    --border-light: rgba(255, 255, 255, 0.2);
    --bg-translucent: rgba(255, 255, 255, 0.1);
    --bg-dark-translucent: rgba(0, 0, 0, 0.9);
    
    /* Semantic colors */
    --success-color: #4caf50;
    --success-bg: rgba(76, 175, 80, 0.1);
    --success-border: rgba(76, 175, 80, 0.2);
    --error-color: #f44336;
    --error-bg: rgba(244, 67, 54, 0.1);
    --error-border: rgba(244, 67, 54, 0.2);

    /* Spacing */
    --section-padding: 2rem;

    /* New variables */
    --input-shadow: rgba(0, 0, 0, 0.05);
}

/* Add smooth scrolling to the whole page */
html {
    scroll-behavior: smooth;
}

@media (prefers-color-scheme: dark) {
    :root {
        /* Theme color system for dark mode - sentinel cross style */
        --primary-bg: linear-gradient(135deg, #1a1a1a, #2a2a2a);
        --primary-text: rgba(255, 255, 255, 0.95);
        --secondary-text: rgba(255, 255, 255, 0.7);
        --card-background: #2c2c2c;
        --header-bg: rgba(26, 26, 26, 0.95);
        --accent-color: #ff4444;
        --accent-secondary: #4466ff;

        /* UI element colors for dark mode */
        --hamburger-color: var(--white);
        --dropdown-bg: rgba(26, 26, 26, 0.98);
        --logo-text: var(--accent-color);
        --nav-link: rgba(255, 255, 255, 0.65);
        --nav-link-hover: var(--accent-color);
        --header-border: rgba(255, 255, 255, 0.2);
        --feature-heading: var(--white);

        /* Form inputs for dark mode */
        --input-bg: rgba(50, 50, 50, 0.8);
        --input-border: rgba(255, 255, 255, 0.3);

        /* Shadow adjustments for dark mode */
        --shadow-color: rgba(0, 0, 0, 0.5);
        --shadow-light: rgba(0, 0, 0, 0.4);
        --shadow-deep: rgba(0, 0, 0, 0.6);
        --input-shadow: rgba(255, 255, 255, 0.05);
    }
}

/* Global Styles */
body {
    font-family: 'Merriweather', Georgia, serif;
    background: var(--primary-bg);
    color: var(--primary-text);
    margin: 0;
    text-align: left;
    line-height: 1.6;
}

/* Add this to create space for the fixed header */
section {
    margin-top: 60px; /* Adjust this value based on your header height */
}

/* Typography - Mission Sentinel Style */
h1 {
    font-family: 'Lato', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

h2 {
    font-family: 'Lato', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

h3 {
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    color: var(--primary-text);
}

h4, h5, h6 {
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    color: var(--primary-text);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--secondary-text);
    margin-bottom: 2rem;
    font-weight: 400;
}

/* Layout */
.section {
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--section-padding);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}


/* Feature Boxes */
.feature-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.feature {
    background: var(--card-background);
    padding: 1.5rem;
    border-radius: 10px;
    flex: 1 1 300px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0px 4px 10px var(--shadow-color);
}

.feature h3 {
    font-family: 'Lato', sans-serif;
    color: var(--feature-heading);
    font-size: 1.5rem;
    margin-top: 0.5rem;
    font-weight: 600;
}

/* Icons */
.feature-icon {
    font-size: 2rem;
    color: var(--accent-color);
}

/* ===== Sloped Header Styles ===== */
.site-header {
    position: relative;
    background: var(--brand-blue);
    color: var(--text-on-blue);
}

.topbar {
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: var(--maxw);
    margin-inline: auto;
    padding: 0 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    text-decoration: none;
}

.brand__logo {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    color: var(--text-on-blue);
    font-weight: 700;
    letter-spacing: .5px;
    user-select: none;
}

.brand__name {
    font-weight: 700;
    color: var(--text-on-blue);
    white-space: nowrap;
}

/* ===== Nav ===== */
.nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav__list {
    display: flex;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav__link {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 14px;
    border-radius: var(--radius);
    color: var(--text-on-blue);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: .2px;
    transition: background var(--transition), transform var(--transition);
}

.nav__link:hover,
.nav__link:focus-visible {
    background: rgba(255,255,255,.18);
}

.nav__link[aria-current="page"] {
    background: rgba(0,0,0,.22);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.15);
}

/* ===== Mobile menu button ===== */
.menu-btn {
    display: none;
    border: 0;
    background: transparent;
    color: var(--text-on-blue);
    padding: 8px;
    margin: -8px;
    border-radius: 8px;
    cursor: pointer;
}

.menu-btn:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* ===== Sloped hero ===== */
.hero {
    position: relative;
    height: var(--hero-h);
    overflow: clip;
    transform: skewY(var(--slope));
    transform-origin: top left;
    box-shadow: var(--shadow);
}

.hero__img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: skewY(calc(var(--slope) * -1));
    transform-origin: top left;
}

.hero__overlay {
    position: relative;
    transform: skewY(calc(var(--slope) * -1));
    transform-origin: top left;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 28px 20px 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    height: 100%;
}

.hero__title {
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,.25);
    font-weight: 800;
    font-size: clamp(22px, 4vw, 34px);
    margin: 0;
}

.cta-hero {
    margin-bottom: 28px;
}

/* Main Content Area */
.main-content {
    margin-top: 28px;
}

header.scrolled {
    background: var(--header-bg);
    backdrop-filter: blur(100px); 
    border-bottom: 1px solid var(--header-border);
}

/* Safari-specific fix for header transparency issue */
@supports (-webkit-hyphens:none) {
    header.scrolled {
        background: var(--header-bg);
    }
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--logo-text);
    gap: 0.75rem;
}

.logo img {
    height: 28px;
    width: auto;
}

.logo span {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--logo-text);
}

.nav-links-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.nav-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 1rem;
}

.nav-links {
    display: none !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 1.5rem;
    background: var(--dropdown-bg);
    padding: 0.15rem;
    margin-top: 0.5rem;
    z-index: 1000;
    width: auto;
    min-width: 180px;
    border-radius: 8px;
    box-shadow: 0 10px 20px -5px var(--shadow-light);
}

.nav-links.active {
    display: flex !important;
}

/* Comprehensive dropdown spacing fix - small spacing */
header nav .nav-links-container ul.nav-links {
    padding: 0.15rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px; /* Small gap between items */
}

header nav .nav-links-container ul.nav-links li {
    margin: 0;
    padding: 0;
    height: auto;
    display: block;
    border: none;
    width: 100%;
    text-align: left;
}

header nav .nav-links-container ul.nav-links li a {
    padding: 0.3rem 0.75rem;
    margin: 0;
    display: block;
    line-height: 1.2; /* Slightly increased line height */
    height: auto;
    font-size: 0.875rem;
    width: 100%;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.nav-links a:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

@media (prefers-color-scheme: dark) {
    .nav-links a:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav a {
    font-family: 'Lato', sans-serif;
    color: var(--nav-link);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 0.5rem 0;
}

nav a:hover {
    color: var(--nav-link-hover);
}

.hamburger {
    width: 30px;
    height: 3px;
    background: var(--hamburger-color);
    display: block;
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    width: 30px;
    height: 3px;
    background: var(--hamburger-color);
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -10px;
}

.hamburger::after {
    top: 10px;
}

/* Button Styles */
button, .cta-button, .nav-cta-button {
    font-family: 'Lato', sans-serif;
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--accent-color);
    color: var(--accent-text);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
}

button:hover, .cta-button:hover, .nav-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px var(--shadow-light);
}

/* Footer styling */
footer {
    color: var(--primary-text);
    text-align: center;
    padding: 2rem 0;
    background-color: var(--card-background);
    border-top: 1px solid var(--input-border);
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin: 0 1rem 1.5rem;
    text-align: left;
}

.footer-section h4 {
    color: var(--primary-text);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Make sure footer links are styled appropriately */
footer a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

footer a:hover {
    text-decoration: underline;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

/* Footer links */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    margin: 0;
    color: var(--secondary-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary-text);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-section {
        width: 100%;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .footer-links {
        align-items: center;
    }
}

/* Testimonials Section */
.testimonial-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.testimonial {
    background: var(--card-background);
    padding: 1.5rem;
    border-radius: 10px;
    flex: 1 1 300px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 20px -5px var(--shadow-light);
}

.testimonial p {
    color: var(--secondary-text);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.testimonial cite {
    display: block;
    font-size: 0.875rem;
    color: var(--primary-text);
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .testimonial-container {
        flex-direction: column;
        align-items: center;
    }

    .testimonial {
        max-width: 100%;
    }
}

/* Beta Signup Section */
.beta-signup {
    background: var(--primary-bg);
    padding: var(--section-padding);
    text-align: center;
    margin-top: 1rem;
}

.beta-signup h2 {
    font-size: 2.5rem;
    color: var(--primary-text);
    margin-bottom: 1rem;
}

.beta-signup p {
    color: var(--secondary-text);
    margin-bottom: 1.5rem;
}

.beta-signup-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.beta-signup-form input[type="email"] {
    font-family: 'Merriweather', Georgia, serif;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    color: var(--primary-text);
    font-size: 1rem;
    min-width: 300px;
    box-shadow: inset 0 2px 4px var(--input-shadow);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.beta-signup-form input[type="email"]:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(249, 168, 37, 0.2);
}

.beta-signup-form button {
    font-family: 'Lato', sans-serif;
    background: var(--accent-color);
    color: var(--accent-text);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.beta-signup-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px var(--shadow-light);
}

/* Form feedback messages */
.success-message {
    color: var(--success-color);
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    padding: 1rem 2rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-weight: 500;
    animation: fadeIn 0.3s ease-in-out;
}

.error-message {
    color: var(--error-color);
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    padding: 1rem 2rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-weight: 500;
    animation: fadeIn 0.3s ease-in-out;
}

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

#testimonials {
    padding: var(--section-padding);
}

.logo-container a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-text);
    font-size: 1.5rem;
    font-weight: 600;
}

/* Update hero section */
.hero {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 3.5rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    position: relative;
}

.hero > div:first-child {
    text-align: center;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-family: 'Lato', sans-serif;
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
    letter-spacing: -0.02em;
    font-weight: 700;
}

.hero h2 {
    font-family: 'Lato', sans-serif;
    font-size: 1.5rem;
    color: var(--secondary-text);
    margin-bottom: 0.75rem;
    font-weight: 500;
    line-height: 1.4;
}

.hero .section-subtitle {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--secondary-text);
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    padding: 0 1rem;
}

/* Add special styling for the first paragraph */
.hero .section-subtitle:first-of-type {
    font-size: 1.25rem;
    line-height: 1.7;
    font-weight: 500;
    color: var(--primary-text);
    padding: 1.25rem;
    background: linear-gradient(to right, rgba(204, 0, 0, 0.05), rgba(204, 0, 0, 0.1));
    border-left: 4px solid var(--accent-color);
    border-radius: 0 8px 8px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.25rem;
}

/* Add special styling for the second paragraph */
.hero .section-subtitle:nth-of-type(2) {
    font-size: 1.15rem;
    line-height: 1.65;
    padding: 1rem;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.05));
    border-radius: 8px;
    margin-bottom: 1.25rem;
}

/* Crosswalk Hero Section */
.crosswalk-hero {
    position: relative;
    margin-top: 70px;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
}

.hero-image-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-image-full {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(204, 0, 0, 0.8), rgba(0, 51, 204, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 2rem;
}

.hero-content h1 {
    font-family: 'Lato', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Content Block Styles */
.content-block {
    padding: 4rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.content-block:nth-child(even) {
    background-color: #f8f8f8;
}

.content-block:last-child {
    border-bottom: none;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.content-block-right .content-grid {
    grid-template-columns: 1fr 1fr;
}

.content-text h2 {
    font-family: 'Lato', sans-serif;
    font-size: 2.2rem;
    color: var(--primary-text);
    margin-bottom: 1rem;
    font-weight: 600;
}

.content-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--secondary-text);
    margin-bottom: 1.5rem;
}

.content-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Statistics Section */
.stats-section {
    background: white;
    padding: 3rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.stat-item {
    padding: 1.5rem;
}

.stat-number {
    font-family: 'Lato', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--secondary-text);
    font-weight: 500;
}

/* ===== Responsive Styles for Sloped Header ===== */
@media (max-width: 900px) {
    .nav__list {
        display: none;
    }

    .nav--open .nav__list {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--nav-h);
        right: 12px;
        left: 12px;
        z-index: 40;
        background: var(--brand-blue);
        border-radius: 14px;
        padding: 10px;
        box-shadow: var(--shadow);
    }

    .nav__link {
        height: 44px;
        border-radius: 10px;
    }

    .menu-btn {
        display: inline-flex;
    }

    .hero {
        height: 220px;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .content-block-right .content-grid .content-text {
        order: 1;
    }

    .content-block-right .content-grid .content-image {
        order: 2;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .content-text h2 {
        font-size: 1.8rem;
    }

    .content-text p {
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nav__link {
        transition: none;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .content-text h2 {
        font-size: 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

/* Legacy responsive adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 3rem 1rem;
        gap: 1.25rem;
    }
    
    .hero .section-subtitle:first-of-type,
    .hero .section-subtitle:nth-of-type(2) {
        padding: 0.75rem;
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .hero .section-subtitle:nth-of-type(3) {
        font-size: 1.3rem;
        padding: 0.5rem 1rem;
        margin: 0.25rem auto 1.25rem;
    }
}

.newsletter-signup {
    background: var(--card-background);
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px var(--shadow-light);
    width: 100%;
    max-width: 500px;
    margin: 2rem auto;
    border: 1px solid var(--border-light);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-align: center;
}

.newsletter-signup h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    margin-top: 0;
    color: var(--primary-text);
    font-weight: 600;
}

.newsletter-signup p {
    color: var(--secondary-text);
    margin-bottom: 1rem;
    line-height: 1.4;
    font-size: 0.95rem;
}

.hero-signup {
    background: var(--card-background);
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px var(--shadow-light);
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    border: 1px solid var(--border-light);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-signup h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    margin-top: 0;
    color: var(--primary-text);
    font-weight: 600;
}

.hero-signup p {
    color: var(--secondary-text);
    margin-bottom: 1rem;
    line-height: 1.4;
    font-size: 0.95rem;
}

.hero-signup .beta-signup-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    box-sizing: border-box;
}

.hero-signup .beta-signup-form input[type="email"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1.5px solid var(--input-border);
    background: var(--input-bg);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.hero-signup .beta-signup-form button {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--accent-color);
    color: var(--accent-text);
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-signup .beta-signup-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -8px var(--shadow-light);
}

.hero-signup .beta-signup-form button:active {
    transform: translateY(0);
}

.hero-media {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    position: relative;
    width: 100%;
    max-width: 600px;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 30px 60px -12px var(--shadow-deep);
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: translateY(-5px);
}

@media (min-width: 768px) {
    .hero {
        padding: 5rem 2rem;
    }

    .hero h1 {
        font-size: 3.25rem;
    }

    .hero h2 {
        font-size: 1.625rem;
    }

    .hero .section-subtitle {
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 1rem;
    }

    .hero .section-subtitle:last-of-type {
        margin-bottom: 2rem;
    }

    .hero-signup {
        margin: 0 auto;
    }

    .hero-media {
        margin-top: 2rem;
    }
}

/* Update CTA button */
.cta-button {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: var(--accent-color);
    color: var(--accent-text);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.125rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px var(--shadow-light);
}

/* CTA container responsiveness */
.cta-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .cta-container {
        padding: 0 0.5rem;
    }
    
    .cta-button {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (max-width: 480px) {
    .cta-container {
        padding: 0 0.25rem;
    }
    
    .cta-button {
        font-size: 0.9rem;
        padding: 0.625rem 1.25rem;
        max-width: calc(100vw - 3rem);
    }
}

/* How It Works Section */
.how-it-works {
    text-align: center;
}

.how-it-works h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-text);
    margin-bottom: 2rem;
}

/* Layout adjustments */
.how-it-works-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Step List Styling */
.steps-list {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.steps-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.steps-list div {
    margin: 0;
    padding: 0;
    width: 100%;
}

.steps-list div:last-child .step {
    margin-bottom: 0;
}

.step {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    position: relative;
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    padding: 8px 16px;
    margin-bottom: 24px;
    box-shadow: 0 10px 20px -5px var(--shadow-light);
    background: var(--card-background);
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.steps-list .step-number {
    width: 2rem;
    height: 2rem;
    background: var(--accent-color);
    color: var(--accent-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    margin-right: 1rem !important;
    flex-shrink: 0;
}

.steps-list .step-text {
    max-width: 600px;
    margin-left: 0.5rem !important;
}

.step-title {
    font-family: 'Lato', sans-serif;
    color: var(--primary-text);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.step p {
    color: var(--secondary-text);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

/* Video Container */
.video-container {
    color: var(--white);
    box-shadow: 0 10px 20px -5px var(--shadow-deep);
    height: 100%;
    width: auto;
    max-width: 450px;
    max-height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: black;
    z-index: 1;
    position: relative;
    transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
}

.video-container video {
    width: 100%;
    border-radius: 12px;
    color: var(--white);
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/* Responsive adjustments for layout */
@media (max-width: 1024px) {
    .how-it-works-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .steps-list {
        max-width: 600px;
        margin: 0 auto;
    }

    .video-container {
        max-width: 100%;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .how-it-works {
        padding: 4rem 1rem;
    }

    .how-it-works h2 {
        font-size: 2rem;
    }

    .step-title {
        font-size: 1.25rem;
    }

    .step p {
        font-size: 0.95rem;
    }

    .step-number {
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }

    .feature-container {
        flex-direction: column;
        align-items: center;
    }

    .feature {
        max-width: 100%;
    }
    
    h1, h2 {
        font-size: 2rem;
    }
    
    .hero .section-subtitle {
        font-size: 1.1rem;
    }
}

/* Footer links */
.footer-links {
    margin: 0.5rem 0;
}

.footer-links h4 {
    color: var(--primary-text);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.footer-links a {
    margin: 0 0.5rem;
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary-text);
    text-decoration: underline;
}

/* Privacy Policy Page Styling */
.privacy-policy-page {
    padding-top: 120px; /* Extra padding to account for fixed header */
    max-width: 800px;
    margin: 0 auto 3rem auto;
    text-align: left;
}

.policy-content h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-text);
}

.last-updated {
    font-style: italic;
    color: var(--secondary-text);
    margin-bottom: 2rem;
}

.policy-section {
    margin-bottom: 2rem;
}

.policy-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-text);
}

.policy-section h3 {
    font-size: 1.2rem;
    margin: 1rem 0 0.5rem;
    color: var(--primary-text);
}

.policy-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--secondary-text);
}

@media (max-width: 768px) {
    .privacy-policy-page {
        padding: 100px 1.5rem 2rem 1.5rem;
    }
    
    .policy-content h1 {
        font-size: 1.75rem;
    }
    
    .policy-section h2 {
        font-size: 1.3rem;
    }
    
    .policy-section h3 {
        font-size: 1.1rem;
    }
}

/* Additional styles for section scrolling with fixed header */
.policy-section,
section[id] {
    scroll-margin-top: 100px; /* Ensures sections don't get hidden under fixed header when scrolling to them */
}

/* Enhanced mobile navigation for legal pages */
@media (max-width: 768px) {
    .privacy-policy-page .nav-links.active,
    .terms-of-service-page .nav-links.active {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 1.5rem;
        background: var(--dropdown-bg);
        padding: 0.3rem;
        margin-top: 0.5rem;
        z-index: 1000;
        width: auto;
        min-width: 180px;
        border-radius: 8px;
        box-shadow: 0 10px 20px -5px var(--shadow-light);
    }
    
    /* Force display of nav links when active, overriding any conflicting styles */
    .nav-links-container .nav-links.active {
        display: flex !important;
    }
    
    /* Ensure items in the dropdown have proper styling */
    .nav-links.active li {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .nav-links.active a {
        display: block;
        padding: 0.5rem 1rem;
        width: 100%;
        text-align: left;
    }
}



/* Application-specific styles */
.application-note {
    background: rgba(249, 168, 37, 0.1);
    border: 1px solid rgba(249, 168, 37, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    margin: 16px 0;
    text-align: center;
}

.application-text {
    color: var(--primary-text);
    font-weight: 500;
    font-size: 0.9rem;
}

.application-highlight {
    text-align: center;
    margin: 2rem 0;
}

.application-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.application-from {
    font-size: 1rem;
    color: var(--secondary-text);
    font-weight: 500;
}

.application-amount {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-text);
    line-height: 1;
}

.application-amount .billing-note {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-color);
    display: block;
    margin-top: 4px;
}

.application-note {
    font-size: 0.9rem;
    color: var(--secondary-text);
    margin-top: 4px;
}

.application-note-small {
    font-size: 0.85rem;
    color: var(--secondary-text);
    margin-top: 8px;
    text-align: center;
}

.modal-subtitle {
    color: var(--secondary-text);
    margin-bottom: 24px;
    font-size: 1rem;
    text-align: center;
}

/* Enhanced form styling for application */
.form-group textarea {
    min-height: 80px;
    resize: vertical;
    font-family: inherit;
    padding: 12px;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    background: var(--input-bg);
    transition: border-color 0.3s ease;
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(249, 168, 37, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .application-amount {
        font-size: 1.2rem;
    }

    .application-amount .billing-note {
        font-size: 0.9rem;
    }

    .application-highlight {
        margin: 1.5rem 0;
    }
}

/* ===== CONTACT US SECTION ENHANCEMENTS ===== */

/* Contact Section Background and Container */
.contact-section {
    position: relative;
    overflow: visible; /* Allow shadows to show */
    padding: 3rem 1rem; /* Add padding around the card */
    background: transparent !important; /* Remove any background from outer container */
}

/* Contact section inner background - CARD-LIKE STYLING */
.contact-section .section-inner,
.contact-section-inner,
div[data-styled-section-id="fcf8dd16-b095-4d2f-84c7-5808a8ceca46"] {
    background: linear-gradient(135deg, #0033cc 0%, #1a4dd8 100%) !important;
    background-color: #0033cc !important;
    color: #f8f8f8 !important;
    border-radius: 24px !important;
    margin: 0 auto !important;
    max-width: 1200px !important;
    box-shadow:
        0 20px 60px rgba(0, 51, 204, 0.2),
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    overflow: hidden !important;
}

/* Decorative patterns now target the inner card */
.contact-section .section-inner::before,
.contact-section-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 80% 20%, rgba(255, 204, 0, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.06) 0%, transparent 35%);
    pointer-events: none;
    z-index: 1;
    border-radius: 24px;
}

/* Add floating geometric shapes inside the card */
.contact-section .section-inner::after,
.contact-section-inner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(1px 1px at 20px 30px, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(1px 1px at 40px 70px, rgba(255, 204, 0, 0.08), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.08), transparent);
    background-repeat: repeat;
    background-size: 120px 80px, 160px 100px, 80px 60px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.4;
    border-radius: 24px;
}

/* Contact Header Styling */
.contact-header h2 {
    font-family: 'Lato', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.02em;
}

/* Contact Information Styling */
.contact-info-container {
    position: relative;
    z-index: 3;
}

.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0.75rem 0;
    transition: transform 0.2s ease;
}

.contact-info-item:hover {
    transform: translateX(5px);
}

.contact-icon {
    width: 40px;
    height: 40px;
    margin-right: 1rem;
    color: #ffcc00;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 204, 0, 0.2);
    border-radius: 50%;
    padding: 0.5rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(255, 204, 0, 0.3);
}

.contact-info-item a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    font-size: 1rem;
}

.contact-info-item a:hover {
    color: #ffcc00;
}

.contact-info-item:not(:has(a)) {
    color: #ffffff;
    font-weight: 500;
}

/* Map Container Improvements */
.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

/* Map Consent Dialog Improvements */
.module-blocker-consent-maps {
    border-radius: 12px;
}

.module-blocker-message {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.module-blocker-button {
    background: #ffcc00 !important;
    color: #151515 !important;
    border-radius: 8px !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

.module-blocker-button:hover {
    background: #e6b800 !important;
    transform: translateY(-1px) !important;
}

/* Contact Form Enhancements */
.contact-form-container {
    position: relative;
    z-index: 3;
}

.contact-section .form-container {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Form container fallback for broader targeting */
.form-73cc5b8b-0055-49c4-860c-fa98c9f6f5e6 {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 248, 220, 0.9) 100%) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    border-radius: 20px !important;
    padding: 2.5rem !important;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 8px 16px -8px rgba(255, 204, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 0 0 1px rgba(255, 204, 0, 0.1) !important;
    border: 2px solid rgba(255, 204, 0, 0.2) !important;
    position: relative !important;

    /* Override CSS custom properties that are making text white */
    --form-body-text-color: #151515 !important;
    --form-module-active-color-body-text: #151515 !important;
    --text-container-color: #151515 !important;
    --form-captcha-text-color: #151515 !important;
}

/* Add a subtle pattern overlay to the form */
.form-73cc5b8b-0055-49c4-860c-fa98c9f6f5e6::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(255, 204, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(0, 51, 204, 0.05) 0%, transparent 50%);
    border-radius: 20px;
    pointer-events: none;
    z-index: 1;
}

/* Ensure form content appears above background */
.form-73cc5b8b-0055-49c4-860c-fa98c9f6f5e6 > * {
    position: relative;
    z-index: 2;
}

/* Form Input Styling */
.contact-section .form-input,
.contact-section input[type="text"],
.contact-section textarea {
    width: 100% !important;
    padding: 0.875rem 1.125rem !important;
    border: 2px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    font-family: 'Merriweather', Georgia, serif !important;
    font-size: 0.95rem !important;
    color: #151515 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    box-sizing: border-box !important;
}

.contact-section .form-input:focus,
.contact-section input[type="text"]:focus,
.contact-section textarea:focus {
    outline: none !important;
    border-color: #0033cc !important;
    box-shadow: 0 0 0 4px rgba(0, 51, 204, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-1px) !important;
}

.contact-section .form-input:hover:not(:focus),
.contact-section input[type="text"]:hover:not(:focus),
.contact-section textarea:hover:not(:focus) {
    border-color: rgba(0, 51, 204, 0.3) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

/* Form Label Styling */
.contact-section .form-label,
.contact-section label {
    display: block !important;
    margin-bottom: 0.5rem !important;
    color: #151515 !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    letter-spacing: 0.02em !important;
}

.contact-section .form-label span,
.contact-section label span {
    color: #dc3545 !important;
}

/* Form Input Combo Spacing */
.contact-section .form-input-combo {
    margin-bottom: 1.5rem !important;
}

/* Ensure all text in the form is visible */
.contact-section .form-input-combo > div:last-child {
    color: #151515 !important;
    font-size: 0.85rem !important;
}

.contact-section p {
    color: #151515 !important;
}

/* Checkbox Styling */
.form-checkboxes {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.form-checkbox-icon {
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.form-input-checkbox {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.form-input-checkbox:checked {
    background: #0033cc;
    border-color: #0033cc;
}

.form-input-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.contact-section .form-checkbox-label,
.contact-section .form-checkbox-label span {
    color: #151515 !important;
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
    cursor: pointer !important;
}

/* Submit Button Enhanced Styling */
.contact-section .form-button,
.contact-section button[type="submit"] {
    width: 100% !important;
    padding: 1rem 2rem !important;
    background: linear-gradient(135deg, #ffcc00 0%, #e6b800 100%) !important;
    color: #151515 !important;
    border: none !important;
    border-radius: 12px !important;
    font-family: 'Lato', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 16px rgba(255, 204, 0, 0.3) !important;
    position: relative !important;
    overflow: hidden !important;
}

.form-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.contact-section .form-button:hover,
.contact-section button[type="submit"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(255, 204, 0, 0.4) !important;
    background: linear-gradient(135deg, #e6b800 0%, #ffcc00 100%) !important;
}

.contact-section .form-button:hover::before,
.contact-section button[type="submit"]:hover::before {
    left: 100% !important;
}

.contact-section .form-button:active,
.contact-section button[type="submit"]:active {
    transform: translateY(0) !important;
}

/* Form Messages Styling */
.form-message {
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.form-success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #2e7d32;
}

.form-error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #c62828;
}

.form-message-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Loading Overlay - HIDDEN by default */
.form-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    display: none !important; /* Force hide the spinner */
    align-items: center;
    justify-content: center;
}

.form-loading-overlay::after {
    content: '';
    width: 32px;
    height: 32px;
    border: 3px solid #e0e0e0;
    border-top: 3px solid #0033cc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error State Styling */
.form-label-error:not(.form-display-none) {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: block;
}

.form-input-combo:has(.form-label-error:not(.form-display-none)) .form-input {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

/* Responsive Design for Contact Section */
@media (max-width: 768px) {
    .contact-section {
        padding: 2rem 0.5rem; /* Reduce padding on mobile */
    }

    .contact-section .section-inner,
    .contact-section-inner,
    div[data-styled-section-id="fcf8dd16-b095-4d2f-84c7-5808a8ceca46"] {
        border-radius: 16px !important; /* Smaller radius on mobile */
        margin: 0 0.5rem !important;
    }

    .contact-header h2 {
        font-size: 2rem;
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .contact-info-container {
        margin-bottom: 2rem;
    }

    .contact-info-item {
        justify-content: center;
        text-align: center;
    }

    .contact-icon {
        margin-right: 0.75rem;
    }

    .form-container {
        padding: 1.5rem;
    }

    .form-button {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    .map-container {
        margin-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    .contact-header h2 {
        font-size: 1.75rem;
    }

    .form-container {
        padding: 1.25rem;
        margin: 0 0.5rem;
    }

    .contact-info-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .contact-icon {
        margin-right: 0;
        margin-bottom: 0.25rem;
    }
}
