/* ==============================================
   INSURANCE NATION - COMPREHENSIVE STYLESHEET
   ============================================== */

/* ======================
   TABLE OF CONTENTS
   ====================== */
/*
1. CSS Variables & Configuration
2. Base Styles & Reset
3. Typography
4. Global Components
   - Buttons
   - Forms
   - Utilities
5. Header & Navigation
6. Footer
7. Hero Sections
8. Homepage Styles
9. 404 Error Page
10. Agency Network Page
11. Careers Page
12. Customer Service Page
13. Quote Page
14. Locations/Agent Finder Page
15. Privacy Policy Page
16. Shared Components
17. Responsive Design
18. Print Styles
*/

/* ======================
   1. CSS VARIABLES & CONFIGURATION
   ====================== */
:root {
    /* Brand Colors */
    --primary-blue: #0055A5;
    --primary-red: #EE3A43;
    --text-dark: #475569;
    --text-darker: #374151;
    --text-darkest: #1e293b;
    --text-light: #d1d5db;
    --text-muted: #6b7280;
    
    /* Gradients */
    --primary-gradient: linear-gradient(135deg, #0055A5, #0066CC);
    --secondary-gradient: linear-gradient(135deg, #EE3A43, #d12e37);
    --success-gradient: linear-gradient(135deg, #10b981, #059669);
    
    /* Background Colors */
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-light: #e2e8f0;
    --dark-bg: #1e293b;
    --dark-card: #334155;
    --border-color: rgba(255, 255, 255, 0.1);
    
    /* Shadows */
    --shadow-light: 0 2px 20px rgba(0, 85, 165, 0.1);
    --shadow-medium: 0 4px 15px rgba(0, 85, 165, 0.3);
    --shadow-heavy: 0 8px 25px rgba(0, 85, 165, 0.4);
    
    /* Transitions */
    --transition: all 0.3s ease;
    
    /* Button Sizing */
    --button-padding: 0.75rem 1.25rem;
    --button-font-size: 1rem;
    --button-font-weight: 600;
    --button-border-radius: 8px;
    --button-height: 44px;
}

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

html {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1a1a1a;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background: var(--bg-light);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    padding-top: 70px;
}

/* ======================
   3. TYPOGRAPHY
   ====================== */
h1 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.75rem;
    color: var(--primary-blue);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-blue);
    font-weight: 600;
}

p, li {
    margin: 0.5rem 0;
    line-height: 1.6;
}

/* ======================
   4. GLOBAL COMPONENTS
   ====================== */

/* --- Buttons --- */
button, .btn {
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

button:hover, .btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--secondary-gradient);
    color: white;
    text-decoration: none;
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(238, 58, 67, 0.3);
    border: 2px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(238, 58, 67, 0.4);
    color: white;
    text-decoration: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-3px);
}

.btn-tertiary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-tertiary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-3px);
}

.btn-cta {
    background: var(--secondary-gradient);
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(238, 58, 67, 0.25);
    display: inline-block;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(238, 58, 67, 0.35);
    color: white;
}

.btn-hero {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--primary-red);
    color: white !important;
    font-size: 1.3rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    border: none;
    cursor: pointer;
}

.btn-hero:hover {
    background-color: #c72f38;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

/* --- Forms --- */
input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    width: 100%;
    padding: 0.8rem 1rem;
    margin: 0.5rem 0 1rem;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    transition: var(--transition);
    background: white;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 85, 165, 0.1);
    transform: translateY(-1px);
}

label {
    display: block;
    font-weight: 600;
    color: var(--text-darker);
    margin-bottom: 0.3rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* --- Utility Classes --- */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 2rem;
}

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

.loading {
    pointer-events: none;
    opacity: 0.7;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
    margin-left: 0.5rem;
}

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

/* ======================
   5. HEADER & NAVIGATION
   ====================== */
.header {
    background: linear-gradient(135deg, #ffffff 0%, var(--bg-light) 100%);
    box-shadow: var(--shadow-light);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    /*background: linear-gradient(90deg, var(--primary-blue), var(--primary-red));*/
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 2rem;
}

/* --- Logo --- */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.logo a {
    display: block;
    text-decoration: none;
}

.logo-image {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.logo-fallback {
    display: none;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-darkest);
    white-space: nowrap;
}

/* --- Navigation --- */
nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-nav {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: var(--button-font-size);
    font-weight: var(--button-font-weight);
    padding: var(--button-padding);
    border-radius: var(--button-border-radius);
    transition: var(--transition);
    white-space: nowrap;
    border: 2px solid transparent;
    height: var(--button-height);
    box-sizing: border-box;
    text-align: center;
    min-width: 120px;
}

.nav-link-primary {
    background: var(--primary-gradient);
    color: white;
    border-color: var(--primary-blue);
}

.nav-link-primary:hover {
    background: var(--secondary-gradient);
    border-color: var(--primary-red);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    text-decoration: none;
}

.nav-link-secondary {
    background: transparent;
    color: var(--text-dark);
    border-color: var(--border-light);
}

.nav-link-secondary:hover {
    background: var(--secondary-gradient);
    border-color: var(--primary-red);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    text-decoration: none;
}

.nav-link-agency {
    background: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
}

.nav-link-agency:hover {
    background: var(--primary-gradient);
    border-color: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    text-decoration: none;
}

/* --- Phone Button --- */
.nav-cta {
    flex-shrink: 0;
}

.phone-link {
    background: transparent;
    color: var(--primary-red);
    border-color: var(--primary-red);
}

.phone-link:hover {
    background: var(--primary-red);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(238, 58, 67, 0.3);
    text-decoration: none;
}

.phone-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: var(--transition);
}

.phone-link:hover .phone-icon {
    transform: scale(1.1);
}

.phone-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: var(--transition);
    display: inline-block;
    background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.38028 8.85335C9.07627 10.303 10.0251 11.6616 11.2266 12.8632C12.4282 14.0648 13.7869 15.0136 15.2365 15.7096C15.3612 15.7694 15.4235 15.7994 15.5024 15.8224C15.7828 15.9041 16.127 15.8454 16.3644 15.6754C16.4313 15.6275 16.4884 15.5704 16.6027 15.4561C16.9523 15.1064 17.1271 14.9316 17.3029 14.8174C17.9658 14.3864 18.8204 14.3864 19.4833 14.8174C19.6591 14.9316 19.8339 15.1064 20.1835 15.4561L20.3783 15.6509C20.9098 16.1824 21.1755 16.4481 21.3198 16.7335C21.6069 17.301 21.6069 17.9713 21.3198 18.5389C21.1755 18.8242 20.9098 19.09 20.3783 19.6214L20.2207 19.779C19.6911 20.3087 19.4263 20.5735 19.0662 20.7757C18.6667 21.0001 18.0462 21.1615 17.588 21.1601C17.1751 21.1589 16.8928 21.0788 16.3284 20.9186C13.295 20.0576 10.4326 18.4332 8.04466 16.0452C5.65668 13.6572 4.03221 10.7948 3.17124 7.76144C3.01103 7.19699 2.93092 6.91477 2.9297 6.50182C2.92833 6.0436 3.08969 5.42311 3.31411 5.0236C3.51636 4.66357 3.78117 4.39876 4.3108 3.86913L4.46843 3.7115C4.99987 3.18006 5.2656 2.91433 5.55098 2.76999C6.11854 2.48292 6.7888 2.48292 7.35636 2.76999C7.64174 2.91433 7.90747 3.18006 8.43891 3.7115L8.63378 3.90637C8.98338 4.25597 9.15819 4.43078 9.27247 4.60655C9.70347 5.26945 9.70347 6.12403 9.27247 6.78692C9.15819 6.96269 8.98338 7.1375 8.63378 7.4871C8.51947 7.60142 8.46231 7.65857 8.41447 7.72538C8.24446 7.96281 8.18576 8.30707 8.26748 8.58743C8.29048 8.66632 8.32041 8.72866 8.38028 8.85335Z' stroke='%23EE3A43' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* Color variations for different states */
.phone-link .phone-icon {
    /* Default red color for phone icon */
    filter: none;
}

.phone-link:hover .phone-icon {
    /* White color when hovered (inverts the red to white) */
    filter: brightness(0) invert(1);
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .phone-icon {
        width: 16px;
        height: 16px;
    }
}


/* --- Mobile Menu --- */
.mobile-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.01rem;
    gap: 0.15rem;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-top: 1px solid var(--border-light);
}

.mobile-nav.active {
    display: block;
    animation: slideDown 0.3s ease-out;
}

.mobile-nav-content {
    padding: 1.5rem 2rem;
}

.mobile-nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-links li {
    margin-bottom: 0.75rem;
}

.mobile-nav-link {
    color: var(--text-darker);
    text-decoration: none;
    display: block;
    padding: 1rem;
    border-radius: 8px;
    transition: var(--transition);
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
}

.mobile-nav-link:hover {
    color: var(--primary-blue);
    background: rgba(0, 85, 165, 0.05);
    text-decoration: none;
}

.mobile-nav-primary {
    background: var(--secondary-gradient);
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
}

.mobile-nav-primary:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-2px);
}

/* ======================
   6. FOOTER
   ====================== */
.footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    position: relative;
    margin: 0;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-red));
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    padding: 0.5rem 0 1.5rem;
    align-items: center;
}

.footer-column {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo-image {
    height: 40px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-logo-fallback {
    display: none;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-red));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

.footer-logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    color: white;
}

.footer-description {
    color: #cbd5e1;
    max-width: 320px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.bbb-link {
    display: inline-block;
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition);
}

.bbb-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.bbb-logo {
    height: 60px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

.social-title {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #cbd5e1;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.social-link.facebook:hover {
    background: #1877f2;
    color: white;
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
}

.social-link.linkedin:hover {
    background: #0077b5;
    color: white;
}

.footer-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 1rem 0;
}

.footer-bottom {
    text-align: center;
    padding-bottom: 0.5rem;
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

.footer-legal {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.footer-legal a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* ======================
   7. HERO SECTIONS
   ====================== */

/* --- Partner Logos --- */
.logo-wrapper {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
    box-sizing: border-box;
}

.partner-logos {
    background: var(--bg-light);
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    width: 100%;
    position: relative;
}

.logo-track {
    display: flex;
    width: 200%;
    animation: scroll-logos 45s linear infinite;
    position: relative;
}

.logo-slide {
    display: flex;
    gap: 3rem;
    align-items: center;
    min-width: 50%;
    flex-shrink: 0;
    justify-content: space-around;
}

.logo-slide img {
    height: 40px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.logo-slide img:hover {
    transform: scale(1.05);
}

/* --- Services Section --- */
.services {
    text-align: center;
    padding: 3rem 1rem;
    background: white;
}

.services-title {
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 85, 165, 0.08);
    transition: var(--transition);
    border-left: 4px solid var(--primary-red);
    position: relative;
    overflow: hidden;
    max-width: 320px;
    text-align: center;
    flex: 1 1 300px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-red));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 85, 165, 0.15);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card h3 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-card p {
    color: #64748b;
    line-height: 1.6;
}

.service-icon {
    margin-bottom: 1rem;
}

.service-icon svg {
    display: inline-block;
    width: 48px;
    height: 48px;
}

/* --- Why Us Section --- */
.why-us {
    width: 100%;
    padding: 4rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-light) 0%, #e2e8f0 100%);
    border: none;
}

.why-us h2 {
    font-size: 2.2rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.why-us p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #000000;
}

.benefits-list {
    list-style: none;
    margin: 1.5rem 0;
}

.benefits-list li {
    margin: 1rem 0;
    font-size: 1.1rem;
    color: var(--text-darker);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* --- CTA Section --- */
.cta-section {
    text-align: center;
    background: linear-gradient(135deg, var(--primary-blue), #4f7ad8);
    color: white;
    border: none;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* ======================
   8. HOMEPAGE STYLES
   ====================== */

/* --- Homepage Hero with Background Video --- */
.hero-dynamic {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 8rem 2rem 4rem;
}

.hero-background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-bg-player {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0.55;
}

.video-overlay-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-left {
    text-align: left;
}

.hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-text {
    color: #1a1a1a;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: #ffffff !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-title-line {
    display: block;
    margin-bottom: 0.5rem;
}

.dynamic-word {
    color: var(--primary-red);
    display: block;
    min-width: 200px;
    margin-left: 0;
}

.cursor {
    color: var(--primary-red);
    animation: blink 1s infinite;
    font-weight: 400;
}

.hero-subtitle {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 3rem;
    opacity: 0.95;
    font-weight: 400;
    color: #ffffff;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.hero-stats-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 400px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 85, 165, 0.1);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 85, 165, 0.1);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 85, 165, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    display: block;
}

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

/* ======================
   9. 404 ERROR PAGE
   ====================== */
.error-hero {
    min-height: 80vh;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #003d7a 50%, var(--primary-red) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 4rem 2rem;
}

.error-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    animation: float 20s ease-in-out infinite;
}

.error-container {
    max-width: 800px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.error-content {
    text-align: center;
    color: white;
}

.error-animation {
    margin-bottom: 3rem;
    position: relative;
}

.error-number {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.digit {
    font-size: 8rem;
    font-weight: 800;
    line-height: 1;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: bounce 2s ease-in-out infinite;
}

.digit:nth-child(1) { animation-delay: 0s; }
.digit:nth-child(2) { animation-delay: 0.2s; }
.digit:nth-child(3) { animation-delay: 0.4s; }

.error-message {
    margin-bottom: 3rem;
}

.error-message h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
}

.error-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.error-actions .btn-primary svg,
.error-actions .btn-secondary svg,
.error-actions .btn-tertiary svg {
    width: 20px;
    height: 20px;
}

/* ======================
   10. AGENCY NETWORK PAGE
   ====================== */
.agency-top-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 4rem;
    padding: 2rem 0;
}

.agency-video-column {
    position: relative;
}

.agency-video-container {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 85, 165, 0.15);
    background: var(--bg-light);
    margin-left: 1rem;
}

.agency-video-player {
    width: 100%;
    height: auto;
    min-height: 300px;
    object-fit: cover;
    display: block;
}

.video-fallback {
    position: relative;
    width: 100%;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-red));
}

.fallback-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.video-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem;
}

.video-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: white !important;
}

.video-overlay p {
    font-size: 1rem;
    opacity: 0.9;
}

.agency-content-column {
    padding: 1rem 0;
}

.agency-content-column h1 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.agency-content-column p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-darker);
    margin-bottom: 1rem;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.benefit-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 85, 165, 0.08);
    transition: var(--transition);
    border-left: 4px solid var(--primary-red);
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-red));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 85, 165, 0.15);
}

.benefit-card:hover::before {
    transform: scaleX(1);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 85, 165, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.benefit-icon svg {
    width: 30px;
    height: 30px;
    color: var(--primary-blue);
}

.benefit-card h3 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.benefit-card p {
    color: #64748b;
    line-height: 1.6;
}

/* FAQ Styles */
.faq-container {
    margin: 2rem 0;
}

.faq-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 85, 165, 0.08);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: 0 8px 25px rgba(0, 85, 165, 0.12);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    cursor: pointer;
    background: white;
    transition: var(--transition);
}

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

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.faq-toggle {
    width: 24px;
    height: 24px;
    color: var(--primary-blue);
    transition: transform 0.3s ease;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
    background: var(--bg-light);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 2rem 1.5rem;
}

.faq-answer p {
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Agency Application Form */
.agency-benefits-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 85, 165, 0.05), rgba(238, 58, 67, 0.05));
    border-radius: 12px;
    border: 1px solid rgba(0, 85, 165, 0.1);
}

.benefit-check {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.agency-application-form {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 85, 165, 0.1);
    border: 1px solid var(--border-light);
    margin-top: 2rem;
}

/* ======================
   11. CAREERS PAGE
   ====================== */
.careers-top-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 4rem;
    padding: 2rem 0;
}

.careers-video-column {
    position: relative;
}

.careers-video-container {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 85, 165, 0.15);
    background: var(--bg-light);
    margin-left: 1rem;
}

.careers-video-player {
    width: 100%;
    height: auto;
    min-height: 300px;
    object-fit: cover;
    display: block;
}

.careers-content-column {
    padding: 1rem 0;
}

.careers-content-column h1 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.careers-content-column p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-darker);
}

.career-application-form {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 85, 165, 0.1);
    border: 1px solid var(--border-light);
    margin-top: 2rem;
}

.career-application-form .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.career-application-form label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-darker);
}

.career-application-form input,
.career-application-form select,
.career-application-form textarea {
    padding: 1rem;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.career-application-form input:focus,
.career-application-form select:focus,
.career-application-form textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 85, 165, 0.1);
    transform: translateY(-1px);
}

.career-application-form small {
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.career-application-form .btn-cta {
    width: 100%;
    max-width: 300px;
    margin: 2rem auto 0;
    display: block;
    text-align: center;
}

/* ======================
   12. CUSTOMER SERVICE PAGE
   ====================== */
.carrier-partners {
    background: var(--bg-light);
    padding: 4rem 2rem;
}

.carrier-partners h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 700;
}

.carrier-partners > p {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.carriers-table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 85, 165, 0.1);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.carriers-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.carriers-table thead {
    background: linear-gradient(135deg, var(--primary-blue), #0066CC);
    color: white;
}

.carriers-table th {
    padding: 1.5rem 1rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.carriers-table th:first-child {
    width: 80px;
    text-align: center;
}

.carriers-table th:nth-child(2) {
    width: 60%;
}

.carriers-table th:nth-child(3) {
    width: 25%;
    text-align: center;
}

.carrier-row {
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.carrier-row:hover {
    background: var(--bg-light);
}

.carriers-table td {
    padding: 1.5rem 1rem;
    vertical-align: middle;
}

.carrier-logo-cell {
    text-align: center;
    width: 80px;
}

.carrier-logo-cell img {
    max-height: 60px;
    max-width: 90px;
    object-fit: contain;
}

.carrier-logo-cell.placeholder {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-red));
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 6px;
    padding: 0.5rem;
    margin: 0 auto;
    width: 60px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carrier-name h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.carrier-action {
    text-align: center;
    padding: 1rem 0.5rem;
}

.carrier-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.6rem 1rem;
    background: rgba(0, 85, 165, 0.1);
    color: var(--primary-blue);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid rgba(0, 85, 165, 0.2);
    white-space: nowrap;
}

.carrier-btn:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 85, 165, 0.3);
}

/* Support Section */
.support-section {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.support-content h2 {
    font-size: 2.5rem;
    color: white !important;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.support-content p {
    font-size: 1.1rem;
    color: #d1d5db;
    max-width: 700px;
    margin: 0 auto 1rem;
    line-height: 1.7;
}

.support-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition);
}

.contact-btn.primary {
    background: var(--secondary-gradient);
    color: white;
    box-shadow: 0 6px 20px rgba(238, 58, 67, 0.3);
}

.contact-btn.primary:hover {
    background: linear-gradient(135deg, #d12e37, #b8252e);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(238, 58, 67, 0.4);
    color: white;
}

.contact-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.contact-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    color: white;
}

/* Contact Form Section */
.contact-form-section {
    background: white;
    padding: 4rem 2rem;
    text-align: center;
}

.contact-form-section h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 700;
}

.contact-form-section > p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.customer-service-form {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

/* ======================
   13. QUOTE PAGE
   ====================== */
.quote-form-section {
    padding: 4rem 2rem;
    background: var(--bg-light);
}

.quote-form-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 85, 165, 0.1);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

/* Left Column - Business Lines */
.business-lines-column {
    padding: 3rem;
    background: linear-gradient(135deg, var(--bg-light) 0%, #e2e8f0 100%);
    border-right: 1px solid var(--border-light);
}

.business-lines-column h2 {
    color: var(--primary-blue);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.business-lines-column > p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.business-lines-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.business-line-item {
    position: relative;
    background: white;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    display: block;
}

.business-line-item:hover {
    border-color: var(--primary-blue);
    background: linear-gradient(135deg, rgba(0, 85, 165, 0.08), rgba(238, 58, 67, 0.05));
    box-shadow: 0 6px 20px rgba(0, 85, 165, 0.15);
    transform: translateY(-3px);
}

.business-line-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.business-line-item input[type="checkbox"]:checked + .line-content {
    color: var(--primary-blue);
}

.business-line-item input[type="checkbox"]:checked ~ .line-checkmark {
    opacity: 1;
    transform: scale(1);
}

.line-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.line-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 85, 165, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.line-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary-blue);
}

.business-line-item:hover .line-icon {
    background: rgba(0, 85, 165, 0.2);
    transform: scale(1.05);
}

.line-details h3 {
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.line-details p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.line-checkmark {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary-blue), #0066CC);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: var(--transition);
}

.line-checkmark svg {
    width: 14px;
    height: 14px;
    color: white;
}

/* Right Column - Contact Form */
.contact-form-column {
    padding: 3rem;
}

.contact-form-column h2 {
    color: var(--primary-blue);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-form-column > p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.quote-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Disclaimer */
.disclaimer-section {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: rgba(0, 85, 165, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(0, 85, 165, 0.1);
}

.disclaimer-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Submit Button */
.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.25rem 2rem;
    background: var(--secondary-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #d12e37, #b8252e);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(238, 58, 67, 0.3);
}

.btn-submit svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.btn-submit:hover svg {
    transform: translateX(4px);
}

/* ======================
   14. LOCATIONS/AGENT FINDER PAGE
   ====================== */
.agent-finder-hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #003d7a 100%);
    color: white;
    padding: 3rem 1rem 2rem;
    width: 100%;
    display: flex;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    margin: 0;
    text-align: left;
    color: white !important;
    white-space: nowrap;
    width: 100%;
}

.agent-finder-interface {
    padding: 0;
    background: var(--bg-light);
    scroll-margin-top: 80px;
}

.finder-container {
    display: grid;
    grid-template-columns: 400px 1fr;
    min-height: 80vh;
}

/* Search Panel */
.search-panel {
    background: white;
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.search-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--border-light);
}

.search-header h2 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.search-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

.search-form {
    padding: 2rem;
}

.location-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.location-input-group input {
    flex: 1;
    min-width: 0;
}

.location-btn {
    background: rgba(0, 85, 165, 0.1);
    border: 2px solid var(--border-light);
    border-radius: 8px;
    padding: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--primary-blue);
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.location-btn:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.location-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.location-btn.loading svg {
    animation: spin 1s linear infinite;
}

.input-help-text {
    margin-top: 0.5rem;
}

/* Google Places Autocomplete Styling */
.pac-container {
    font-family: inherit !important;
    border-radius: 8px !important;
    border: 1px solid var(--border-light) !important;
    box-shadow: 0 4px 15px rgba(0, 85, 165, 0.1) !important;
    margin-top: 2px !important;
    overflow: hidden !important;
}

.pac-item {
    padding: 0.75rem 1rem !important;
    border-top: 1px solid #f1f5f9 !important;
    font-size: 0.95rem !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
}

.pac-item:first-child {
    border-top: none !important;
}

.pac-item:hover,
.pac-item-selected {
    background-color: rgba(0, 85, 165, 0.05) !important;
}

.pac-item-query {
    color: var(--primary-blue) !important;
    font-weight: 600 !important;
}

.pac-matched {
    color: var(--primary-red) !important;
    font-weight: 600 !important;
}

.pac-secondary-text {
    color: var(--text-muted) !important;
    font-size: 0.85rem !important;
}

.pac-icon {
    margin-top: 0.25rem !important;
}

/* Search Summary */
.search-summary {
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-light);
    background: rgba(0, 85, 165, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-content {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.9rem;
}

.clear-btn {
    background: none;
    border: none;
    color: var(--primary-red);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
}

.clear-btn:hover {
    text-decoration: underline;
}

/* Agents List */
.agents-list {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.agent-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 85, 165, 0.08);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.agent-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 85, 165, 0.15);
}

.agent-card.highlighted {
    border: 2px solid var(--primary-red);
    box-shadow: 0 8px 25px rgba(238, 58, 67, 0.2);
}

.agent-card-header {
    padding: 1rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.agent-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-red));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.agent-avatar.agn-office {
    background: linear-gradient(135deg, #a0b910, #059669);
}

.agent-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.agent-details h4 {
    color: var(--primary-blue);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.agent-details .agent-title {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.agent-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.meta-item {
    background: rgba(0, 85, 165, 0.1);
    color: var(--primary-blue);
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
}

.meta-item.agn-partner {
    background: rgba(16, 185, 129, 0.1);
    color: #a0b910;
}

.distance-badge {
    background: var(--secondary-gradient);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
}

/* Map Container */
.map-container {
    position: relative;
    background: var(--bg-light);
    scroll-margin-top: 100px;
}

.google-map {
    width: 100%;
    height: 100%;
    background: #e2e8f0;
}

/* Map Controls */
.map-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.map-control-btn {
    background: white;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.map-control-btn:hover,
.map-control-btn.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 85, 165, 0.3);
}

/* Map Legend */
.map-legend {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-light);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-darker);
}

.legend-item:last-child {
    margin-bottom: 0;
}

.legend-marker {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.legend-marker.main-office {
    background: var(--primary-red);
}

.legend-marker.branch-office {
    background: var(--primary-blue);
}

.legend-marker.agn-office {
    background: #a0b910;
}

.legend-marker.user-location {
    background: #010100;
}

/* Agent Finder CTA */
.agent-finder-cta {
    background: linear-gradient(135deg, var(--bg-light) 0%, #e2e8f0 100%);
    padding: 4rem 2rem;
    text-align: center;
}

.cta-content h2 {
    color: var(--primary-blue);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

.cta-btn.primary:hover {
    background: linear-gradient(135deg, #d12e37, #b8252e);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(238, 58, 67, 0.3);
}

.cta-btn.secondary {
    background: rgba(0, 85, 165, 0.1);
    color: var(--primary-blue);
    border: 2px solid rgba(0, 85, 165, 0.2);
}

.cta-btn.secondary:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

/* Agent Modal */
.agent-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--primary-red);
}

.modal-body {
    padding: 2rem;
}

.modal-agent-info {
    background: rgba(0, 85, 165, 0.05);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 85, 165, 0.1);
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-blue), #0066CC);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #003d7a, var(--primary-blue));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 85, 165, 0.3);
}

/* ======================
   15. PRIVACY POLICY PAGE
   ====================== */
.policy-header {
    text-align: center;
    padding: 2rem 0;
    border-bottom: 3px solid;
    border-image: linear-gradient(90deg, var(--primary-blue), var(--primary-red)) 1;
    margin-bottom: 2rem;
}

.policy-header h1 {
    font-size: 3rem;
    color: var(--primary-blue);
    font-weight: 800;
    margin-bottom: 1rem;
}

.policy-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.policy-meta p {
    color: var(--text-muted);
    font-weight: 600;
    margin: 0;
    padding: 0.5rem 1rem;
    background: rgba(0, 85, 165, 0.05);
    border-radius: 8px;
}

/* Enhanced Section Styling */
section {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 85, 165, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    /*background: linear-gradient(90deg, var(--primary-blue), var(--primary-red));*/
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

section:hover {
    box-shadow: 0 8px 25px rgba(0, 85, 165, 0.1);
    transform: translateY(-2px);
}

section:hover::before {
    transform: scaleX(1);
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    /*background: linear-gradient(90deg, var(--primary-blue), var(--primary-red));*/
    border-radius: 2px;
}

/* List Styling */
.policy-list {
    background: rgba(0, 85, 165, 0.02);
    border-left: 4px solid var(--primary-blue);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.policy-list li {
    color: var(--text-darker);
    line-height: 1.7;
    margin-bottom: 1rem;
    padding-left: 0.5rem;
}

.policy-list li:last-child {
    margin-bottom: 0;
}

/* Special Highlight Boxes */
.policy-highlight {
    background: linear-gradient(135deg, rgba(0, 85, 165, 0.05), rgba(238, 58, 67, 0.05));
    border: 2px solid rgba(0, 85, 165, 0.1);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.policy-highlight h3 {
    color: var(--primary-blue);
    margin-top: 0;
    margin-bottom: 1rem;
}

.policy-note {
    background: rgba(238, 58, 67, 0.02);
    border-left: 4px solid var(--primary-red);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.policy-note h3 {
    color: var(--primary-red);
    margin-top: 0;
}

.policy-protection {
    background: rgba(34, 197, 94, 0.05);
    border: 2px solid rgba(34, 197, 94, 0.2);
    border-radius: 12px;
    padding: 2rem;
    margin: 1.5rem 0;
}

.policy-protection p:last-child {
    margin-bottom: 0;
}

/* SMS Policy Styling */
.sms-policy {
    background: rgba(147, 51, 234, 0.05);
    border: 1px solid rgba(147, 51, 234, 0.2);
    border-radius: 12px;
    padding: 2rem;
    margin: 1.5rem 0;
}

.opt-out-instructions {
    background: rgba(34, 197, 94, 0.05);
    border: 2px solid rgba(34, 197, 94, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.opt-out-instructions p {
    margin-bottom: 0;
    font-weight: 600;
}

/* Security Section */
.security-section {
    background: rgba(239, 68, 68, 0.05);
    border: 2px solid rgba(239, 68, 68, 0.1);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
}

.security-section::before {
    content: '🔒';
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    opacity: 0.3;
}

/* Contact Information Styling */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-method {
    background: rgba(0, 85, 165, 0.02);
    border: 1px solid rgba(0, 85, 165, 0.1);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.contact-method:hover {
    background: rgba(0, 85, 165, 0.05);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 85, 165, 0.1);
}

.contact-method h3 {
    color: var(--primary-blue);
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.contact-method a {
    color: var(--primary-red);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-method a:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

/* ======================
   16. SHARED COMPONENTS
   ====================== */
section a {
    color: var(--primary-red);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

section a:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes scroll-logos {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ======================
   18. RESPONSIVE DESIGN
   ====================== */

/* Tablet Styles */
@media (max-width: 1024px) {
    body {
        padding-top: 60px;
    }

    .nav-container {
        gap: 1rem;
        height: 60px;
    }
    
    .main-nav {
        gap: 1rem;
    }
    
    .nav-link {
        min-width: 100px;
        padding: 0.6rem 1rem;
        font-size: 0.95rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }
    
    .dynamic-word {
        min-width: 180px;
    }
    
    .hero-content {
        gap: 3rem;
    }

    .quote-form-container {
        grid-template-columns: 1fr;
    }

    .business-lines-column {
        border-right: none;
        border-bottom: 1px solid var(--border-light);
    }

    .finder-container {
        grid-template-columns: 350px 1fr;
    }

    .agency-top-section,
    .careers-top-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }

    .agency-content-column,
    .careers-content-column {
        padding: 1.5rem 1.5rem; /* Generous side padding for mobile */
    }
    
    /* Ensure titles and text have proper spacing */
    .agency-content-column h1,
    .careers-content-column h1 {
        margin-bottom: 1.5rem;
        line-height: 1.3; /* Improve line height for mobile */
    }
    
    .agency-content-column p,
    .careers-content-column p {
        margin-bottom: 1.2rem;
        line-height: 1.6; /* Better readability */
    }

    .agency-video-container {
        margin-left: 0; /* Remove the desktop left margin */
        margin-right: 0; /* Reset right margin */
        margin: 0 1rem; /* Add equal margins on both sides */
        width: calc(100% - 2rem); /* Account for the side margins */
    }

    .careers-video-container {
        margin-left: 0; /* Remove the desktop left margin */
        margin-right: 0; /* Reset right margin */
        margin: 0 1rem; /* Add equal margins on both sides */
        width: calc(100% - 2rem); /* Account for the side margins */
    }

    .hero-content h1 {
        font-size: 1.8rem;
        font-weight: 800;
        margin: 0;
        text-align: center;
        color: white !important;
        white-space: nowrap;
        width: 100%;
    }

    .nav-container {
        padding: 0 1rem;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .logo-image {
        height: 40px;
    }
    
    nav, .main-nav {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .phone-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
        height: 40px;
        min-width: auto;
    }
    
    .phone-icon {
        width: 16px;
        height: 16px;
    }

    .hero-dynamic {
        padding: 2rem 1rem;
        min-height: 90vh;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        /* gap: 3rem; */
        padding: 1rem;
        text-align: center;
    }
    
    .hero-left {
        text-align: center;
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 1.5rem;
        line-height: 1.2;
        align-items: center;
    }
    
    .dynamic-word {
        min-width: 160px;
    }
    
    .hero-subtitle {
        font-size: clamp(0.9rem, 4vw, 1.1rem);
        margin-bottom: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        justify-content: center;
    }
    
    .btn-primary {
        width: 100%;
        max-width: 300px;
        padding: 1rem 2rem;
        justify-content: center;
    }

    .hero-video .btn-hero {
        font-size: 1.1rem;
        padding: 0.8rem 2rem;
    }

    .container {
        width: 95%;
        padding: 1rem 0;
    }

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

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .partner-logos {
        padding: 1rem 0;
    }
    
    .logo-slide {
        gap: 1.5rem;
    }

    .logo-slide img {
        height: 30px;
        max-width: 80px;
    }

    .finder-container {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .search-panel {
        border-right: none;
        border-bottom: 1px solid var(--border-light);
        max-height: 50vh;
    }

    .map-container {
        min-height: 50vh;
    }

    .map-controls {
        top: 0.5rem;
        right: 0.5rem;
    }

    .map-control-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .map-legend {
        bottom: 0.5rem;
        left: 0.5rem;
        padding: 0.75rem;
    }

    .legend-item {
        font-size: 0.8rem;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .cta-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .agency-benefits-preview {
        flex-direction: column;
        text-align: center;
    }

    .agency-application-form,
    .career-application-form,
    .customer-service-form {
        padding: 2rem;
    }

    .business-lines-column,
    .contact-form-column {
        padding: 2rem;
    }

    .business-line-item {
        padding: 1rem;
    }

    .line-icon {
        width: 40px;
        height: 40px;
    }

    .line-icon svg {
        width: 20px;
        height: 20px;
    }

    .disclaimer-section {
        padding: 1rem;
    }

    .disclaimer-checkbox {
        gap: 0.75rem;
    }

    .disclaimer-text {
        font-size: 0.8rem;
    }

    .carriers-table-container {
        overflow-x: auto;
    }

    .carriers-table {
        min-width: 400px;
    }

    .carriers-table th,
    .carriers-table td {
        padding: 1rem 0.5rem;
        font-size: 0.85rem;
    }

    .carrier-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .carrier-name h3 {
        font-size: 0.85rem;
        font-weight: 700;
        color: #1f2937;
        margin: 0;
    }

    .support-actions {
        flex-direction: column;
        align-items: center;
    }

    .contact-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .policy-meta {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .policy-header h1 {
        font-size: 2.2rem;
    }
    
    section {
        padding: 2rem;
    }
    
    section h2 {
        font-size: 1.6rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-method {
        padding: 1.5rem;
    }

    .pac-container {
        width: 100% !important;
        left: 0 !important;
    }
    
    .pac-item {
        padding: 1rem 0.75rem !important;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    body {
        padding-top: 50px;
    }

    .agency-content-column,
    .careers-content-column {
        padding: 2rem 1.25rem; /* More breathing room */
    }

        /* Adjust font sizes slightly for better mobile experience */
    .agency-content-column h1,
    .careers-content-column h1 {
        font-size: 2rem; /* Slightly smaller on small screens */
        margin-bottom: 1.25rem;
    }
    
    .agency-content-column p,
    .careers-content-column p {
        font-size: 1rem; /* Ensure readable size */
        margin-bottom: 1rem;
    }

    .agency-video-container {
        margin: 0 0.5rem; /* Slightly smaller margins on very small screens */
        width: calc(100% - 1.5rem); /* Adjust width accordingly */
    }

    .careers-video-container {
        margin: 0 0.5rem; /* Slightly smaller margins on very small screens */
        width: calc(100% - 1.5rem); /* Adjust width accordingly */
    }

    .hero-content h1 {
        font-size: 1.2rem;
        font-weight: 800;
        margin: 0;
        text-align: center;
        color: white !important;
        white-space: nowrap;
        width: 100%;
    }

    .nav-container {
        height: 50px;
        padding: 0 0.5rem;
    }
    
    .logo-image {
        height: 25px;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .phone-link {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
    
    .phone-icon {
        width: 16px;
        height: 16px;
    }
    
    .mobile-nav-content {
        padding: 1rem;
    }

    .hero-dynamic {
        padding: 5rem 0.5rem 2rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .dynamic-word {
        min-width: 120px;
        font-size: 0.9em;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn-primary {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }

    .hero-video .btn-hero {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }

    .btn-hero, .btn-cta {
        width: 100%;
        max-width: 300px;
        padding: 1rem;
    }

    .hero-stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        max-width: 300px;
    }
    
    .stat-card {
        padding: 1rem 0.8rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
        margin-bottom: 0.3rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }

    .hero-bg-player {
        opacity: 0.55;
        filter: blur(2px);
    }

    .logo-wrapper {
        padding: 0 0.5rem;
    }
    
    .logo-slide {
        gap: 1rem;
    }

    .logo-slide img {
        height: 24px;
        max-width: 60px;
    }
    
    .logo-track {
        animation: scroll-logos 40s linear infinite;
    }

    .digit {
        font-size: 5rem;
    }

    .error-message h1 {
        font-size: 2rem;
    }

    .error-description {
        font-size: 1rem;
    }

    .error-actions {
        flex-direction: column;
        align-items: center;
    }

    .error-actions .btn-primary,
    .error-actions .btn-secondary,
    .error-actions .btn-tertiary {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }

    .error-hero {
        padding: 3rem 1rem;
    }

    .digit {
        font-size: 4rem;
    }

    .error-message h1 {
        font-size: 1.8rem;
    }

    .search-header,
    .search-form {
        padding: 1rem;
    }

    .modal-content {
        margin: 1rem;
        max-height: 95vh;
    }

    .modal-header,
    .modal-body {
        padding: 1rem;
    }

    .map-controls {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .map-control-btn {
        font-size: 0.75rem;
        padding: 0.5rem;
    }

    .location-input-group {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    
    .location-btn {
        width: 100% !important;
        justify-content: center !important;
    }
    
    .pac-item {
        font-size: 0.9rem !important;
    }

    .business-lines-column,
    .contact-form-column {
        padding: 1.5rem;
    }

    .business-line-item {
        padding: 1rem;
    }

    .line-content {
        gap: 0.75rem;
    }

    .line-details h3 {
        font-size: 1rem;
    }

    .line-details p {
        font-size: 0.85rem;
    }

    .btn-submit {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .agency-top-section,
    .careers-top-section {
        gap: 1.5rem;
    }
    
    .agency-content-column h1,
    .careers-content-column h1 {
        font-size: 1.8rem;
        padding: 1rem 0;
    }
    
    .agency-application-form,
    .career-application-form {
        padding: 1.5rem;
    }

    .benefit-card {
        padding: 1.5rem;
    }

    .faq-question {
        padding: 1rem 1.5rem;
    }

    .carriers-table {
        min-width: 350px;
    }

    .carriers-table th:first-child,
    .carrier-logo-cell {
        width: 60px;
    }

    .carrier-logo-cell.placeholder {
        width: 50px;
        height: 30px;
        font-size: 0.7rem;
    }

    .carrier-logo-cell img {
        max-height: 30px;
        max-width: 50px;
    }

    .carrier-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }

    .carriers-table th,
    .carriers-table td {
        padding: 0.75rem 0.25rem;
    }

    .carrier-partners,
    .support-section,
    .contact-form-section {
        padding: 3rem 1rem;
    }

    .policy-header h1 {
        font-size: 1.8rem;
    }
    
    section {
        padding: 1.5rem;
    }
    
    section h2 {
        font-size: 1.4rem;
    }
    
    .policy-highlight,
    .policy-note,
    .policy-protection,
    .sms-policy,
    .security-section {
        padding: 1.5rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.8rem;
        line-height: 2.2rem;
    }

    .agency-content-column,
    .careers-content-column {
        padding: 1.5rem 1rem; /* Balanced spacing for very small screens */
    }
    
    .agency-content-column h1,
    .careers-content-column h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .hero-content h1 {
        font-size: 1.2rem;
        font-weight: 800;
        margin: 0;
        text-align: center;
        color: white !important;
        white-space: nowrap;
        width: 100%;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-actions {
        margin-top: 1.2rem;
    }

    .hero-dynamic {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .dynamic-word {
        min-width: 100px;
    }

    .stat-card {
        padding: 0.8rem;
    }

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

    .service-card {
        padding: 1.5rem;
    }

    .benefit-card {
        padding: 1rem;
    }

    .contact-method {
        padding: 1rem;
    }
}

/* ======================
   19. PRINT STYLES
   ====================== */
@media print {
    body {
        padding-top: 0;
        background: white;
        color: black;
    }

    .header,
    .footer,
    .mobile-nav,
    .map-container,
    .video-fallback,
    .hero-background-video,
    .agency-video-container,
    .careers-video-container {
        display: none !important;
    }

    section {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .policy-header {
        border-bottom: 2px solid #000;
    }
    
    section::before {
        display: none;
    }

    .hero-dynamic {
        min-height: auto;
        padding: 2rem;
        background: white;
    }

    .hero-title {
        color: black !important;
    }

    .hero-subtitle {
        color: black !important;
    }

    .btn-primary,
    .btn-secondary,
    .btn-cta {
        border: 2px solid black;
        background: white;
        color: black;
    }

    a {
        color: black;
        text-decoration: underline;
    }

    .contact-info {
        page-break-inside: avoid;
    }

    .carriers-table {
        font-size: 0.8rem;
    }

    .carriers-table th,
    .carriers-table td {
        padding: 0.5rem;
    }
}

/* ======================
   20. HIGH CONTRAST MODE
   ====================== */
@media (prefers-contrast: high) {
    :root {
        --primary-blue: #003366;
        --primary-red: #CC0000;
        --text-dark: #000000;
        --border-light: #000000;
    }

    .service-card,
    .benefit-card,
    .agent-card {
        border: 2px solid #000000;
    }

    .btn-primary,
    .btn-secondary,
    .btn-cta {
        border: 2px solid #000000;
    }
}

/* ======================
   21. REDUCED MOTION
   ====================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero-bg-player {
        display: none;
    }
    
    .video-overlay-bg {
        background: linear-gradient(135deg, #ffffff 0%, var(--bg-light) 100%);
    }

    .logo-track {
        animation: none;
    }

    .loading::after {
        animation: none;
    }

    .digit {
        animation: none;
    }

    .error-hero::before {
        animation: none;
    }
}


/* ======================
   23. FOCUS STATES FOR ACCESSIBILITY
   ====================== */
.nav-link:focus,
.phone-link:focus,
.btn-primary:focus,
.btn-secondary:focus,
.btn-cta:focus,
.btn-hero:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

.mobile-toggle:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

.business-line-item:focus-within {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

.faq-question:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* ======================
   24. SKIP LINKS
   ====================== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-blue);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 9999;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

/* ======================
   25. ERROR STATES
   ====================== */
.field-error {
    color: #dc2626;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}

input.error,
textarea.error,
select.error {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* ======================
   26. SUCCESS STATES
   ====================== */
.success-message {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #065f46;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.success-message svg {
    color: #10b981;
}

/* ======================
   27. LOADING STATES
   ====================== */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

.loading-shimmer {
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
    background-size: 400% 400%;
    animation: loading-shimmer 2s ease-in-out infinite;
}

@keyframes loading-shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}