:root {
    /* Force a light color scheme so Chrome/Android (and TWA) auto-dark mode
       does not invert our light-only UI into black boxes with white text. */
    color-scheme: light only;
    
    /* Color Palette - Figma SaaS Vibe */
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --secondary-color: #0f172a;
    --border-color: #e2e8f0;
    
    /* Brand Accent Colors */
    --accent-blue: #3b82f6;
    --accent-blue-light: #eff6ff;
    --accent-green: #10b981;
    --accent-green-light: #ecfdf5;
    --accent-purple: #8b5cf6;
    --accent-purple-light: #f5f3ff;
    --accent-orange: #f97316;
    --accent-orange-light: #fff7ed;
    --accent-red: #ef4444;
    
    /* Backgrounds & Surfaces */
    --bg-main: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #ffffff;
    
    /* Text Colors */
    --text-primary: #0f172a;
    --text-secondary: #4b5563;
    --text-muted: #94a3b8;
    --text-inverse: #ffffff;
    
    /* Borders & Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px -2px rgba(0, 0, 0, 0.06), 0 2px 8px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 30px -3px rgba(0, 0, 0, 0.08), 0 4px 12px -2px rgba(0, 0, 0, 0.03);
    --shadow-primary: 0 10px 20px -3px rgba(37, 99, 235, 0.25);
    
    /* Typography */
    --font-sans: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Heights */
    --nav-height: 65px;
    --header-height: 70px;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-round: 9999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Typography Utility */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary-color); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2.5rem; }
.p-4 { padding: 1.5rem; }
.px-4 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-3 { padding-top: 1rem; padding-bottom: 1rem; }
.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.gap-3 { gap: 1rem; }

/* Gradient Text */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 30%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* App Shell Layout */
#app-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-main);
}

/* Header styling */
.app-header {
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
}

.header-wrapper {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.25rem;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.logo-icon {
    width: 38px;
    height: 38px;
    background-color: var(--primary-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.logo-text {
    font-family: var(--font-sans);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

.logo h1 {
    display: none; /* backward compatibility */
}

.header-nav {
    display: none;
}

.header-nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.header-nav a:hover {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
}

/* Responsive navigation and header styles */
@media (min-width: 768px) {
    .header-wrapper {
        padding: 0 2rem;
    }
    .header-nav {
        display: flex;
        align-items: center;
        gap: 2rem;
    }
}

/* Main Content Area */
.content-area {
    flex: 1;
    width: 100%;
}

/* Views Management */
.view {
    display: none;
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
}

.view.active {
    display: block;
}

/* Form views - Cards on desktop, full-width on mobile */
#view-truck-quotation, 
#view-insurance, 
#view-fare-calculator, 
#view-cibil-improvement,
#view-profile,
#view-history,
#view-contact,
#view-privacy,
#view-terms,
#view-refund {
    max-width: 680px;
    margin: 2rem auto;
    background-color: var(--bg-surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
}

@media (max-width: 768px) {
    #view-truck-quotation, 
    #view-insurance, 
    #view-fare-calculator, 
    #view-cibil-improvement,
    #view-profile,
    #view-history,
    #view-contact,
    #view-privacy,
    #view-terms,
    #view-refund {
        margin: 0;
        border-radius: 0;
        border: none;
        box-shadow: none;
        padding: 1rem 1.25rem;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero Section */
.hero-container {
    padding: 4.5rem 1.25rem;
    background: radial-gradient(100% 100% at 50% 0%, #eff6ff 0%, #ffffff 100%);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.25rem;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 2.25rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3.5rem;
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 700px;
    margin: 0 auto;
    gap: 1rem;
    background-color: var(--bg-surface);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-sans);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (min-width: 768px) {
    .hero-container {
        padding: 6rem 2rem;
    }
    .hero-title {
        font-size: 3.75rem;
    }
    .hero-subtitle {
        font-size: 1.35rem;
    }
    .stat-number {
        font-size: 2.25rem;
    }
    .stat-label {
        font-size: 0.9rem;
    }
}

/* Section dividers and headings */
.section-divider {
    height: 1px;
    background-color: var(--border-color);
    width: 100%;
}

.services-section-wrapper {
    max-width: 1200px;
    margin: 4.5rem auto;
    padding: 0 1.25rem;
}

.section-title {
    text-align: center;
    font-size: 1.85rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem auto;
    font-size: 1rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 600px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.service-card {
    background-color: var(--bg-surface);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: transparent;
    transition: background-color 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-color);
}

.service-card:hover::after {
    background-color: var(--primary-color);
}

.service-card-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: white;
}

.bg-blue { background-color: var(--accent-blue); box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2); }
.bg-green { background-color: var(--accent-green); box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2); }
.bg-purple { background-color: var(--accent-purple); box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2); }
.bg-orange { background-color: var(--accent-orange); box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2); }
.bg-red { background-color: var(--accent-red); box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2); }

.card-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-round);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bg-blue-light { background-color: var(--accent-blue-light); color: var(--accent-blue); }
.bg-green-light { background-color: var(--accent-green-light); color: var(--accent-green); }
.bg-purple-light { background-color: var(--accent-purple-light); color: var(--accent-purple); }
.bg-orange-light { background-color: var(--accent-orange-light); color: var(--accent-orange); }
.bg-red-light { background-color: #fef2f2; color: var(--accent-red); }

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.5;
}

.card-link {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: gap 0.2s;
}

.service-card:hover .card-link {
    gap: 0.5rem;
}

/* Why Choose Us & How It Works Info Section */
.info-section-grid {
    max-width: 1200px;
    margin: 4.5rem auto;
    padding: 0 1.25rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3.5rem;
}

@media (min-width: 992px) {
    .info-section-grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

.why-choose-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.col-title {
    font-size: 1.85rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.025em;
}

.col-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.value-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.value-list li {
    display: flex;
    gap: 1rem;
}

.check-icon {
    font-size: 1.25rem;
    color: var(--accent-green);
    margin-top: 0.15rem;
}

.value-text strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.value-text span {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.how-it-works-col {
    width: 100%;
}

.how-it-works-card {
    background-color: var(--bg-surface);
    border-radius: var(--radius-2xl);
    padding: 2.25rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    position: relative;
}

.star-accent {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: var(--accent-orange);
    font-size: 1.25rem;
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.card-subtitle {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 2rem;
}

/* Steps Timeline */
.steps-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
}

.steps-timeline::before {
    content: '';
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 17px;
    width: 2px;
    background-color: var(--border-color);
    z-index: 1;
}

.step-item {
    display: flex;
    gap: 1.25rem;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: 0.95rem;
}

.step-details h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.step-details p {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* Bottom Navigation (Mobile Only) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 100%;
    height: var(--nav-height);
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 90;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    font-family: var(--font-sans);
    transition: all 0.2s ease;
    width: 33%;
    height: 100%;
}

.nav-item i {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
    transition: all 0.2s;
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-item.active i {
    transform: translateY(-2px);
}

@media (min-width: 768px) {
    .bottom-nav {
        display: none;
    }
}

/* Page Headers for sub-views */
.page-header {
    display: flex;
    align-items: center;
    padding: 0.5rem 0 1.25rem 0;
    background-color: transparent;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.back-btn {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    font-size: 1rem;
    color: var(--text-primary);
    cursor: pointer;
    margin-right: 1rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.back-btn:hover {
    background-color: var(--border-color);
    transform: translateX(-2px);
}

.page-header h2 {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Forms styling */
.form-container {
    padding: 0;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-family: var(--font-body);
    font-size: 0.95rem;
    background-color: var(--bg-main);
    color: var(--text-primary);
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--bg-surface);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.input-group {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: var(--bg-main);
    transition: all 0.2s;
}

.input-group:focus-within {
    border-color: var(--primary-color);
    background-color: var(--bg-surface);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.input-prefix {
    padding: 0.75rem 1rem;
    background-color: var(--border-color);
    color: var(--text-secondary);
    border-right: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.input-group input {
    flex: 1;
    border: none;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-family: var(--font-body);
    background-color: transparent;
}

.input-group input:focus {
    outline: none;
}

/* Buttons styling */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-primary);
}

.btn-success {
    background-color: var(--accent-green);
    color: white;
}

.btn-success:hover {
    background-color: #059669;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.25);
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-light {
    background-color: #f1f5f9;
    color: var(--text-secondary);
}

.btn-light:hover {
    background-color: #e2e8f0;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
    border-radius: var(--radius-md);
}

.btn-round {
    border-radius: var(--radius-round);
    padding-left: 1.75rem;
    padding-right: 1.75rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--bg-surface);
    margin: auto;
    padding: 2.25rem;
    border-radius: var(--radius-2xl);
    width: 90%;
    max-width: 440px;
    position: relative;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.close-modal:hover {
    background-color: var(--border-color);
    color: var(--text-primary);
}

/* Results & Summary Cards */
.summary-card {
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.summary-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px dashed var(--border-color);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.summary-row strong {
    color: var(--text-primary);
}

.summary-row:last-child {
    border-bottom: none;
}

.total-row {
    font-size: 1.15rem;
    font-weight: 800;
    border-top: 2px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 0.5rem;
    color: var(--text-primary);
}

/* Premium Dark Footer Styling */
.app-footer {
    background-color: var(--secondary-color);
    color: #94a3b8;
    padding: 4.5rem 1.25rem 2rem 1.25rem;
    border-top: 1px solid #1e293b;
    margin-top: auto;
}

.footer-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
}

.white-logo .logo-text {
    color: white;
}

.white-logo .logo-icon {
    background-color: white;
    color: var(--primary-color);
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 400px;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.footer-social .social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    font-size: 1rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.footer-social .social-icon:hover {
    background-color: var(--accent-orange);
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-links-col h4, 
.footer-contact-col h4 {
    font-size: 1.05rem;
    color: white;
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.footer-links-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links-col a {
    text-decoration: none;
    color: #94a3b8;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links-col a:hover {
    color: white;
}

.footer-contact-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-contact-col li {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-contact-col li i {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-bottom .copyright {
    font-size: 0.85rem;
    color: #64748b;
}

.footer-bottom .disclaimer {
    font-size: 0.7rem;
    color: #475569;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* Google Places Autocomplete dropdown above modals */
.pac-container {
    z-index: 10000 !important;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    font-family: var(--font-body);
}

.pac-item {
    padding: 8px 14px;
    font-size: 0.9rem;
    cursor: pointer;
}



/* ─── Toast Notifications ──────────────────────────────────────────────── */
.toast-container {
    position: fixed;
    top: calc(var(--header-height) + 12px);
    right: 16px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 380px;
    width: calc(100% - 32px);
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background-color: var(--bg-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
}

.toast-visible {
    opacity: 1;
    transform: translateX(0);
}

.toast-hiding {
    opacity: 0;
    transform: translateX(20px) scale(0.95);
}

.toast-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.toast-success .toast-icon { color: var(--accent-green); }
.toast-error .toast-icon { color: var(--accent-red); }
.toast-warning .toast-icon { color: var(--accent-orange); }
.toast-info .toast-icon { color: var(--accent-blue); }

.toast-success { border-left: 4px solid var(--accent-green); }
.toast-error { border-left: 4px solid var(--accent-red); }
.toast-warning { border-left: 4px solid var(--accent-orange); }
.toast-info { border-left: 4px solid var(--accent-blue); }

.toast-message {
    flex: 1;
    font-size: 0.88rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s;
    flex-shrink: 0;
}

.toast-close:hover {
    background-color: var(--bg-main);
    color: var(--text-primary);
}

@media (max-width: 480px) {
    .toast-container {
        top: 12px;
        right: 8px;
        left: 8px;
        width: auto;
        max-width: none;
    }
}

/* ─── Language Toggle Button ───────────────────────────────────────────── */
.lang-toggle-btn {
    position: fixed;
    bottom: calc(var(--nav-height) + 16px);
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-size: 0.85rem;
    font-weight: 800;
    font-family: var(--font-sans);
    cursor: pointer;
    box-shadow: var(--shadow-primary);
    z-index: 89;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35);
}

.lang-toggle-btn:active {
    transform: scale(0.95);
}

@media (min-width: 768px) {
    .lang-toggle-btn {
        bottom: 24px;
        right: 24px;
    }
}

/* ─── Accessibility Focus Styles ───────────────────────────────────────── */
*:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

.service-card:focus-visible,
.btn:focus-visible,
.nav-item:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
}

/* Skip to content link (hidden until focused) */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    z-index: 10000;
    transition: top 0.3s;
    font-weight: 700;
    border-radius: 0 0 var(--radius-md) 0;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

/* ─── Reduced Motion ──────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .service-card:hover {
        transform: none;
    }
    
    .toast {
        transition: opacity 0.1s;
        transform: none !important;
    }
    
    .toast-visible {
        transform: none !important;
    }
}



/* ─── Notification Opt-in Banner ───────────────────────────────────────── */
.notification-opt-in {
    position: fixed;
    bottom: calc(var(--nav-height) + 12px);
    left: 16px;
    right: 16px;
    max-width: 420px;
    background-color: var(--bg-surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    padding: 16px 18px;
    z-index: 95;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.notification-opt-in.notif-banner-visible {
    opacity: 1;
    transform: translateY(0);
}

.notif-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notif-banner-text {
    flex: 1;
}

.notif-banner-text strong {
    font-size: 0.9rem;
    display: block;
    margin-bottom: 2px;
}

.notif-banner-text p {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0;
}

.notif-banner-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .notification-opt-in {
        left: auto;
        right: 24px;
        bottom: 24px;
    }
}


/* ═══════════════════════════════════════════════════════════════════════ */
/* TRUCK MARKETPLACE STYLES */
/* ═══════════════════════════════════════════════════════════════════════ */

/* Marketplace View Container */
#view-truck-marketplace {
    max-width: 100%;
    margin: 0;
    padding: 0;
    background-color: var(--bg-main);
    border-radius: 0;
    box-shadow: none;
    border: none;
}

#view-truck-marketplace .page-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.25rem;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
}

/* Marketplace Filters */
.marketplace-filters {
    max-width: 1200px;
    margin: 1.5rem auto;
    padding: 0 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.marketplace-filters .form-control {
    width: 100%;
    max-width: 600px;
}

.filter-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    border: 2px solid var(--border-color);
    background-color: var(--bg-surface);
    color: var(--text-secondary);
    border-radius: var(--radius-round);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Marketplace Grid */
.marketplace-grid {
    max-width: 1200px;
    margin: 0 auto 3rem auto;
    padding: 0 1.25rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .marketplace-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .marketplace-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Listing Card */
.listing-card {
    background-color: var(--bg-surface);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.listing-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-main);
    position: relative;
}

.listing-image .image-count {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 10px;
    border-radius: var(--radius-round);
    font-size: 0.75rem;
    font-weight: 600;
}

.listing-content {
    padding: 1.25rem;
}

.listing-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: color 0.2s;
}

.listing-title:hover {
    color: var(--primary-color);
}

.listing-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.listing-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.listing-location {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.listing-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.listing-price {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-success {
    background-color: var(--accent-green-light);
    color: var(--accent-green);
}

.badge-secondary {
    background-color: var(--bg-main);
    color: var(--text-muted);
}

/* Listing Details Modal */
.modal-large {
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

.listing-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .listing-details-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.listing-images-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.listing-detail-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: transform 0.2s;
}

.listing-detail-image:hover {
    transform: scale(1.05);
}

.listing-detail-image:first-child {
    grid-column: 1 / -1;
    height: 280px;
}

.listing-details-info h2 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.listing-price-large {
    font-family: var(--font-sans);
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.details-section {
    margin-bottom: 1.5rem;
}

.details-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.details-table {
    width: 100%;
    border-collapse: collapse;
}

.details-table tr {
    border-bottom: 1px solid var(--border-color);
}

.details-table td {
    padding: 0.75rem 0;
    font-size: 0.9rem;
}

.details-table td:first-child {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.details-table td:last-child {
    text-align: right;
}

.details-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 2rem;
}

/* Form Grid for Seller Form */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .marketplace-filters {
        padding: 0 1rem;
    }
    
    .marketplace-grid {
        padding: 0 1rem;
        grid-template-columns: 1fr;
    }
    
    .listing-details-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-large {
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        max-height: 100vh;
    }
}

/* ──────────────────────────────────────────────────────────────────────────
   Force-dark / auto dark-mode guard
   Some Android/Chrome (and TWA) builds force-invert form fields even when the
   site declares a light color-scheme. Explicit colors with !important keep our
   inputs, selects, textareas and result cards readable (dark text on white).
   ────────────────────────────────────────────────────────────────────────── */
.form-control,
input.form-control,
select.form-control,
textarea.form-control,
input[type="text"],
input[type="tel"],
input[type="number"],
input[type="email"],
input[type="password"],
select,
textarea {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #e2e8f0 !important;
    -webkit-text-fill-color: #0f172a !important;
}

select.form-control option,
select option {
    background-color: #ffffff !important;
    color: #0f172a !important;
}

.form-control::placeholder,
input::placeholder,
textarea::placeholder {
    color: #94a3b8 !important;
    -webkit-text-fill-color: #94a3b8 !important;
}

.form-control:focus,
input.form-control:focus,
select.form-control:focus,
textarea.form-control:focus {
    background-color: #ffffff !important;
    border-color: var(--primary-color) !important;
}

/* Result / summary cards on the calculator & form views.
   Note: we do NOT force the background here because several summary cards use
   intentional inline background colors (orange/green). We only ensure their
   text stays dark and readable. */
.summary-card p,
.summary-card span,
.summary-card strong,
.summary-card h3,
.summary-card h4 {
    color: #1e293b !important;
    -webkit-text-fill-color: #1e293b !important;
}

/* Field labels stay readable */
.form-group label {
    color: #4b5563 !important;
    -webkit-text-fill-color: #4b5563 !important;
}

/* Primary buttons must stay blue/white, not dark-inverted */
.btn-primary,
button.btn-primary {
    background-color: #2563eb !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border-color: #2563eb !important;
}
