/* ====================================
   CORTEX RELAY - MAIN STYLESHEET
   Static HTML + CSS + Vanilla JS
   ==================================== */

/* ====================================
   CSS VARIABLES - BRAND COLORS
   ==================================== */
:root {
    /* Brand Colors */
    --primary: #E64232;
    --primary-dark: #8D322A;
    --dark: #242021;
    --light: #FCFCFC;

    /* Semantic Colors */
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;
    --neutral: #6B7280;

    /* Backgrounds */
    --bg-light: #FCFCFC;
    --bg-gray: #F9FAFB;
    --bg-dark: #242021;

    /* Text */
    --text-dark: #242021;
    --text-gray: #6B7280;
    --text-light: #FCFCFC;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition: all 0.3s ease;
}

/* ====================================
   RESET & BASE STYLES
   ==================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

section {
    max-width: 100vw;
    overflow: hidden;
    scroll-margin-top: 120px; /* Account for fixed navbar height */
}

section[id] {
    scroll-margin-top: 120px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
    max-width: 100vw;
}

html {
    overflow-x: hidden;
    max-width: 100vw;
}

/* ====================================
   TYPOGRAPHY
   ==================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-gray);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* ====================================
   UTILITY CLASSES
   ==================================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-bg {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
}

/* Contact + Footer Full Page Wrapper */
.contact-footer-wrapper {
    min-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    scroll-margin-top: 120px;
}

.contact-footer-wrapper > section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-footer-wrapper .footer {
    flex-shrink: 0;
}

/* ====================================
   BUTTONS
   ==================================== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-secondary {
    background-color: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: white;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ====================================
   NAVIGATION
   ==================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: var(--transition);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    max-width: 1280px;
    margin: 0 auto;
    gap: 1rem;
    height: 120px;
}

.navbar-top {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.navbar-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
}

.navbar-logo img {
    height: 60px;
    width: auto;
    max-width: 360px;
    object-fit: contain;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.navbar-menu {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
    margin: 0;
}

.navbar-menu .language-switcher {
    display: none;
}

.navbar-menu a {
    color: var(--text-gray);
    font-weight: 500;
    font-size: 0.875rem;
    transition: var(--transition);
    white-space: nowrap;
    min-width: 60px;
    text-align: center;
    display: inline-block;
}

.navbar-menu a:hover,
.navbar-menu a.active {
    color: var(--primary);
}

.language-switcher {
    display: flex;
    gap: 0.375rem;
    align-items: center;
    margin-left: 0;
}

.language-switcher button {
    background: none;
    border: 1px solid var(--neutral);
    border-radius: var(--radius-sm);
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.8125rem;
    white-space: nowrap;
    min-width: 58px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.language-switcher button img.flag-icon {
    width: 16px;
    height: 12px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

.language-switcher button:hover,
.language-switcher button.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
}

/* Tablet Navigation (iPad Mini, etc.) */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero {
        min-height: 100vh;
        padding: 0 1rem;
    }

    .hero-container {
        padding-top: 5rem;
    }
}

/* Mobile Navigation */
@media (max-width: 768px) {
    body, html {
        overflow-x: hidden;
        max-width: 100vw;
        position: relative;
    }

    .navbar-container {
        padding: 0.75rem 1rem;
        max-width: 100vw;
        box-sizing: border-box;
        height: auto;
    }

    .navbar-right > .language-switcher {
        display: none;
    }

    .navbar-menu {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        width: 100%;
        max-width: 100vw;
        gap: 0;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .navbar-menu.active {
        transform: translateX(0);
    }

    .navbar-menu a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid var(--bg-gray);
        min-width: auto;
        text-align: left;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }

    .navbar-menu .language-switcher {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        padding: 1rem 0;
        border-top: 2px solid var(--bg-gray);
        margin-top: 0.5rem;
        flex-wrap: wrap;
    }

    .navbar-menu .language-switcher button {
        font-size: 0.875rem;
        padding: 0.4rem 0.6rem;
        min-width: 55px;
    }

    .navbar-toggle {
        display: block;
    }

    .navbar-logo img {
        height: auto;
        max-width: calc(100vw - 100px);
        width: 80%;
    }

    .container {
        padding: 0 0.75rem;
        max-width: 100vw;
        overflow-x: hidden;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }

    .hero {
        min-height: 100vh;
        padding: 1rem;
        padding-top: 100px;
    }

    .hero-container {
        padding-top: 3rem;
    }
}


/* ====================================
   HERO SECTION
   ==================================== */
.hero {
    min-height: 100vh;
    padding: 0 1rem;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
    color: white;
    overflow: hidden;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 6rem;
    padding-bottom: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-container.hero-centered {
    grid-template-columns: 1fr;
    text-align: center;
    max-width: 900px;
}

.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2.5rem;
}

.hero-title-main {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    color: white;
    letter-spacing: -0.02em;
}

.hero-title-accent {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: 0.5rem;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 3.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    padding: 1.25rem 1.75rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
}

.hero-stat-content {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.hero-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.hero-stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.hero-badge i {
    color: #10B981;
}

.hero-content h1 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-content .highlight {
    color: var(--warning);
}

.hero-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.trust-badges {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.hero-image {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-cta {
        flex-direction: column;
    }
}

/* ====================================
   SECTIONS
   ==================================== */
section {
    padding: 4rem 1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-gray);
    max-width: 800px;
    margin: 0 auto;
}

/* ====================================
   CARDS & GRID
   ==================================== */
.grid {
    display: grid;
    gap: 2rem;
    max-width: 100%;
    overflow: hidden;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.card p {
    font-size: 0.9375rem;
    color: var(--text-gray);
}

/* ====================================
   PRICING CARDS
   ==================================== */
.pricing-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    border: 2px solid var(--bg-gray);
    transition: var(--transition);
    position: relative;
    color: var(--text-dark);
}

.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(230, 66, 50, 0.1);
    transform: scale(1.05);
}

.pricing-card.popular::before {
    content: 'MOST POPULAR';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-4px);
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.pricing-price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--dark);
}

.pricing-price span {
    font-size: 1.25rem;
    color: var(--text-gray);
}

.pricing-description {
    text-align: center;
    color: var(--text-gray);
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.75rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    border-bottom: 1px solid var(--bg-gray);
    color: var(--text-dark);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features i {
    color: var(--success);
    margin-top: 0.25rem;
}

.pricing-features li.disabled {
    opacity: 0.4;
}

.pricing-features li.disabled i {
    color: var(--neutral);
}

@media (max-width: 1024px) {
    .pricing-container {
        grid-template-columns: 1fr;
    }

    .pricing-card.popular {
        transform: scale(1);
    }
}

/* ====================================
   FAQ ACCORDION
   ==================================== */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    border: 1px solid var(--bg-gray);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: var(--bg-gray);
}

.faq-question i {
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-content {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-gray);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* ====================================
   FOOTER
   ==================================== */
.footer {
    background-color: var(--dark);
    color: white;
    padding: 4rem 1rem 2rem;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.footer-container.footer-minimal {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 2rem;
}

.footer-legal-links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    transition: var(--transition);
    white-space: nowrap;
}

.footer-legal-links a:hover {
    color: var(--primary);
}

.footer-brand {
    grid-column: span 1;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8125rem;
    margin: 0.75rem 0 0 0;
}

.footer-brand .navbar-logo {
    color: white;
    margin-bottom: 1rem;
}

.footer-brand .navbar-logo img {
    width: 100%;
    max-width: 260px;
    height: auto;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
}

.footer-links h4 {
    color: white;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    transition: var(--transition);
}

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

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-container.footer-minimal {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-container.footer-minimal .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-legal-links {
        justify-content: center;
        gap: 1.5rem;
    }

    .footer-brand .navbar-logo img {
        max-width: 195px;
    }
}

/* ====================================
   TESTIMONIALS
   ==================================== */
.testimonial-carousel {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.testimonial {
    background: var(--bg-gray);
    border-radius: var(--radius-2xl);
    padding: 3rem;
    text-align: center;
}

.testimonial-quote {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
}

.testimonial-info h4 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.testimonial-info p {
    font-size: 0.875rem;
    color: var(--text-gray);
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--neutral);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.testimonial-dot.active {
    background: var(--primary);
    width: 32px;
    border-radius: 999px;
}

/* ====================================
   STATS COUNTER
   ==================================== */
.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-gray);
}

@media (max-width: 768px) {
    .stats-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ====================================
   RESPONSIVE UTILITIES
   ==================================== */
@media (max-width: 640px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    section {
        padding: 3rem 1rem;
    }

    .hero {
        min-height: 100vh;
        padding: 0 0.75rem;
    }

    .hero-container {
        padding-top: 3.5rem;
        gap: 1.5rem;
    }

    .hero-title-main {
        font-size: 2.25rem;
    }

    .hero-title-accent {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .hero-stat {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .hero-badges {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 44px;
    }

    .hero-title-main {
        font-size: 2.75rem;
    }

    .hero-title-accent {
        font-size: 1.75rem;
    }

    .hero-stats {
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .hero-stat {
        padding: 1rem 1.25rem;
    }

    .hero-stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .hero-stat-value {
        font-size: 1.25rem;
    }
}

/* ====================================
   ANIMATIONS
   ==================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ====================================
   LOADING SPINNER
   ==================================== */
.spinner {
    border: 3px solid rgba(230, 66, 50, 0.1);
    border-radius: 50%;
    border-top: 3px solid var(--primary);
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

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

/* ====================================
   FORM STYLES
   ==================================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #E5E7EB;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background-color: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(230, 66, 50, 0.1);
}

.form-group input[type="radio"],
.form-group input[type="checkbox"] {
    margin-right: 0.5rem;
    cursor: pointer;
}

.form-group input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    vertical-align: middle;
}

/* Form Error States */
.field-error {
    border-color: var(--danger) !important;
}

.error-message {
    color: var(--danger);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.error-message::before {
    content: '⚠';
    font-size: 1rem;
}

/* Auto-save Indicator */
#auto-save-indicator {
    position: fixed;
    top: 6rem;
    right: 2rem;
    background: var(--success);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

#auto-save-indicator i {
    font-size: 1rem;
}

/* Success Message */
#success-message {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    border-radius: var(--radius-xl);
    border: 2px solid var(--success);
}

#success-message i {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 1rem;
}

#success-message h3 {
    color: var(--success);
    margin-bottom: 1rem;
}

#success-message p {
    color: var(--text-gray);
}

/* Error Container */
#error-container {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
    border: 2px solid var(--danger);
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

#error-container i {
    font-size: 1.5rem;
    color: var(--danger);
    flex-shrink: 0;
}

#error-container h4 {
    color: var(--danger);
    margin: 0 0 0.5rem 0;
}

#error-container p {
    color: var(--text-dark);
    margin: 0;
}

/* Contact Preference Checkboxes Layout */
.contact-pref-checkboxes {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Mobile Responsiveness for Forms */
@media (max-width: 768px) {
    #auto-save-indicator {
        top: auto;
        bottom: 2rem;
        right: 1rem;
        left: 1rem;
        justify-content: center;
    }

    .contact-pref-checkboxes {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* ====================================
   BELL RINGING ANIMATION
   ==================================== */
@keyframes bellRing {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-12deg); }
    30% { transform: rotate(10deg); }
    40% { transform: rotate(-8deg); }
    50% { transform: rotate(6deg); }
    60% { transform: rotate(-4deg); }
    70% { transform: rotate(2deg); }
    80% { transform: rotate(-1deg); }
    90% { transform: rotate(0.5deg); }
    100% { transform: rotate(0deg); }
}

.bell-ringing {
    animation: bellRing 0.8s ease-in-out;
}
