/* ==========================================================================
   VEHICLE ACCIDENT PRO - SOOTHING & SMOOTH THEME
   Soft Ocean Blue, Coral Accents, Airy Whites
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Soothing Color Palette */
    --primary: #2A75D3;        /* Soft Ocean Blue */
    --primary-light: #4A90E2;
    --primary-bg: #E6F0FA;     /* Very light blue background */
    --accent: #FF7E67;         /* Gentle Coral */
    --accent-hover: #FF6B52;
    
    --white: #FFFFFF;
    --off-white: #F4F7FB;      /* Soft cool gray/blue */
    --text-dark: #2C3E50;      /* Soft dark blue/gray instead of harsh black */
    --text-light: #7F8C8D;     /* Smooth gray */
    --border: #E1E8ED;
    
    /* Typography - Zoomed out feel */
    --font-main: 'Outfit', system-ui, -apple-system, sans-serif;
    
    /* Soft Shapes */
    --radius-sm: 8px;
    --radius-md: 16px;         /* Very rounded corners */
    --radius-lg: 24px;
    --radius-pill: 50px;
    
    /* Smooth Shadows */
    --shadow-soft: 0 10px 30px rgba(42, 117, 211, 0.08);
    --shadow-hover: 0 15px 35px rgba(42, 117, 211, 0.12);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* Base Styles & "Zoom Out" logic */
html {
    font-size: 15px; /* Base font size reduced to zoom out the layout */
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--off-white);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
}

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

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

/* Layout Containers */
.container {
    width: 100%;
    max-width: 1300px; /* Widened for zoomed out feel */
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem var(--space-md);
    max-width: 1400px;
    margin: 0 auto;
}

.logo-link img {
    height: 40px;
}

.nav-menu {
    display: flex;
    gap: var(--space-lg);
    list-style: none;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-menu a:hover::after, .nav-menu a.active::after {
    width: 100%;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--primary);
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: var(--radius-pill);
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 126, 103, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 126, 103, 0.4);
    color: var(--white);
}

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

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

/* Hero Section */
.hero {
    position: relative;
    padding: 180px 0 100px;
    /* Soft bright driving image */
    background: url('https://images.unsplash.com/photo-1541899481282-d53bffe3c35d?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Dramatically less fade to show image clearly */
    background: linear-gradient(90deg, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.5) 30%, transparent 60%);
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-xl);
}

.hero-text {
    flex: 1.2;
}

.hero-title {
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: var(--space-sm);
    color: var(--text-dark);
}

.hero-title span {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-dark); /* Darkened for better readability on lighter background */
    margin-bottom: var(--space-lg);
    max-width: 90%;
    font-weight: 400;
}

.trust-badges {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); /* Stronger shadow */
}

/* Form Styling */
.hero-form-area {
    flex: 0.8;
    max-width: 500px;
}

.form-card {
    background: var(--white);
    border-radius: var(--radius-md); /* Less extremely rounded */
    padding: 0; /* Remove padding to add a colored header */
    box-shadow: 0 20px 40px rgba(0,0,0,0.1); /* Stronger shadow so it pops */
    position: relative;
    overflow: hidden;
}

.form-header {
    background: var(--primary);
    padding: var(--space-md);
    text-align: center;
}

.form-title {
    font-size: 1.5rem;
    color: var(--white); /* White text in the blue header */
    margin: 0;
}

.form-body {
    padding: var(--space-lg);
}

.form-step {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-step.active {
    display: block;
    opacity: 1;
}

/* Form Loader Animation */
.form-loader {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    text-align: center;
}

.form-loader.active {
    display: flex;
    animation: fadeIn 0.3s ease forwards;
}

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

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--primary-bg);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 20px;
}

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

.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 500;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #CBD5E1; /* Cleaner border */
    border-radius: 8px; /* Classic radius */
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--white); /* Pure white background */
    transition: var(--transition);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.03); /* Slight inset shadow */
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-bg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.form-row .form-group {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        margin-bottom: 0;
    }
    .form-row .form-group {
        margin-bottom: 24px;
    }
}

.radio-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}

.radio-option {
    cursor: pointer;
    position: relative;
}

.radio-option input {
    position: absolute;
    opacity: 0;
}

.radio-box {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: var(--white);
    border: 1px solid #CBD5E1; /* Cleaner border */
    border-radius: 8px; /* Classic radius */
    font-weight: 500;
    color: var(--text-dark); /* Darker text */
    transition: var(--transition);
}

.radio-option:hover .radio-box {
    border-color: var(--primary-light);
    background: var(--off-white);
}

.radio-option input:checked + .radio-box {
    background: var(--primary-bg);
    border-color: var(--primary);
    color: var(--primary);
}

.checkbox-group {
    margin: var(--space-md) 0;
}

.checkbox-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-light);
    cursor: pointer;
}

.checkbox-option input {
    margin-top: 4px;
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
}

.alert-error {
    background: #FFEBE8;
    color: #E74C3C;
    padding: 12px;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Sections */
.section {
    padding: var(--space-2xl) 0;
}

.section-white { background: var(--white); }
.section-light { background: var(--off-white); }
.section-blue { background: var(--primary-bg); }

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.8rem;
    color: var(--text-dark);
}

.section-desc {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-top: var(--space-sm);
}

/* How It Works Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.step-card {
    background: var(--white);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    text-align: center;
    position: relative;
    transition: var(--transition);
}

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

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-bg);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto var(--space-md);
}

/* Why Us Split */
.split-content {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.split-text {
    flex: 1;
}

.split-image {
    flex: 1;
}

.split-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.feature-list {
    list-style: none;
    margin-top: var(--space-md);
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: var(--space-sm);
    font-size: 1.1rem;
}

.feature-list i {
    color: var(--primary);
    margin-top: 4px;
}

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

.faq-item {
    background: var(--white);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    padding: var(--space-md);
    box-shadow: var(--shadow-soft);
}

.faq-q {
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: var(--space-xs);
}

.faq-a {
    color: var(--text-light);
}

/* Legal Pages */
.legal-page {
    padding: 160px 0 var(--space-2xl);
}

.legal-content {
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: var(--space-lg);
    color: var(--primary);
    text-align: center;
}

.legal-content h2 {
    font-size: 1.8rem;
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.legal-content p, .legal-content li {
    margin-bottom: var(--space-sm);
    color: var(--text-light);
}

.legal-content a {
    color: var(--primary);
    text-decoration: underline;
}

.marketing-partners-list {
    column-count: 3;
    list-style: none;
}

.marketing-partners-list li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background: var(--white);
    padding: var(--space-2xl) 0 var(--space-md);
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.footer-title {
    font-size: 1.1rem;
    margin-bottom: var(--space-md);
}

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

.footer-links li {
    margin-bottom: var(--space-xs);
}

.footer-links a {
    color: var(--text-light);
}

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

.footer-bottom {
    text-align: center;
    padding-top: var(--space-md);
    border-top: 1px solid var(--border);
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container, .split-content {
        flex-direction: column;
        text-align: center;
    }
    .hero-text, .hero-form-area {
        width: 100%;
        max-width: 100%;
    }
    .trust-badges {
        justify-content: center;
        flex-wrap: wrap;
    }
    .steps-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .form-row, .radio-group {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .marketing-partners-list {
        column-count: 1;
    }
}
