
/* Lucide spinner animation */
@keyframes lucide-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.spin-icon { display: inline-block; animation: lucide-spin 0.8s linear infinite; }
.spin-icon svg { display: block; }
/**
 * SwiftBus_X - Main Stylesheet
 * Ghana's Premier Bus Ticketing Platform
 * Theme: Premium International Standard
 * Typography: Inter Font (Clean & Sharp)
 * Version: 4.0 - Homepage Width Fixed to Match About Us
 */

/* ============================================
   CSS VARIABLES - PREMIUM THEME
   ============================================ */
:root {
    /* Color Theme */
    --primary: #FF3B1F;
    --primary-hover: #E63217;
    --primary-light: #FFE5E0;
    --bg-dark: #0F0F12;
    --surface: #F4F4F6;
    --text-primary: #111111;
    --text-muted: #595959;
    --white: #FFFFFF;
    --border-color: #E5E7EB;
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    
    /* Font Stack */
    --font-primary: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    
    /* Font Sizes */
    --text-xs: 0.6875rem;
    --text-sm: 0.8rem;
    --text-base: 0.875rem;
    --text-lg: 1rem;
    --text-xl: 1.125rem;
    --text-2xl: 1.25rem;
    --text-3xl: 1.5rem;
    --text-4xl: 1.875rem;
    --text-5xl: 2.25rem;
    
    /* Font Weights */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    
    /* Line Heights */
    --leading-tight: 1.2;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    
    /* Letter Spacing */
    --tracking-tight: -0.02em;
    --tracking-normal: 0;
    --tracking-wide: 0.02em;
    
    /* Transitions */
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Spacing Tokens */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    
    /* ✅ LAYOUT - Professional Width Constraints (MATCHES ABOUT US PAGE) */
    --container-max: 1140px;
    --container-padding: 1rem;
    --section-padding-y: 5rem;
    --hero-content-max: 56rem;
    --hero-text-max: 42rem;
    --hero-paragraph-max: 36rem;
}

/* ============================================
   BASE STYLES & RESET
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    line-height: var(--leading-relaxed);
    background: var(--surface);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
}

h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.025em;
    font-feature-settings: "kern" 1, "liga" 1;
}
    text-rendering: optimizeLegibility;
    letter-spacing: var(--tracking-normal);
}

body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-semibold);
    letter-spacing: var(--tracking-tight);
    line-height: var(--leading-tight);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease-in-out;
}

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

/* Premium Custom Scrollbar */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #B5B5B5;
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ============================================
   ✅ LAYOUT & CONTAINER (UPDATED - Matches About Us)
   ============================================ */
.container {
    width: 100% !important;
    max-width: 1140px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: var(--container-padding) !important;
    padding-right: var(--container-padding) !important;
}

/* Hero Content - Constrained Width */
.hero-content {
    max-width: var(--hero-content-max);
    margin: 0 auto;
}

/* ============================================
   NAVIGATION - ENHANCED BLUR & TRANSPARENCY
   ============================================ */
.navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 0.5px solid rgba(229, 231, 235, 0.3);
    transition:
        background 0.4s ease,
        backdrop-filter 0.4s ease,
        -webkit-backdrop-filter 0.4s ease,
        border-color 0.4s ease,
        box-shadow 0.4s ease,
        padding 0.4s ease;
    position: sticky;
    top: 0;
    z-index: 50;
    animation: navbarFadeIn 0.8s var(--transition-smooth) forwards;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    border-bottom: 0.5px solid rgba(229, 231, 235, 0.8);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 59, 31, 0.4) 50%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.navbar.scrolled::before {
    opacity: 1;
}

.sticky-filter {
    position: sticky;
    top: var(--nav-height);
}

/* Nav Links */
.nav-link {
    font-size: 0.8125rem;
    font-weight: 400;
    color: #111111;
    letter-spacing: 0.02em;
    position: relative;
    padding: 0.5rem 0.25rem;
    transition: color 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #FF3B1F, #E63217);
    transition: width 0.4s ease, left 0.4s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
    left: 50%;
}

.nav-link:hover,
.nav-link.active {
    color: #FF3B1F;
}

/* Logo */
.logo-container {
    transition: all 0.4s var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo-container:hover {
    transform: scale(1.03);
}

.logo-icon {
    transition: all 0.4s var(--transition-smooth);
}

.logo-container:hover .logo-icon {
    transform: rotate(-8deg) scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 59, 31, 0.3);
}

/* Divider */
.nav-divider {
    background: linear-gradient(180deg, transparent 0%, #D1D5DB 50%, transparent 100%);
    width: 1px;
    height: 24px;
}

/* Auth Section */
.auth-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Nav Brand */
.nav-brand {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    letter-spacing: var(--tracking-tight);
    color: #111111;
}

/* ============================================
   BUTTONS - ENHANCED PREMIUM
   ============================================ */
.btn-primary,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    font-family: var(--font-primary);
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    letter-spacing: var(--tracking-wide);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #FF3B1F 0%, #E63217 100%);
    color: white;
    padding: 0.5625rem 1.375rem;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 59, 31, 0.3);
}

.btn-outline {
    background: transparent;
    border: 0.5px solid #FF3B1F;
    color: #FF3B1F;
    padding: 0.5625rem 1.375rem;
}

.btn-outline:hover {
    background: #FF3B1F;
    color: white;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.375rem 0.875rem;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 0.6875rem 1.625rem;
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
}

/* ============================================
   MOBILE MENU - FULL SCREEN PREMIUM
   ============================================ */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 18, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--transition-smooth);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-fullscreen {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;          /* fallback */
    height: 100dvh;         /* modern browsers */
    /* JS sets exact px height on open via window.innerHeight
       to exclude mobile browser chrome (address bar, OS nav bar) */
    background: #FFFFFF;
    z-index: 1000;
    transition: right 0.5s var(--transition-smooth);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mobile-menu-fullscreen.active {
    right: 0;
}

/* Mobile Menu Header */
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 0.5px solid #E5E7EB;
    background: #FFFFFF;
    flex-shrink: 0;
}

.mobile-menu-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111111;
    letter-spacing: -0.02em;
}

.mobile-menu-close {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #F4F4F6;
    color: #111111;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s var(--transition-smooth);
    font-size: 1.25rem;
}

.mobile-menu-close:hover {
    background: #FFE5E0;
    color: #FF3B1F;
    transform: rotate(90deg);
}

/* Mobile Menu Content */
.mobile-menu-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* Search Section */
.mobile-search-section {
    padding: 1rem 3rem;
    background: linear-gradient(180deg, #F9FAFB 0%, #FFFFFF 100%);
    border-bottom: 0.5px solid #E5E7EB;
}

.mobile-search-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #595959;
    margin-bottom: 0.625rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mobile-search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.mobile-search-input {
    width: 100%;
    padding: 0.875rem 1.25rem 0.875rem 3rem;
    border: 0.5px solid #E5E7EB;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-family: var(--font-primary);
    background: #FFFFFF;
    color: #111111;
    transition: all 0.25s var(--transition-smooth);
}

.mobile-search-input:focus {
    outline: none;
    border-color: #FF3B1F;
    box-shadow: 0 0 0 3px rgba(255, 59, 31, 0.1);
}

.mobile-search-input::placeholder {
    color: #9CA3AF;
}

.mobile-search-icon {
    position: absolute;
    left: 1rem;
    color: #9CA3AF;
    font-size: 1rem;
    pointer-events: none;
}

.mobile-search-btn {
    position: absolute;
    right: 0.5rem;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: #FF3B1F;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s var(--transition-smooth);
}

.mobile-search-btn:hover {
    background: #E63217;
    transform: scale(1.05);
}

/* Search Results */
.search-results {
    margin-top: 0.875rem;
    display: none;
}

.search-results.active {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 0.5px solid #F4F4F6;
    cursor: pointer;
    transition: all 0.2s var(--transition-smooth);
}

.search-result-item:hover {
    background: #F9FAFB;
    padding-left: 0.5rem;
}

.search-result-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.search-result-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #FFE5E0;
    color: #FF3B1F;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.search-result-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: #111111;
}

.search-result-sub {
    font-size: 0.75rem;
    color: #595959;
    margin-top: 0.125rem;
}

.search-result-arrow {
    color: #9CA3AF;
    font-size: 0.75rem;
}

/* Navigation Menu Sections */
.mobile-nav-section {
    padding: 0.75rem 3.5rem;
    text-align: left;
}

.mobile-nav-section:first-of-type {
    margin-top: 2rem;
}

.mobile-nav-section:not(:first-of-type) {
    margin-top: 1.75rem;
}

.mobile-nav-section:last-child {
    padding-bottom: 1.25rem;
}

.mobile-nav-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #111111;
    margin-bottom: 1.125rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 1rem 0;
    border-bottom: 0.5px solid #F4F4F6;
    text-decoration: none;
    color: #111111;
    transition: all 0.25s var(--transition-smooth);
    font-size: 1rem;
    font-weight: 400;
}

.mobile-nav-item:hover {
    color: #FF3B1F;
}

.mobile-nav-item.active {
    color: #FF3B1F;
    font-weight: 500;
}

.mobile-nav-item:last-child {
    border-bottom: none;
}

.mobile-nav-item-text {
    display: flex;
    align-items: center;
    gap: 0;
    font-size: 1rem;
}

/* Auth Section - Black Background with Glassy Buttons */
.mobile-auth-section {
    padding: 1.25rem 3rem;
    /* Add safe-area padding for iOS home indicator / Android nav bar */
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
    border-top: 0.5px solid #E5E7EB;
    background: #0F0F12;
    flex-shrink: 0;
}

.mobile-auth-buttons {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    justify-content: center;
}

.mobile-auth-buttons .btn-primary,
.mobile-auth-buttons .btn-outline {
    flex: 1;
    max-width: 160px;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.mobile-auth-buttons .btn-outline {
    background: rgba(255, 255, 255, 0.1);
    border: 0.5px solid rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.mobile-auth-buttons .btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: #FFFFFF;
    transform: translateY(-2px);
}

.mobile-auth-buttons .btn-primary {
    background: linear-gradient(135deg, rgba(255, 59, 31, 0.9) 0%, rgba(230, 50, 23, 0.9) 100%);
    border: 0.5px solid rgba(255, 59, 31, 0.5);
    color: #FFFFFF;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(255, 59, 31, 0.3);
}

.mobile-auth-buttons .btn-primary:hover {
    background: linear-gradient(135deg, rgba(255, 59, 31, 1) 0%, rgba(230, 50, 23, 1) 100%);
    border-color: rgba(255, 59, 31, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 59, 31, 0.4);
}

/* Scroll Progress Indicator */
.mobile-menu-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, #FF3B1F, #E63217);
    width: 0%;
    transition: width 0.1s linear;
    z-index: 1001;
}

/* ============================================
   ✅ HERO SECTION (UPDATED - Constrained Width)
   ============================================ */
.hero-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    background-image: linear-gradient(rgba(15, 15, 18, 0.75), rgba(15, 15, 18, 0.75)), 
                      url('https://images.unsplash.com/photo-1570125909232-eb263c188f7e?q=80&w=1920&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: var(--section-padding-y) 0;
}

.hero-section .container {
    position: relative;
    z-index: 10;
}

.hero-section .grid {
    gap: 3rem;
    align-items: center;
}

/* ✅ Hero Text - Constrained Width (Matches About Us) */
.hero-section h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    max-width: var(--hero-text-max);
}

.hero-section p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: var(--hero-paragraph-max);
    margin-bottom: 2rem;
}

/* ✅ Booking Widget - Compact & Professional */
.booking-widget-glass {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    border: 0.5px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-radius: 16px;
    padding: 2rem;
    max-width: 28rem;
    margin: 0 auto;
}

.booking-widget-glass h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.stat-item h3 {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
}

.stat-item p {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ============================================
   ✅ SECTIONS - PROFESSIONAL SPACING (UPDATED)
   ============================================ */
section {
    padding: var(--section-padding-y) 0;
}

section.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

section .container {
    width: 100% !important;
    max-width: 1140px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: var(--container-padding) !important;
    padding-right: var(--container-padding) !important;
}

/* Section Headers - Constrained Width */
section .text-center.mb-16 {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

section h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.2;
}

section p.text-text-muted {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   ROUTE CARDS
   ============================================ */
.route-card {
    position: relative;
    background: var(--white);
    border-radius: 8px;
    padding: 1.125rem;
    border: 0.5px solid var(--border-color);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
    transition: all 0.15s ease-in-out;
    overflow: hidden;
}

.route-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover), var(--primary));
    background-size: 200% 200%;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.15s ease-in-out;
    pointer-events: none;
    z-index: 10;
}

.route-card:hover::before {
    opacity: 1;
    animation: gradientShift 2s ease infinite;
}

.route-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.route-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.625rem;
}

.route-card h3 {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    line-height: var(--leading-tight);
}

.route-card p {
    font-size: var(--text-sm);
    line-height: var(--leading-normal);
}

.badge {
    display: inline-block;
    padding: 0.15625rem 0.5rem;
    border-radius: 9999px;
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    letter-spacing: var(--tracking-wide);
}

.bus-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    padding: 0.15625rem 0.4375rem;
    border-radius: 999px;
    letter-spacing: var(--tracking-wide);
}

.bus-type-badge.luxury {
    background: var(--primary-light);
    color: var(--primary);
}

.bus-type-badge.standard {
    background: #E0F2FE;
    color: #0284C7;
}

.bus-type-badge.vip {
    background: #F5F3FF;
    color: #7C3AED;
}

.pagination-link.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Prevent layout shift when changing pages */
#routes-container {
    min-height: 600px;
}

/* ============================================
   TRIPS PAGE & BOOKING
   ============================================ */
.trip-card {
    background: var(--white);
    border-radius: 10px;
    padding: 1.125rem;
    border: 0.5px solid #E5E7EB;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    transition: all 0.15s ease-in-out;
}

.trip-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.trip-card h3 {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
}

.trip-card p {
    font-size: var(--text-sm);
}

.amenity-icons {
    display: flex;
    gap: 0.3125rem;
    flex-wrap: wrap;
}

.amenity-icon {
    font-size: var(--text-xs);
    background: #F4F4F6;
    padding: 0.15625rem 0.375rem;
    border-radius: 4px;
    color: #6B7280;
    font-weight: var(--font-normal);
}

.feature-card {
    padding: 1.5rem;
    transition: all 0.15s ease-in-out;
}

.feature-card:hover {
    transform: translateY(-3px);
}

.feature-card:hover .icon-box {
    background: var(--primary);
    color: white;
    transform: scale(1.06);
}

.icon-box {
    transition: all 0.15s ease-in-out;
}

.feature-card h3 {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
}

.feature-card p {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-top: 0.375rem;
}

/* ============================================
   SUCCESS BOOKING CARD
   ============================================ */
.success-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.success-card h2 {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
}

.success-card p {
    font-size: var(--text-base);
}

.success-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: auto;
    margin-bottom: 0.75rem;
}

.countdown-timer {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.3125rem 0.75rem;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    gap: 0.3125rem;
    margin-bottom: 0.75rem;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
}

.ticket-details {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem;
    border-radius: 6px;
    margin: 0.75rem 0;
}

.ticket-row {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    font-size: var(--text-sm);
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.12);
}

.ticket-row:last-child {
    border-bottom: none;
}

.ticket-row span:first-child {
    font-weight: var(--font-normal);
}

/* ============================================
   FORMS & INPUTS
   ============================================ */
.input-field {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 0.5px solid #E5E7EB;
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 0.875rem;
    line-height: var(--leading-normal);
    transition: all 0.15s ease-in-out;
    background: white;
    color: var(--text-primary);
    letter-spacing: var(--tracking-normal);
    font-weight: var(--font-normal);
}

.input-field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(255, 59, 31, 0.06);
}

.input-field::placeholder {
    color: var(--text-muted);
    opacity: 0.75;
}

textarea.input-field {
    resize: vertical;
    min-height: 90px;
}

label {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    display: block;
    letter-spacing: var(--tracking-wide);
}

.helper-text,
.caption {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: 0.1875rem;
    line-height: var(--leading-normal);
}

/* ============================================
   CUSTOM DROPDOWNS
   ============================================ */
.custom-select-wrapper {
    position: relative;
    user-select: none;
    width: 100%;
}

.custom-select {
    position: relative;
    display: flex;
    flex-direction: column;
}

.custom-select__trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    font-weight: var(--font-normal);
    color: var(--text-primary);
    height: 40px;
    line-height: 40px;
    background: #F9FAFB;
    cursor: pointer;
    border: 0.5px solid #E5E7EB;
    border-radius: 4px;
    transition: all 0.12s ease-in-out;
    letter-spacing: var(--tracking-normal);
}

.custom-select__trigger:hover {
    border-color: var(--primary);
    background: #fff;
}

.custom-select.open .custom-select__trigger {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.custom-options {
    position: absolute;
    display: block;
    top: 100%;
    left: 0;
    right: 0;
    border: 0.5px solid #E5E7EB;
    border-top: 0;
    background: #fff;
    transition: all 0.15s ease-in-out;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 50;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    border-radius: 0 0 4px 4px;
    overflow: hidden;
    margin-top: 2px;
    max-height: 200px;
    overflow-y: auto;
}

.custom-select.open .custom-options {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.custom-option {
    position: relative;
    display: block;
    padding: 8px 12px;
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    font-weight: var(--font-normal);
    color: #374151;
    line-height: 1.35;
    cursor: pointer;
    transition: all 0.12s ease-in-out;
    display: flex;
    align-items: center;
    gap: 6px;
}

.custom-option:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

.custom-option.selected {
    background-color: var(--primary-light);
    color: var(--primary);
    font-weight: var(--font-medium);
}

.arrow {
    position: relative;
    height: 7px;
    width: 7px;
    transition: all 0.15s ease-in-out;
}

.arrow::before,
.arrow::after {
    content: "";
    position: absolute;
    bottom: 0px;
    width: 0.1rem;
    height: 100%;
    transition: all 0.15s ease-in-out;
    background: #9CA3AF;
    border-radius: 2px;
}

.arrow::before {
    left: -2px;
    transform: rotate(-45deg);
}

.arrow::after {
    left: 2px;
    transform: rotate(45deg);
}

.open .arrow::before {
    left: -2px;
    transform: rotate(45deg);
    background: var(--primary);
}

.open .arrow::after {
    left: 2px;
    transform: rotate(-45deg);
    background: var(--primary);
}

.original-select {
    display: none;
}

/* ============================================
   CUSTOM DATE PICKER
   ============================================ */
.flatpickr-calendar {
    border: none !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12) !important;
    border-radius: 8px !important;
    padding: 0 !important;
    width: 280px !important;
    background: #fff;
    animation: none !important;
    font-family: var(--font-primary) !important;
}

.flatpickr-months {
    background: var(--bg-dark);
    border-radius: 8px 8px 0 0;
    padding: 10px 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.flatpickr-months .flatpickr-month {
    background: transparent;
    color: #fff;
    fill: #fff;
    height: 28px;
    line-height: 1;
    text-align: center;
    position: absolute;
    width: 100%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    font-size: var(--text-sm) !important;
    font-weight: var(--font-semibold) !important;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    position: relative;
    z-index: 5;
    color: #fff;
    fill: #fff;
    cursor: pointer;
    padding: 6px;
}

.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
    fill: var(--primary) !important;
}

.flatpickr-current-month {
    font-size: 100% !important;
    font-weight: var(--font-bold) !important;
    color: #fff;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    pointer-events: auto;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #1A1A1E;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 3px 8px;
    margin-right: 0;
    font-weight: var(--font-semibold);
    font-size: var(--text-sm) !important;
    cursor: pointer;
    outline: none;
    text-align: center;
    font-family: var(--font-primary) !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months option {
    background: #F3F4F6;
    color: #111111 !important;
    padding: 5px;
    font-size: 12px;
    font-weight: var(--font-medium);
    font-family: var(--font-primary) !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months option:hover {
    background: var(--primary);
    color: #fff !important;
}

.flatpickr-current-month input.cur-year {
    background: transparent;
    color: #fff;
    font-weight: var(--font-bold);
    padding: 3px 8px;
    border-radius: 3px;
    text-align: center;
    min-width: 50px;
    font-size: var(--text-sm) !important;
    font-family: var(--font-primary) !important;
}

.flatpickr-current-month input.cur-year:focus {
    background: #1A1A1E;
    outline: none;
}

.flatpickr-weekdays {
    background: transparent;
    height: 32px;
    line-height: 32px;
    margin-top: 6px;
}

.flatpickr-weekday {
    color: var(--text-muted);
    font-weight: var(--font-semibold);
    font-size: var(--text-xs) !important;
    font-family: var(--font-primary) !important;
}

.flatpickr-day {
    height: 32px;
    line-height: 32px;
    width: 14.2857143%;
    color: var(--text-primary);
    font-weight: var(--font-normal);
    border-radius: 4px !important;
    border: 0.5px solid transparent;
    font-size: var(--text-sm) !important;
    font-family: var(--font-primary) !important;
}

.flatpickr-day:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary-light);
}

.flatpickr-day.today {
    border-color: var(--primary);
    color: var(--primary);
    font-weight: var(--font-bold);
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange:focus,
.flatpickr-day.endRange:focus,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover,
.flatpickr-day.selected.prevMonthDay,
.flatpickr-day.startRange.prevMonthDay,
.flatpickr-day.endRange.prevMonthDay,
.flatpickr-day.selected.nextMonthDay,
.flatpickr-day.startRange.nextMonthDay,
.flatpickr-day.endRange.nextMonthDay {
    background: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
    font-weight: var(--font-bold);
}

.flatpickr-day.disabled,
.flatpickr-day.disabled:hover,
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay,
.flatpickr-day.notAllowed,
.flatpickr-day.notAllowed.prevMonthDay,
.flatpickr-day.notAllowed.nextMonthDay {
    color: #E5E7EB;
    background: transparent;
    border-color: transparent;
    cursor: not-allowed;
}

/* ============================================
   MODAL OVERLAY - SHOW / HIDE
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 15, 18, 0.80);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ============================================
   MODAL CONTAINER
   ============================================ */
.modal-container {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 682px;
    max-height: 92vh;
    overflow: hidden;          /* clips border-radius on desktop */
    display: flex;
    flex-direction: column;
    transform: translateY(24px) scale(0.98);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 24px 64px rgba(0,0,0,0.2);
}

.modal-overlay.active .modal-container {
    transform: translateY(0) scale(1);
}

/* ============================================
   QB HEADER
   ============================================ */
.qb-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 0.5px solid #F3F4F6;
    flex-shrink: 0;
    background: #fff;
}

.qb-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.qb-header-icon {
    width: 36px;
    height: 36px;
    background: var(--primary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 0.875rem;
    flex-shrink: 0;
}

.qb-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin: 0;
    letter-spacing: -0.01em;
}

.qb-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 2px 0 0;
}

.qb-close {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: #F3F4F6;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.qb-close:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* ============================================
   QB ROUTE BANNER
   ============================================ */
.qb-route-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.25rem;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    color: #fff;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.qb-route-point {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qb-route-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.qb-route-dot--origin { background: var(--primary); }
.qb-route-dot--dest   { background: #10B981; }

.qb-route-label {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.5);
    line-height: 1;
}

.qb-route-city {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

.qb-route-line {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-width: 40px;
}

.qb-route-line::before,
.qb-route-line::after {
    content: '';
    position: absolute;
    top: 50%;
    height: 1px;
    background: rgba(255,255,255,0.2);
    width: calc(50% - 14px);
}

.qb-route-line::before { left: 0; }
.qb-route-line::after  { right: 0; }

.qb-route-bus-icon {
    color: var(--primary);
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

.qb-route-meta {
    display: flex;
    gap: 1rem;
    margin-left: auto;
    align-items: center;
}

.qb-route-meta span {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.qb-route-meta i {
    color: var(--primary);
    font-size: 0.6875rem;
}

/* ============================================
   QB BODY — TWO COLUMN LAYOUT
   ============================================ */

/* The <form> sits between .modal-container and .qb-body.
   It must participate in the flex column so .qb-body can
   get min-height:0 and scroll correctly on all devices. */
#quickBookForm {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.qb-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.qb-col-left {
    padding: 1.25rem;
    border-right: 0.5px solid #F3F4F6;
    overflow-y: auto;
    overflow-x: hidden;
    background: #FAFAFA;
}

.qb-col-right {
    padding: 1.25rem;
    overflow-y: auto;
    overflow-x: hidden;
}

/* ============================================
   STEP LABELS
   ============================================ */
.qb-step-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.875rem;
}

.qb-step-num {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.qb-step-text {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

/* ============================================
   BUS SHELL + SEAT GRID
   ============================================ */
.qb-bus-shell {
    background: #fff;
    border: 0.5px solid #E5E7EB;
    border-radius: 12px;
    padding: 0.75rem 0.75rem 1rem;
    overflow: hidden;
}

.qb-bus-front {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem;
    background: #0F172A;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    color: rgba(255,255,255,0.6);
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.qb-bus-front i {
    color: rgba(255,255,255,0.8);
    font-size: 0.875rem;
}

.qb-seat-grid {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.qb-seat-row {
    display: flex;
    align-items: center;
    gap: 5px;
}

.qb-row-num {
    width: 14px;
    font-size: 0.5625rem;
    font-weight: 600;
    color: #9CA3AF;
    text-align: center;
    flex-shrink: 0;
}

.qb-aisle {
    width: 12px;
    flex-shrink: 0;
}

.qb-seat {
    flex: 1;
    height: 36px;
    background: #E5E7EB;
    border-radius: 6px 6px 4px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5625rem;
    font-weight: 600;
    color: #6B7280;
    cursor: pointer;
    transition: all 0.12s ease;
    border: 0.5px solid transparent;
    position: relative;
    user-select: none;
}

.qb-seat:hover:not(.qb-seat--occupied) {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.qb-seat.selected {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 3px 8px rgba(255,59,31,0.35);
    transform: translateY(-1px);
}

.qb-seat--occupied {
    background: #F3F4F6;
    color: #D1D5DB;
    cursor: not-allowed;
    opacity: 0.7;
}

.qb-seat--occupied::after {
    content: '\00d7';
    position: absolute;
    font-size: 0.75rem;
    font-weight: 700;
    color: #D1D5DB;
}

/* ============================================
   SEAT LEGEND
   ============================================ */
.qb-legend {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.875rem;
}

.qb-legend-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.625rem;
    color: var(--text-muted);
    font-weight: 500;
}

.qb-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.qb-legend-dot--free     { background: #E5E7EB; border: 0.5px solid #D1D5DB; }
.qb-legend-dot--selected { background: var(--primary); }
.qb-legend-dot--occupied { background: #F3F4F6; border: 0.5px solid #E5E7EB; }

/* ============================================
   PASSENGER FIELDS
   ============================================ */
.qb-fields {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-bottom: 0;
}

.qb-field {
    position: relative;
}

.qb-field-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.75rem;
    pointer-events: none;
}

.qb-input {
    width: 100%;
    padding: 0.625rem 0.75rem 0.625rem 2.25rem;
    border: 0.5px solid #E5E7EB;
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 0.8125rem;
    color: var(--text-primary);
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.qb-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255,59,31,0.08);
}

.qb-input::placeholder { color: #9CA3AF; }

/* ============================================
   PAYMENT OPTIONS
   ============================================ */
.qb-payment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.qb-pay-option {
    border: 0.5px solid #E5E7EB;
    border-radius: 8px;
    padding: 0.625rem 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s ease;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.qb-pay-option:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.qb-pay-option--active {
    border-color: var(--primary);
    background: var(--primary-light);
}

.qb-pay-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.qb-pay-icon--momo { background: #FEF3C7; color: #D97706; }
.qb-pay-icon--card { background: #DBEAFE; color: #2563EB; }
.qb-pay-icon--cash { background: #D1FAE5; color: #059669; }

.qb-pay-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.qb-pay-sub {
    font-size: 0.5625rem;
    color: var(--text-muted);
    line-height: 1;
}

.qb-pay-option--active .qb-pay-label { color: var(--primary); }

/* ============================================
   ORDER SUMMARY
   ============================================ */
.qb-summary {
    background: #F9FAFB;
    border: 0.5px solid #F3F4F6;
    border-radius: 8px;
    overflow: hidden;
}

.qb-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-bottom: 0.5px solid #F3F4F6;
    font-size: 0.8125rem;
}

.qb-summary-row:last-child { border-bottom: none; }

.qb-summary-key {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.qb-summary-key i {
    color: var(--primary);
    font-size: 0.6875rem;
    width: 12px;
}

.qb-summary-val {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.8125rem;
}

.qb-summary-seat {
    color: var(--text-muted);
    font-weight: 400;
    font-style: italic;
}

.qb-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 0.75rem;
    background: #fff;
    border-top: 0.5px solid #E5E7EB;
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--primary);
}

/* ============================================
   SUBMIT BUTTON
   ============================================ */
.qb-submit-btn {
    width: 100%;
    margin-top: 0.875rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
}

.qb-submit-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255,59,31,0.35);
}

.qb-submit-btn:disabled {
    background: #E5E7EB;
    color: #9CA3AF;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ============================================
   MODAL RESPONSIVE
   ============================================ */
@media (max-width: 640px) {
    .modal-overlay {
        padding: 0;
        align-items: flex-end;
    }

    /* Modal sits at bottom, fixed height, flex column */
    .modal-container {
        max-width: 100%;
        width: 100%;
        height: 95vh;
        max-height: 95vh;
        border-radius: 16px 16px 0 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;       /* clips rounded corners only */
    }

    /* Header + banner: fixed, never scroll away */
    .qb-header        { flex-shrink: 0; padding: 0.75rem 1rem; }
    .qb-route-banner  { flex-shrink: 0; padding: 0.625rem 1rem; }
    .qb-route-meta    { display: none; }
    .qb-route-city    { font-size: 0.875rem; }

    /* Body: THE scroll container — single column block */
    .qb-body {
        display: block !important;      /* override desktop grid */
        overflow-y: scroll !important;  /* force scroll always visible */
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        flex: 1 1 auto;
        min-height: 0;
        /* Reset column constraints so content flows naturally */
        height: auto;
    }

    /* Columns: no independent scroll, just flow as block elements */
    .qb-col-left,
    .qb-col-right {
        overflow: visible !important;
        overflow-y: visible !important;
        width: 100%;
        padding: 1rem;
    }

    .qb-col-left {
        border-right: none;
        border-bottom: 0.5px solid #F3F4F6;
        background: #FAFAFA;
    }

    /* Seat map: fixed width centred */
    .qb-bus-shell {
        max-width: 240px;
        margin: 0 auto;
        padding: 0.5rem;
    }

    .qb-bus-front {
        padding: 0.375rem;
        font-size: 0.5625rem;
        margin-bottom: 0.5rem;
    }

    /* Seats: fixed size, no stretching */
    .qb-seat-grid { gap: 5px; }
    .qb-seat-row  { gap: 4px; }
    .qb-seat {
        width: 36px;
        height: 32px;
        flex: none !important;
        font-size: 0.5rem;
        font-weight: 700;
    }
    .qb-row-num { width: 12px; font-size: 0.5rem; }
    .qb-aisle   { width: 8px; flex: none; }

    /* Legend */
    .qb-legend      { gap: 0.75rem; margin-top: 0.75rem; }
    .qb-legend-item { font-size: 0.5625rem; }
    .qb-legend-dot  { width: 9px; height: 9px; }

    /* Summary */
    .qb-summary-row   { padding: 0.45rem 0.75rem; font-size: 0.75rem; }
    .qb-summary-total { font-size: 0.875rem; }

    /* Payment */
    .qb-payment-grid { grid-template-columns: repeat(3,1fr); gap: 0.375rem; }
    .qb-pay-option   { padding: 0.5rem 0.25rem; }
    .qb-pay-icon     { width: 26px; height: 26px; font-size: 0.7rem; }
    .qb-pay-label    { font-size: 0.5625rem; }
    .qb-pay-sub      { font-size: 0.5rem; }

    /* Inputs — 1rem prevents iOS auto-zoom */
    .qb-input {
        font-size: 1rem !important;
        padding: 0.75rem 0.75rem 0.75rem 2.25rem;
    }

    /* Submit — extra bottom padding clears phone home bar */
    .qb-submit-btn {
        padding: 0.875rem;
        font-size: 0.9375rem;
        margin-top: 1rem;
        margin-bottom: 0.5rem;
    }

    .qb-col-right { padding-bottom: 2rem; }
}

/* ============================================
   MODAL HEADER (legacy — kept for other modals)
   ============================================ */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 0.5px solid #E5E7EB;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-header-fixed .header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header-fixed .icon-wrapper {
    width: 38px;
    height: 38px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modal-header-fixed .icon-wrapper i {
    font-size: 16px;
    color: var(--primary);
}

.modal-header-fixed .header-text h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.15;
}

.modal-header-fixed .header-text p {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin: 2px 0 0 0;
}

.modal-close-fixed {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #F3F4F6;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.12s ease-in-out;
    color: var(--text-muted);
    flex-shrink: 0;
}

.modal-close-fixed:hover {
    background: var(--primary-light);
    color: var(--primary);
}

@keyframes modalFade {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 0.5px solid #E5E7EB;
}

.modal-header h2 {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
}

.modal-close {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: #F3F4F6;
    cursor: pointer;
    font-size: var(--text-base);
    color: var(--text-muted);
    transition: all 0.12s ease-in-out;
}

.modal-close:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.trip-info-card {
    background: linear-gradient(135deg, #0F172A, #1E293B);
    color: white;
    padding: 14px;
    border-radius: 10px;
    margin-bottom: 14px;
}

.trip-info-card h3 {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
}

.trip-info-card p {
    font-size: var(--text-sm);
}

.trip-route {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ============================================
   PRICES - BIGGER & PROMINENT
   ============================================ */
.trip-fare-amount,
.price,
.fare,
.amount {
    font-size: var(--text-2xl) !important;
    font-weight: var(--font-bold) !important;
    color: var(--primary);
    letter-spacing: var(--tracking-tight);
}

.price-xl {
    font-size: var(--text-3xl) !important;
    font-weight: var(--font-bold) !important;
}

.price-currency {
    font-size: 0.6em;
    vertical-align: top;
    margin-right: 2px;
    font-weight: var(--font-semibold);
}

/* Seat Map */
.seat-map {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-top: 14px;
    max-width: 260px;
    margin: 0 auto;
    padding: 14px;
    background: #fff;
    border-radius: 8px;
    box-shadow: inset 0 0 12px rgba(0,0,0,0.03);
}

.seat {
    height: 32px;
    background: #e5e7eb;
    border-radius: 5px 5px 3px 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.12s ease-in-out;
    position: relative;
    font-family: var(--font-primary);
}

.seat:hover:not(.occupied) {
    transform: translateY(-1px);
    background: #d1d5db;
}

.seat.selected {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 59, 31, 0.3);
}

.seat.occupied {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

.seat.occupied::after {
    content: '\f00d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    font-size: 11px;
}

.seat-aisle {
    visibility: hidden;
    pointer-events: none;
}

.driver-area {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 10px;
    color: #9ca3af;
    font-size: 10px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    font-weight: var(--font-medium);
}

.driver-area i {
    font-size: 16px;
    margin-right: 5px;
}

.seat-legend {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 10px;
}

.seat-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    border: 0.5px solid #E5E7EB;
}

.seat-legend-dot.selected {
    background: var(--primary);
    border-color: var(--primary);
}

.seat-legend-dot.occupied {
    background: #E5E7EB;
}

.seat-legend span {
    font-size: var(--text-xs);
    font-weight: var(--font-normal);
    color: var(--text-muted);
}

.booking-summary {
    background: #F9FAFB;
    border-radius: 8px;
    padding: 12px;
}

.booking-summary h4 {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    margin-bottom: 8px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: var(--text-sm);
}

.summary-row.total {
    font-weight: var(--font-bold);
    font-size: var(--text-lg) !important;
    color: var(--primary);
    border-top: 0.5px solid #E5E7EB;
    padding-top: 8px;
    margin-top: 5px;
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.payment-option {
    border: 0.5px solid #E5E7EB;
    padding: 6px;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: 0.12s ease-in-out;
}

.payment-option p {
    font-size: var(--text-xs);
    font-weight: var(--font-normal);
    margin-top: 3px;
}

.payment-option.selected {
    border-color: var(--primary);
    background: var(--primary-light);
}

.payment-option.selected i {
    color: var(--primary);
}

.payment-option.selected span {
    color: var(--text-primary);
}

.modal-footer {
    display: flex;
    gap: 6px;
    padding: 12px;
    border-top: 0.5px solid #E5E7EB;
}

.modal-footer button {
    flex: 1;
}

/* ============================================
   FOOTER - PROFESSIONAL FIX
   ============================================ */
.footer-link {
    color: #9CA3AF;
    font-size: var(--text-sm);
    transition: all 0.15s ease-in-out;
    letter-spacing: var(--tracking-wide);
}

.footer-link:hover {
    color: var(--primary);
    padding-left: 0.3125rem;
}

.footer h3 {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--white);
    margin-bottom: 1.25rem;
}

.footer p {
    font-size: var(--text-sm);
    color: #9CA3AF;
    line-height: var(--leading-normal);
}

/* Contact Items - FIXED ALIGNMENT */
.footer .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #9CA3AF;
    transition: all 0.2s ease;
    line-height: 1.5;
}

.footer .contact-item i {
    color: var(--primary) !important;
    font-size: 1rem;
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0;
}

.footer .contact-item:last-child {
    margin-bottom: 0;
}

.footer .contact-item:hover {
    color: var(--white);
}

.footer .contact-item .contact-content {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    flex: 1;
}

.footer .contact-item .contact-content .main-line {
    color: #E5E7EB;
    font-size: var(--text-sm);
    font-weight: 500;
    line-height: 1.4;
}

.footer .contact-item .contact-content .sub-line {
    color: #6B7280;
    font-size: var(--text-sm);
    line-height: 1.4;
    opacity: 0.9;
}

.footer .contact-item a {
    color: inherit;
    transition: color 0.2s ease;
    text-decoration: none;
}

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

/* Social Links */
.social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: var(--white);
    transition: all 0.2s var(--transition-smooth);
    font-size: var(--text-base);
    margin-right: 0.5rem;
}

.social-link:last-child {
    margin-right: 0;
}

.social-link:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(255, 59, 31, 0.4);
}

/* ============================================
   UTILITIES & ANIMATIONS
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.15s ease-in-out;
    z-index: 40;
    border: none;
    box-shadow: 0 2px 8px rgba(255, 59, 31, 0.2);
    font-size: var(--text-lg);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.spinner {
    width: 28px;
    height: 28px;
    border: 0.5px solid #E5E7EB;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Page Load Animation */
@keyframes navbarFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Notification Banner */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification-banner {
    animation: slideDown 0.5s var(--transition-smooth) forwards;
}

/* Text Utilities */
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }
.font-light { font-weight: var(--font-light); }
.font-normal { font-weight: var(--font-normal); }
.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }
.text-muted { color: var(--text-muted); }
/* NOTE: Do NOT define .text-primary here — Tailwind maps it to --primary (#FF3B1F).
   Using it as a dark-text utility would override the red brand colour on prices. */
.step-item.active .w-8 {
    background: var(--primary);
    color: white;
}

.step-item.active span {
    color: var(--primary);
}

/* ============================================
   FOCUS STATES & ACCESSIBILITY
   ============================================ */
.nav-link:focus-visible,
.btn-primary:focus-visible,
.btn-outline:focus-visible,
.mobile-menu-close:focus-visible,
.mobile-search-input:focus-visible,
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    z-index: 100;
    transition: top 0.15s ease-in-out;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
}

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

/* ============================================
   ✅ RESPONSIVE DESIGN (UPDATED)
   ============================================ */
@media (max-width: 1024px) {
    :root {
        --container-max: 1140px;
        --container-padding: 1.5rem;
        --section-padding-y: 4rem;
    }
    
    .hero-section {
        min-height: auto;
        padding: 4rem 0;
    }
    
    .hero-section .grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
    
    .booking-widget-glass {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
        --section-padding-y: 3rem;
        --text-4xl: 1.75rem;
        --text-3xl: 1.5rem;
    }
    
    body {
        font-size: 0.875rem;
    }
    
    .navbar {
        padding-top: 0.875rem;
        padding-bottom: 0.875rem;
    }
    
    .navbar.scrolled {
        padding-top: 0.625rem;
        padding-bottom: 0.625rem;
    }
    
    .mobile-nav-section {
        padding: 0.75rem 3rem;
    }
    
    .mobile-search-section {
        padding: 1rem 2.5rem;
    }
    
    .mobile-auth-section {
        padding: 1.25rem 2.5rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .booking-widget-glass {
        padding: 1.5rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .route-card {
        padding: 1.25rem;
    }
    
    .trip-card {
        padding: 0.875rem;
    }
    
    .ticket-row {
        font-size: var(--text-xs);
    }
    
    .contact-card {
        padding: 0.875rem;
    }
    
    .modal-container {
        max-width: 95%;
        margin: 0.5rem;
    }
    
    .modal-header h2 {
        font-size: var(--text-lg);
    }
    
    .payment-options {
        grid-template-columns: 1fr;
    }
    
    .seat-map {
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
        padding: 10px;
    }
    
    .seat {
        font-size: 9px;
        height: 28px;
    }
    
    .step-item span {
        display: none;
    }
    
    .w-12 {
        display: none;
    }
    
    .btn-primary,
    .btn-outline {
        padding: 0.4375rem 1.125rem;
        font-size: var(--text-sm);
    }
    
    .trip-fare-amount,
    .price,
    .fare,
    .amount {
        font-size: var(--text-xl) !important;
    }
}

@media (min-width: 1024px) {
    body {
        font-size: var(--text-base);
    }
}

/* ============================================
   ACCESSIBILITY & PRINT
   ============================================ */
@media (prefers-contrast: high) {
    :root {
        --text-muted: #444444;
        --border-color: #999999;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .route-card::before {
        animation: none;
    }
    
    .modal-container {
        transition: none;
    }
}

@media print {
    body {
        background: white;
        color: black;
        font-size: 10pt;
    }
    
    .no-print {
        display: none !important;
    }
    
    .ticket-details {
        background: white !important;
        border: 0.5px solid #ccc;
        color: black !important;
    }
    
    .trip-fare-amount,
    .price,
    .fare,
    .amount {
        color: black !important;
    }
}

/* ============================================
   FAQ ACCORDION - COMPLETELY FIXED
   ============================================ */
.faq-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 0.5px solid #E5E7EB;
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.faq-item.active {
    border-color: #FECACA;
    box-shadow: 0 4px 16px rgba(255, 59, 31, 0.08);
}

.faq-answer {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition:
        max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.4s ease,
        padding 0.4s ease;
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: var(--leading-normal);
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 3.5rem;
    padding-right: 1.25rem;
}

/* CRITICAL FIX: Added max-height for active state */
.faq-item.active .faq-answer {
    opacity: 1;
    padding-top: 0.75rem;
    padding-bottom: 1.5rem;
    max-height: 800px;
}

.faq-question:hover {
    background: #FAFAFA;
}

.faq-icon,
.faq-item i {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--primary);
}

.faq-icon-rotated,
.rotate-180 {
    transform: rotate(180deg);
}

/* Icon Box - Pink/Salmon Color */
.faq-icon-box {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px;
    background: #FFE4E6 !important;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-icon-box i {
    font-size: 14px !important;
    color: var(--primary) !important;
}

.faq-item.active .faq-icon-box {
    background: #FECACA !important;
}

/* Divider Line in Answer */
.faq-answer .h-px {
    background: linear-gradient(90deg, #FECACA, transparent);
    margin-bottom: 0.75rem;
}

/* Remove the default focus outline on the FAQ buttons */
.faq-question:focus {
    outline: none;
    box-shadow: none;
}

/* Optional: If you want a subtle, cleaner look when focused via keyboard */
.faq-question:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
    border-radius: 12px;
}

/* Ensure no gray highlight on mobile tap */
.faq-question {
    -webkit-tap-highlight-color: transparent;
}

#faq-results {
    scroll-margin-top: 140px;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .faq-question {
        padding: 0.875rem 1rem;
        font-size: var(--text-sm);
    }
    
    .faq-icon-box {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px;
    }
    
    .faq-icon-box i {
        font-size: 12px !important;
    }
    
    .faq-answer {
        padding-left: 2.75rem;
        padding-right: 1rem;
    }
    
    /* FIXED: Mobile max-height increased */
    .faq-item.active .faq-answer {
        max-height: 1000px;
    }
}



/**
 * SwiftBus_X - Homepage Styles
 * File: assets/css/home.css
 * Scope: Styles specific to the homepage only
 * Depends on: main.css, booking.css
 */


/* ============================================
   CTA SECTION - DOT PATTERN BACKGROUND
   ============================================ */
.cta-dot-pattern {
    background-image: radial-gradient(#FF3B1F 1px, transparent 1px);
    background-size: 28px 28px;
}


/* ============================================
   ROUTE CARDS - FIRST CARD HIGHLIGHT
   ============================================ */
.route-card-featured {
    ring: 2px;
    ring-color: var(--primary);
    outline: 2px solid var(--primary);
}


/* ============================================
   FAQ ANSWER PANEL - INITIAL STATE
   Inline style="..." removed from HTML and
   handled here + toggled via home.js
   ============================================ */
.faq-answer {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.faq-answer.open {
    opacity: 1;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
}


/* ============================================
   BOOKING SUCCESS - REDIRECT COUNTDOWN TOAST
   ============================================ */
.redirect-toast {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    background: var(--bg-dark);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    font-size: 0.875rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}


/* ============================================
   FEATURE CARDS - ICON HOVER SCALE
   ============================================ */
.feature-card {
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: rgba(255, 59, 31, 0.2);
}

.feature-card .feature-icon {
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}


/* ============================================
   HOW IT WORKS - STEP CONNECTOR LINE
   ============================================ */
.step-connector {
    position: absolute;
    top: 2rem;           /* vertically centres with the 64px (h-16) circle */
    left: 60%;
    width: 80%;
    height: 1px;
    background: #E5E7EB;
    z-index: 0;
    display: none;       /* hidden on mobile */
}

@media (min-width: 768px) {
    .step-connector {
        display: block;
    }
}


/* ============================================
   STATS GRID (inside CTA section)
   ============================================ */
.stat-box {
    background: rgba(255, 255, 255, 0.05);
    border: 0.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1.25rem;
    text-align: center;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.stat-box:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 59, 31, 0.3);
}


/* ============================================
   TESTIMONIAL CARDS
   ============================================ */
.testimonial-card {
    background: var(--surface);
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 0.5px solid #F3F4F6;
    transition: box-shadow 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}


/* ============================================
   RESPONSIVE TWEAKS
   ============================================ */
@media (max-width: 768px) {
    .redirect-toast {
        bottom: 0.75rem;
        right: 0.75rem;
        left: 0.75rem;
        font-size: 0.8rem;
    }
}

/* ============================================
   ABOUT PAGE — DOT PATTERN HERO
   ============================================ */
.about-hero-pattern {
    background-image: radial-gradient(#FF3B1F 1px, transparent 1px);
    background-size: 30px 30px;
}

/* ============================================
   ABOUT PAGE — STATS CARDS
   ============================================ */
.stat-card {
    position: relative;
    background: #ffffff;
    border-radius: 1rem;
    border: 0.5px solid #F3F4F6;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    transition: all 0.5s ease;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.stat-card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 16px rgba(255,59,31,0.25);
    transition: transform 0.3s ease;
}

.stat-card:hover .stat-card-icon {
    transform: scale(1.1);
}

.stat-card-icon i {
    font-size: 1.5rem;
    color: #fff;
}

.stat-card-number {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: -0.03em;
}

.stat-card-suffix {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--primary);
}

.stat-card-label {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.stat-card-bar {
    width: 100%;
    height: 4px;
    background: #F3F4F6;
    border-radius: 9999px;
    overflow: hidden;
}

.stat-card-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-hover));
    border-radius: 9999px;
    transition: width 1.2s ease;
}

.stat-card-corner {
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: rgba(255,59,31,0.05);
    border-bottom-left-radius: 9999px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover .stat-card-corner { opacity: 1; }

/* ============================================
   ABOUT PAGE — TIMELINE CARDS
   ============================================ */
.timeline-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 2rem;
    border: 0.5px solid #F3F4F6;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
    height: 100%;
    transition: all 0.3s ease;
}

.timeline-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

.timeline-num {
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.timeline-card:hover .timeline-num {
    background: var(--primary);
    color: #ffffff;
}

/* ============================================
   ABOUT PAGE — TEAM CARDS
   ============================================ */
.team-card {
    position: relative;
    background: #ffffff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.team-card:hover {
    box-shadow: 0 20px 48px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}

.team-card-img {
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.team-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .team-card-img img {
    transform: scale(1.08);
}

.team-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,15,18,0.9) 0%, rgba(15,15,18,0.4) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
}

.team-card:hover .team-card-overlay { opacity: 1; }

.team-card-social {
    display: flex;
    gap: 0.75rem;
    transform: translateY(1rem);
    transition: transform 0.3s ease;
}

.team-card:hover .team-card-social { transform: translateY(0); }

.team-social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.875rem;
    transition: background 0.2s ease;
    text-decoration: none;
}

.team-social-btn:hover { background: var(--primary); }

.team-card-body {
    padding: 1.5rem;
    text-align: center;
}

.team-card-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.team-card-role {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.team-card-bio {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ============================================
   ABOUT PAGE — CTA BLOCK
   ============================================ */
.about-cta-block {
    background: var(--primary);
    border-radius: 1.5rem;
    padding: 4rem 2rem;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(255,59,31,0.25);
}

.about-cta-block::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 256px; height: 256px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.about-cta-block::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 256px; height: 256px;
    background: rgba(0,0,0,0.1);
    border-radius: 50%;
    transform: translate(50%, 50%);
}

/* ============================================
   ABOUT PAGE — STORY SECTION FLOATING BADGE
   ============================================ */
.story-badge {
    position: absolute;
    bottom: -1.5rem;
    right: -1.5rem;
    background: #fff;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    border: 0.5px solid #F3F4F6;
    display: none;
}

@media (min-width: 768px) {
    .story-badge { display: block; }
}

.story-badge-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
}

/* Stats section dot pattern */
.stats-dot-pattern {
    background-image: radial-gradient(#FF3B1F 1px, transparent 1px);
    background-size: 32px 32px;
}


/* ============================================
   ROUTES PAGE — PAGINATION
   ============================================ */
.pagination-btn {
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 600;
    background: #ffffff;
    border: 0.5px solid #E5E7EB;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.pagination-btn:hover:not(.disabled) {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.pagination-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(255,59,31,0.35);
}

.pagination-btn.disabled {
    background: #F9FAFB;
    border-color: #E5E7EB;
    color: #D1D5DB;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-btn i { font-size: 0.6875rem; }

/* ============================================
   ROUTES PAGE — STICKY FILTER BAR
   ============================================ */
.routes-filter-bar {
    background: #ffffff;
    border-bottom: 0.5px solid #F3F4F6;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    position: sticky;
    top: 65px;
    z-index: 40;
    transition: box-shadow 0.2s ease;
}

/* ============================================
   ROUTES PAGE — POPULAR ROUTE CARD
   ============================================ */
.popular-route-card {
    background: var(--surface);
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 0.5px solid #F3F4F6;
    transition: all 0.2s ease;
}

.popular-route-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.07);
    transform: translateY(-2px);
}


/* ============================================
   FOOTER — GUARANTEED BACKGROUND COLOURS
   These ensure footer renders correctly even if
   Tailwind CDN doesn't generate the custom colours
   ============================================ */
.cta-section {
    background-color: #181818 !important;
    color: #ffffff;
}

footer.bg-bg-dark {
    background-color: #0F0F12 !important;
    color: #ffffff;
}




/* ============================================
   TRIPS PAGE — BOOKING MODAL (trips.php)
   ============================================ */

/* Trip cards */
.trip-card {
    background: #fff;
    border-radius: 12px;
    border: 0.5px solid #F3F4F6;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s ease;
    overflow: hidden;
}

.trip-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* Booking modal — full-width overlay (trips page version) */
#bookingModal.modal-overlay {
    /* Inherits base .modal-overlay rules — hidden by default */
}

/* Modal header fixed (trips page uses larger version) */
.trips-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 0.5px solid #E5E7EB;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.trips-modal-header .header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.trips-modal-header .icon-wrapper {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trips-modal-header .icon-wrapper i {
    font-size: 1.25rem;
    color: var(--primary);
}

.trips-modal-header .header-text h2 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.trips-modal-header .header-text p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0.25rem 0 0;
}

.trips-modal-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #F3F4F6;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    color: var(--text-muted);
    flex-shrink: 0;
}

.trips-modal-close:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* Step indicator */
.step-item.active .step-num {
    background: var(--primary);
    color: #fff;
}

.step-item.active .step-label {
    color: var(--primary);
    font-weight: 600;
}

/* Trips page pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination .pagination-btn {
    min-width: 40px;
    height: 40px;
    border-radius: 8px;
}

/* Trips page payment options */
#bookingModal .payment-option {
    transition: all 0.15s ease;
}

#bookingModal .payment-option.selected {
    border-color: var(--primary) !important;
    background: var(--primary-light) !important;
}

#bookingModal .payment-option.selected i {
    color: var(--primary) !important;
}

#bookingModal .payment-option.selected span {
    color: var(--text-primary) !important;
}

/* Booking success countdown toast */
.booking-countdown-toast {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    background: #0F0F12;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    font-size: 0.875rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}


/* ============================================
   FAQS PAGE — CATEGORY FILTER PILLS
   ============================================ */
.faq-category-pill {
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}

.faq-category-pill:hover {
    transform: translateY(-1px);
}

.faq-category-pill.active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(255,59,31,0.3);
}

.faq-category-pill.inactive {
    background: var(--surface);
    color: var(--text-muted);
}

.faq-category-pill.inactive:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* ============================================
   FAQS PAGE — CTA BLOCK
   ============================================ */
.faq-cta-block {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    border-radius: 1.5rem;
    padding: 4rem 2rem;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(255,59,31,0.25);
}

.faq-cta-block::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 256px; height: 256px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.faq-cta-block::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 256px; height: 256px;
    background: rgba(0,0,0,0.1);
    border-radius: 50%;
    transform: translate(50%, 50%);
}


/* ============================================
   CONTACT PAGE — REDESIGNED SECTION
   ============================================ */

/* Dark left panel */
.contact-info-panel {
    background: #0F0F12;
    border-radius: 1.25rem;
    padding: 2.5rem;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 0;
    height: 100%;
}

/* Info rows inside the dark panel */
.contact-info-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 0;
    border-bottom: 0.5px solid rgba(255,255,255,0.08);
}

.contact-info-row:first-of-type { padding-top: 0; }
.contact-info-row:last-of-type  { border-bottom: none; padding-bottom: 0; }

.contact-info-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.625rem;
    background: rgba(255,59,31,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 0.875rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.contact-info-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.4);
    margin-bottom: 0.25rem;
}

.contact-info-value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.4;
}

.contact-info-value a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.15s ease;
}

.contact-info-value a:hover { color: var(--primary); }

.contact-info-sub {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.45);
    margin-top: 0.125rem;
}

/* Terminals inside dark panel */
.contact-terminals {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 0.5px solid rgba(255,255,255,0.08);
}

.contact-terminals-title {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.4);
    margin-bottom: 1rem;
}

.contact-terminal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
}

.contact-terminal-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
}

.contact-terminal-item::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
}

/* Social strip inside dark panel */
.contact-social-strip {
    display: flex;
    gap: 0.625rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 0.5px solid rgba(255,255,255,0.08);
}

.contact-social-btn {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    background: rgba(255,255,255,0.07);
    border: 0.5px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.8125rem;
    text-decoration: none;
    transition: all 0.15s ease;
}

.contact-social-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

/* White form panel */
.contact-form-panel {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 2.5rem;
    border: 0.5px solid #F0F0F2;
    box-shadow: 0 4px 24px rgba(0,0,0,0.05);
}

/* Form field group */
.contact-field-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.contact-field-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

/* Quick action buttons inside dark panel */
.contact-quick-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.contact-quick-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4375rem 0.875rem;
    border-radius: 0.5rem;
    background: rgba(255,255,255,0.07);
    border: 0.5px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.75);
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
}

.contact-quick-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════════════════════════
   STEP PILLS — Mobile progress indicator shown above form body
   ═══════════════════════════════════════════════════════════════════════════ */
.qb-step-pills {
    display: none; /* hidden on desktop, shown on mobile via media query */
    align-items: center;
    gap: 0;
    padding: 0.625rem 1.25rem;
    background: #F9FAFB;
    border-bottom: 0.5px solid #F0F0F2;
    flex-shrink: 0;
}

.qb-pill {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #9CA3AF;
    white-space: nowrap;
}

.qb-pill span {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #E5E7EB;
    color: #9CA3AF;
    font-size: 0.625rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qb-pill--active {
    color: var(--primary);
}

.qb-pill--active span {
    background: var(--primary);
    color: #fff;
}

.qb-pill--done {
    color: #10B981;
}

.qb-pill--done span {
    background: #10B981;
    color: #fff;
}

.qb-pill-dash {
    flex: 1;
    height: 1px;
    background: #E5E7EB;
    margin: 0 0.375rem;
    min-width: 12px;
}

/* ── Payment option check mark ── */
.qb-pay-check {
    display: none;
    position: absolute;
    top: 0.375rem;
    right: 0.375rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 0.5rem;
    align-items: center;
    justify-content: center;
}

.qb-pay-option {
    position: relative;
}

.qb-pay-option--active .qb-pay-check {
    display: flex;
}

/* ── Security note below submit ── */
.qb-secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    font-size: 0.6875rem;
    color: #9CA3AF;
    margin-top: 0.625rem;
    text-align: center;
}

.qb-secure-note i {
    color: #10B981;
    font-size: 0.6875rem;
}

/* ── Mobile: show step pills ── */
@media (max-width: 640px) {
    .qb-step-pills {
        display: flex;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   BOOKING SUCCESS PAGE STYLES
   ═══════════════════════════════════════════════════════════════════════════ */
.booking-success-section {
    background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
    min-height: 100vh;
    position: relative;
}

.success-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(255, 59, 31, 0.05) 1px, transparent 0);
    background-size: 32px 32px;
    pointer-events: none;
}

/* Countdown Animation */
@keyframes countdownPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

#countdown-timer {
    animation: countdownPulse 1s ease-in-out infinite;
    display: inline-block;
}

/* Ticket Print Styles */
@media print {
    body * {
        visibility: hidden;
    }
    .booking-success-section,
    .booking-success-section * {
        visibility: visible;
    }
    .booking-success-section {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        background: white !important;
    }
    .success-bg-pattern,
    .booking-success-section button,
    .booking-success-section a {
        display: none !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE MODAL SCROLLING FIX - COMPLETE OVERHAUL
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
    /* Modal sits at bottom, uses safe area for notched phones */
    .modal-overlay {
        padding: 0;
        align-items: flex-end;
        padding-bottom: env(safe-area-inset-bottom, 0);
    }
    
    /* Full height modal with proper overflow handling */
    .modal-container {
        max-width: 100%;
        width: 100%;
        height: 95vh;
        height: calc(95dvh);
        max-height: 95vh;
        max-height: calc(95dvh);
        border-radius: 20px 20px 0 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    
    /* Fixed header - never scrolls */
    .qb-header {
        flex-shrink: 0;
        padding: 1rem;
        border-bottom: 0.5px solid #F3F4F6;
        background: #fff;
    }
    
    .qb-route-banner {
        flex-shrink: 0;
        padding: 0.875rem 1rem;
        flex-wrap: wrap;
    }
    
    .qb-route-meta {
        display: none;
    }

    /* The <form> must also be a block flex-column so .qb-body can scroll */
    #quickBookForm {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    
    /* MAIN SCROLL CONTAINER - This is the key fix */
    .qb-body {
        display: block !important;
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto !important;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        /* Hide scrollbar but keep functionality */
        scrollbar-width: thin;
        scrollbar-color: #E5E7EB transparent;
    }
    
    .qb-body::-webkit-scrollbar {
        width: 4px;
    }
    
    .qb-body::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .qb-body::-webkit-scrollbar-thumb {
        background: #E5E7EB;
        border-radius: 2px;
    }
    
    /* Left column (seat map) */
    .qb-col-left {
        overflow: visible !important;
        width: 100%;
        padding: 1.25rem;
        border-right: none;
        border-bottom: 0.5px solid #F3F4F6;
        background: #FAFAFA;
    }
    
    /* Right column (details) */
    .qb-col-right {
        overflow: visible !important;
        width: 100%;
        padding: 1.25rem;
        padding-bottom: 2rem; /* Extra space for bottom safe area */
    }
    
    /* Seat map centering */
    .qb-bus-shell {
        max-width: 260px;
        margin: 0 auto;
        padding: 0.75rem;
    }
    
    .qb-seat-grid {
        gap: 6px;
    }
    
    .qb-seat-row {
        gap: 4px;
    }
    
    .qb-seat {
        width: 38px;
        height: 34px;
        flex: none !important;
        font-size: 0.5rem;
    }
    
    .qb-row-num {
        width: 14px;
        font-size: 0.5rem;
    }
    
    .qb-aisle {
        width: 10px;
        flex: none;
    }
    
    /* Payment grid */
    .qb-payment-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .qb-pay-option {
        padding: 0.625rem 0.375rem;
    }
    
    .qb-pay-icon {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    
    .qb-pay-label {
        font-size: 0.625rem;
    }
    
    .qb-pay-sub {
        font-size: 0.5rem;
    }
    
    /* Input fields - prevent iOS zoom */
    .qb-input {
        font-size: 1rem !important;
        padding: 0.75rem 0.75rem 0.75rem 2.25rem;
    }
    
    /* Submit button with extra bottom padding */
    /* AFTER */
    .qb-submit-btn {
        padding: 0.875rem;
        font-size: 0.9375rem;
        margin-top: 1.25rem;
        margin-bottom: 1rem;
        position: relative;            /* ← remove sticky */
        /* background: #fff; */        /* ← remove this entirely */
        padding-bottom: calc(0.875rem + env(safe-area-inset-bottom, 0));
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ENHANCED SEAT MAP STYLES
   ═══════════════════════════════════════════════════════════════════════════ */
.qb-bus-front {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    border-radius: 10px;
    padding: 0.625rem;
    margin-bottom: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.7);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.qb-bus-front i {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
}

.qb-seat {
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-radius: 8px 8px 4px 4px;
}

.qb-seat:hover:not(.qb-seat--occupied) {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 59, 31, 0.2);
}

.qb-seat.selected {
    animation: seatSelected 0.3s ease;
}

@keyframes seatSelected {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   FORM VALIDATION STATES
   ═══════════════════════════════════════════════════════════════════════════ */
.qb-input:invalid:not(:placeholder-shown) {
    border-color: #EF4444;
}

.qb-input:valid:not(:placeholder-shown) {
    border-color: #10B981;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LOADING STATES
   ═══════════════════════════════════════════════════════════════════════════ */
.qb-submit-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.qb-submit-btn.loading i {
    animation: spin 0.8s linear infinite;
}

/* ═══════════════════════════════════════════════════════════════════════════
   NOTIFICATION TOAST FOR BOOKING
   ═══════════════════════════════════════════════════════════════════════════ */
.booking-toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    left: 1rem;
    background: #0F0F12;
    color: #fff;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    font-size: 0.875rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.booking-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.booking-toast.success {
    background: linear-gradient(135deg, #059669 0%, #10B981 100%);
}

.booking-toast.error {
    background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%);
}

/* ============================================
BUS TYPE TAB SWITCHER
============================================ */
.bus-type-tab {
    position: relative;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.bus-type-tab.active {
    background: #FF3B1F;
    color: white;
    box-shadow: 0 2px 8px rgba(255, 59, 31, 0.3);
}

.bus-type-tab:hover:not(.active) {
    background: #F9FAFB;
    color: #FF3B1F;
}

/* Responsive Tabs */


/* ============================================
   MODERN ROUTE CARD STYLES
   ============================================ */

/* Ensures city names never break onto a second line */
.route-card .truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Ensures the route connector line sits perfectly in the center */
.route-card .h-\[2px\] {
    background: linear-gradient(to right, #e5e7eb, #cbd5e1, #e5e7eb);
}

/* Smooth price update transition */
.route-price-display {
    transition: opacity 0.2s ease;
}

/* ============================================
   2. Modern Outline Buttons (Book Now)
   ============================================ */
.btn-outline {
    background-color: transparent;
    border-width: 1px; /* Reduced from 2px to 1px */
    border-style: solid;
    border-color: var(--primary, #FF3B1F);
    color: var(--primary, #FF3B1F);
    font-weight: 700;
    border-radius: 8px; /* Slightly squared corners */
    padding: 0.5rem 1.25rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
}

.btn-outline:hover {
    background-color: var(--primary, #FF3B1F);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 59, 31, 0.15);
}

/* ============================================
   3. View All Routes (Swipe Animation)
   ============================================ */
.view-all-btn {
    position: relative;
    overflow: hidden;
    border: 0.5px solid #e5e7eb;
    background-color: var(--bg-dark, #0F0F12);
    color: #ffffff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Swiping background layer */
.view-all-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--primary, #FF3B1F);
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 0;
    border-radius: 9999px;
}

/* Hover state triggers the swipe */
.view-all-btn:hover::before {
    width: 100%;
}

.view-all-btn:hover {
    border-color: var(--primary, #FF3B1F);
    box-shadow: 0 4px 15px rgba(255, 59, 31, 0.25);
}

/* Keep text & icon above the swipe animation */
.view-all-btn span,
.view-all-btn i {
    position: relative;
    z-index: 1;
}

/* ============================================================
   HERO WIDGET REDESIGN — hw- prefix, single-column, premium
   ============================================================ */

/* Widget shell */
.booking-widget-glass {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 2rem 2rem 1.75rem;
    box-shadow: 0 24px 60px rgba(0,0,0,0.18), 0 4px 16px rgba(0,0,0,0.08);
    max-width: 26rem;
    margin: 0 auto;
    position: relative;
}



.booking-widget-glass h3 {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.375rem;
    letter-spacing: -0.3px;
}

/* Form */
.hw-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Group */
.hw-group {
    display: flex;
    flex-direction: column;
    gap: 0.3125rem;
}

.hw-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
}

/* Shared trigger style */
.hw-csd-trigger {
    background: #FFFFFF;
    border: 1.5px solid #C7C7CC;
    border-radius: 10px;
    padding: 0.625rem 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    min-height: 44px;
    transition: all 0.15s ease;
}
.hw-csd-trigger:hover { border-color: #9CA3AF; }
.hw-csd-trigger.open {
    border-color: var(--primary);
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(255,59,31,0.08);
}

.hw-csd-icon {
    font-size: 0.8125rem;
    color: var(--text-muted);
    flex-shrink: 0;
    width: 14px;
    text-align: center;
    transition: color 0.15s ease;
}
.hw-csd-trigger.open .hw-csd-icon { color: var(--primary); }

.hw-csd-val {
    flex: 1;
    font-size: 0.875rem;
    font-family: var(--font-primary);
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hw-placeholder { color: #9CA3AF; }

.hw-csd-arrow {
    font-size: 0.6875rem;
    color: #9CA3AF;
    transition: transform 0.18s ease;
    flex-shrink: 0;
}
.hw-csd-trigger.open .hw-csd-arrow { transform: rotate(180deg); }

/* Dropdown panel */
.hw-csd-drop {
    position: absolute;
    top: calc(100% + 5px);
    left: 0; right: 0;
    background: #FFFFFF;
    border: 1.5px solid #C7C7CC;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.14), 0 2px 8px rgba(0,0,0,0.06);
    z-index: 300;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
}
.hw-csd-drop.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* hw-csd-search-bar hidden — few cities, no search needed */
.hw-csd-search-bar { display: none; }

.hw-csd-list {
    max-height: 196px;
    overflow-y: auto;
    padding: 0.3125rem;
    scrollbar-width: thin;
}
.hw-csd-list::-webkit-scrollbar { width: 3px; }
.hw-csd-list::-webkit-scrollbar-thumb { background: #E5E7EB; border-radius: 2px; }

.hw-csd-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.75rem;
    border-radius: 7px;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-primary);
    transition: background 0.12s ease;
}
.hw-csd-item:hover { background: #F8F7F5; }
.hw-csd-item.selected {
    background: #FFF5F3;
    color: var(--primary);
    font-weight: 600;
}
.hw-csd-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #E5E7EB;
    flex-shrink: 0;
}
.hw-csd-item.selected .hw-csd-dot { background: var(--primary); }

/* Wrapper must be relative for dropdown positioning */
.hw-csd,
.hw-cdp { position: relative; }

/* Calendar */
.hw-cal {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    background: #FFFFFF;
    border: 1.5px solid #C7C7CC;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.14), 0 2px 8px rgba(0,0,0,0.06);
    z-index: 300;
    padding: 0.875rem;
    width: 272px;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
}
.hw-cal.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.hw-cal-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}
.hw-cal-nav-btn {
    width: 28px; height: 28px;
    border: 1px solid #C7C7CC;
    background: #F8F7F5;
    border-radius: 7px;
    cursor: pointer;
    color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem;
    transition: all 0.12s ease;
}
.hw-cal-nav-btn:hover { background: #FFE5E0; border-color: var(--primary); color: var(--primary); }
.hw-cal-month { font-size: 0.875rem; font-weight: 700; color: var(--text-primary); }

.hw-cal-day-headers {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 4px;
}
.hw-cal-dh {
    text-align: center;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #9CA3AF;
    padding: 3px 0;
}

.hw-cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}
.hw-cal-day {
    aspect-ratio: 1;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8125rem;
    border-radius: 7px;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.12s ease;
    font-family: var(--font-primary);
}
.hw-cal-day:hover:not(.hw-past):not(.hw-empty):not(.hw-selected) { background: #F4F4F6; }
.hw-cal-day.hw-past   { color: #D1D5DB; cursor: not-allowed; }
.hw-cal-day.hw-today  { font-weight: 700; color: var(--primary); background: #FFF5F3; }
.hw-cal-day.hw-selected { background: var(--primary); color: #FFFFFF; font-weight: 700; }
.hw-cal-day.hw-empty  { cursor: default; }

/* Passenger stepper */
.hw-stepper {
    background: #FFFFFF;
    border: 1.5px solid #C7C7CC;
    border-radius: 10px;
    padding: 0.5rem 0.875rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    transition: border-color 0.15s ease;
}
.hw-stepper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255,59,31,0.08);
}
.hw-stepper-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-primary);
    font-family: var(--font-primary);
}
.hw-stepper-controls { display: flex; align-items: center; gap: 0.625rem; }
.hw-step-btn {
    width: 26px; height: 26px;
    border-radius: 50%;
    border: 1.5px solid #C7C7CC;
    background: #FFFFFF;
    color: var(--text-primary);
    font-size: 1rem; font-weight: 600; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: var(--font-primary);
}
.hw-step-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); background: #FFF5F3; }
.hw-step-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.hw-step-count { font-size: 0.9375rem; font-weight: 700; color: var(--text-primary); min-width: 18px; text-align: center; }

/* Submit */
.hw-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    padding: 0.875rem 1.25rem;
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(255,59,31,0.28);
    margin-top: 0.25rem;
    letter-spacing: 0.01em;
}
.hw-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(255,59,31,0.36);
}
.hw-submit:active { transform: translateY(0); }

/* ── Hero widget validation states ── */
.hw-csd-trigger.hw-error,
#hwDateTrigger.hw-error {
    border-color: #EF4444;
    background: #FEF2F2;
    box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}

.hw-csd-trigger.hw-error .hw-csd-icon,
#hwDateTrigger.hw-error .hw-csd-icon {
    color: #EF4444;
}

.hw-err-msg {
    display: block;
    font-size: 0.6875rem;
    font-weight: 500;
    color: #EF4444;
    margin-top: 0.25rem;
    padding-left: 0.125rem;
}
/* ════════════════════════════════════════════════════
   MOBILE BOTTOM-SHEET for hw-csd dropdowns & calendar
   ════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* ── List items: slightly larger touch targets on mobile ── */
    .hw-csd-list {
        max-height: 220px;
    }
    .hw-csd-item {
        padding: 0.875rem 1rem;
        font-size: 1rem;
        border-radius: 10px;
        font-weight: 500;
    }

    /* ── Calendar: fill widget width on mobile ── */
    .hw-cal {
        width: 100%;
        left: 0;
        right: 0;
    }
}


/* =============================================================
   BUSCONNECT — GLOBAL MOBILE ENHANCEMENTS
   Targets ≤640px (phones). Increases font sizes, input heights,
   touch targets and spacing so everything is readable without
   straining. Desktop styles are completely untouched.
   ============================================================= */

@media (max-width: 640px) {

  /* ── Base typography ──────────────────────────────────────── */
  body {
    font-size: 15px;           /* up from 13-14px default       */
    -webkit-text-size-adjust: 100%;
  }

  /* ── Bus-type tab strip (the VIP Standard / OA tabs) ──────── */
  .bus-type-tab {
    font-size: 0.8125rem !important;   /* 13px — readable       */
    padding: 8px 14px !important;
    border-radius: 9px !important;
    min-height: 36px !important;
  }
  .home-tab-bar-inner {
    padding: 5px !important;
    gap: 4px !important;
  }

  /* ── Hero search widget (hw-) — bigger fields ─────────────── */
  .hw-card {
    padding: 20px 16px;
    border-radius: 20px;
  }
  .hw-card h3 {
    font-size: 1.125rem;       /* "Find Your Bus" heading       */
    margin-bottom: 14px;
  }
  .hw-label {
    font-size: 0.6875rem;      /* FROM / TO / DATE labels       */
    margin-bottom: 5px;
  }
  .hw-csd-trigger {
    min-height: 50px !important;
    padding: 0 1rem !important;
    font-size: 0.9375rem !important;  /* 15px                  */
    border-radius: 12px !important;
  }
  .hw-stepper {
    min-height: 50px !important;
    padding: 0.625rem 1rem !important;
    border-radius: 12px !important;
  }
  .hw-stepper-info {
    font-size: 0.9375rem;
  }
  .hw-step-btn {
    width: 32px !important;
    height: 32px !important;
    font-size: 1.125rem !important;
  }
  .hw-csd-val,
  .hw-placeholder {
    font-size: 0.9375rem;
  }
  .hw-csd-icon {
    font-size: 1rem;
  }

  /* ── Search result filter bar ────────────────────────────────*/
  .pub-filter-select {
    height: 50px !important;
    font-size: 0.9375rem !important;
    padding: 0 2.25rem 0 0.875rem !important;
    border-radius: 12px !important;
  }
  .pfd-trigger,
  .pfc-trigger {
    height: 50px !important;
    font-size: 0.9375rem !important;
    border-radius: 12px !important;
  }
  .pub-filter-label {
    font-size: 0.6875rem !important;
    margin-bottom: 5px;
  }

  /* ── Auth pages (login / register / forgot password) ─────── */
  .auth-box {
    padding: 28px 20px;
  }
  .auth-logo h1 {
    font-size: 1.625rem;
  }
  .form-group label {
    font-size: 0.8125rem;
  }
  .input-wrapper input {
    padding: 15px 15px 15px 46px !important;
    font-size: 1rem !important;
    min-height: 52px !important;
    border-radius: 12px !important;
  }
  /* Register page — .input-field class */
  .input-field {
    padding: 14px 14px !important;
    font-size: 1rem !important;
    min-height: 52px !important;
    border-radius: 12px !important;
  }
  .gd-trigger {
    min-height: 52px !important;
    font-size: 1rem !important;
    border-radius: 12px !important;
    padding: 14px 14px 14px 42px !important;
  }
  .btn-primary,
  .btn-continue {
    padding: 16px !important;
    font-size: 1rem !important;
    min-height: 52px !important;
    border-radius: 12px !important;
  }

  /* ── Contact form ─────────────────────────────────────────── */
  .contact-field-label {
    font-size: 0.75rem !important;
    margin-bottom: 6px !important;
  }
  .contact-form-panel .input-field {
    padding: 14px !important;
    font-size: 1rem !important;
    min-height: 52px !important;
  }

  /* ── Passenger dashboard ─────────────────────────────────── */
  .psg-kpi-val {
    font-size: 1.375rem !important;  /* stat numbers            */
  }
  .psg-kpi-lbl {
    font-size: 0.75rem !important;
  }
  .psg-kpi {
    padding: 14px 10px !important;
    border-radius: 14px !important;
  }
  .psg-section-title {
    font-size: 0.6875rem !important;
  }

  /* Booking card on passenger dashboard */
  .bk-card {
    padding: 14px !important;
    border-radius: 16px !important;
  }
  .bk-route-from,
  .bk-route-to {
    font-size: 1rem !important;
    font-weight: 700 !important;
  }
  .bk-meta-item {
    font-size: 0.8125rem !important;
  }

  /* Profile / settings form inputs */
  .pf-input,
  .psg-input {
    font-size: 1rem !important;
    min-height: 50px !important;
    padding: 12px 14px !important;
    border-radius: 12px !important;
  }
  /* Auth inputs: set block padding only — don't touch inline (left/right)
     so each page's own padding-left (for icon clearance) is preserved */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="password"] {
    font-size: 1rem !important;
    min-height: 50px !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    border-radius: 12px !important;
  }
  select,
  textarea {
    font-size: 1rem !important;
    min-height: 50px !important;
    padding: 12px 14px !important;
    border-radius: 12px !important;
  }
  textarea {
    min-height: 110px !important;
  }

  /* ── Passenger bottom nav pill ──────────────────────────────── */
  .psg-bottom-nav {
    padding: 10px 16px;
    border-radius: 20px;
    gap: 4px;
  }
  .psg-nav-btn {
    font-size: 0.625rem !important;
    padding: 6px 10px !important;
    gap: 4px !important;
  }
  .psg-nav-btn i {
    font-size: 1.25rem !important;
  }

  /* ── General page headings on mobile ─────────────────────── */
  h1 { font-size: 1.625rem; }
  h2 { font-size: 1.25rem;  }
  h3 { font-size: 1.0625rem; }

  /* ── Quick action buttons on passenger dashboard ─────────── */
  .psg-qa-btn {
    padding: 14px 6px 12px !important;
    border-radius: 14px !important;
  }
  .psg-qa-icon {
    width: 40px !important;
    height: 40px !important;
    font-size: 1.125rem !important;
    border-radius: 12px !important;
    margin-bottom: 7px !important;
  }
  .psg-qa-label {
    font-size: 0.6875rem !important;
  }
}

/* ── Extra-small phones (≤390px) ───────────────────────────── */
@media (max-width: 390px) {
  .bus-type-tab {
    font-size: 0.75rem !important;
    padding: 7px 10px !important;
  }
  .hw-card h3 {
    font-size: 1rem;
  }
  .psg-kpi-row {
    gap: 6px !important;
  }
  .psg-kpi-val {
    font-size: 1.125rem !important;
  }
}
