/* 
 * Trust Guard Auto - Professional Landing Page Styles
 * Clean, accessible design for regulated insurance industry
 */

:root {
    /* Color Palette - Professional & Trustworthy */
    --color-primary: #0f172a;
    --color-primary-dark: #020617;
    --color-accent: #2563eb;
    --color-accent-light: #3b82f6;
    --color-neutral-100: #f8fafc;
    --color-neutral-200: #f1f5f9;
    --color-neutral-700: #334155;
    --color-neutral-900: #0f172a;
    --color-white: #ffffff;
    --color-success: #10b981;
    --color-error: #ef4444;
    
    /* Spacing Scale (8px base) */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-primary-dark);
    background-color: var(--color-white);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-primary);
    margin-bottom: var(--space-4);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: var(--space-4);
}

.text-accent {
    color: var(--color-accent);
}

/* Layout */
.container {
    max-width: 1200px;
    padding-left: var(--space-4);
    padding-right: var(--space-4);
    margin: 0 auto;
}

.section-py {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
}

@media (max-width: 768px) {
    .section-py {
        padding-top: var(--space-12);
        padding-bottom: var(--space-12);
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
}

/* Navigation */
.navbar {
    background-color: var(--color-white);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    padding: var(--space-3) 0;
    transition: all 250ms ease;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar.scrolled {
    padding: var(--space-2) 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-primary);
    text-decoration: none;
}

.logo-img {
    height: 48px;
    width: auto;
    min-width: 220px; /* Significantly increased width */
    max-width: 280px;
    object-fit: contain;
}

.nav-link {
    color: var(--color-neutral-700) !important;
    font-weight: 500;
    padding: var(--space-2) var(--space-3) !important;
    border-radius: var(--radius-md);
    transition: all 150ms ease;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--color-accent) !important;
    background-color: var(--color-neutral-100);
}

/* Hero Section */
.hero-section {
    padding-top: calc(64px + 48px); /* space-16 + space-12 without var() in calc */
    padding-bottom: var(--space-16);
    background: linear-gradient(135deg, var(--color-primary) 0%, #1e293b 100%);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/tg_hero_executive.png');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    color: var(--color-white);
    font-size: 2.75rem;
    line-height: 1.1;
    margin-bottom: var(--space-6);
}

.hero-lead {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-6);
    line-height: 1.6;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    color: var(--color-white);
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.trust-badge i {
    color: var(--color-accent-light);
}

.disclaimer-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--color-accent);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-6);
}

.disclaimer-card i {
    color: var(--color-accent);
}

.stat-counter {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: var(--space-2);
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

/* Form Styles - SIGNIFICANTLY INCREASED WIDTH */
.form-container {
    position: relative;
    z-index: 10;
    width: 100%;
}

.form-card {
    background-color: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 540px; /* Significantly increased width */
    margin: 0 auto;
}

.form-title {
    text-align: center;
    color: var(--color-primary);
    margin-bottom: var(--space-2);
    font-size: 1.75rem;
}

.form-subtitle {
    text-align: center;
    color: var(--color-neutral-700);
    margin-bottom: var(--space-6);
    font-size: 1rem;
}

.form-label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: 500;
    color: var(--color-primary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-control, .form-select {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 2px solid var(--color-neutral-200);
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 150ms ease;
    background-color: var(--color-white);
}

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control::placeholder {
    color: var(--color-neutral-700);
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: var(--space-1);
    font-size: 0.875rem;
    color: var(--color-error);
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: var(--color-error);
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-control.is-invalid ~ .invalid-feedback,
.form-select.is-invalid ~ .invalid-feedback {
    display: block;
}

/* Consent Checkbox - WCAG Compliant */
.consent-checkbox {
    background-color: var(--color-neutral-100);
    border: 2px solid var(--color-neutral-200);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin-top: var(--space-2);
}

.consent-checkbox:hover {
    border-color: var(--color-accent);
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.25rem;
    margin-right: var(--space-2);
    border: 2px solid var(--color-neutral-700);
    cursor: pointer;
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-check-input:checked {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}

.form-check-label {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--color-neutral-900);
    cursor: pointer;
}

.form-check-label a {
    color: var(--color-accent);
    text-decoration: underline;
}

.form-check-label a:hover {
    text-decoration: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-6);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 150ms ease;
    white-space: nowrap;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--color-accent-light);
    border-color: var(--color-accent-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-accent {
    background-color: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
}

.btn-accent:hover,
.btn-accent:focus {
    background-color: var(--color-accent);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-outline-light {
    background-color: transparent;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover,
.btn-outline-light:focus {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    border-color: var(--color-white);
}

/* Process Cards */
.process-card {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    height: 100%;
    border: 1px solid var(--color-neutral-200);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 250ms ease;
    position: relative;
}

.process-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.step-number {
    position: absolute;
    top: -16px;
    left: var(--space-6);
    width: 40px;
    height: 40px;
    background-color: var(--color-accent);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.step-image {
    width: 100%;
    height: 200px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: var(--space-4);
}

.step-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 350ms ease;
}

.process-card:hover .step-image img {
    transform: scale(1.05);
}

/* Feature Cards */
.feature-card {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    height: 100%;
    border: 1px solid var(--color-neutral-200);
    text-align: center;
    transition: all 250ms ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: var(--color-accent);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: var(--color-accent);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-4);
    color: var(--color-white);
    font-size: 1.5rem;
}

.feature-card h5 {
    color: var(--color-primary);
}

/* FAQ */
.faq-item {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    margin-bottom: var(--space-4);
    border: 1px solid var(--color-neutral-200);
    transition: all 150ms ease;
}

.faq-item:hover {
    border-color: var(--color-accent);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.faq-item h5 {
    color: var(--color-primary);
    display: flex;
    align-items: flex-start;
}

.faq-item h5 i {
    color: var(--color-accent);
    margin-top: 0.25rem;
}

/* Alerts */
.alert-message {
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    border: none;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    border-left: 4px solid var(--color-success);
    color: #065f46;
}

.alert-success i {
    color: var(--color-success);
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    border-left: 4px solid var(--color-error);
    color: #991b1b;
}

.alert-danger i {
    color: var(--color-error);
}

/* Footer */
.footer {
    background-color: var(--color-primary);
    color: rgba(255, 255, 255, 0.9);
    padding-top: var(--space-16);
    padding-bottom: var(--space-8);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-white);
    text-decoration: none;
    margin-bottom: var(--space-4);
}

.footer-disclaimer {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    line-height: 1.6;
    max-width: 600px;
}

.footer h5 {
    color: var(--color-white);
    margin-bottom: var(--space-4);
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 150ms ease;
}

.footer-links a:hover {
    color: var(--color-white);
    padding-left: var(--space-1);
}

.footer-links a i {
    font-size: 0.75rem;
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: var(--space-8) 0;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    width: 48px;
    height: 48px;
    background-color: var(--color-accent);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 250ms ease;
    z-index: 1000;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.back-to-top.show {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--color-accent-light);
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Loading State */
.loading-spinner {
    display: none;
    align-items: center;
}

/* Utility Classes */
.bg-light {
    background-color: var(--color-neutral-100) !important;
}

.bg-white {
    background-color: var(--color-white) !important;
}

.small {
    font-size: 0.875rem;
}

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

.text-muted {
    color: var(--color-neutral-700) !important;
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-4);
}

.section-subtitle {
    text-align: center;
    color: var(--color-neutral-700);
    max-width: 600px;
    margin: 0 auto var(--space-8);
}

/* Focus Styles for Accessibility */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Skip to Main Content Link */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-accent);
    color: white;
    padding: var(--space-2) var(--space-4);
    z-index: 9999;
    text-decoration: none;
    border-radius: 0 0 var(--radius-md) 0;
}

.skip-to-content:focus {
    top: 0;
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .back-to-top,
    .sticky-cta {
        display: none;
    }
    
    .hero-section {
        background: none !important;
        color: #000 !important;
    }
    
    .form-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Mobile responsiveness for form and logo */
@media (max-width: 768px) {
    .form-card {
        max-width: 100%;
        padding: var(--space-6);
    }
    
    .logo-img {
        height: 40px;
        min-width: 180px; /* Adjusted for mobile */
        max-width: 240px;
    }
    
    .hero-section {
        padding-top: calc(48px + 40px); /* Adjusted for mobile */
    }
}

/* Extra large screens - optimize form width */
@media (min-width: 1200px) {
    .form-card {
        max-width: 560px; /* Slightly larger on very large screens */
    }
}

/* Medium screens adjustment */
@media (max-width: 992px) and (min-width: 768px) {
    .form-card {
        max-width: 500px; /* Slightly reduced for tablet */
    }
}
/* FORM WIDTH FIX - Force increase */
.col-lg-6.form-column {
    flex: 0 0 58.333333% !important; /* Increase from 50% to 58.33% */
    max-width: 58.333333% !important;
    width: 100%;
}

.form-container {
    position: relative;
    z-index: 10;
    width: 100%;
}

.form-card {
    background-color: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 580px !important; /* Force increased width */
    margin: 0 auto;
}

/* Hero content column adjustment */
.col-lg-6.hero-content-column {
    flex: 0 0 41.666667% !important; /* Decrease from 50% to 41.67% */
    max-width: 41.666667% !important;
}

/* Mobile adjustments */
@media (max-width: 992px) {
    .col-lg-6.form-column,
    .col-lg-6.hero-content-column {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    .form-card {
        max-width: 100% !important;
        padding: var(--space-6);
    }
}

/* Extra large screens */
@media (min-width: 1400px) {
    .form-card {
        max-width: 620px !important; /* Even larger on big screens */
    }
}
/* FORCE FORM WIDTH INCREASE - Add this to your existing CSS */
@media (min-width: 992px) {
    .hero-section .row > .col-lg-6:nth-child(2) {
        flex: 0 0 58% !important;
        max-width: 58% !important;
    }
    
    .hero-section .row > .col-lg-6:nth-child(1) {
        flex: 0 0 42% !important;
        max-width: 42% !important;
    }
    
    .hero-section .form-card {
        max-width: 580px !important;
        margin-left: auto;
        margin-right: 0;
    }
}

@media (min-width: 1200px) {
    .hero-section .form-card {
        max-width: 600px !important;
    }
}

@media (min-width: 1400px) {
    .hero-section .form-card {
        max-width: 620px !important;
    }
}

/* Ensure form doesn't get too wide on mobile */
@media (max-width: 991px) {
    .hero-section .form-card {
        max-width: 100% !important;
    }
}
/* LOGO WIDTH FIX */
.logo-img {
    height: 48px;
    width: auto;
    min-width: 240px !important; /* Force increased width */
    max-width: 300px !important;
    object-fit: contain;
}

@media (max-width: 768px) {
    .logo-img {
        height: 40px;
        min-width: 200px !important;
        max-width: 260px !important;
    }
}