/* LeaseCraft CSS bundle: app.core.css */
/* Generated by scripts/build_css_bundles.py — do not edit */

/* --- modern-design-system.css --- */
/* 
 * MODERN DESIGN SYSTEM - LeaseCraft 2026
 * =======================================
 * Professional, polished design with:
 * - Modern color scheme with subtle gradients
 * - Refined typography with better hierarchy
 * - Clean card layouts with subtle shadows
 * - Polished navigation and footer
 * - Better buttons and form styling
 * - Maintains static design (no hover animations)
 */

/* ============================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================ */
:root {
    /* Primary Color Palette - Professional Blue */
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-300: #93c5fd;
    --primary-400: #60a5fa;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --primary-800: #1e40af;
    --primary-900: #1e3a8a;
    
    /* Neutral Colors */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Accent Colors */
    --success-500: #22c55e;
    --success-600: #16a34a;
    --warning-500: #f59e0b;
    --warning-600: #d97706;
    --danger-500: #ef4444;
    --danger-600: #dc2626;
    --info-500: #06b6d4;
    --info-600: #0891b2;
    
    /* Typography */
    --font-sans: 'Inter', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-800) 100%);
    --gradient-hero: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-900) 50%, #0f172a 100%);
    --gradient-light: linear-gradient(180deg, var(--gray-50) 0%, #ffffff 100%);
    --gradient-subtle: linear-gradient(180deg, #ffffff 0%, var(--gray-50) 100%);
}

/* ============================================
   BASE STYLES & TYPOGRAPHY
   ============================================ */
body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--gray-800);
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.3;
    color: var(--gray-900);
    margin-bottom: 0.5em;
}

h1, .h1 { font-size: var(--text-5xl); letter-spacing: -0.025em; }
h2, .h2 { font-size: var(--text-4xl); letter-spacing: -0.02em; }
h3, .h3 { font-size: var(--text-3xl); }
h4, .h4 { font-size: var(--text-2xl); }
h5, .h5 { font-size: var(--text-xl); }
h6, .h6 { font-size: var(--text-lg); }

p {
    margin-bottom: 1rem;
    color: var(--gray-600);
}

.lead {
    font-size: var(--text-xl);
    font-weight: 400;
    color: var(--gray-600);
    line-height: 1.6;
}

/* ============================================
   NAVIGATION - Modern & Polished
   ============================================ */
.navbar {
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--gray-100);
}

.navbar-brand {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--primary-700) !important;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.navbar-brand i,
.navbar-brand .fa,
.navbar-brand svg {
    color: var(--primary-600);
}

.navbar .nav-link {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--gray-600) !important;
    padding: var(--space-2) var(--space-4) !important;
    border-radius: var(--radius-md);
}

.navbar .nav-link.active,
.navbar .nav-link:focus {
    color: var(--primary-700) !important;
    background-color: var(--primary-50);
}

.navbar .dropdown-menu {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-2);
    margin-top: var(--space-2);
}

.navbar .dropdown-item {
    font-size: var(--text-sm);
    color: var(--gray-700);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
}

.navbar .dropdown-item:focus,
.navbar .dropdown-item:active {
    background-color: var(--primary-50);
    color: var(--primary-700);
}

/* Mobile Navigation */
.navbar-toggler {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: var(--space-2) var(--space-3);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px var(--primary-100);
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background: #ffffff;
        padding: var(--space-4);
        border-radius: var(--radius-lg);
        margin-top: var(--space-3);
        box-shadow: var(--shadow-md);
    }
    
    .navbar .nav-link {
        padding: var(--space-3) var(--space-4) !important;
        border-radius: var(--radius-md);
        margin-bottom: var(--space-1);
    }
}

/* ============================================
   HERO SECTIONS - Bold & Engaging
   ============================================ */
.hero-section,
.state-hero,
.page-hero {
    background: var(--gradient-hero);
    padding: var(--space-20) 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before,
.state-hero::before,
.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%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");
    opacity: 0.5;
}

.hero-section *,
.state-hero *,
.page-hero * {
    position: relative;
    z-index: 1;
}

.hero-section h1,
.state-hero h1,
.page-hero h1,
.hero-title {
    color: #ffffff !important;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: var(--space-6);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-section p,
.state-hero p,
.page-hero p,
.hero-subtitle {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: var(--text-xl);
    max-width: 600px;
    margin: 0 auto var(--space-8);
}

/* ============================================
   BUTTONS - Clean & Modern
   ============================================ */
.btn {
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 600;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-lg);
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    text-decoration: none;
    cursor: pointer;
}

.btn-lg {
    font-size: var(--text-base);
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-xl);
}

.btn-sm {
    font-size: var(--text-xs);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
}

/* Primary Button - Gradient */
.btn-primary {
    background: var(--gradient-primary);
    border-color: var(--primary-700);
    color: #ffffff !important;
    box-shadow: var(--shadow-sm);
}

.btn-primary:focus {
    box-shadow: 0 0 0 3px var(--primary-200);
}

/* Secondary Button */
.btn-secondary {
    background: var(--gray-600);
    border-color: var(--gray-600);
    color: #ffffff !important;
}

/* Success Button */
.btn-success {
    background: linear-gradient(135deg, var(--success-500) 0%, var(--success-600) 100%);
    border-color: var(--success-600);
    color: #ffffff !important;
    box-shadow: var(--shadow-sm);
}

/* Outline Buttons */
.btn-outline-primary {
    background: transparent;
    border-color: var(--primary-600);
    color: var(--primary-600) !important;
}

.btn-outline-primary:focus {
    background: var(--primary-50);
}

.btn-outline-secondary {
    background: transparent;
    border-color: var(--gray-300);
    color: var(--gray-700) !important;
}

/* Light Button (for dark backgrounds) */
.btn-light {
    background: #ffffff;
    border-color: #ffffff;
    color: var(--primary-700) !important;
    box-shadow: var(--shadow-md);
}

/* Outline Light Button (for dark backgrounds) */
.btn-outline-light {
    background: transparent;
    border: 2px solid #ffffff !important;
    color: #ffffff !important;
}

.btn-outline-light:focus {
    background: rgba(255, 255, 255, 0.1);
}

/* ============================================
   CARDS - Clean with Subtle Depth
   ============================================ */
.card {
    background: #ffffff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card-body {
    padding: var(--space-6);
}

.card-header {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    padding: var(--space-4) var(--space-6);
    font-weight: 600;
}

.card-footer {
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    padding: var(--space-4) var(--space-6);
}

.card-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--gray-900) !important;
    margin-bottom: var(--space-3);
}

.card-text {
    color: var(--gray-600) !important;
    font-size: var(--text-sm);
    line-height: 1.6;
}

/* Feature Cards */
.feature-card,
.document-card,
.state-card {
    background: #ffffff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.feature-card .icon-wrapper,
.document-card .icon-wrapper {
    width: 56px;
    height: 56px;
    background: var(--primary-50);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
}

.feature-card .icon-wrapper i,
.document-card .icon-wrapper i {
    font-size: 1.5rem;
    color: var(--primary-600);
}

.feature-card h3,
.document-card h3 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-2);
}

.feature-card p,
.document-card p {
    color: var(--gray-600);
    font-size: var(--text-sm);
    margin-bottom: 0;
}

/* ============================================
   FORM STYLING - Modern & Clean
   ============================================ */
.form-label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--space-2);
}

.form-control,
.form-select {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    padding: var(--space-3) var(--space-4);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background-color: #ffffff;
    color: var(--gray-900);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px var(--primary-100);
    outline: none;
}

.form-control::placeholder {
    color: var(--gray-400);
}

.form-text {
    font-size: var(--text-sm);
    color: var(--gray-500);
    margin-top: var(--space-1);
}

/* Input Groups */
.input-group {
    border-radius: var(--radius-lg);
}

.input-group .form-control {
    border-radius: var(--radius-lg);
}

.input-group-text {
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-right: none;
    color: var(--gray-500);
    padding: var(--space-3) var(--space-4);
}

/* ============================================
   BADGES & PILLS
   ============================================ */
.badge {
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    font-weight: 600;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge.bg-primary {
    background: var(--primary-100) !important;
    color: var(--primary-700) !important;
}

.badge.bg-success {
    background: #dcfce7 !important;
    color: var(--success-600) !important;
}

.badge.bg-warning {
    background: #fef3c7 !important;
    color: var(--warning-600) !important;
}

.badge.bg-danger {
    background: #fee2e2 !important;
    color: var(--danger-600) !important;
}

.badge.bg-info {
    background: #cffafe !important;
    color: var(--info-600) !important;
}

/* ============================================
   ALERTS - Subtle & Modern
   ============================================ */
.alert {
    border: none;
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-5);
    font-size: var(--text-sm);
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

.alert-primary {
    background: var(--primary-50);
    color: var(--primary-800);
    border-left: 4px solid var(--primary-500);
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
    border-left: 4px solid var(--success-500);
}

.alert-warning {
    background: #fffbeb;
    color: #92400e;
    border-left: 4px solid var(--warning-500);
}

.alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border-left: 4px solid var(--danger-500);
}

.alert-info {
    background: #ecfeff;
    color: #155e75;
    border-left: 4px solid var(--info-500);
}

/* ============================================
   TABLES - Clean & Readable
   ============================================ */
.table {
    font-size: var(--text-sm);
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-700);
    text-transform: uppercase;
    font-size: var(--text-xs);
    letter-spacing: 0.05em;
    padding: var(--space-4);
    border-bottom: 2px solid var(--gray-200);
}

.table tbody td {
    padding: var(--space-4);
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
    vertical-align: middle;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: var(--gray-50);
}

/* ============================================
   FOOTER - Professional & Clean
   ============================================ */
.footer,
footer.bg-dark {
    background: var(--gray-900) !important;
    color: var(--gray-300);
    padding: var(--space-16) 0 var(--space-8);
}

.footer h5,
footer.bg-dark h5 {
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: var(--space-4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer ul,
footer.bg-dark ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer ul li,
footer.bg-dark ul li {
    margin-bottom: var(--space-2);
}

.footer a,
footer.bg-dark a {
    color: var(--gray-400) !important;
    text-decoration: none;
    font-size: var(--text-sm);
}

.footer a:focus,
footer.bg-dark a:focus {
    color: #ffffff !important;
    text-decoration: underline;
}

.footer-bottom,
.footer .border-top {
    border-top: 1px solid var(--gray-800) !important;
    padding-top: var(--space-8);
    margin-top: var(--space-8);
}

.footer-bottom p,
.footer .border-top p {
    color: var(--gray-500);
    font-size: var(--text-sm);
    margin: 0;
}

/* ============================================
   SECTIONS & CONTAINERS
   ============================================ */
section {
    padding: var(--space-16) 0;
}

.section-title {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--gray-900);
    text-align: center;
    margin-bottom: var(--space-4);
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--gray-600);
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-12);
}

.bg-light {
    background: var(--gradient-light) !important;
}

.bg-gray {
    background: var(--gray-50);
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumb {
    background: transparent;
    padding: var(--space-3) 0;
    margin-bottom: var(--space-4);
    font-size: var(--text-sm);
}

.breadcrumb-item a {
    color: var(--primary-600) !important;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--gray-500);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--gray-400);
}

/* ============================================
   LIST GROUPS
   ============================================ */
.list-group {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.list-group-item {
    border: none;
    border-bottom: 1px solid var(--gray-100);
    padding: var(--space-4) var(--space-5);
    color: var(--gray-700);
}

.list-group-item:last-child {
    border-bottom: none;
}

.list-group-item.active {
    background: var(--primary-50);
    color: var(--primary-700);
}

/* ============================================
   ACCORDION
   ============================================ */
.accordion {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.accordion-item {
    border: 1px solid var(--gray-200);
    margin-bottom: -1px;
}

.accordion-button {
    font-weight: 600;
    color: var(--gray-900);
    padding: var(--space-4) var(--space-5);
}

.accordion-button:not(.collapsed) {
    background: var(--primary-50);
    color: var(--primary-700);
}

.accordion-body {
    padding: var(--space-5);
    color: var(--gray-600);
}

/* ============================================
   UTILITIES
   ============================================ */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.divider {
    height: 4px;
    width: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    margin: var(--space-4) auto;
}

.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--primary-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-600);
}

.icon-circle-lg {
    width: 72px;
    height: 72px;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
    :root {
        --text-5xl: 2.25rem;
        --text-4xl: 1.875rem;
        --text-3xl: 1.5rem;
    }
    
    section {
        padding: var(--space-10) 0;
    }
    
    .hero-section,
    .state-hero,
    .page-hero {
        padding: var(--space-12) 0;
    }
    
    .card-body {
        padding: var(--space-4);
    }
    
    .feature-card,
    .document-card {
        padding: var(--space-5);
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .btn-lg {
        padding: var(--space-3) var(--space-6);
    }
}

/* ============================================
   WIZARD SPECIFIC STYLING
   ============================================ */
.wizard-container {
    background: #ffffff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.wizard-header {
    background: var(--gradient-primary);
    padding: var(--space-6);
    color: #ffffff;
}

.wizard-progress {
    background: var(--gray-200);
    height: 8px;
    border-radius: var(--radius-full);
    overflow: hidden;
}

.wizard-progress-bar {
    background: var(--gradient-primary);
    height: 100%;
}

.wizard-step {
    background: #ffffff;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    text-align: center;
}

.wizard-step.active {
    border-color: var(--primary-500);
    background: var(--primary-50);
}

.wizard-step.completed {
    border-color: var(--success-500);
    background: #f0fdf4;
}

/* ============================================
   STATE PAGES SPECIFIC
   ============================================ */
.state-header-banner {
    background: var(--gradient-hero);
    padding: var(--space-12) 0;
    color: #ffffff;
}

.state-header-banner h1 {
    color: #ffffff !important;
}

.state-header-banner p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.state-info-card {
    background: #ffffff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
}

/* ============================================
   CTA SECTIONS
   ============================================ */
.cta-section {
    background: var(--gradient-primary);
    padding: var(--space-16) 0;
    text-align: center;
    color: #ffffff;
}

.cta-section h2 {
    color: #ffffff;
    margin-bottom: var(--space-4);
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-6);
}

/* Floating CTA Button */
.floating-cta-btn {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    z-index: 1000;
    background: var(--gradient-primary);
    color: #ffffff !important;
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-xl);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

@media (max-width: 768px) {
    .floating-cta-btn {
        bottom: var(--space-4);
        right: var(--space-4);
        left: var(--space-4);
        justify-content: center;
    }
}

/* --- dark-mode.css --- */
/**
 * Dark Mode Styles
 * Provides dark theme support with smooth transitions
 */

:root {
    /* Light theme (default) */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-muted: #adb5bd;
    --border-color: #dee2e6;
    --link-color: #0056b3;
    --link-hover: #004085;
    --card-bg: #ffffff;
    --input-bg: #ffffff;
    --input-border: #ced4da;
    --shadow: rgba(0, 0, 0, 0.1);
    --code-bg: #f8f9fa;
}

[data-theme="dark"] {
    /* Dark theme */
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-tertiary: #3d3d3d;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;
    --border-color: #404040;
    --link-color: #4da6ff;
    --link-hover: #66b3ff;
    --card-bg: #2d2d2d;
    --input-bg: #2d2d2d;
    --input-border: #404040;
    --shadow: rgba(0, 0, 0, 0.5);
    --code-bg: #1a1a1a;
}

/* Smooth transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Premium layout stays light unless user explicitly toggles dark */
html[data-theme="light"] body.premium-body,
body.premium-body {
    background-color: #f8fafc !important;
    color: #0f172a !important;
}

html[data-theme="light"] body.premium-body .main-content-premium,
body.premium-body .main-content-premium {
    background-color: #f8fafc !important;
    color: #0f172a !important;
}

/* Body and main containers */
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* Cards */
.card {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.card-header {
    background-color: var(--bg-secondary);
    border-bottom-color: var(--border-color);
}

/* Navigation */
.navbar {
    background-color: var(--bg-primary) !important;
    border-bottom: 1px solid var(--border-color);
}

.navbar-brand,
.nav-link {
    color: var(--text-primary) !important;
}

.nav-link:hover {
    color: var(--link-color) !important;
}

/* Forms */
.form-control,
.form-select {
    background-color: var(--input-bg);
    border-color: var(--input-border);
    color: var(--text-primary);
}

.form-control:focus,
.form-select:focus {
    background-color: var(--input-bg);
    border-color: var(--link-color);
    color: var(--text-primary);
}

.form-label {
    color: var(--text-primary);
}

/* Buttons */
.btn-primary {
    background-color: var(--link-color);
    border-color: var(--link-color);
}

.btn-primary:hover {
    background-color: var(--link-hover);
    border-color: var(--link-hover);
}

.btn-outline-primary {
    color: var(--link-color);
    border-color: var(--link-color);
}

.btn-outline-primary:hover {
    background-color: var(--link-color);
    border-color: var(--link-color);
}

/* Links */
a {
    color: var(--link-color);
}

a:hover {
    color: var(--link-hover);
}

/* Tables */
.table {
    color: var(--text-primary);
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: var(--bg-secondary);
}

.table-bordered {
    border-color: var(--border-color);
}

.table-bordered td,
.table-bordered th {
    border-color: var(--border-color);
}

/* Code blocks */
code,
pre {
    background-color: var(--code-bg);
    color: var(--text-primary);
}

/* Modals */
.modal-content {
    background-color: var(--card-bg);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.modal-header {
    border-bottom-color: var(--border-color);
}

.modal-footer {
    border-top-color: var(--border-color);
}

/* Dropdowns */
.dropdown-menu {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

.dropdown-item {
    color: var(--text-primary);
}

.dropdown-item:hover {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

/* Alerts */
.alert {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

/* Badges */
.badge {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

/* Shadows */
.shadow,
.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem var(--shadow) !important;
}

/* Text colors */
.text-muted {
    color: var(--text-muted) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

/* Background colors */
.bg-light {
    background-color: var(--bg-secondary) !important;
}

.bg-white {
    background-color: var(--bg-primary) !important;
}

/* Borders */
.border {
    border-color: var(--border-color) !important;
}

/* Dark mode toggle button */
.dark-mode-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dark-mode-toggle:hover {
    background-color: var(--bg-secondary);
}

/* Respect system preference — only when user has not locked light theme */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]):not([data-theme="dark"]) {
        --bg-primary: #1a1a1a;
        --bg-secondary: #2d2d2d;
        --bg-tertiary: #3d3d3d;
        --text-primary: #ffffff;
        --text-secondary: #b0b0b0;
        --text-muted: #808080;
        --border-color: #404040;
        --link-color: #4da6ff;
        --link-hover: #66b3ff;
        --card-bg: #2d2d2d;
        --input-bg: #2d2d2d;
        --input-border: #404040;
        --shadow: rgba(0, 0, 0, 0.5);
        --code-bg: #1a1a1a;
    }
}

/* --- enhanced-ui.css --- */
/**
 * Enhanced UI - Search, suggestions, offline, auto-save
 */

.search-suggestions {
  min-height: 80px;
}

.search-suggestions .suggestion-item {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.search-suggestions .suggestion-item:hover,
.search-suggestions .suggestion-item:focus {
  background: var(--bg-secondary, rgba(0, 0, 0, 0.05));
}

.search-suggestions .suggestion-item.active {
  background: rgba(13, 110, 253, 0.1);
}

.search-suggestions .suggestions-section {
  margin-bottom: 0.75rem;
}

.search-suggestions .suggestions-section:last-child {
  margin-bottom: 0;
}

.search-suggestions .suggestions-section strong {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted, #6c757d);
  display: block;
  margin-bottom: 0.35rem;
  padding-left: 0.25rem;
}

.offline-banner {
  position: sticky;
  top: 0;
  z-index: 1040;
}

#auto-save-toast .toast {
  min-width: 220px;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

#dark-mode-toggle,
[data-bs-toggle="modal"][data-bs-target="#searchModal"] {
  min-width: 2.5rem;
  min-height: 2.5rem;
}

/* Search modal input */
#enhanced-search-input:focus {
  border-color: var(--link-color, #0d6efd);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Mobile: toast above bottom nav */
@media (max-width: 767.98px) {
  #auto-save-toast {
    bottom: 72px;
  }
}

/* --- premium-redesign.css --- */
/**
 * LeaseCraft Premium Redesign — 2026
 * Professional, user-friendly design system applied across all pages.
 * Extends modern-design-system.css with refined tokens and components.
 */

/* ========== PREMIUM DESIGN TOKENS ========== */
:root {
    --premium-primary: #153B6A;
    --premium-primary-light: #1e4d85;
    --premium-primary-dark: #0f2d4f;
    --premium-accent: #16A34A;
    --premium-accent-light: #22c55e;
    --premium-surface: #ffffff;
    --premium-surface-alt: #f8fafc;
    --premium-surface-elevated: #ffffff;
    --premium-border: #e2e8f0;
    --premium-border-light: #f1f5f9;
    --premium-text: #0f172a;
    --premium-text-muted: #475569;
    --premium-text-subtle: #64748b;
    --premium-nav-bg: rgba(255, 255, 255, 0.98);
    --premium-nav-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    --premium-footer-bg: linear-gradient(165deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    --premium-card-radius: 16px;
    --premium-btn-radius: 12px;
    --premium-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --premium-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
    --premium-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --premium-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --premium-font-display: 'Manrope', 'Inter', sans-serif;
}

/* ========== GLOBAL PREMIUM OVERRIDES ========== */
body.premium-body {
    font-family: var(--premium-font);
    color: var(--premium-text);
    background: var(--premium-surface-alt);
    -webkit-font-smoothing: antialiased;
}

.premium-body .lead,
.premium-body .text-muted {
    color: var(--premium-text-muted) !important;
}

/* ========== PREMIUM NAVBAR ========== */
.navbar-premium {
    background: var(--premium-nav-bg) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--premium-nav-shadow) !important;
    border-bottom: 1px solid var(--premium-border-light) !important;
    padding: 0.75rem 0 !important;
}

.navbar-premium .navbar-brand {
    font-family: var(--premium-font-display);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
    color: var(--premium-primary) !important;
}

.navbar-premium .nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--premium-text-muted) !important;
    padding: 0.5rem 0.75rem !important;
    border-radius: var(--premium-btn-radius);
}

.navbar-premium .nav-link.fw-semibold {
    color: var(--premium-primary) !important;
}

.navbar-premium .btn-primary {
    background: linear-gradient(135deg, var(--premium-primary) 0%, #0e7490 100%);
    border: none;
    border-radius: var(--premium-btn-radius);
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    box-shadow: var(--premium-shadow-sm);
}

.navbar-premium .dropdown-menu {
    border: 1px solid var(--premium-border);
    border-radius: 12px;
    box-shadow: var(--premium-shadow-lg);
    padding: 0.5rem;
}

.navbar-premium .dropdown-item {
    border-radius: 8px;
    padding: 0.5rem 1rem;
}

/* ========== AI BANNER — PREMIUM, SUBTLE ========== */
.premium-ai-banner,
#ai-assistant-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    background: linear-gradient(90deg, var(--premium-primary) 0%, #0e7490 100%);
    color: #fff;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    box-shadow: var(--premium-shadow);
    border: none;
}

.premium-ai-banner-icon {
    margin-right: 0.35rem;
}

.premium-banner-spacer {
    height: 40px;
}

/* ========== MAIN CONTENT — PREMIUM LAYOUT ========== */
.main-content-premium {
    background: var(--premium-surface-alt);
    min-height: 60vh;
}

.premium-content-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

.premium-bg-layer-1,
.premium-bg-layer-2,
.premium-bg-layer-3 {
    display: none;
}

/* ========== PREMIUM SECTIONS ========== */
.premium-section {
    padding: 3rem 0;
}

.premium-section-alt {
    background: var(--premium-surface);
    border-radius: var(--premium-card-radius);
    box-shadow: var(--premium-shadow-sm);
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.premium-hero {
    background: linear-gradient(165deg, var(--premium-primary-dark) 0%, var(--premium-primary) 50%, #0e7490 100%);
    color: #fff;
    padding: 3.5rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.premium-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 20V40H20'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.premium-hero h1,
.premium-hero .premium-hero-title {
    font-family: var(--premium-font-display);
    font-size: clamp(1.875rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    color: #fff !important;
}

.premium-hero p,
.premium-hero .premium-hero-sub {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* ========== PREMIUM CARDS ========== */
.premium-card,
.premium-body .card {
    background: var(--premium-surface);
    border: 1px solid var(--premium-border-light);
    border-radius: var(--premium-card-radius);
    box-shadow: var(--premium-shadow-sm);
}

.premium-body .card-header {
    background: var(--premium-surface-alt);
    border-bottom: 1px solid var(--premium-border-light);
    font-weight: 600;
    padding: 1rem 1.5rem;
}

.premium-body .card-body {
    padding: 1.5rem;
}

/* ========== PREMIUM BUTTONS ========== */
.premium-body .btn-primary {
    background: linear-gradient(135deg, var(--premium-primary) 0%, #0e7490 100%);
    border: none;
    border-radius: var(--premium-btn-radius);
    font-weight: 600;
    box-shadow: var(--premium-shadow-sm);
}

.premium-body .btn-success {
    background: linear-gradient(135deg, var(--premium-accent) 0%, #047857 100%);
    border: none;
    border-radius: var(--premium-btn-radius);
    font-weight: 600;
}

.premium-body .btn-outline-primary {
    border: 2px solid var(--premium-primary);
    color: var(--premium-primary) !important;
    border-radius: var(--premium-btn-radius);
    font-weight: 600;
}

.premium-body .btn-outline-secondary {
    border: 1px solid var(--premium-border);
    color: var(--premium-text-muted) !important;
    border-radius: var(--premium-btn-radius);
}

.premium-body .btn-light {
    background: #fff;
    color: var(--premium-primary) !important;
    border: none;
    border-radius: var(--premium-btn-radius);
    font-weight: 600;
    box-shadow: var(--premium-shadow);
}

.premium-body .btn-outline-light {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.9);
    color: #fff !important;
    border-radius: var(--premium-btn-radius);
}

/* ========== CORE ACTIONS BAR — PREMIUM ========== */
.core-actions {
    background: var(--premium-surface) !important;
    border-bottom: 1px solid var(--premium-border-light) !important;
    padding: 0.75rem 1rem !important;
}

.core-actions .core-action-link {
    color: var(--premium-text-muted);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
}

.core-actions .core-action-link.fw-semibold {
    color: var(--premium-primary);
}

.core-actions .text-muted {
    color: var(--premium-border) !important;
}

/* Footer styles: see static/css/footer-modern.css */

/* Legacy footer hidden via footer-modern.css */

/* ========== FORMS — PREMIUM ========== */
.premium-body .form-control,
.premium-body .form-select {
    border: 1px solid var(--premium-border);
    border-radius: 10px;
    padding: 0.625rem 1rem;
}

.premium-body .form-control:focus,
.premium-body .form-select:focus {
    border-color: var(--premium-primary-light);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.premium-body .form-label {
    font-weight: 600;
    color: var(--premium-text);
}

/* ========== MOBILE BOTTOM NAV — PREMIUM ========== */
.mobile-bottom-nav {
    background: var(--premium-nav-bg) !important;
    border-top: 1px solid var(--premium-border-light);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.04);
}

.mobile-bottom-nav .mobile-nav-link {
    color: var(--premium-text-muted);
    font-size: 0.75rem;
    font-weight: 500;
}

.mobile-bottom-nav .mobile-nav-link.active,
.mobile-bottom-nav .mobile-nav-link.mobile-nav-cta {
    color: var(--premium-primary);
}

/* ========== HUB PAGES — HERO, POPULAR, STATS, GRIDS ========== */
.premium-hero .btn-light { background: #fff; color: var(--premium-primary) !important; font-weight: 600; }
.premium-hero .btn-success { background: rgba(16, 185, 129, 0.9); border: none; color: #fff; font-weight: 600; }
.premium-hero .text-white-50 { color: rgba(255, 255, 255, 0.7); }

.premium-popular-strip {
    background: var(--premium-surface);
    padding: 2rem 0;
    border-bottom: 1px solid var(--premium-border-light);
}

.premium-stats-section {
    background: linear-gradient(165deg, var(--premium-primary) 0%, #0e7490 100%);
    color: #fff;
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.premium-stats-section .stat-number {
    font-family: var(--premium-font-display);
    font-size: 2rem;
    font-weight: 800;
    display: block;
}

.premium-stats-section .stat-label {
    font-size: 0.9375rem;
    opacity: 0.9;
}

.premium-doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.premium-doc-card {
    background: var(--premium-surface);
    border: 1px solid var(--premium-border-light);
    border-radius: var(--premium-card-radius);
    padding: 1.5rem;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.premium-category-card {
    background: var(--premium-surface);
    border: 1px solid var(--premium-border-light);
    border-radius: var(--premium-card-radius);
    padding: 2rem;
    text-align: center;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.premium-search-bar .form-control {
    border-radius: 50px;
    padding: 0.75rem 1.25rem;
}

/* ========== SKIP LINK & ACCESSIBILITY ========== */
.skip-to-content {
    position: absolute;
    left: -9999px;
    z-index: 9999;
    padding: 0.75rem 1.25rem;
    background: var(--premium-primary);
    color: #fff;
    font-weight: 600;
    border-radius: var(--premium-btn-radius);
}

.skip-to-content:focus {
    left: 1rem;
    top: 1rem;
}

/* ========== PAGE TITLES & SECTIONS ========== */
.premium-body h1, .premium-body .h1 {
    font-family: var(--premium-font-display);
    font-weight: 800;
    color: var(--premium-text);
    letter-spacing: -0.03em;
}

.premium-body h2, .premium-body .h2 {
    font-family: var(--premium-font-display);
    font-weight: 700;
    color: var(--premium-text);
}

.premium-body .display-4,
.premium-body .display-5,
.premium-body .display-6 {
    font-family: var(--premium-font-display);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--premium-text);
}

.text-primary {
    color: var(--premium-primary) !important;
}

/* ========== ALERTS & BADGES ========== */
.premium-body .alert-info {
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.2);
    color: var(--premium-primary-dark);
    border-radius: 12px;
}

.premium-body .alert-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
}

.premium-body .badge.bg-primary {
    background: rgba(12, 74, 110, 0.12) !important;
    color: var(--premium-primary) !important;
}

/* ========== CONTAINER & LAYOUT ========== */
.premium-body .container {
    max-width: 1200px;
}

@media (min-width: 1400px) {
    .premium-body .container { max-width: 1320px; }
}

/* ========== SEARCH MODAL & TOAST — PREMIUM ========== */
.premium-body #searchModal .modal-content {
    border: 1px solid var(--premium-border-light);
    border-radius: var(--premium-card-radius);
    box-shadow: var(--premium-shadow-lg);
}

.premium-body #searchModal .modal-header .form-control {
    border-radius: 12px;
}

.premium-body #auto-save-toast .toast {
    border-radius: 12px;
    box-shadow: var(--premium-shadow-lg);
}

.premium-body .offline-banner {
    background: #fef3c7;
    border-bottom: 1px solid #fcd34d;
    color: #92400e;
}

/* ========== DARK MODE ADJUSTMENTS ========== */
[data-theme="dark"] .premium-body,
.premium-body.dark {
    --premium-surface: #1e293b;
    --premium-surface-alt: #0f172a;
    --premium-text: #f1f5f9;
    --premium-text-muted: #94a3b8;
    --premium-border: #334155;
    --premium-border-light: #1e293b;
}

/* --- no-hover-effects.css --- */
/**
 * Global hover kill switch — loaded last to override all theme/wizard CSS.
 * Disables motion, shadow, and color-shift on hover without breaking button styles.
 */

*,
*::before,
*::after {
    transition: none !important;
    animation: none !important;
}

*:hover,
*:hover::before,
*:hover::after {
    transform: none !important;
    -webkit-transform: none !important;
    filter: none !important;
    text-shadow: none !important;
}

a:hover,
button:hover,
.btn:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-outline-light:hover,
.nav-link:hover,
.navbar-nav .nav-link:hover,
.dropdown-item:hover,
.card:hover,
.lc-btn-primary:hover,
.lc-btn-secondary:hover,
.lc-btn-nav:hover,
.lc-doc-card:hover,
.lc-step-card:hover,
.lc-state-chip:hover,
.premium-doc-card:hover,
.premium-category-card:hover,
.core-action-link:hover,
.hover-shadow:hover,
.hover-card:hover,
.hover-lift:hover,
.wizard-step:hover,
.state-card:hover,
.document-card:hover,
.feature-card:hover,
.preview-toggle-btn:hover,
.list-group-item:hover,
.list-group-item-action:hover,
.table-hover tbody tr:hover,
tr:hover {
    transform: none !important;
    -webkit-transform: none !important;
    box-shadow: none !important;
    filter: none !important;
    text-shadow: none !important;
    opacity: 1 !important;
}

/* Focus-only affordance for keyboard users */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible {
    outline: 2px solid #3498db !important;
    outline-offset: 2px !important;
}

/* --- contrast-and-mobile.css --- */
/**
 * Contrast & Mobile UI — WCAG AA and responsive fixes
 * Ensures readable text on desktop/mobile and adequate touch targets.
 */

/* ========== CONTRAST FIXES (WCAG AA: 4.5:1 normal text, 3:1 large) ========== */

/* Muted / secondary text: use darker gray for 4.5:1 on white */
.text-muted,
.small.text-muted,
.form-text,
.breadcrumb-item.active,
.section-subtitle,
.lead.text-muted {
    color: #4b5563 !important; /* gray-600, ~5.5:1 on white */
}

/* Placeholder text: ensure minimum contrast */
.form-control::placeholder,
.form-select option[disabled],
input::placeholder,
textarea::placeholder {
    color: #6b7280 !important; /* gray-500, ~4.6:1 */
}

/* Nav links and dropdown items: readable on light bg */
.navbar .nav-link,
.navbar-premium .nav-link,
.navbar .dropdown-item {
    color: #374151 !important; /* gray-700 */
}
.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar-premium .nav-link:hover,
.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    color: #1e40af !important;
}

/* Footer: ensure links meet 4.5:1 on dark background */
.footer a,
.footer-section a,
footer.bg-dark a,
.premium-body .footer-section a {
    color: rgba(255, 255, 255, 0.9) !important;
}
.footer a:hover,
.footer a:focus,
.footer-section a:hover,
footer.bg-dark a:hover,
.premium-body .footer-section a:hover {
    color: #fff !important;
}
.footer-bottom p,
.copyright-section p,
.premium-body .footer-section .text-muted {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Card and body secondary text */
.card-text,
.feature-card p,
.document-card p {
    color: #4b5563 !important;
}

/* Hero subtitle on dark: keep high contrast */
.hero-section p,
.state-hero p,
.page-hero p,
.premium-hero p {
    color: rgba(255, 255, 255, 0.95) !important;
}

/* Hero secondary / utility text (e.g. Bootstrap text-white-50): ensure AA */
.hero-section .text-white-50,
.state-hero .text-white-50,
.page-hero .text-white-50 {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Input group addon text */
.input-group-text {
    color: #374151 !important;
    background-color: #f3f4f6 !important;
}

/* Search suggestions section label */
.search-suggestions .suggestions-section strong {
    color: #4b5563 !important;
}

/* ========== MOBILE VIEW & VIEWPORT ========== */

/* Ensure viewport is set (backup for templates that omit it) */
@supports (width: 100dvw) {
    html {
        font-size: 16px;
    }
}

/* Prevent horizontal scroll on small screens */
body {
    overflow-x: hidden;
}
.container, .container-fluid {
    max-width: 100%;
}

/* ========== TOUCH TARGETS (min 44x44px for mobile) ========== */

@media (max-width: 767.98px) {
    /* Buttons and links used as primary actions */
    .btn,
    .btn-lg,
    .btn-sm,
    .nav-link,
    .navbar .dropdown-item,
    a.btn {
        min-height: 44px;
        min-width: 44px;
        padding: 0.6rem 1rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Form controls: comfortable tap height */
    .form-control,
    .form-select {
        min-height: 44px;
        padding: 0.6rem 0.75rem;
    }

    /* Nav toggler */
    .navbar-toggler {
        min-width: 44px;
        min-height: 44px;
        padding: 0.5rem;
    }

    /* Card links and clickable areas */
    .document-card,
    .template-card,
    .list-group-item-action {
        padding: 1rem;
    }

    /* Footer: spacing between links so wrong one isn't hit */
    .footer-section a,
    .footer-content a {
        display: inline-block;
        padding: 0.35rem 0;
        margin: 0.1rem 0;
    }

    /* Floating CTA and fixed bottom actions */
    .floating-cta-btn,
    .fixed-bottom .btn {
        min-height: 48px;
        padding: 0.75rem 1.25rem;
    }
}

/* ========== DESKTOP: READABLE LINE LENGTH ========== */

@media (min-width: 992px) {
    .container {
        max-width: 1140px;
    }
    .lead,
    .section-subtitle {
        max-width: 42em;
    }
}

/* ========== FOCUS VISIBLE (keyboard / a11y) ========== */

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
.nav-link:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* ========== WIZARD (state doc + form wizards) ========== */

/* Wizard step labels and card secondary text */
.wizard-container .text-muted,
.wizard-container .card-text,
.wizard-container .small.text-muted,
.wizard-container .form-text {
    color: #4b5563 !important;
}

.wizard-container .card-header,
.wizard-container .wizard-form-section h3 {
    color: #1f2937 !important;
}

/* Wizard primary actions: adequate touch targets on mobile */
@media (max-width: 767.98px) {
    .wizard-container .btn-primary,
    .wizard-container .btn-success,
    .wizard-container .wizard-next,
    .wizard-container .wizard-prev {
        min-height: 48px;
        padding: 0.75rem 1.25rem;
    }
    .wizard-steps .wizard-step {
        min-height: 44px;
        padding: 0.5rem 0.25rem;
    }
}

/* ========== STATE DOCUMENT PAGE ========== */

/* Hero secondary text (overrides inline rgba(0.8) where present) */
.state-hero [style*="rgba(255,255,255,0.8)"],
.page-hero [style*="rgba(255,255,255,0.8)"] {
    color: rgba(255, 255, 255, 0.92) !important;
}

/* Card body small text on state page */
.card .small.text-muted,
.card-body .small.text-muted {
    color: #4b5563 !important;
}

/* ========== REDUCE MOTION (optional, respects user preference) ========== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* --- footer-modern.css --- */
/**
 * LeaseCraft global footer — single source of truth.
 * Loaded site-wide via base.html and wizard layouts.
 */

:root {
    --lc-footer-navy: #0f2744;
    --lc-footer-navy-mid: #153b6a;
    --lc-footer-green: #16a34a;
    --lc-footer-green-light: #86efac;
    --lc-footer-text: rgba(255, 255, 255, 0.88);
    --lc-footer-muted: rgba(255, 255, 255, 0.72);
    --lc-footer-link: rgba(255, 255, 255, 0.82);
    --lc-footer-link-hover: #ffffff;
    --lc-footer-border: rgba(255, 255, 255, 0.14);
}

.lc-footer-modern {
    background: linear-gradient(165deg, var(--lc-footer-navy) 0%, var(--lc-footer-navy-mid) 55%, #1a4d3e 100%);
    color: var(--lc-footer-text);
    padding: 3rem 0 1.5rem;
    margin-top: auto;
    border-top: 3px solid var(--lc-footer-green);
    overflow-x: hidden;
}

.lc-footer-modern .container {
    max-width: 1140px;
}

.lc-footer-brand {
    margin-bottom: 2rem;
    max-width: 42rem;
}

.lc-footer-brand-name {
    font-family: "Manrope", "Inter", system-ui, sans-serif;
    font-size: 1.375rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}

.lc-footer-trust {
    font-size: 1rem;
    line-height: 1.55;
    color: var(--lc-footer-text);
    margin: 0 0 0.5rem;
}

.lc-footer-legal-note {
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--lc-footer-muted);
    margin: 0;
}

.lc-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 2rem;
    row-gap: 1.5rem;
}

.lc-footer-section {
    border: none;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.lc-footer-heading {
    font-family: "Manrope", "Inter", system-ui, sans-serif;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.875rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    list-style: none;
    cursor: default;
}

.lc-footer-section summary::-webkit-details-marker {
    display: none;
}

.lc-footer-section nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.lc-footer-modern a {
    display: block;
    color: var(--lc-footer-link);
    text-decoration: none;
    font-size: 0.9375rem;
    line-height: 1.45;
    margin-bottom: 0.5rem;
    max-width: 100%;
    overflow-wrap: anywhere;
    transition: color 0.15s ease;
}

.lc-footer-modern a:hover {
    color: var(--lc-footer-link-hover);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.lc-footer-modern a:focus-visible {
    outline: 2px solid var(--lc-footer-green-light);
    outline-offset: 3px;
    border-radius: 2px;
    color: #fff;
}

.lc-footer-bottom {
    border-top: 1px solid var(--lc-footer-border);
    margin-top: 2rem;
    padding-top: 1.25rem;
    text-align: center;
}

.lc-footer-disclaimer {
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--lc-footer-muted);
    margin: 0 0 0.75rem;
    max-width: 52rem;
    margin-left: auto;
    margin-right: auto;
}

.lc-footer-copy {
    font-size: 0.875rem;
    color: var(--lc-footer-muted);
    margin: 0 0 0.75rem;
}

.lc-footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    column-gap: 1.25rem;
    row-gap: 0.5rem;
}

.lc-footer-bottom-links a {
    display: inline-block;
    margin-bottom: 0;
    font-size: 0.875rem;
    font-weight: 600;
}

@media (max-width: 991px) {
    .lc-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .lc-footer-modern {
        padding: 2rem 0 1.25rem;
    }

    .lc-footer-grid {
        grid-template-columns: 1fr;
        row-gap: 0;
    }

    .lc-footer-section {
        border-bottom: 1px solid var(--lc-footer-border);
    }

    .lc-footer-section:last-child {
        border-bottom: none;
    }

    .lc-footer-heading {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.875rem 0;
        margin: 0;
        cursor: pointer;
    }

    .lc-footer-heading::after {
        content: "+";
        font-size: 1.125rem;
        font-weight: 600;
        color: var(--lc-footer-green-light);
        line-height: 1;
    }

    .lc-footer-section[open] .lc-footer-heading::after {
        content: "−";
    }

    .lc-footer-section nav {
        padding-bottom: 0.875rem;
    }
}

@media (min-width: 768px) {
    .lc-footer-section {
        pointer-events: auto;
    }

    .lc-footer-heading {
        pointer-events: none;
    }

    .lc-footer-heading::after {
        display: none;
    }
}

/* Neutralize legacy footer styles when old markup remains on orphan pages */
footer.footer:not(.lc-footer-modern),
footer.bg-light:not(.lc-footer-modern) {
    display: none !important;
}

/* --- ai-assistant-widget.css --- */
/* AI Assistant Widget Styles - Force Visibility */
#aiAssistantWidget {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 99999 !important;
    width: 350px !important;
    background: white !important;
    border-radius: 15px !important;
    box-shadow: 0 8px 30px rgba(0,86,179,0.3) !important;
    border: 2px solid #0056b3 !important;
    display: none !important;
    flex-direction: column !important;
    overflow: hidden !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

#aiAssistantToggle {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #0056b3, #007bff) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(0,86,179,0.4) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 24px !important;
    color: white !important;
    transition: all 0.3s ease !important;
    z-index: 99999 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.ai-widget-header {
    background: linear-gradient(135deg, #0056b3, #007bff) !important;
    color: white !important;
    padding: 15px !important;
    font-weight: 600 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.ai-widget-close {
    background: none !important;
    border: none !important;
    color: white !important;
    font-size: 20px !important;
    cursor: pointer !important;
    padding: 0 !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.ai-widget-content {
    padding: 20px !important;
    height: 400px !important;
    overflow-y: auto !important;
}

.ai-chat-messages {
    margin-bottom: 15px !important;
    max-height: 250px !important;
    overflow-y: auto !important;
}

.ai-message {
    margin-bottom: 10px !important;
    padding: 10px !important;
    border-radius: 8px !important;
    background: #f8f9fa !important;
    border-left: 3px solid #0056b3 !important;
}

.ai-quick-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    margin-top: 15px !important;
}

.ai-action-btn {
    padding: 8px 12px !important;
    border: 1px solid #0056b3 !important;
    background: white !important;
    color: #0056b3 !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    text-align: center !important;
    font-size: 12px !important;
    transition: all 0.2s ease !important;
}

.ai-chat-input {
    display: flex !important;
    gap: 8px !important;
    margin-top: 15px !important;
}

.ai-chat-input input {
    flex: 1 !important;
    padding: 8px 12px !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    font-size: 14px !important;
}

.ai-chat-input button {
    padding: 8px 15px !important;
    background: #0056b3 !important;
    color: white !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 14px !important;
}

/* Force visibility on all screen sizes */
@media (max-width: 768px) {
    #aiAssistantWidget {
        width: 90vw !important;
        right: 5vw !important;
        bottom: 80px !important;
    }
    
    #aiAssistantToggle {
        width: 50px !important;
        height: 50px !important;
        font-size: 20px !important;
        bottom: 15px !important;
        right: 15px !important;
    }
}

/* --- user-friendly-static.css --- */
/* 
 * USER FRIENDLY STATIC DESIGN
 * ===========================
 * Comprehensive fix for:
 * - All hover effects removed
 * - High contrast for accessibility
 * - Static, clean design
 * - WCAG 2.1 AA compliant colors
 */

/* ============================================
   NUCLEAR OPTION - KILL ALL TRANSITIONS
   ============================================ */

/* Override ROOT elements first */
html,
body {
    -webkit-transition: none !important;
    -moz-transition: none !important;
    -ms-transition: none !important;
    -o-transition: none !important;
    transition: none !important;
    transition-property: none !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
    -webkit-animation: none !important;
    -moz-animation: none !important;
    -ms-animation: none !important;
    -o-animation: none !important;
    animation: none !important;
    animation-duration: 0s !important;
    animation-delay: 0s !important;
}

/* Override EVERYTHING - including Bootstrap */
html *, 
html *::before, 
html *::after,
body *,
body *::before,
body *::after,
.card,
.btn,
.nav-link,
.dropdown-item,
.form-control,
.form-select,
a,
button,
[class*="transition"],
[class*="animate"],
[style*="transition"] {
    -webkit-transition: none !important;
    -moz-transition: none !important;
    -ms-transition: none !important;
    -o-transition: none !important;
    transition: none !important;
    transition-property: none !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
    -webkit-animation: none !important;
    -moz-animation: none !important;
    -ms-animation: none !important;
    -o-animation: none !important;
    animation: none !important;
    animation-duration: 0s !important;
    animation-delay: 0s !important;
}

/* Preserve essential functionality */
input, textarea, select, button, a, [tabindex], [role="button"], .accordion-collapse, .collapse, .collapsing {
    pointer-events: auto !important;
}

/* Allow Bootstrap collapse to work (needed for dropdowns/accordions) */
.collapse:not(.show) {
    display: none !important;
}
.collapse.show {
    display: block !important;
}
.collapsing {
    display: block !important;
}

/* ============================================
   REMOVE ALL HOVER EFFECTS
   ============================================ */

/* Links - No color change on hover */
a:hover,
a:focus,
a:active {
    color: inherit !important;
    background-color: transparent !important;
    text-decoration: underline !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Buttons - Completely static */
.btn:hover,
.btn:focus,
.btn:active,
button:hover,
button:focus,
button:active {
    transform: none !important;
    box-shadow: none !important;
    filter: none !important;
    opacity: 1 !important;
}

/* Primary buttons stay blue */
.btn-primary:hover,
.btn-primary:focus {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    color: #fff !important;
}

/* Secondary buttons stay gray */
.btn-secondary:hover,
.btn-secondary:focus {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: #fff !important;
}

/* Success buttons stay green */
.btn-success:hover,
.btn-success:focus {
    background-color: #198754 !important;
    border-color: #198754 !important;
    color: #fff !important;
}

/* Outline buttons stay static */
.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: transparent !important;
    color: #0d6efd !important;
    border-color: #0d6efd !important;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    background-color: transparent !important;
    color: #6c757d !important;
    border-color: #6c757d !important;
}

/* Cards - No lift or shadow change */
.card:hover,
.card:focus-within {
    transform: none !important;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
    border-color: inherit !important;
}

/* State cards - static */
.state-card:hover,
.state-preview-card:hover,
.document-card:hover,
.feature-card:hover {
    transform: none !important;
    box-shadow: none !important;
    background-color: inherit !important;
    border-color: inherit !important;
}

/* Navigation links - static */
.nav-link:hover,
.navbar-nav .nav-link:hover,
.nav-item:hover {
    background-color: transparent !important;
    transform: none !important;
}

/* Dropdown items - static */
.dropdown-item:hover,
.dropdown-item:focus {
    background-color: #f8f9fa !important;
    color: #212529 !important;
    transform: none !important;
}

/* List items - static */
.list-group-item:hover,
.list-group-item-action:hover {
    background-color: #f8f9fa !important;
    transform: none !important;
    z-index: auto !important;
}

/* Table rows - static */
.table-hover tbody tr:hover,
tr:hover {
    background-color: rgba(0,0,0,0.02) !important;
    transform: none !important;
}

/* Form controls - static focus */
.form-control:hover,
.form-select:hover {
    border-color: #ced4da !important;
    box-shadow: none !important;
}

.form-control:focus,
.form-select:focus {
    border-color: #86b7fe !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}

/* ============================================
   HIGH CONTRAST - ACCESSIBILITY FIX
   ============================================ */

/* Body text - High contrast black */
body {
    color: #212529 !important;
    background-color: #ffffff !important;
}

/* Headings - Strong contrast (for light backgrounds) */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    color: #1a1a2e;
}

/* Headings on dark backgrounds - White text */
/* NOTE: Removed [style*="background: linear-gradient"] as it incorrectly applies to light gradients */
.state-hero h1, .state-hero h2, .state-hero h3,
.state-header-banner h1, .state-header-banner h2, .state-header-banner h3,
.hero-content h1, .hero-content h2, .hero-content h3,
.bg-primary h1, .bg-primary h2, .bg-primary h3,
.bg-dark h1, .bg-dark h2, .bg-dark h3 {
    color: #ffffff !important;
}

/* Paragraph and general text */
p, span, div, li, td, th, label {
    color: inherit;
}

/* Muted text - Darker for better contrast (WCAG AA) */
.text-muted {
    color: #495057 !important;
}

/* Secondary text - Ensure readable */
.text-secondary {
    color: #495057 !important;
}

/* Light text on dark backgrounds */
.text-white,
.btn-primary,
.btn-success,
.btn-danger,
.btn-dark,
.bg-primary,
.bg-success,
.bg-danger,
.bg-dark {
    color: #ffffff !important;
}

/* Links - High contrast blue (on light backgrounds only) */
a {
    color: #0056b3 !important;
}

a:visited {
    color: #004494 !important;
}

/* ============================================
   STATE PAGE CONTRAST FIXES
   Links and buttons on dark/gradient backgrounds
   ============================================ */

/* White text for links on dark backgrounds */
/* NOTE: Removed [style*="background: linear-gradient"] as it incorrectly applies to light gradients */
.state-hero a,
.state-header-banner a,
.hero-content a,
.bg-primary a,
.bg-dark a,
.bg-success a,
.bg-danger a,
[style*="background-color: #0056b3"] a,
[style*="background-color: #004494"] a,
.alert-info a.btn-light,
.floating-cta-btn {
    color: #ffffff !important;
}

/* Hero buttons - ensure visibility */
.hero-btn,
.hero-btn.primary,
.hero-btn.secondary,
a.hero-btn {
    color: #0056b3 !important;
}

.hero-btn.secondary,
a.hero-btn.secondary {
    color: #ffffff !important;
    background-color: transparent !important;
    border-color: #ffffff !important;
}

/* Floating CTA button on state pages */
.floating-cta-btn,
a.floating-cta-btn {
    color: #ffffff !important;
    background: linear-gradient(135deg, #0056b3 0%, #004494 100%) !important;
}

/* State header banner links and text */
.state-header-banner,
.state-header-banner h1,
.state-header-banner p,
.state-header-banner span,
.state-header-banner .badge {
    color: #ffffff !important;
}

/* State hero sections */
.state-hero,
.state-hero h1,
.state-hero p,
.state-hero span,
.state-hero .state-badge {
    color: #ffffff !important;
}

/* btn-light on dark backgrounds should be readable */
.btn-light,
a.btn-light {
    color: #0056b3 !important;
    background-color: #ffffff !important;
}

/* Alert with CTA - Skip to Generator button */
.alert-info .btn-light,
.alert a.btn-light {
    color: #0056b3 !important;
    background-color: #ffffff !important;
}

/* Card text */
.card-title {
    color: #1a1a2e !important;
}

.card-text {
    color: #495057 !important;
}

/* Ensure navbar text is visible */
.navbar-light .navbar-nav .nav-link {
    color: #212529 !important;
}

.navbar-dark .navbar-nav .nav-link {
    color: #ffffff !important;
}

/* Footer text - ensure readable */
footer, 
footer p,
footer a,
.footer-text {
    color: inherit !important;
}

/* Placeholder text - Darker */
::placeholder {
    color: #6c757d !important;
    opacity: 1 !important;
}

/* Badge text contrast */
.badge {
    font-weight: 600 !important;
}

.badge.bg-light {
    color: #212529 !important;
}

/* Alert text contrast */
.alert {
    color: inherit !important;
}

.alert-primary {
    color: #084298 !important;
    background-color: #cfe2ff !important;
}

.alert-success {
    color: #0f5132 !important;
    background-color: #d1e7dd !important;
}

.alert-warning {
    color: #664d03 !important;
    background-color: #fff3cd !important;
}

.alert-danger {
    color: #842029 !important;
    background-color: #f8d7da !important;
}

.alert-info {
    color: #055160 !important;
    background-color: #cff4fc !important;
}

/* ============================================
   CLEAN STATIC DESIGN
   ============================================ */

/* Cards - Clean borders */
.card {
    border: 1px solid #dee2e6 !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* Consistent button styling */
.btn {
    border-radius: 0.375rem !important;
    font-weight: 500 !important;
    padding: 0.5rem 1rem !important;
}

/* Form inputs - Clean look */
.form-control,
.form-select {
    border: 1px solid #ced4da !important;
    border-radius: 0.375rem !important;
    padding: 0.625rem 0.875rem !important;
    background-color: #fff !important;
    color: #212529 !important;
}

/* Tables - Clean styling */
.table {
    color: #212529 !important;
}

.table th {
    font-weight: 600 !important;
    color: #1a1a2e !important;
    background-color: #f8f9fa !important;
}

.table td {
    color: #495057 !important;
}

/* Breadcrumbs - High contrast */
.breadcrumb-item a {
    color: #0056b3 !important;
}

.breadcrumb-item.active {
    color: #495057 !important;
}

/* ============================================
   FOCUS STATES - ACCESSIBILITY
   ============================================ */

/* Visible focus for keyboard navigation */
*:focus {
    outline: 2px solid #0056b3 !important;
    outline-offset: 2px !important;
}

/* Skip focus outline for mouse users */
*:focus:not(:focus-visible) {
    outline: none !important;
}

/* Keyboard focus - visible outline */
*:focus-visible {
    outline: 2px solid #0056b3 !important;
    outline-offset: 2px !important;
}

/* Form focus */
.form-control:focus,
.form-select:focus {
    outline: none !important;
    border-color: #0056b3 !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.25) !important;
}

/* Button focus */
.btn:focus,
button:focus {
    outline: 2px solid #0056b3 !important;
    outline-offset: 2px !important;
}

/* ============================================
   SPECIFIC PAGE FIXES
   ============================================ */

/* State landing pages */
.state-lease-card:hover,
.state-info-card:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Document wizard */
.wizard-step:hover,
.wizard-card:hover {
    transform: none !important;
    background-color: inherit !important;
}

/* Clause builder */
.clause-card:hover,
.addendum-card:hover {
    transform: none !important;
    border-color: inherit !important;
}

/* Landing page sections */
.feature-box:hover,
.benefit-card:hover,
.cta-section:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Blog cards */
.blog-card:hover,
.post-card:hover {
    transform: none !important;
}

/* Icon containers */
.icon-box:hover,
.icon-circle:hover {
    transform: none !important;
    background-color: inherit !important;
}

/* Accordion headers */
.accordion-button:hover {
    background-color: inherit !important;
    color: inherit !important;
}

.accordion-button:not(.collapsed):hover {
    background-color: #e7f1ff !important;
}

/* ============================================
   OVERRIDE INLINE STYLES
   ============================================ */

/* Force override any inline hover styles */
[style*="hover"],
[onmouseover],
[onmouseout] {
    transition: none !important;
}

/* Disable CSS-based hover effects from inline styles */
.hover-effect,
.hover-lift,
.hover-shadow,
.hover-scale {
    transform: none !important;
    box-shadow: inherit !important;
}

/* ============================================
   WIZARD FORM STATIC OVERRIDES
   ============================================ */

/* Auto-save indicator - make static without animations */
.auto-save-indicator {
    transition: none !important;
    transform: none !important;
    animation: none !important;
}

.auto-save-indicator.show {
    transition: none !important;
    transform: none !important;
    animation: none !important;
}

/* Draft recovery - no animation */
.draft-recovery {
    animation: none !important;
    transition: none !important;
    transform: none !important;
}

/* Wizard buttons - ensure they are stable and clickable */
.btn-next,
.btn-prev,
.btn-submit,
.wizard-form-section button,
button[data-action="next"],
button[data-action="prev"],
button[data-action="submit"] {
    transition: none !important;
    transform: none !important;
    animation: none !important;
}

/* Autosave notification */
.autosave-notification {
    transition: none !important;
    animation: none !important;
}

/* Progress bar in wizards */
.wizard-progress,
.wizard-progress-bar,
.progress-bar {
    transition: none !important;
    animation: none !important;
}

/* Disable slideDown animation keyframes effect */
@keyframes slideDown {
    from { opacity: 1 !important; transform: none !important; }
    to { opacity: 1 !important; transform: none !important; }
}
