/* =============================================================================
   LoanNow Online - Main Stylesheet
   ============================================================================= */

:root {
    --color-primary: #2563eb;
    --color-secondary: #1e40af;
    --color-accent: #3b82f6;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    --color-dark: #1f2937;
    --color-light: #f8fafc;
    --font-family: 'Heebo', -apple-system, BlinkMacSystemFont, sans-serif;
    --border-radius: 12px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
    
    /* Light Mode (default) - WCAG AA compliant colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-card: #ffffff;
    --text-primary: #1f2937;
    --text-secondary: #374151;  /* 7.5:1 contrast ratio */
    --text-muted: #525252;      /* 7:1 contrast ratio - improved for WCAG AA */
    --border-color: #9ca3af;    /* Darker for better visibility */
    --input-bg: #ffffff;
    --header-bg: rgba(255, 255, 255, 0.95);
}

/* Dark Mode */
[data-theme="dark"] {
    --color-primary: #3b82f6;
    --color-secondary: #60a5fa;
    --color-accent: #93c5fd;
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --input-bg: #1e293b;
    --header-bg: rgba(15, 23, 42, 0.95);
    --color-light: #1e293b;
}

/* =============================================================================
   Base Styles
   ============================================================================= */

* {
    box-sizing: border-box;
}

/* =============================================================================
   Accessibility Improvements
   ============================================================================= */

/* Minimum touch target size (44px for WCAG) */
button, 
.btn,
a.btn,
input[type="submit"],
input[type="button"],
.nav-link,
.form-select {
    min-height: 44px;
}

/* Form check - keep Bootstrap RTL default behavior */
.form-check-label {
    cursor: pointer;
    color: var(--text-primary);
}

/* Dark mode form labels */
[data-theme="dark"] .form-check-label,
[data-theme="dark"] .form-check-label.small,
[data-theme="dark"] .form-label,
[data-theme="dark"] .lead-form label,
[data-theme="dark"] .hero-form-card label,
[data-theme="dark"] .hero-form-card .form-check-label {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .hero-form-card .form-check-label a {
    color: #93c5fd !important;
}

/* Process step cards - h3 styling */
.process-step-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Why-us section - h3 styling */
.why-us-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Use-case cards - h3 styling */
.use-case-card h3.h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Improved contrast for placeholders */
::placeholder {
    color: #6b7280 !important;
    opacity: 1;
}

/* Improved contrast for muted text */
.text-muted,
.form-text,
small.text-muted {
    color: var(--text-muted) !important;
}

/* Ensure step-time has good contrast */
.step-time {
    color: var(--text-muted);
}

/* Form disclaimer text */
.form-disclaimer {
    color: var(--text-secondary);
}

/* =============================================================================
   Color Contrast Fixes - WCAG AA Compliance
   ============================================================================= */

/* Section badge - improved contrast */
.section-badge {
    background: #1e40af;
    color: #ffffff;
}

/* Testimonial verified badge - improved contrast */
.testimonial-verified {
    color: #166534;
    background: #dcfce7;
}

[data-theme="dark"] .testimonial-verified {
    color: #86efac;
    background: rgba(22, 101, 52, 0.3);
}

/* Footer text - improved contrast */
.footer-disclosure {
    color: #d1d5db;
}

.site-footer {
    color: #e5e7eb;
}

.site-footer p,
.site-footer .footer-tagline {
    color: #d1d5db;
}

.footer-bottom p {
    color: #9ca3af;
}

/* bg-light sections text contrast */
.bg-light,
.section-use-cases.bg-light,
.section-why-us.bg-light {
    background-color: #f1f5f9 !important;
}

.bg-light .section-badge {
    background: #1e40af;
    color: #ffffff;
}

/* Footer title styling (now h2) */
.footer-title {
    font-size: 1rem;
    font-weight: 600;
}

/* Form title styling (now h2) */
.form-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* =============================================================================
   City Autocomplete
   ============================================================================= */

.city-autocomplete-wrapper {
    position: relative;
}

.city-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-color, #d1d5db);
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.city-suggestions.active {
    display: block;
}

.city-suggestion-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.city-suggestion-item:last-child {
    border-bottom: none;
}

.city-suggestion-item:hover,
.city-suggestion-item.highlighted {
    background: var(--color-primary);
    color: #fff;
}

.city-suggestion-item mark {
    background: rgba(255, 255, 0, 0.3);
    color: inherit;
    padding: 0;
}

/* Dark mode */
[data-theme="dark"] .city-suggestions {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .city-suggestion-item {
    color: var(--text-primary);
}

[data-theme="dark"] .city-suggestion-item:hover,
[data-theme="dark"] .city-suggestion-item.highlighted {
    background: var(--color-primary);
    color: #fff;
}

/* Improved focus indicators */
:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: white;
    padding: 1rem 2rem;
    z-index: 10000;
    border-radius: 0 0 8px 8px;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
    color: white;
}

/* =============================================================================
   CLS Prevention - Reserve space for dynamic content
   ============================================================================= */

/* Reserve space for hero section */
.hero-section {
    min-height: 600px;
}

@media (max-width: 991px) {
    .hero-section {
        min-height: auto;
    }
}

/* Reserve space for stats */
.section-stats .stat-item {
    min-height: 100px;
}

/* Reserve space for testimonials slider */
.testimonials-slider {
    min-height: 350px;
}

/* Reserve space for icons (prevent layout shift when Bootstrap Icons load) */
.bi {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
}

/* Reserve space for form */
.lead-form-wrapper {
    min-height: 400px;
}

/* Improved link visibility - not just color */
a:not(.btn):not(.nav-link):not(.navbar-brand) {
    text-decoration: underline;
    text-underline-offset: 2px;
}

a:not(.btn):not(.nav-link):not(.navbar-brand):hover {
    text-decoration-thickness: 2px;
}

html {
    overflow-x: hidden;
}

body {
    font-family: var(--font-family);
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: clip;
}

/* Theme Toggle Button */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.theme-toggle:hover {
    background: var(--color-primary);
    color: white;
    transform: scale(1.1);
}

.theme-toggle .theme-icon-light,
.theme-toggle .theme-icon-dark {
    position: absolute;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

/* Light mode - show sun, hide moon */
.theme-toggle .theme-icon-light {
    opacity: 1;
    transform: rotate(0deg);
}

.theme-toggle .theme-icon-dark {
    opacity: 0;
    transform: rotate(-90deg);
}

/* Dark mode - show moon, hide sun */
[data-theme="dark"] .theme-toggle .theme-icon-light {
    opacity: 0;
    transform: rotate(90deg);
}

[data-theme="dark"] .theme-toggle .theme-icon-dark {
    opacity: 1;
    transform: rotate(0deg);
}

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

a:hover {
    color: var(--color-secondary);
}

img {
    max-width: 100%;
    height: auto;
}

/* =============================================================================
   Accessibility
   ============================================================================= */

.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    z-index: 9999;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 10px;
    color: #fff;
}

/* =============================================================================
   Header
   ============================================================================= */

.site-header {
    background: var(--header-bg);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: background-color 0.3s ease;
}

[data-theme="dark"] .site-header {
    border-bottom: 1px solid var(--border-color);
}

/* Navbar toggler (hamburger menu) */
.navbar-toggler {
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.6rem;
    background: var(--bg-secondary);
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: 2px solid var(--color-primary);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23374151' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

[data-theme="dark"] .navbar-toggler {
    border-color: var(--border-color);
    background: var(--bg-secondary);
}

[data-theme="dark"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23e2e8f0' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand:hover {
    color: var(--color-secondary);
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.nav-link {
    color: var(--color-dark);
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--color-primary);
    background: rgba(37, 99, 235, 0.05);
}

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

.header-phone:hover {
    color: var(--color-primary);
}

/* =============================================================================
   Buttons
   ============================================================================= */

.btn {
    font-weight: 500;
    border-radius: 8px;
    padding: 0.625rem 1.25rem;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-secondary), #1e3a8a);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline-primary:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1.1rem;
}

/* =============================================================================
   Hero Section
   ============================================================================= */

.hero-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero-section::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%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.hero-badge i {
    color: #fbbf24;
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #fff;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.hero-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.hero-features li {
    padding: 0.4rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.05rem;
}

.hero-features i {
    color: #34d399;
    font-size: 1.1rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.hero-buttons .btn-primary {
    background: #fff;
    color: var(--color-primary);
    font-weight: 600;
}

.hero-buttons .btn-primary:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}

.hero-buttons .btn-outline-light {
    border-color: rgba(255,255,255,0.5);
}

.hero-buttons .btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

.hero-trust-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-trust-row .trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.hero-trust-row .trust-item i {
    color: #fbbf24;
}

.hero-form-card {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    padding: 2rem;
    color: var(--color-dark);
    position: relative;
}

.form-trust-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-success);
    color: #fff;
    padding: 0.375rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* Inline trust badge - below title */
.form-trust-badge-inline {
    background: #dcfce7;
    color: #166534;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.form-trust-badge-inline i {
    color: #16a34a;
}

/* Sidebar version */
.blog-sidebar .form-trust-badge-inline {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}

.blog-sidebar .form-trust-badge-inline i {
    color: #34d399;
}

@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-trust-row {
        justify-content: center;
    }
}

/* =============================================================================
   Stats Section
   ============================================================================= */

.section-stats {
    background: #fff;
    padding: 2.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-number small {
    font-size: 1rem;
    margin-right: 0.25rem;
    color: rgba(255,255,255,0.85);
}

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

/* =============================================================================
   Partners Section
   ============================================================================= */

.section-partners {
    background: var(--color-light);
    padding: 2rem 0;
}

.partners-title {
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.partner-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    color: #94a3b8;
    font-size: 0.8rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.85;
}

.partner-logo:hover {
    transform: scale(1.05);
    opacity: 1;
}

.partner-logo i {
    font-size: 1.75rem;
    color: #64748b;
}

.partner-svg {
    width: 100px;
    height: 50px;
}

.partner-img {
    width: 120px;
    height: 50px;
    object-fit: contain;
    filter: grayscale(20%) opacity(0.8);
    transition: all 0.3s ease;
}

.partner-logo:hover .partner-img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

/* Stats Section */
.section-stats {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    padding: 2.5rem 0;
}

.stats-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .stats-grid {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .partner-svg,
    .partner-img {
        width: 85px;
        height: 38px;
    }
}

/* =============================================================================
   Section Badge
   ============================================================================= */

.section-badge {
    display: inline-block;
    background: rgba(37, 99, 235, 0.1);
    color: var(--color-primary);
    padding: 0.375rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

/* =============================================================================
   Process Steps (New Style)
   ============================================================================= */

.process-step-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    height: 100%;
    position: relative;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

.process-step-card.highlight {
    border-color: var(--color-success);
    background: linear-gradient(to bottom, rgba(16, 185, 129, 0.05), #fff);
}

.process-step-card .step-number {
    position: absolute;
    top: -15px;
    right: 20px;
    width: 30px;
    height: 30px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.process-step-card .step-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(30, 64, 175, 0.15));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.75rem;
    color: var(--color-primary);
}

.process-step-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.process-step-card p {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.process-step-card .step-time {
    display: inline-block;
    background: var(--color-light);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    color: #64748b;
}

/* =============================================================================
   Testimonials Section
   ============================================================================= */

.section-testimonials {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.testimonial-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: var(--transition);
    position: relative;
}

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

.testimonial-card.featured {
    border: 2px solid var(--color-primary);
    background: linear-gradient(to bottom, rgba(37, 99, 235, 0.03), #fff);
}

.testimonial-stars {
    color: #fbbf24;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 1.25rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}

.author-info strong {
    display: block;
    font-size: 0.95rem;
}

.author-info span {
    font-size: 0.8rem;
    color: #64748b;
}

.testimonial-verified {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 0.75rem;
    color: var(--color-success);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.testimonials-summary {
    margin-top: 2rem;
}

.rating-big {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.rating-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-dark);
    line-height: 1;
}

.rating-stars {
    color: #fbbf24;
    font-size: 1.25rem;
}

.rating-count {
    font-size: 0.9rem;
    color: #64748b;
}

/* =============================================================================
   Why Us Section
   ============================================================================= */

.section-why-us .lead {
    color: #64748b;
    margin-bottom: 2rem;
}

.why-us-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.why-us-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.why-us-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.why-us-content h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.why-us-content p {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Trust Box */
.trust-box {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.trust-box-header {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: #fff;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.trust-box-header i {
    font-size: 2rem;
}

.trust-box-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.trust-box-content {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--color-light);
    border-radius: 8px;
}

.trust-badge-item i {
    color: var(--color-success);
    font-size: 1.25rem;
}

.trust-badge-item span {
    font-size: 0.9rem;
    font-weight: 500;
}

.trust-box-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

/* =============================================================================
   Final CTA Section
   ============================================================================= */

.section-final-cta {
    padding: 4rem 0;
}

.final-cta-box {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: var(--border-radius);
    padding: 3rem;
    color: #fff;
}

.final-cta-box h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.final-cta-box > .row > div:first-child > p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.cta-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cta-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-features i {
    color: #34d399;
}

.final-cta-box .btn-light {
    background: #fff;
    color: var(--color-primary);
    font-weight: 600;
    padding: 1rem 2rem;
}

.final-cta-box .btn-light:hover {
    background: #f1f5f9;
}

.cta-note {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 0;
}

/* =============================================================================
   Trust Banner
   ============================================================================= */

.section-trust-banner {
    background: var(--color-dark);
    color: #fff;
    padding: 1.5rem 0;
}

.trust-banner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.trust-banner-item i {
    font-size: 1.5rem;
    color: var(--color-primary);
}

.trust-banner-item strong {
    display: block;
    font-size: 0.9rem;
}

.trust-banner-item span,
.trust-banner-item a {
    font-size: 0.85rem;
    color: #94a3b8;
}

.trust-banner-item a:hover {
    color: #fff;
}

/* =============================================================================
   Page Header
   ============================================================================= */

.page-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: #fff;
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

/* =============================================================================
   Sections
   ============================================================================= */

.section {
    padding: 4rem 0;
}

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

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: #64748b;
    font-size: 1.1rem;
}

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

/* =============================================================================
   Process Tracker
   ============================================================================= */

.process-tracker {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.process-step {
    text-align: center;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    background: var(--color-light);
    transition: var(--transition);
}

.process-step.completed {
    background: rgba(16, 185, 129, 0.1);
}

.process-step.active {
    background: rgba(37, 99, 235, 0.1);
    border: 2px solid var(--color-primary);
}

.step-icon {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.process-step.completed .step-icon {
    background: var(--color-success);
    color: #fff;
}

.process-step h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-status {
    font-size: 0.875rem;
    color: #64748b;
}

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

.process-note {
    text-align: center;
    color: #94a3b8;
    font-size: 0.875rem;
    margin-top: 1rem;
    margin-bottom: 0;
}

/* =============================================================================
   Use Cases
   ============================================================================= */

.use-case-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

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

.use-case-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(30, 64, 175, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.75rem;
    color: var(--color-primary);
}

.use-case-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.use-case-card p {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* =============================================================================
   Trust Section
   ============================================================================= */

.trust-card {
    text-align: center;
    padding: 2rem 1.5rem;
}

.trust-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: #fff;
}

.trust-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.trust-card p {
    color: #64748b;
    margin-bottom: 0;
}

/* =============================================================================
   CTA Section
   ============================================================================= */

.section-cta {
    padding: 4rem 0;
}

.cta-card {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: var(--border-radius);
    padding: 3rem;
    text-align: center;
    color: #fff;
}

.cta-card h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cta-card p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

/* =============================================================================
   Lead Form
   ============================================================================= */

.lead-form-wrapper {
    position: relative;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}

.form-subtitle {
    color: #64748b;
    text-align: center;
    margin-bottom: 1.5rem;
}

.form-control, .form-select {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
}

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

.form-disclaimer {
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 1rem;
    margin-bottom: 0;
}

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

.form-success {
    text-align: center;
    padding: 2rem;
}

.success-icon {
    font-size: 4rem;
    color: var(--color-success);
    margin-bottom: 1rem;
}

.form-success h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* =============================================================================
   FAQ Accordion
   ============================================================================= */

.accordion-item {
    border: 1px solid #e2e8f0;
    margin-bottom: 0.5rem;
    border-radius: var(--border-radius) !important;
    overflow: hidden;
}

.accordion-button {
    font-weight: 600;
    padding: 1.25rem;
    background: #fff;
}

.accordion-button:not(.collapsed) {
    background: rgba(37, 99, 235, 0.05);
    color: var(--color-primary);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--color-primary);
}

.accordion-body {
    padding: 1.25rem;
    line-height: 1.8;
}

/* =============================================================================
   Blog
   ============================================================================= */

.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--color-dark);
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.filter-btn .badge {
    background: rgba(0,0,0,0.1);
    font-size: 0.75rem;
    margin-right: 0.25rem;
}

.blog-card {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    height: 100%;
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.blog-card-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}


.blog-card-body {
    padding: 1.5rem;
}

.blog-category {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--color-primary);
    background: rgba(37, 99, 235, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

.blog-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-card-title a {
    color: var(--color-dark);
}

.blog-card-title a:hover {
    color: var(--color-primary);
}

.blog-card-excerpt {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.blog-card-meta {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.blog-read-more {
    font-weight: 500;
    font-size: 0.9rem;
}

/* Blog Article */
.article-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: #fff;
    padding: 4rem 0;
}

.article-category {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.article-title {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.article-meta {
    opacity: 0.9;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.article-content ul, .article-content ol {
    margin-bottom: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-share {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 0;
    margin-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 1.1rem;
    transition: var(--transition);
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.linkedin { background: #0077b5; }

.share-btn:hover {
    transform: scale(1.1);
    color: #fff;
}

.related-posts {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.related-posts h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.related-post-card {
    background: var(--color-light);
    border-radius: var(--border-radius);
    padding: 1.25rem;
}

.related-post-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.related-post-card .date {
    font-size: 0.85rem;
    color: #94a3b8;
}

/* Blog Sidebar */
.blog-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-primary);
}

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

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    color: var(--color-dark);
    border-bottom: 1px solid #f1f5f9;
}

.category-list a:hover, .category-list a.active {
    color: var(--color-primary);
}

.category-list .count {
    background: var(--color-light);
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    font-size: 0.8rem;
}

.cta-widget {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: #fff;
    text-align: center;
}

.cta-widget h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.cta-widget p {
    opacity: 0.9;
    margin-bottom: 1rem;
}

/* =============================================================================
   Footer
   ============================================================================= */

.site-footer {
    background: var(--color-dark);
    color: #fff;
    padding: 4rem 0 2rem;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

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

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

.footer-contact a {
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact a:hover {
    color: #fff;
}

.footer-contact i {
    color: var(--color-primary);
}

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

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

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

.footer-links a {
    color: #94a3b8;
}

.footer-links a:hover {
    color: #fff;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    transition: var(--transition);
}

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

.footer-disclosure {
    font-size: 0.8rem;
    color: #64748b;
    padding: 1rem;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    line-height: 1.6;
}

.footer-divider {
    border-color: rgba(255,255,255,0.1);
    margin: 2rem 0;
}

.footer-bottom {
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

/* =============================================================================
   Cookie Consent
   ============================================================================= */

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    padding: 1.5rem;
    z-index: 9999;
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-icon {
    font-size: 2rem;
}

.cookie-text {
    flex: 1;
    min-width: 250px;
}

.cookie-text strong {
    display: block;
    margin-bottom: 0.25rem;
}

.cookie-text p {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 0;
}

.cookie-buttons {
    display: flex;
    gap: 0.5rem;
}

/* =============================================================================
   Scroll to Top
   ============================================================================= */

.scroll-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 100;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--color-secondary);
    transform: translateY(-3px);
}

/* =============================================================================
   Cards
   ============================================================================= */

.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

/* =============================================================================
   Timeline
   ============================================================================= */

.process-timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    gap: 1.5rem;
    padding-bottom: 2rem;
    position: relative;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 27px;
    top: 60px;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
}

.timeline-number {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.timeline-content {
    flex: 1;
    padding-top: 0.5rem;
}

.timeline-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.timeline-content p {
    color: #64748b;
    margin-bottom: 1rem;
}

.timeline-content ul {
    padding-right: 1.25rem;
    color: #64748b;
}

/* =============================================================================
   Features List
   ============================================================================= */

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-item i {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(30, 64, 175, 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.feature-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.feature-item p {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* =============================================================================
   Eligibility Page
   ============================================================================= */

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

.eligibility-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 1.05rem;
}

.eligibility-list li:last-child {
    border-bottom: none;
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.document-item {
    background: var(--color-light);
    padding: 1.25rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.document-item i {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.document-item h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.document-item p {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0;
}

.factor-item {
    padding: 1.25rem;
    border-radius: var(--border-radius);
}

.factor-item.positive {
    background: rgba(16, 185, 129, 0.1);
}

.factor-item.negative {
    background: rgba(239, 68, 68, 0.1);
}

.factor-item h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.factor-item.positive h5 i {
    color: var(--color-success);
}

.factor-item.negative h5 i {
    color: var(--color-danger);
}

.factor-item ul {
    padding-right: 1rem;
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* =============================================================================
   Contact Page
   ============================================================================= */

.contact-info {
    padding: 2rem 0;
}

.contact-info h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.contact-details a, .contact-details p {
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* =============================================================================
   Legal Content
   ============================================================================= */

.legal-content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

.legal-content p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-content ul {
    margin-bottom: 1rem;
    padding-right: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

/* =============================================================================
   Sticky Sidebar
   ============================================================================= */

.sticky-sidebar {
    position: sticky;
    top: 100px;
}

/* =============================================================================
   Pagination
   ============================================================================= */

.pagination {
    gap: 0.25rem;
}

.page-link {
    border-radius: 8px !important;
    border: none;
    padding: 0.5rem 0.875rem;
    color: var(--color-dark);
}

.page-item.active .page-link {
    background: var(--color-primary);
}

/* =============================================================================
   Responsive
   ============================================================================= */

@media (max-width: 767.98px) {
    .section {
        padding: 2.5rem 0;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .documents-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}

/* =============================================================================
   Accessibility Widget
   ============================================================================= */

.accessibility-widget {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 9998;
}

.accessibility-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.accessibility-toggle:hover {
    background: var(--color-secondary);
    transform: scale(1.1);
}

.accessibility-toggle:focus {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

.accessibility-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 280px;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    padding: 1rem;
    display: none;
    animation: slideUp 0.3s ease;
}

.accessibility-panel.active {
    display: block;
}

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

.accessibility-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.accessibility-header h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
}

.accessibility-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.acc-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.75rem 0.5rem;
    background: #f8fafc;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.75rem;
    color: var(--color-dark);
}

.acc-option i {
    font-size: 1.25rem;
    color: var(--color-primary);
}

.acc-option:hover {
    background: #e0e7ff;
    border-color: var(--color-primary);
}

.acc-option:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.acc-option.active {
    background: var(--color-primary);
    color: #fff;
}

.acc-option.active i {
    color: #fff;
}

.accessibility-statement {
    display: block;
    text-align: center;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.8rem;
    color: var(--color-primary);
}

.accessibility-statement:hover {
    text-decoration: underline;
}

/* Accessibility Modes */
body.acc-high-contrast {
    filter: contrast(1.4);
}

body.acc-grayscale {
    filter: grayscale(1);
}

body.acc-highlight-links a {
    background: yellow !important;
    color: #000 !important;
    padding: 2px 4px;
    text-decoration: underline !important;
}

body.acc-readable-font,
body.acc-readable-font * {
    font-family: Arial, Helvetica, sans-serif !important;
    letter-spacing: 0.05em;
}

body.acc-font-1 { font-size: 105%; }
body.acc-font-2 { font-size: 110%; }
body.acc-font-3 { font-size: 115%; }
body.acc-font-4 { font-size: 120%; }
body.acc-font-5 { font-size: 125%; }

@media (max-width: 767.98px) {
    .accessibility-widget {
        right: 10px;
        bottom: 80px;
    }
    
    .accessibility-toggle {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }
    
    .accessibility-panel {
        width: 260px;
        right: 0;
    }
}

@media (max-width: 380px) {
    .accessibility-widget {
        right: 5px;
        bottom: 70px;
    }
    
    .accessibility-toggle {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .accessibility-panel {
        width: calc(100vw - 20px);
        right: 5px;
        max-width: 280px;
    }
    
    .scroll-top {
        left: 5px !important;
        bottom: 70px !important;
        width: 40px !important;
        height: 40px !important;
    }
}

/* =============================================================================
   Sidebar Lead Form - Blue Professional Styling
   ============================================================================= */

.blog-sidebar .sidebar-widget {
    background: linear-gradient(180deg, #1e40af 0%, #1e3a8a 100%);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(30, 64, 175, 0.3);
    overflow: hidden;
    padding: 1.5rem;
}

.blog-sidebar .sidebar-widget .card {
    background: transparent;
    border: none;
    box-shadow: none;
}

/* Hide step indicators in sidebar */
.blog-sidebar .step-indicators {
    display: none !important;
}

/* Form header */
.blog-sidebar .sidebar-widget .card-header {
    background: transparent;
    color: #fff;
    text-align: center;
    padding: 0 0 1.25rem 0;
    font-size: 1.3rem;
    font-weight: 700;
    border: none;
}

.blog-sidebar .sidebar-widget .card-body {
    padding: 0;
}

/* Sticky sidebar */
.sticky-sidebar {
    position: sticky;
    top: 100px;
}

/* Form inputs - white with blue focus */
.blog-sidebar .form-control {
    background: #fff;
    border: 2px solid transparent;
    padding: 0.875rem 1rem;
    border-radius: 10px;
    font-size: 1rem;
}

.blog-sidebar .form-control:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.3);
}

.blog-sidebar .form-label {
    color: #fff !important;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.blog-sidebar label,
.blog-sidebar .sidebar-widget label {
    color: #fff !important;
    font-weight: 600;
}

.blog-sidebar .form-subtitle,
.blog-sidebar .step-title {
    color: #fff !important;
}

/* CTA button - Green stands out on blue */
.blog-sidebar .btn-primary {
    background: #10b981;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.blog-sidebar .btn-primary:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

/* Trust footer */
.blog-sidebar .form-footer {
    background: rgba(255,255,255,0.1);
    padding: 1rem;
    margin: 1.25rem -1.5rem -1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.9);
    border-top: 1px solid rgba(255,255,255,0.2);
}

.blog-sidebar .form-footer i {
    color: #34d399;
}

/* Form text colors - all white on blue background */
.blog-sidebar .text-muted,
.blog-sidebar small,
.blog-sidebar p,
.blog-sidebar span:not(.input-group-text) {
    color: rgba(255,255,255,0.9) !important;
}


.blog-sidebar .sidebar-widget * {
    color: #fff;
}

.blog-sidebar .sidebar-widget .form-control,
.blog-sidebar .sidebar-widget input,
.blog-sidebar .sidebar-widget select {
    color: #1f2937 !important;
}

.blog-sidebar .sidebar-widget .form-control::placeholder {
    color: #9ca3af !important;
}

/* Mobile */
@media (max-width: 991.98px) {
    .sticky-sidebar {
        position: relative;
        top: 0;
    }
    
    .blog-sidebar .sidebar-widget {
        margin-top: 2rem;
    }
}

/* Sidebar Trust Indicators */
.sidebar-trust {
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.sidebar-trust .trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    font-size: 0.9rem;
    color: #374151 !important;
}

.sidebar-trust .trust-item:not(:last-child) {
    border-bottom: 1px solid #f3f4f6;
}

.sidebar-trust .trust-item span {
    color: #374151 !important;
}

.sidebar-trust .trust-item i {
    font-size: 1.1rem;
}

/* =============================================================================
   Blue Form Card - Reusable component
   ============================================================================= */

.form-card-blue {
    background: linear-gradient(180deg, #1e40af 0%, #1e3a8a 100%);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(30, 64, 175, 0.3);
    padding: 1.5rem;
}

.form-card-blue .card {
    background: transparent;
    border: none;
    box-shadow: none;
}

.form-card-blue .step-indicators,
.form-card-blue .progress-steps {
    display: none !important;
}

.form-card-blue .card-header,
.form-card-blue .form-title {
    background: transparent;
    color: #fff !important;
    text-align: center;
    padding: 0 0 1rem 0;
    font-size: 1.4rem;
    font-weight: 700;
    border: none;
}

.form-card-blue .form-subtitle {
    color: rgba(255,255,255,0.9) !important;
    text-align: center;
}

.form-card-blue .card-body {
    padding: 0;
}

.form-card-blue .form-control {
    background: #fff;
    border: 2px solid transparent;
    padding: 0.875rem 1rem;
    border-radius: 10px;
    font-size: 1rem;
    color: #1f2937 !important;
}

.form-card-blue .form-control:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.3);
}

.form-card-blue .form-control::placeholder {
    color: #9ca3af !important;
}

.form-card-blue .form-label,
.form-card-blue label {
    color: #fff !important;
    font-weight: 600;
}

.form-card-blue .btn-primary {
    background: #10b981;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.form-card-blue .btn-primary:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.form-card-blue .form-footer {
    background: rgba(255,255,255,0.1);
    padding: 1rem;
    margin: 1.25rem -1.5rem -1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.9);
    border-top: 1px solid rgba(255,255,255,0.2);
}

.form-card-blue .form-footer i {
    color: #34d399;
}

.form-card-blue .text-muted,
.form-card-blue small,
.form-card-blue p,
.form-card-blue span:not(.input-group-text) {
    color: rgba(255,255,255,0.9) !important;
}

.form-card-blue * {
    color: #fff;
}


/* Fix loan-type card text visibility inside form-card-blue */
.form-card-blue .loan-type-card,
.form-card-blue .loan-type-card * {
    color: #1e293b !important;
}

.form-card-blue .loan-type-card .loan-type-desc {
    color: #64748b !important;
}

.form-card-blue .loan-type-card .loan-type-icon {
    color: inherit !important;
}

.form-card-blue .loan-type-card .loan-type-icon.credit { color: #2563eb !important; }
.form-card-blue .loan-type-card .loan-type-icon.vehicle { color: #d97706 !important; }
.form-card-blue .loan-type-card .loan-type-icon.checks { color: #16a34a !important; }
.form-card-blue .loan-type-card .loan-type-icon.pension { color: #be185d !important; }

.form-card-blue input,
.form-card-blue select,
.form-card-blue textarea {
    color: #1f2937 !important;
}

/* =============================================================================
   Dark Mode Styles
   ============================================================================= */

[data-theme="dark"] body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

[data-theme="dark"] .navbar-brand {
    color: var(--color-primary);
}

[data-theme="dark"] .nav-link {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .nav-link:hover {
    color: var(--color-primary) !important;
}

[data-theme="dark"] .header-phone {
    color: var(--text-secondary);
}

[data-theme="dark"] .hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

[data-theme="dark"] .section {
    background-color: var(--bg-primary);
}

[data-theme="dark"] .bg-light,
[data-theme="dark"] .section-use-cases {
    background-color: var(--bg-secondary) !important;
}

[data-theme="dark"] .card {
    background-color: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .use-case-card {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .use-case-card h4,
[data-theme="dark"] .use-case-card p {
    color: var(--text-primary);
}

[data-theme="dark"] .process-step {
    background: var(--bg-card) !important;
    border-color: var(--border-color);
}

[data-theme="dark"] .process-step h4 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .process-step p {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .process-step .process-time {
    background: var(--color-primary) !important;
    color: white !important;
}

[data-theme="dark"] .process-step.active {
    background: var(--bg-card) !important;
    border-color: var(--color-primary);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

[data-theme="dark"] .section-process {
    background: var(--bg-primary) !important;
}

[data-theme="dark"] .step-icon {
    background: var(--bg-secondary) !important;
}

[data-theme="dark"] .faq-item {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .faq-question {
    color: var(--text-primary);
}

[data-theme="dark"] .faq-answer {
    color: var(--text-secondary);
}

[data-theme="dark"] .section-header h2 {
    color: var(--text-primary);
}

[data-theme="dark"] .section-header p {
    color: var(--text-secondary);
}

[data-theme="dark"] .form-control {
    background-color: var(--input-bg);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .form-control:focus {
    background-color: var(--input-bg);
    border-color: var(--color-primary);
    color: var(--text-primary);
}

[data-theme="dark"] .form-label {
    color: var(--text-primary);
}

[data-theme="dark"] .form-select {
    background-color: var(--input-bg);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .sidebar-trust {
    background: var(--bg-card);
}

[data-theme="dark"] .sidebar-trust .trust-item {
    color: var(--text-primary);
    border-color: var(--border-color);
}

[data-theme="dark"] .sidebar-trust .trust-item span {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .testimonial-card {
    background: var(--bg-card);
}

[data-theme="dark"] .testimonial-card p {
    color: var(--text-secondary);
}

[data-theme="dark"] .site-footer {
    background: #0a0f1a;
    border-top: 1px solid var(--border-color);
}

[data-theme="dark"] .footer-widget h5 {
    color: var(--text-primary);
}

[data-theme="dark"] .footer-widget a,
[data-theme="dark"] .footer-widget p {
    color: var(--text-secondary);
}

[data-theme="dark"] .scroll-top {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .accessibility-panel {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .acc-option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

[data-theme="dark"] .blog-card {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .blog-card h2 a,
[data-theme="dark"] .blog-card h3 a,
[data-theme="dark"] .blog-card-title a {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .blog-card h2 a:hover,
[data-theme="dark"] .blog-card h3 a:hover,
[data-theme="dark"] .blog-card-title a:hover {
    color: var(--color-primary) !important;
}

[data-theme="dark"] .blog-card p,
[data-theme="dark"] .blog-card-body p {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .blog-card-meta,
[data-theme="dark"] .blog-card .text-muted {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .blog-card-category {
    background: rgba(59, 130, 246, 0.2) !important;
    color: var(--color-accent) !important;
}

[data-theme="dark"] .breadcrumb-item a {
    color: var(--text-secondary);
}

[data-theme="dark"] .breadcrumb-item.active {
    color: var(--text-muted);
}

[data-theme="dark"] h1, 
[data-theme="dark"] h2, 
[data-theme="dark"] h3, 
[data-theme="dark"] h4, 
[data-theme="dark"] h5, 
[data-theme="dark"] h6 {
    color: var(--text-primary);
}

[data-theme="dark"] p {
    color: var(--text-secondary);
}

[data-theme="dark"] .text-muted {
    color: var(--text-muted) !important;
}

[data-theme="dark"] hr {
    border-color: var(--border-color);
}

[data-theme="dark"] .table {
    color: var(--text-primary);
    border-color: var(--border-color);
}

[data-theme="dark"] .table td,
[data-theme="dark"] .table th {
    border-color: var(--border-color);
}

/* Dark mode - Section backgrounds */
[data-theme="dark"] .section-testimonials {
    background: var(--bg-secondary) !important;
}

[data-theme="dark"] .section-testimonials .section-header h2,
[data-theme="dark"] .section-testimonials .section-header p {
    color: var(--text-muted) !important;
}

/* Dark mode - Security card */
[data-theme="dark"] .security-card {
    background: var(--bg-card) !important;
    border-color: var(--border-color);
}

[data-theme="dark"] .security-badge {
    background: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

/* Dark mode - FAQ section */
[data-theme="dark"] .section-faq {
    background: var(--bg-primary) !important;
}

[data-theme="dark"] .accordion-item {
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .accordion-button {
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .accordion-button:not(.collapsed) {
    background: var(--bg-secondary) !important;
    color: var(--color-primary) !important;
}

[data-theme="dark"] .accordion-body {
    background: var(--bg-card) !important;
    color: var(--text-secondary) !important;
}

/* Dark mode - Use cases section */
[data-theme="dark"] .section-use-cases {
    background: var(--bg-secondary) !important;
}

[data-theme="dark"] .use-case-card {
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .use-case-icon {
    background: rgba(59, 130, 246, 0.15) !important;
}

/* Dark mode - Section badges */
[data-theme="dark"] .section-badge {
    background: rgba(59, 130, 246, 0.2) !important;
    color: var(--color-accent) !important;
}

/* Dark mode - Why us section */
[data-theme="dark"] .feature-card {
    background: var(--bg-card) !important;
    border-color: var(--border-color);
}

[data-theme="dark"] .feature-card h4 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .feature-card p {
    color: var(--text-secondary) !important;
}

/* Dark mode - CTA section */
[data-theme="dark"] .section-cta {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%) !important;
}

/* Dark mode - Form inputs */
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: var(--text-muted) !important;
}

/* Dark mode - Buttons */
[data-theme="dark"] .btn-outline-primary {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

[data-theme="dark"] .btn-outline-primary:hover {
    background: var(--color-primary);
    color: white;
}

/* Dark mode - Process step cards */
[data-theme="dark"] .process-step-card {
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .process-step-card h4 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .process-step-card p {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .process-step-card.highlight {
    background: var(--bg-card) !important;
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3) !important;
}

[data-theme="dark"] .process-step-card .step-icon {
    background: var(--bg-secondary) !important;
}

/* Dark mode - Hero form card */
[data-theme="dark"] .hero-form-card {
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .hero-form-card .card {
    background: transparent !important;
}

[data-theme="dark"] .hero-form-card .card-header {
    background: transparent !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .hero-form-card .form-title {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .hero-form-card .form-subtitle {
    color: var(--text-secondary) !important;
}

/* Dark mode - Trust box */
[data-theme="dark"] .trust-box {
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .trust-box-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%) !important;
    color: white !important;
}

[data-theme="dark"] .trust-box-body {
    background: var(--bg-card) !important;
}

[data-theme="dark"] .trust-badge,
[data-theme="dark"] .security-badge {
    background: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

/* Dark mode - Form trust badge */
[data-theme="dark"] .form-trust-badge {
    background: rgba(59, 130, 246, 0.15) !important;
    color: var(--color-accent) !important;
}

/* Dark mode - Why us section */
[data-theme="dark"] .section-why-us {
    background: var(--bg-secondary) !important;
}

/* Dark mode - Cookie consent banner */
[data-theme="dark"] .cookie-consent {
    background: var(--bg-card);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    border-top: 1px solid var(--border-color);
}

[data-theme="dark"] .cookie-text strong {
    color: var(--text-primary);
}

[data-theme="dark"] .cookie-text p {
    color: var(--text-secondary);
}

[data-theme="dark"] .cookie-consent .btn-outline-secondary {
    color: var(--text-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] .cookie-consent .btn-outline-secondary:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* =============================================================================
   Dark Mode - Comprehensive Page Styles
   ============================================================================= */

/* Page headers */
[data-theme="dark"] .page-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%) !important;
}

[data-theme="dark"] .page-header h1,
[data-theme="dark"] .page-header p {
    color: white !important;
}

/* Cards - All types */
[data-theme="dark"] .card {
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .card-body {
    background: var(--bg-card) !important;
}

[data-theme="dark"] .card-body h2,
[data-theme="dark"] .card-body h3,
[data-theme="dark"] .card-body h4,
[data-theme="dark"] .card-body h5 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .card-body p,
[data-theme="dark"] .card-body li {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .card-body strong {
    color: var(--text-primary) !important;
}

/* Eligibility list */
[data-theme="dark"] .eligibility-list li {
    color: var(--text-secondary) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .eligibility-list strong {
    color: var(--text-primary) !important;
}

/* Document items */
[data-theme="dark"] .document-item {
    background: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .document-item h5 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .document-item p {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .document-item i {
    color: var(--color-primary) !important;
}

/* Factor items (positive/negative) */
[data-theme="dark"] .factor-item {
    background: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .factor-item h5 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .factor-item li {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .factor-item.positive {
    border-right-color: var(--color-success) !important;
}

[data-theme="dark"] .factor-item.negative {
    border-right-color: var(--color-danger) !important;
}

/* Alert boxes */
[data-theme="dark"] .alert {
    background: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .alert-info {
    background: rgba(59, 130, 246, 0.15) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
}

/* Timeline items */
[data-theme="dark"] .timeline-item {
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .timeline-content {
    background: var(--bg-card) !important;
}

[data-theme="dark"] .timeline-content h3 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .timeline-content p,
[data-theme="dark"] .timeline-content li {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .timeline-number {
    background: var(--color-primary) !important;
    color: white !important;
}

/* Feature items / list */
[data-theme="dark"] .feature-item,
[data-theme="dark"] .feature-list .feature-item {
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .feature-item h4 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .feature-item p {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .feature-item i {
    color: var(--color-primary) !important;
}

/* Contact page */
[data-theme="dark"] .contact-info {
    color: var(--text-primary);
}

[data-theme="dark"] .contact-info h2,
[data-theme="dark"] .contact-info h4 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .contact-item {
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .contact-item a,
[data-theme="dark"] .contact-item p {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .contact-icon {
    background: var(--bg-secondary) !important;
    color: var(--color-primary) !important;
}

[data-theme="dark"] .social-contact h4 {
    color: var(--text-primary) !important;
}

/* FAQ contact section */
[data-theme="dark"] .faq-contact {
    background: var(--bg-secondary) !important;
}

[data-theme="dark"] .faq-contact h3 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .faq-contact p {
    color: var(--text-secondary) !important;
}

/* Blog pages */
[data-theme="dark"] .blog-post-content {
    color: var(--text-secondary);
}

[data-theme="dark"] .blog-post-content h2,
[data-theme="dark"] .blog-post-content h3,
[data-theme="dark"] .blog-post-content h4 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .blog-post-content p,
[data-theme="dark"] .blog-post-content li {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .blog-meta {
    color: var(--text-muted) !important;
}

/* Thank you page */
[data-theme="dark"] .thank-you-card {
    background: var(--bg-card) !important;
}

[data-theme="dark"] .thank-you-card h1,
[data-theme="dark"] .thank-you-card h2 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .thank-you-card p {
    color: var(--text-secondary) !important;
}

/* Generic list fixes */
[data-theme="dark"] ul li,
[data-theme="dark"] ol li {
    color: var(--text-secondary);
}

/* Generic text fixes */
[data-theme="dark"] section p,
[data-theme="dark"] section li {
    color: var(--text-secondary);
}

[data-theme="dark"] section h1,
[data-theme="dark"] section h2,
[data-theme="dark"] section h3,
[data-theme="dark"] section h4 {
    color: var(--text-primary);
}

/* Sticky sidebar card */
[data-theme="dark"] .sticky-sidebar .card {
    background: var(--bg-card) !important;
}

/* Process timeline */
[data-theme="dark"] .process-timeline::before {
    background: var(--border-color) !important;
}

/* =============================================================================
   Testimonials Slider
   ============================================================================= */

.testimonials-slider {
    position: relative;
    overflow: hidden;
    padding: 1rem 0;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    min-width: 33.333%;
    padding: 0 0.75rem;
    box-sizing: border-box;
}

@media (max-width: 991px) {
    .testimonial-slide {
        min-width: 50%;
    }
}

@media (max-width: 767px) {
    .testimonial-slide {
        min-width: 100%;
    }
}

/* Slider buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    border: none;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.slider-btn:hover {
    background: var(--color-secondary);
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    right: -10px;
}

.slider-next {
    left: -10px;
}

@media (max-width: 767px) {
    .slider-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .slider-prev {
        right: 5px;
    }
    
    .slider-next {
        left: 5px;
    }
}

/* Slider dots - with proper touch targets */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.slider-dots .dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.slider-dots .dot::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #94a3b8;
    transition: all 0.3s ease;
}

.slider-dots .dot.active::before {
    background: var(--color-primary);
    transform: scale(1.3);
}

.slider-dots .dot:hover::before {
    background: var(--color-accent);
}

/* Dark mode slider */
[data-theme="dark"] .slider-dots .dot {
    background: var(--border-color);
}

[data-theme="dark"] .slider-dots .dot.active {
    background: var(--color-primary);
}

[data-theme="dark"] .timeline-item:not(:last-child)::after {
    background: var(--border-color) !important;
}

/* Documents grid */
[data-theme="dark"] .documents-grid .document-item {
    background: var(--bg-secondary) !important;
}

/* Factor items specific backgrounds */
[data-theme="dark"] .factor-item.positive {
    background: rgba(16, 185, 129, 0.15) !important;
}

[data-theme="dark"] .factor-item.negative {
    background: rgba(239, 68, 68, 0.15) !important;
}

/* Privacy, Terms, Accessibility pages */
[data-theme="dark"] .page-content,
[data-theme="dark"] .content-page {
    color: var(--text-secondary);
}

[data-theme="dark"] .page-content h2,
[data-theme="dark"] .page-content h3,
[data-theme="dark"] .content-page h2,
[data-theme="dark"] .content-page h3 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .page-content p,
[data-theme="dark"] .page-content li,
[data-theme="dark"] .content-page p,
[data-theme="dark"] .content-page li {
    color: var(--text-secondary) !important;
}

/* =============================================================================
   Extra Small Screens (Galaxy Z Fold closed, narrow phones)
   ============================================================================= */

@media (max-width: 380px) {
    /* Container padding */
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    /* Header */
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-brand .brand-icon {
        display: none;
    }
    
    .theme-toggle {
        width: 36px;
        height: 36px;
    }
    
    .btn-primary {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    /* Hero section */
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    .hero-section p {
        font-size: 0.9rem;
    }
    
    .hero-form-card {
        padding: 1rem;
    }
    
    /* Stats section */
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .stats-grid,
    .section-stats .row {
        gap: 0.75rem;
    }
    
    /* Section headers */
    .section-header h2 {
        font-size: 1.4rem;
    }
    
    .section-header p {
        font-size: 0.85rem;
    }
    
    .section-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.75rem;
    }
    
    /* Process cards */
    .process-step-card {
        padding: 1rem;
    }
    
    .process-step-card h4 {
        font-size: 1rem;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }
    
    /* Use case cards */
    .use-case-card {
        padding: 1rem;
    }
    
    .use-case-card h4 {
        font-size: 0.95rem;
    }
    
    .use-case-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* Testimonials */
    .testimonial-card {
        padding: 1rem;
    }
    
    .testimonial-card p {
        font-size: 0.85rem;
    }
    
    /* FAQ */
    .accordion-button {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
    
    .accordion-body {
        font-size: 0.85rem;
        padding: 0.75rem 1rem;
    }
    
    /* Form inputs */
    .form-control {
        font-size: 0.9rem;
        padding: 0.65rem 0.75rem;
    }
    
    .form-label {
        font-size: 0.85rem;
    }
    
    /* Footer */
    .site-footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-widget h5 {
        font-size: 1rem;
    }
    
    .footer-widget a,
    .footer-widget p {
        font-size: 0.85rem;
    }
    
    /* Trust box */
    .trust-box {
        margin: 0 -12px;
        border-radius: 0;
    }
    
    .security-badge {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
    
    /* Feature cards */
    .feature-card {
        padding: 1rem;
    }
    
    .feature-card h4 {
        font-size: 1rem;
    }
}

/* Even smaller screens (under 320px) */
@media (max-width: 320px) {
    .navbar-brand {
        font-size: 1rem;
    }
    
    .hero-section h1 {
        font-size: 1.3rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 1.25rem;
    }
    
    .btn {
        font-size: 0.8rem;
    }
}

/* Fix: restore text colors inside loan type cards in sidebar */
.blog-sidebar .sidebar-widget .loan-type-card {
    background: #fff;
}
.blog-sidebar .sidebar-widget .loan-type-card * {
    color: inherit;
}
.blog-sidebar .sidebar-widget .loan-type-title {
    color: #1e293b !important;
}
.blog-sidebar .sidebar-widget .loan-type-desc {
    color: #64748b !important;
}
.blog-sidebar .sidebar-widget .loan-type-icon {
    color: inherit;
}
.blog-sidebar .sidebar-widget .loan-type-icon.credit { color: #2563eb !important; }
.blog-sidebar .sidebar-widget .loan-type-icon.vehicle { color: #d97706 !important; }
.blog-sidebar .sidebar-widget .loan-type-icon.checks { color: #16a34a !important; }
.blog-sidebar .sidebar-widget .loan-type-icon.pension { color: #be185d !important; }
.blog-sidebar .sidebar-widget .form-control,
.blog-sidebar .sidebar-widget input,
.blog-sidebar .sidebar-widget select,
.blog-sidebar .sidebar-widget textarea {
    color: #1f2937 !important;
    background: #fff !important;
}
.blog-sidebar .sidebar-widget .form-check-label {
    color: #fff !important;
}
.blog-sidebar .sidebar-widget .btn-primary {
    color: #fff !important;
}
/* Dark mode: sidebar widget matches hero-form-card style */
[data-theme="dark"] .blog-sidebar .sidebar-widget {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}
[data-theme="dark"] .blog-sidebar .sidebar-widget .card {
    background: transparent !important;
}
[data-theme="dark"] .blog-sidebar .sidebar-widget .card-header {
    background: transparent !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}
[data-theme="dark"] .blog-sidebar .sidebar-widget .form-title,
[data-theme="dark"] .blog-sidebar .sidebar-widget h2,
[data-theme="dark"] .blog-sidebar .sidebar-widget h3,
[data-theme="dark"] .blog-sidebar .sidebar-widget h4 {
    color: var(--text-primary) !important;
}
[data-theme="dark"] .blog-sidebar .sidebar-widget .form-subtitle,
[data-theme="dark"] .blog-sidebar .sidebar-widget .step-title,
[data-theme="dark"] .blog-sidebar .sidebar-widget p {
    color: var(--text-secondary) !important;
}
[data-theme="dark"] .blog-sidebar .sidebar-widget label {
    color: var(--text-primary) !important;
}
[data-theme="dark"] .blog-sidebar .sidebar-widget .loan-type-card {
    background: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
}
[data-theme="dark"] .blog-sidebar .sidebar-widget .loan-type-title {
    color: var(--text-primary) !important;
}
[data-theme="dark"] .blog-sidebar .sidebar-widget .loan-type-desc {
    color: var(--text-secondary) !important;
}
[data-theme="dark"] .blog-sidebar .sidebar-widget .form-control,
[data-theme="dark"] .blog-sidebar .sidebar-widget input,
[data-theme="dark"] .blog-sidebar .sidebar-widget select,
[data-theme="dark"] .blog-sidebar .sidebar-widget textarea {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}
[data-theme="dark"] .blog-sidebar .sidebar-widget .btn-primary {
    color: #fff !important;
}
[data-theme="dark"] .blog-sidebar .sidebar-widget .form-footer,
[data-theme="dark"] .blog-sidebar .sidebar-widget .form-trust-badge {
    background: rgba(59, 130, 246, 0.15) !important;
    color: var(--color-accent) !important;
}
[data-theme="dark"] .blog-sidebar .sidebar-widget .text-muted,
[data-theme="dark"] .blog-sidebar .sidebar-widget small,
[data-theme="dark"] .blog-sidebar .sidebar-widget span:not(.input-group-text) {
    color: var(--text-secondary) !important;
}
/* Dark mode: info box and warning boxes in sidebar */
[data-theme="dark"] .blog-sidebar .sidebar-widget .form-info-box,
[data-theme="dark"] .blog-sidebar .sidebar-widget .form-warning-box,
[data-theme="dark"] .blog-sidebar .sidebar-widget #loanTypeInfo {
    background: rgba(59, 130, 246, 0.15) !important;
    border-color: rgba(96, 165, 250, 0.3) !important;
    color: var(--text-primary) !important;
}
[data-theme="dark"] .blog-sidebar .sidebar-widget .form-info-box *,
[data-theme="dark"] .blog-sidebar .sidebar-widget .form-warning-box *,
[data-theme="dark"] .blog-sidebar .sidebar-widget #loanTypeInfo * {
    color: var(--text-secondary) !important;
}
[data-theme="dark"] .blog-sidebar .sidebar-widget .form-info-box strong,
[data-theme="dark"] .blog-sidebar .sidebar-widget .form-warning-box strong,
[data-theme="dark"] .blog-sidebar .sidebar-widget #loanTypeInfo strong {
    color: var(--text-primary) !important;
}
/* Light mode: info box in blue sidebar needs white text */
.blog-sidebar .sidebar-widget .form-info-box,
.blog-sidebar .sidebar-widget .form-warning-box,
.blog-sidebar .sidebar-widget #loanTypeInfo {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #fff !important;
    border-radius: 12px;
}
.blog-sidebar .sidebar-widget .form-info-box *,
.blog-sidebar .sidebar-widget #loanTypeInfo * {
    color: rgba(255, 255, 255, 0.95) !important;
}
.blog-sidebar .sidebar-widget .form-info-box strong,
.blog-sidebar .sidebar-widget #loanTypeInfo strong {
    color: #fff !important;
}
/* Category count badges in sidebar - visible in both modes */
.blog-sidebar .sidebar-widget .category-list .count {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    border-radius: 50%;
    min-width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}
[data-theme="dark"] .blog-sidebar .sidebar-widget .category-list .count {
    background: rgba(96, 165, 250, 0.25) !important;
    color: var(--text-primary) !important;
}