/* Mobile Specific Styles - mobile.css */

/* Global Reset Overrides */
:root {
    --primary-bg: #f2f2f2;
    --white: #ffffff;
    --blue-accent: #008cff;
    --font-stack: 'Lato', sans-serif;
    --mobile-hero-image: url('images/mobile-hero.jpg');
}

/* ... existing styles ... */

/* Reduced Motion Preference (Bug 20) */
@media (prefers-reduced-motion: no-preference) {

    .flatpickr-calendar,
    #custom-time-popup,
    body.pricing-page .pricing-form-section.editing {
        animation-duration: 0.3s;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== CLEAN MOBILE POINTER-EVENTS ARCHITECTURE ===== */
/* Step 2: Hero NEVER catches touches */
.az-hero,
.az-hero-slider,
.az-hero-slide {
    pointer-events: none !important;
}

/* Step 3: Main-header non-interactive except nav and booking widget */
body.home-page .main-header {
    pointer-events: none;
}

body.home-page .top-bar,
body.home-page .az-booking-widget {
    pointer-events: auto;
}

/* Fix Hero Image (Bug 19) */
body.home-page .main-header {
    background-image: var(--mobile-hero-image) !important;
    /* ... other props ... */
}

.to-item {
    margin-top: 0 !important;
    /* Reset negative margin (Bug 12) */
    width: 100% !important;
    order: 4;
    flex: 0 0 100% !important;
}

/* Mobile Menu Overlay Styles */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 3000 !important;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.mobile-menu-overlay.active {
    display: block !important;
    opacity: 1;
    pointer-events: auto !important;
}

.mobile-menu-content {
    width: 280px;
    height: 100%;
    background: #fff;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}

#close-menu-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: #333;
    pointer-events: auto !important;
}

.mobile-menu-links {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-link {
    text-decoration: none;
    color: #333;
    font-size: 1rem;
    font-weight: 500;
}


/* Hero Alignment Fixes - SCOPED TO HOME PAGE ONLY */
body.home-page .main-header {
    min-height: 400px !important;
    /* Maintained height for hero */
    /* Restore Image ONLY, remove gradient overlay found in style.css */
    background-image: url('images/mobile-hero.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-color: transparent !important;
    padding-bottom: 20px;
    height: auto;
    display: block;
    position: relative;
    z-index: 10;
}

/* Reset for other pages (like Destination pages) on mobile */
body:not(.home-page) .main-header {
    min-height: 60px !important;
    background-image: none !important;
    background-color: #333 !important;
    height: auto !important;
    display: flex;
    flex-direction: column;
}

/* REMOVE DARK OVERLAY - Changed from rgba(0,0,0,0.5) gradient to transparent */
body.home-page .main-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: transparent !important;
    /* REMOVED: linear-gradient with dark overlay */
    z-index: 1;
    pointer-events: none;
}

.top-bar {
    padding: 10px 15px;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    border: none !important;
    display: flex !important;
    flex-direction: row !important;
    /* Force Row */
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: nowrap !important;
    gap: 10px;
    position: absolute;
    /* Float over hero */
    top: 0;
    left: 0;
    z-index: 20;
}

/* Ensure header stays transparent on homepage */
body.home-page .top-bar {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    border-bottom: none !important;
    position: relative;
    z-index: 10;
    padding-top: 15px !important;
}

/* White text for readability over hero image */
body.home-page .top-bar i,
body.home-page .top-bar a,
body.home-page .top-bar span {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hamburger-btn {
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    width: 28px !important;
    height: 18px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    order: 1;
    z-index: 105 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

.hamburger-btn span {
    display: block !important;
    width: 100% !important;
    height: 3px !important;
    background-color: #ffffff !important;
    border-radius: 2px !important;
}

body.v2-design .main-nav {
    display: none !important;
}

.logo-area {
    order: 2;
    margin-right: auto;
    padding-left: 15px;
}

.site-logo {
    height: 50px;
}

.user-controls {
    order: 3;
}

/* User name/login text need to be white if not button? 
   The image showed "Ilyas Hussain" in white next to an avatar.
   Assuming .login-btn-styled is replaced or specific user control markup exists. 
   For now, styling any text here white. 
*/
.user-controls,
.user-controls a,
.user-controls span {
    color: #fff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}


.login-btn-styled {
    font-size: 0.75rem;
    padding: 6px 12px;
    background: transparent;
    color: #fff !important;
    /* White text */
    border: 1px solid #fff !important;
    /* White border */
    box-shadow: none;
    white-space: nowrap;
}

/* Hide unused elements */
.main-nav a {
    display: none;
}

.helpline-btn {
    display: none;
}

/* Headline - Centered between header and form */
/* Header headline - better readability without dark overlay */
.header-headline {
    color: #fff !important;
    font-size: 1.5rem !important;
    margin: 40px 15px 12px 15px !important;
    /* Reduced margin */
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8) !important;
    text-align: center;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

/* Header Content Spacing */
.header-content {
    padding-top: 2.5rem !important;
    /* Reduced from default */
}

/* Global visibility reset removed - replaced by homepage-specific logic at end of file */

/* Booking Widget */
.az-booking-widget {
    margin-bottom: 0;
    padding: 0;
    /* Remove padding so tabs are flush with edge */
    position: relative;
    z-index: 10;
    /* Clean stacking - pointer-events architecture handles interaction */
    pointer-events: auto !important;
}

/* 1. Service Tabs Alignment - Force Single Row */
.az-service-tabs {
    padding: 0;
    gap: 0;
    /* Remove gap so tabs are seamless */
    border: none;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    /* Distribute evenly */
    flex-wrap: nowrap;
    /* No wrapping */
    position: relative;
    z-index: 10;
}

.az-service-tab {
    flex: 1;
    text-align: center;
    /* Removed white background/border to match desktop glass design */
    padding: 12px 8px;
    /* Touch target size */
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 700;
    min-width: 0;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
    /* Ensure vertical stacking */
    gap: 4px;
    position: relative;
}

.az-service-tab.active {
    /* Keep text color change but avoid background override if using glass style */
    color: #fff;
    background: #0ea5e9 !important;
    /* Force background for active state on mobile */
}

.az-service-tab:first-child.active {
    border-top-left-radius: 20px;
}

.az-service-tab:last-child.active {
    border-top-right-radius: 20px;
}

.az-service-tab:has(input:checked) {
    color: #fff;
    background: #0ea5e9 !important;
}

.az-service-tab:first-child:has(input:checked) {
    border-top-left-radius: 20px;
}

.az-service-tab:last-child:has(input:checked) {
    border-top-right-radius: 20px;
}

.az-service-tab input {
    display: none;
}

/* Form Body - Ensure all interactive elements are above background */
.az-form-body {
    position: relative;
    z-index: 10;
}

/* Explicit interaction fix for ALL form elements */
.az-form-grid input,
.az-form-grid select,
.az-form-grid button,
.az-form-grid label,
.az-input,
.flatpickr-mobile {
    pointer-events: auto !important;
    position: relative;
    z-index: 20;
}

/* Toggle buttons - ensure clickability */
.az-toggle-btn {
    position: relative;
    z-index: 20;
    min-height: 44px;
    /* Better touch target */
    pointer-events: auto !important;
}

/* Swap button - ensure clickability and better touch target */
.az-swap-btn {
    position: relative;
    z-index: 20;
    min-width: 44px;
    min-height: 44px;
    pointer-events: auto !important;
}

/* HIGH-SPECIFICITY: Ensure ALL interactive elements in booking widget are clickable */
body.home-page .az-booking-widget button,
body.home-page .az-booking-widget input,
body.home-page .az-booking-widget select,
body.home-page .az-booking-widget label,
body.home-page .az-booking-widget .az-toggle-btn,
body.home-page .az-booking-widget .az-service-tab,
body.home-page .az-booking-widget .az-swap-btn {
    pointer-events: auto !important;
    position: relative;
    z-index: 10;
}

/* ===== MOBILE VISUAL POLISH ===== */

/* 1. FIELD ICONS - Ensure visibility */
.az-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.az-input-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #008cff !important;
    font-size: 16px !important;
    z-index: 100 !important;
    pointer-events: none;
    display: block !important;
    opacity: 1 !important;
}

.az-input-wrap .az-input {
    padding-left: 44px !important;
}

/* 2. BORDER RADIUS - Match toggle pills for smooth look */
.az-toggle-group {
    border-radius: 50px;
}

.az-form-section {
    display: none;
}

.az-form-section.active {
    display: block !important;
}

.az-form-section,
.az-form-grid,
.az-datetime-grid {
    border-radius: 16px;
}

.az-field {
    border-radius: 12px;
}

.az-input {
    border-radius: 10px !important;
}

/* 3. STOP FIELD STYLING with remove button */
.az-stop-field {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.az-stop-field .az-input-wrap {
    flex: 1;
}

.az-stop-remove-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.az-stop-remove-btn:hover,
.az-stop-remove-btn:active {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
}

/* 4. SMOOTH BORDERS between form sections */
.az-booking-widget {
    border-radius: 20px;
    overflow: visible;
    margin-bottom: 30px;
    /* Padding below form */
}

.az-service-tabs {
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    /* Clips the background of active tabs to match rounded corners */
}

.az-form-body {
    border-radius: 0 0 16px 16px;
    padding: 0 10px;
    /* Indent form content here instead of in parent widget */
}

.az-search-btn {
    width: calc(100% - 20px) !important;
    margin: 10px 10px 5px 10px !important;
}

/* 2. One Way / Round Trip Toggle Alignment - Center Horizontal */
.trip-type-toggle-container {
    display: flex;
    justify-content: center;
    /* Center horizontally */
    margin: 10px 0;
}

.trip-type-selector {
    display: flex;
    gap: 10px;
}

/* 3. Date & Time Picker UX (Mobile Only) - Bottom Sheet */
@media (max-width: 768px) {
    .flatpickr-calendar {
        position: fixed !important;
        bottom: 0 !important;
        top: auto !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 15px 15px 0 0 !important;
        animation: slideUp 0.3s ease-out;
        z-index: 9999 !important;
        margin: 0 !important;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2) !important;
    }

    @keyframes slideUp {
        from {
            transform: translateY(100%);
        }

        to {
            transform: translateY(0);
        }
    }

    /* Ensure Time Picker inputs are touch-friendly */
    .flatpickr-time input {
        font-size: 1.2rem !important;
    }

    /* Custom Time Picker Bottom Sheet */
    #custom-time-popup {
        position: fixed !important;
        bottom: 0 !important;
        top: auto !important;
        /* Override JS inline style */
        left: 0 !important;
        /* Override JS inline style */
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 15px 15px 0 0 !important;
        animation: slideUp 0.3s ease-out;
        z-index: 10001 !important;
        /* Higher than mask */
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2) !important;
        display: none;
        /* Default hidden */
    }

    #custom-time-popup.active {
        display: block !important;
        /* Ensure flex layout is maintained if it uses flex internally, check main.js structure */
        /* The JS sets display via class, but let's be safe. main.js markup implies block flow usually. */
    }
}

/* 4. Hourly Rentals – Field Height Consistency */
#hourly-form-content .form-item {
    min-height: 85px;
    /* Force equal height for container */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#hourly-city,
#hourly-package {
    height: 45px;
    /* Explicit height for inputs */
    line-height: 45px;
    /* Center text vertically */
    padding: 0 10px;
}

/* Form Container */
.form-container {
    padding: 0;
}

#standard-form-content,
#airport-form-content,
#hourly-form-content {
    display: none;
    /* Hidden by default */
    border: none;
    background: transparent;
    gap: 10px;
    width: 100%;
}

/* Active State - Column Layout (Mobile Override) */
#standard-form-content.active,
#airport-form-content.active,
#hourly-form-content.active {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    /* Allow separate items to wrap */
    justify-content: space-between;
}

/* Form Item Styling - Base */
.form-item {
    background: var(--white);
    border: 1px solid #e7e7e7 !important;
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Ensure text doesn't truncate - CRITICAL FIX */
.form-item .lbl-sm {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
}

.form-item .main-input {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    font-size: 1.3rem !important;
    /* Slightly smaller for mobile */
    line-height: 1.3 !important;
    word-wrap: break-word;
}

.form-item .sub-text {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
}

/* Toggle */
.trip-type-toggle-container {
    width: 100%;
    order: 1;
    background: #eaf5ff;
    border: none !important;
}

.trip-type-selector {
    gap: 20px;
}

.trip-radio span {
    font-size: 0.9rem;
}

/* Fields Ordering & Sizing - STRICT VERTICAL STACK */
.from-item {
    width: 100% !important;
    /* Force full width */
    order: 2;
    flex: 0 0 100% !important;
    /* No flex shrinking */
    max-width: 100% !important;
}

/* Swap Button - Between FROM and TO */
.swap-icon-container {
    display: flex !important;
    position: static !important;
    order: 3;
    margin: -15px auto;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #fff;
    z-index: 5;
    transform: rotate(0deg) !important;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    left: auto !important;
    top: auto !important;
}

.to-item {
    width: 100% !important;
    /* Force full width */
    order: 4;
    flex: 0 0 100% !important;
    /* No flex shrinking */
    max-width: 100% !important;
}

/* Dates - Side by Side (50% each) */
.date-item:not(.return-date-wrapper) {
    width: 48%;
    order: 5;
    flex: 0 0 48%;
    border-right: 1px solid #e7e7e7 !important;
}

.return-date-wrapper {
    width: 48%;
    order: 5;
    flex: 0 0 48%;
}

.time-item {
    width: 100%;
    order: 6;
}

.time-item {
    width: 100%;
    order: 6;
}

.return-time-wrapper {
    width: 100% !important;
    order: 7;
    border-left: none !important;
    /* No border on mobile */
    border: 1px solid #e7e7e7 !important;
    /* Add border like other items */
    border-radius: 8px;
    margin-top: 10px;
    /* Space between times */
    pointer-events: auto !important;
    /* Ensure touch events work */
    position: relative;
    z-index: 1;
    /* Ensure it's above other form elements */
}

/* Add Stops */
.add-stops-area {
    margin-top: 10px;
    text-align: left;
}

.add-stop-link {
    background: var(--white);
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid var(--blue-accent);
    color: var(--blue-accent);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Search */
.search-btn-container {
    position: static;
    margin-top: 20px;
    margin-bottom: 40px;
}

.primary-search-btn {
    width: 100%;
    border-radius: 8px;
    font-size: 1.1rem;
    padding: 12px;
}

/* Offers & Misc */
.offers-section {
    padding-top: 20px;
}

.section-title {
    font-size: 1.2rem;
    padding-left: 10px;
}

/* Offer Cards - Maintain Split Layout on Mobile */
.offer-card-new {
    border-radius: 8px;
    min-height: 160px !important;
    height: 160px !important;
    flex-direction: row !important;
    /* Keep horizontal split */
    overflow: hidden;
}

/* Left Image - 40% width on mobile */
.offer-img-container {
    width: 40% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center !important;
    flex-shrink: 0;
}

/* Right Content - 60% width on mobile */
.offer-content-container {
    width: 60% !important;
    height: 100% !important;
    padding: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

/* Adjust text sizes for mobile */
.offer-card-new h3 {
    font-size: 0.95rem !important;
    line-height: 1.2 !important;
    margin-bottom: 5px !important;
}

.offer-card-new p {
    font-size: 0.75rem !important;
    line-height: 1.3 !important;
}

.card-footer {
    display: flex !important;
    padding-top: 5px !important;
    margin-top: 5px !important;
    font-size: 0.7rem !important;
}

.card-icon {
    font-size: 1.2rem !important;
    margin-bottom: 5px !important;
}

/* Floating Button styles moved to style.css */



/* --- MOBILE UI REFINEMENTS (Routes & Pricing) --- */

/* Popular Routes Section Mobile */
.popular-routes-section {
    padding: 30px 0;
    background: #fff;
}

.routes-container-wide {
    padding: 0 10px;
}

/* 2 Cards Per Row as Requested */
.routes-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px;
}

.route-card {
    flex-direction: column;
    /* Stack Image & Content */
    align-items: center;
    text-align: center;
    padding: 15px 10px;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    /* Lighter shadow */
}

/* Smaller Circular Image */
.route-card-img {
    width: 50px;
    height: 50px;
    margin-bottom: 5px;
    /* Spacing */
}

.route-card-title {
    font-size: 0.9rem;
    /* Smaller Title */
    margin-bottom: 8px;
    min-height: 2.4em;
    /* Ensure alignment */
    display: flex;
    align-items: center;
    justify-content: center;
}

.destination-links {
    justify-content: center;
    gap: 5px;
}

.dest-link {
    font-size: 0.75rem;
    /* Tiny readable pills */
    padding: 3px 8px;
    background: #f0f0f0;
}

/* Pricing Page Mobile */
.pricing-page-container {
    padding: 0 10px;
    margin: 20px auto;
}

.pricing-header h1 {
    font-size: 1.4rem;
}

/* ================================================
   MOBILE PRICING CARDS - FINAL RATE LIST FIX
   ================================================ */

/* 
   Reference-Exact Layout (3-Column Grid):
   [ Image Box ]  [ Car Details (Left) ]  [ Pricing (Right) ]
   [ (spans)   ]  [ Button (spans 2 & 3)                    ]
*/

.pricing-card {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    /* Increased img col to 90px */
    grid-template-rows: auto auto auto;
    gap: 4px 12px;
    padding: 12px;
    margin-bottom: 15px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
    align-items: flex-start;
}

/* 1. IMAGE CONTAINER (Styled like reference) */
.car-image-container {
    grid-column: 1;
    grid-row: 1 / -1;
    width: 90px;
    height: 90px;
    background: #eaf5ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    /* Zero padding */
    align-self: start;
}

.car-image {
    width: 100%;
    height: auto !important;
    object-fit: contain;
    max-height: 100%;
    mix-blend-mode: multiply;
    /* Better integration */
}

/* 2. CENTER: CAR DETAILS */
.car-details {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 4px;
    padding: 0 !important;
}

.car-name {
    font-size: 1rem !important;
    font-weight: 800 !important;
    color: #000;
    line-height: 1.2;
    margin: 0 !important;
}

/* Specs & Rating merged visually */
.car-specs {
    font-size: 0.75rem !important;
    color: #555;
    margin: 4px 0 0 0 !important;
    line-height: 1.3;
    display: block;
}

.car-rating {
    display: inline-block;
    background: #26a541;
    color: white;
    font-size: 0.65rem !important;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 700;
    margin-top: 4px !important;
    width: fit-content;
}

/* 3. RIGHT: PRICING (Aligned Right) */
.pricing-details {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* Right align everything */
    justify-content: flex-start;
    text-align: right;
    padding: 0 !important;
    gap: 2px;
    background: transparent !important;
    border: none !important;
}

.price-discount {
    font-size: 0.7rem !important;
    color: #26a541;
    /* Green */
    font-weight: 700;
    order: 1;
    margin-bottom: -2px;
}

.price-strike {
    font-size: 0.7rem !important;
    color: #999;
    text-decoration: line-through;
    order: 2;
}

.price-main {
    font-size: 1.2rem !important;
    font-weight: 900 !important;
    color: #000 !important;
    order: 3;
    line-height: 1;
}

.price-note {
    font-size: 0.6rem !important;
    color: #999;
    margin-top: 2px;
    order: 4;
}

/* 4. BOTTOM: BUTTON (Spans Center & Right) */
.btn-select-cab {
    grid-column: 2 / -1;
    grid-row: 2;
    margin-top: 4px !important;
    padding: 8px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    width: 100% !important;
    background: linear-gradient(90deg, #4481eb 0%, #04befe 100%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Religious Routes Mobile */
@media (max-width: 768px) {
    .religious-routes-section {
        padding: 40px 0;
    }

    .religious-card {
        flex: 0 0 85%;
    }

    .religious-routes-section .carousel-slide:first-child {
        margin-left: 0;
    }

    /* Vertical stacking fix for new container */
    .routes-container-wide {
        width: 100%;
        padding: 0 15px;
        overflow: hidden;
    }

    /* Ensure content is laid out correctly */
    .religious-card-content {
        padding: 15px;
    }

    .religious-route-title {
        font-size: 16px;
    }

    .religious-img-container {
        height: 180px;
        /* Smaller image on mobile */
    }
}

/* Religious Grid Mobile */
.religious-grid-section {
    padding: 30px 0;
}

.religious-grid-container {
    grid-template-columns: 1fr 1fr !important;
    /* Force 2 columns */
    gap: 10px;
}

.religious-grid-card {
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden;
}

.grid-card-img-box {
    height: 100px;
    flex-shrink: 0;
}

.grid-card-content {
    padding: 10px;
    background: #ffffff !important;
    /* Force white background on mobile */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.grid-route-title {
    font-size: 0.85rem;
    margin-bottom: 3px;
    min-height: 2.5em;
    /* Alignment */
    color: #222 !important;
    /* Ensure dark text */
}

.grid-route-price {
    font-size: 0.75rem;
    color: #0056b3 !important;
    /* Ensure visible blue */
}

.grid-badge {
    font-size: 0.6rem;
    padding: 2px 4px;
}

/* ========================================
   PRICING PAGE MOBILE STYLES
   ======================================== */



/* Mobile Form Overlay - MOBILE ONLY */
@media (max-width: 768px) {

    /* Mobile Form Overlay - MOBILE ONLY */
    /* Hide form inline on mobile - STRICT REQUIREMENT */
    body.pricing-page .pricing-form-section {
        display: none;
    }

    body.pricing-page .pricing-form-section.editing {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: 9999;
        background: white;
        padding-top: 60px !important;
        animation: slideUp 0.3s ease;
        display: block !important;
        overflow-y: auto;
        /* Required to reach bottom of form on mobile */
    }

    @keyframes slideUp {
        from {
            transform: translateY(100%);
        }

        to {
            transform: translateY(0);
        }
    }


}

/* =========================================
   JOURNEY SUMMARY WIDGET (Mobile Sticky Bar)
   ========================================= */
@media (max-width: 768px) {
    .journey-summary-bar {
        display: none;
        /* Hide old summary bar if exists */
    }

    .journey-summary-widget {
        display: none;
        /* Hidden by default, shown via JS */
        position: sticky;
        top: 0;
        z-index: 900;
        background: linear-gradient(135deg, #4285f4, #2b569a);
        color: white;
        padding: 12px 15px;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
    }

    .journey-summary-widget.visible {
        display: flex;
    }

    .widget-details {
        flex: 1;
    }

    .widget-route {
        font-size: 0.95rem;
        font-weight: 800;
        margin-bottom: 4px;
        display: block;
    }

    .widget-route i {
        margin-right: 5px;
        color: #ddd;
    }

    .widget-meta {
        font-size: 0.75rem;
        opacity: 0.9;
        display: block;
    }

    .widget-edit-btn {
        background: rgba(255, 255, 255, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.4);
        color: white;
        padding: 6px 12px;
        border-radius: 6px;
        font-size: 0.8rem;
        font-weight: 600;
        cursor: pointer;
        margin-left: 10px;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 5px;
    }
}

/* =========================================
   MOBILE FULL SCREEN POPUP OVERRIDES
   ========================================= */
@media (max-width: 768px) {

    /* Hide nav on mobile specifically if global rule misses something */
    body.pricing-page .top-bar,
    body.pricing-page navbar,
    body.pricing-page header {
        display: none !important;
    }

    /* Ensure no hero image on mobile */
    .pricing-form-section {
        background: white !important;
        padding: 0 !important;
        min-height: auto !important;
    }

    /* Close Button Header for Mobile Popup */
    #mobile-close-btn {
        position: fixed;
        /* Fixed to top of popup */
        top: 0;
        left: 0;
        width: 100%;
        background: white;
        z-index: 2001;
        padding: 15px 20px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin: 0 !important;
        /* Override inline styles placed by JS */
    }
}

/* =========================================
   PREMIUM PRICING CARDS - MOBILE
   ========================================= */
@media (max-width: 768px) {
    .premium-pricing-card {
        flex-direction: row !important;
        /* Keep horizontal split */
        padding: 12px !important;
        margin-bottom: 15px !important;
    }

    .card-left-col {
        width: 35% !important;
        min-width: 110px !important;
        padding: 10px !important;
    }

    .ac-banner {
        top: 6px !important;
        left: 6px !important;
        font-size: 0.65rem !important;
        padding: 2px 6px !important;
    }

    .premium-image-box {
        max-width: 90px !important;
        height: auto !important;
    }

    .card-right-col {
        width: 65% !important;
        padding: 10px 12px !important;
    }

    .card-top-row {
        flex-direction: column !important;
        gap: 8px !important;
        margin-bottom: 8px !important;
    }

    .car-info-group {
        width: 100% !important;
    }

    .premium-car-name {
        font-size: 1rem !important;
        margin-bottom: 5px !important;
    }

    .car-badges {
        gap: 4px !important;
        flex-wrap: wrap !important;
    }

    .badge-seats,
    .badge-fuel {
        font-size: 0.65rem !important;
        padding: 2px 5px !important;
    }

    .premium-rating {
        font-size: 0.75rem !important;
        margin-top: 4px !important;
    }

    .trip-count {
        font-size: 0.7rem !important;
    }

    /* Price Group - Stack Vertically on Mobile */
    .car-price-group {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        /* Left align on mobile for better space usage */
        gap: 2px !important;
        width: 100% !important;
        margin-top: 8px !important;
    }

    .discount-tag {
        font-size: 0.65rem !important;
        padding: 2px 6px !important;
        order: 1;
    }

    .strike-price {
        font-size: 0.75rem !important;
        order: 2;
    }

    .final-price {
        font-size: 1.3rem !important;
        order: 3;
    }

    .price-subtext {
        font-size: 0.65rem !important;
        order: 4;
    }

    .card-bottom-row {
        margin-top: 8px !important;
    }

    .btn-book-premium {
        padding: 9px !important;
        font-size: 0.85rem !important;
        width: 100% !important;
    }
}

@media (max-width: 768px) {

    /* Fix Swap Icon Rotation on Mobile */
    .swap-icon {
        transform: rotate(90deg) !important;
        /* Vertical orientation by default */
    }
}

/* Ensuring Results Visibility on Mobile */
@media (max-width: 768px) {
    body.pricing-page #pricing-results-container {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 1 !important;
    }
}

/* --- APPEND: Mobile-only, homepage-only visual overrides (place at EOF of mobile.css) --- */
@media (max-width: 768px) {

    /* 1) Re-enable hero ONLY on homepage and override the earlier global 'none !important' */
    body.home-page .main-header {
        position: relative;
        /* ensure pseudo-element positions correctly */
        background-image: url('images/mobile-hero.jpg') !important;
        /* REPLACE path */
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-color: transparent !important;
        /* override earlier white */
        overflow: visible;
    }

    /* dark gradient overlay to keep headline readable */
    body.home-page .main-header::before {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 0;
        pointer-events: none;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0.48));
    }

    /* 2) breathing room above the booking widget (headline visible & centered) */
    body.home-page .main-header .header-content {
        position: relative;
        z-index: 2;
        /* above the ::before overlay */
        padding-top: 4.5rem;
        /* visual space so hero shows above widget */
        padding-bottom: 1rem;
        text-align: center;
        color: #fff;
    }

    /* 3) make the booking widget a compact floating card on mobile homepage */
    body.home-page .main-header .booking-widget {
        position: relative;
        z-index: 500;
        /* FIXED: Was 3, now high enough to be above all overlays */
        max-width: 640px;
        margin: 18px auto;
        background: rgba(255, 255, 255, 0.96);
        border-radius: 14px;
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
        padding: 12px;
        /* Removed overflow: hidden - was clipping interactive elements */
    }

    /* ensure any inline styles JS sets don't break visual constraint */
    body.home-page .main-header .booking-widget[style] {
        max-width: 640px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* 4a) inline and tone down .sub-text (India) */
    body.home-page .booking-widget .sub-text {
        display: inline-block;
        margin-left: 8px;
        font-size: 0.86rem;
        opacity: 0.64;
        vertical-align: middle;
        line-height: 1;
    }

    /* suppress any stray line-breaks that force stacked sub-text (safe-scoped) */
    body.home-page .booking-widget .sub-text+br {
        display: none;
    }

    /* tighten vertical spacing inside form */
    body.home-page .booking-widget .form-row,
    body.home-page .booking-widget .form-group {
        margin-bottom: 10px;
    }

    body.home-page .booking-widget .form-control,
    body.home-page .booking-widget input,
    body.home-page .booking-widget select {
        padding: 10px 12px;
        border-radius: 10px;
    }

    /* 4b) trip toggle: semi-transparent + blur + reduced height for better contrast */
    body.home-page .booking-widget .trip-toggle,
    body.home-page .booking-widget .toggle {
        background: rgba(255, 255, 255, 0.66);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        border-radius: 999px;
        height: 40px;
        padding: 4px;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        border: 1px solid rgba(255, 255, 255, 0.38);
        box-shadow: 0 6px 18px rgba(2, 6, 23, 0.06);
    }

    body.home-page .booking-widget .trip-toggle .option,
    body.home-page .booking-widget .toggle .option {
        padding: 6px 14px;
        font-weight: 600;
        font-size: 0.96rem;
        color: #16325c;
    }

    /* 5) Search button polish */
    body.home-page .booking-widget .primary-search-btn,
    body.home-page .booking-widget .search-button,
    body.home-page .booking-widget button[type='submit'] {
        border-radius: 10px;
        padding: 12px 18px;
        font-weight: 700;
    }

    /* Accessibility / performance niceties */
    body.home-page .main-header,
    body.home-page .main-header * {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}



/* =========================================================================
   FINAL MOBILE HOMEPAGE OVERRIDE (CONSOLIDATED)
   Strict Scope: max-width: 768px AND body.home-page
   Layout: CSS Grid | Width: 92% | Hero: Transparent Header
   ========================================================================= */

@media (max-width: 768px) {

    /* --- 1. HERO & HEADER TRANSPARENCY --- */

    /* Make header transparent to show hero */
    body.home-page .top-bar {
        background: transparent !important;
        box-shadow: none !important;
        border-bottom: none !important;
        position: relative;
        z-index: 10;
        padding-top: 15px !important;
    }

    /* White text/icons for readability over dark overlay */
    body.home-page .top-bar i,
    body.home-page .top-bar a,
    body.home-page .top-bar span {
        color: #ffffff !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    }

    /* Restore Hero Background - Use Var (Bug 19) */
    body.home-page .main-header {
        position: relative !important;
        background-image: var(--mobile-hero-image) !important;
        background-size: cover !important;
        background-position: center 30% !important;
        background-repeat: no-repeat !important;
        background-color: transparent !important;
        min-height: 480px !important;
        overflow: visible !important;
        display: block !important;
        padding-bottom: 20px !important;
    }

    /* ... */

    /* Z-INDEX STANDARDIZATION (Bug 18)
   Scale:
   1-99: Base Content
   100-199: Sticky Elements (Header, Widget)
   200-299: Overlays (Menu Overlay)
   300-399: Modals (Popups, Full screen forms)
   400-499: Tooltips/Dropdowns (Autocomplete, TimePicker)
*/

    .mobile-menu-overlay {
        z-index: 3000 !important;
    }

    /* Journey Widget - Sticky */
    .journey-summary-widget {
        z-index: 150;
        /* Was 900 */
    }

    /* Full Screen Form Override */
    @media (max-width: 768px) {
        body.pricing-page .pricing-form-section.editing {
            z-index: 350;
            /* Was 9999 */
        }

        #mobile-close-btn {
            z-index: 360;
            /* Above form */
        }
    }

    /* Dropdowns & Pickers */
    .pac-container {
        z-index: 450 !important;
        /* Was 10005 */
    }

    #custom-time-popup {
        z-index: 460 !important;
        /* Was 10001 */
    }

    /* Bug 17: Flatpickr Overflow Fix */
    @media (max-width: 768px) {
        .flatpickr-calendar {
            max-width: calc(100vw - 20px) !important;
            left: 10px !important;
            right: 10px !important;
            margin: 0 auto !important;
            z-index: 470 !important;
            /* High enough */
        }
    }

    /* Dark Overlay - FIXED: Made transparent to allow clicks */
    body.home-page .main-header::before {
        content: "";
        position: absolute;
        inset: 0;
        background: transparent;
        /* FIXED: Was dark gradient, now transparent */
        z-index: 1;
        pointer-events: none;
    }

    body.home-page .header-content {
        position: relative;
        z-index: 100;
        /* FIXED: Was 2, now high enough for booking widget */
        padding-top: 1.5rem !important;
        /* Breathing room for headline */
        text-align: center;
    }

    body.home-page .header-headline {
        color: #fff !important;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
        margin-bottom: 15px !important;
    }

    /* --- 2. BOOKING CARD (Floating & Compact) --- */

    body.home-page .main-header .booking-widget,
    body.home-page .header-content .az-booking-widget {
        position: relative;
        z-index: 10;
        /* Clean stacking - pointer-events handles interaction */
        width: 92% !important;
        /* Percentage based width - CRITICAL */
        max-width: 92% !important;
        margin: 0 auto 30px auto !important;
        /* Center and add space below */
        background: #ffffff !important;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25) !important;
        border-radius: 20px !important;
        /* Match refined radius */
        padding: 0 !important;
        /* Keep top flush for tabs */
        padding-bottom: 15px !important;
        /* Breathing room at bottom */
    }

    /* --- 3. STANDARDIZED FORM TYPOGRAPHY & INPUTS (Google Places Compatible) --- */

    /* UNIVERSAL INPUT STYLE: White box, dark text, soft shadow */
    body.home-page .main-input,
    body.pricing-page .main-input,
    body .compact-input,
    body .stop-popup-input,
    body input.pac-target-input,
    .flatpickr-input {
        background-color: #ffffff !important;
        color: #111111 !important;
        border: 1px solid rgba(0, 0, 0, 0.15) !important;
        border-radius: 6px !important;
        padding: 12px 14px !important;
        /* Touch-friendly */
        font-size: 16px !important;
        /* Prevent iOS zoom */
        font-weight: 600 !important;
        font-family: 'Lato', sans-serif !important;
        width: 100% !important;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) !important;
        height: 48px !important;
        margin-top: 4px !important;
        display: block;
        /* Removed !important */
        outline: none !important;
        appearance: none !important;
        line-height: normal !important;
    }

    /* AUTOFILL STANDARDIZATION: Force white background, dark text everywhere */
    input:-webkit-autofill,
    input:-webkit-autofill:hover,
    input:-webkit-autofill:focus,
    input:-webkit-autofill:active {
        -webkit-box-shadow: 0 0 0 30px #ffffff inset !important;
        -webkit-text-fill-color: #111111 !important;
        transition: background-color 5000s ease-in-out 0s;
        /* Backup to keep white */
    }

    /* PLACEHOLDER COLOR */
    ::placeholder {
        color: #999 !important;
        opacity: 1;
        font-weight: 400;
        -webkit-text-fill-color: #999 !important;
    }

    /* LABELS: Visually distinct above the white input */
    body.home-page .lbl-sm,
    body.pricing-page .lbl-sm {
        color: #444 !important;
        font-weight: 700 !important;
        font-size: 12px !important;
        text-transform: uppercase !important;
        margin-bottom: 2px !important;
        display: block !important;
    }

    /* In Destination/Compact forms (Dark Backgrounds), Labels must be light */
    body .compact-form-body .compact-lbl,
    body.destination-page .compact-lbl {
        color: rgba(255, 255, 255, 0.95) !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    }

    /* Hide sub-text (e.g. 'India') to reduce clutter in new standardized view */
    body.home-page .form-item .sub-text,
    body.pricing-page .form-item .sub-text,
    body.home-page .booking-widget .sub-text+br {
        display: none !important;
    }

    /* --- 4. FORM LAYOUT CONTAINERS (Reset visuals) --- */

    /* Remove gray background boxes from containers - Input is now the box */
    body.home-page .form-item,
    body.home-page .from-item,
    body.home-page .to-item,
    body.pricing-page .form-item,
    body.pricing-page .from-item,
    body.pricing-page .to-item,
    body .compact-field {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin-bottom: 12px !important;
        /* Spacing between fields */
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        width: 100% !important;
        min-height: auto !important;
    }

    /* Ensure Compact Fields align */
    body .compact-field {
        margin-bottom: 10px !important;
    }

    /* --- 4. FORM LAYOUT & VISIBILITY (CSS Grid & Reset) --- */

    /* Hide all forms by default on mobile */
    body.home-page .form-content-grid,
    body.pricing-page .form-content-grid {
        display: none;
    }

    /* Show only active form */
    body.home-page .form-content-grid.active,
    body.pricing-page .form-content-grid.active {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        /* Increased gap for cleaner look */
        width: 100% !important;
        align-items: start !important;
        padding-top: 10px !important;
    }

    /* Target specific form types for better layout */
    body.home-page #hourly-form-content.active,
    body.pricing-page #hourly-form-content.active {
        grid-template-columns: 1fr 1fr !important;
    }

    /* Reset all flex/width overrides on children */
    body.home-page .form-content-grid>*,
    body.pricing-page .form-content-grid>* {
        width: auto !important;
        flex: none !important;
        max-width: none !important;
        margin: 0 !important;
    }

    /* Make booking card width percentage-based (no overflow) */
    body.home-page .booking-widget,
    body.pricing-page .booking-widget {
        width: 100% !important;
        box-shadow: none !important;
        /* remove heavy shadows on mobile for flatter look */
    }

    /* Target the inner selector if it exists */
    body.home-page .trip-type-selector,
    body.pricing-page .trip-type-selector {
        margin: 0 auto !important;
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
        margin-bottom: 15px !important;
    }

    /* (Autofill rules standardized in Typography section) */

    /* (Booking Widget width standardized in Grid section) */
}

/* Ensure return fields are allowed to be hidden by JS without leftover grid gaps */
body.home-page .return-date-wrapper,
body.home-page .return-time-wrapper,
body.pricing-page .return-date-wrapper,
body.pricing-page .return-time-wrapper {
    display: block;
    /* Removed !important to allow JS toggling */
}



/* Full Width Rows */
body.home-page .trip-type-toggle-container,
body.pricing-page .trip-type-toggle-container {
    grid-column: 1 / -1;
    order: 1;
    margin-bottom: 8px !important;
    border-radius: 50px !important;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    /* High contrast border */
    background: rgba(255, 255, 255, 0.25) !important;
    /* Visible frosted glass */
    backdrop-filter: blur(8px);
    /* Real blur effect */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    /* FLEX CENTER for toggle */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Target the inner selector if it exists */
body.home-page .trip-type-selector,
body.pricing-page .trip-type-selector {
    margin: 0 auto !important;
    /* Auto margins for centering */
    justify-content: center !important;
    width: 100% !important;
    /* Or auto/fit-content */
}

/* Ensure Google Autocomplete Dropdown is visible above mobile overlays */
.pac-container {
    z-index: 10005 !important;
}

/* Ensure labels inside are centered */
body.home-page .trip-radio,
body.pricing-page .trip-radio {
    text-align: center !important;
    flex: 1;
    /* Distribute space evenly if full width */
    display: flex;
    justify-content: center;
    align-items: center;
}

body.home-page .from-item,
body.pricing-page .from-item {
    grid-column: 1 / -1;
    order: 2;
}

body.home-page .swap-icon-container,
body.pricing-page .swap-icon-container {
    grid-column: 1 / -1;
    order: 3;
    width: 32px !important;
    height: 32px !important;
    margin: -16px auto 0 auto !important;
    /* Overlap trick */
    z-index: 10;
    position: relative !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
    border-radius: 50% !important;
    /* Perfect circle */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #fff !important;
    border: 1px solid #ddd !important;
}

body.home-page .swap-icon-container i,
body.pricing-page .swap-icon-container i {
    font-size: 14px !important;
    color: #008cff !important;
}

body.home-page .to-item,
body.pricing-page .to-item {
    grid-column: 1 / -1;
    order: 4;
    margin-top: -8px !important;
    /* Pull up to meet overlapping swap */
}

/* Split Row 1: Departure + Pickup Time */
body.home-page .date-item,
body.pricing-page .date-item {
    grid-column: 1;
    order: 5;
    border-right: none !important;
    background: #f8f9fa !important;
    border: 1px solid #eee !important;
    border-radius: 8px !important;
    padding: 6px 8px !important;
    /* Reduced padding */
}

body.home-page .time-item,
body.pricing-page .time-item {
    grid-column: 2;
    order: 6;
    background: #f8f9fa !important;
    border: 1px solid #eee !important;
    border-radius: 8px !important;
    padding: 6px 8px !important;
    /* Reduced padding */
}

/* Split Row 2: Return Date + Return Time */
body.home-page .return-date-wrapper,
body.pricing-page .return-date-wrapper {
    grid-column: 1;
    order: 7;
    background: #f8f9fa !important;
    border: 1px solid #eee !important;
    border-radius: 8px !important;
    padding: 6px 8px !important;
    /* Reduced padding */
}

body.home-page .return-time-wrapper,
body.pricing-page .return-time-wrapper {
    grid-column: 2;
    order: 8;
    background: #f8f9fa !important;
    border: 1px solid #eee !important;
    border-radius: 8px !important;
    padding: 6px 8px !important;
    /* Reduced padding */
}

/* Button */
body.home-page .search-btn-container,
body.pricing-page .search-btn-container {
    grid-column: 1 / -1;
    order: 9;
    margin-top: 8px !important;
    padding: 0 !important;
}

body.home-page .primary-search-btn,
body.pricing-page .primary-search-btn {
    width: 100% !important;
    border-radius: 12px !important;
    padding: 14px 0 !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    background: linear-gradient(90deg, #00C6FF, #0072FF) !important;
    box-shadow: 0 4px 12px rgba(0, 114, 255, 0.3) !important;
}

/* Hourly Form specific overrides for 2x2 grid */
/* Row 1: City(Col 1) Package(Col 2) */
/* Row 2: Date(Col 1) Time(Col 2) */


/* We need to target the form-item containers of these specific inputs if we want specific order */
/* Assuming standard form item structure. Let's just rely on the order in HTML being correct for 2x2 flow? */
/* HTML order is: City, Package, Date, Time. */
/* Grid is 2 columns. */
/* Item 1 (City) -> Col 1, Row 1 */
/* Item 2 (Pkg)  -> Col 2, Row 1 */
/* Item 3 (Date) -> Col 1, Row 2 */
/* Item 4 (Time) -> Col 2, Row 2 */
/* This works automatically with grid-template-columns: 1fr 1fr! */

/* Just ensure NO specific grid-column overrides on these Generic items if they reuse classes */
/* They use .form-item, which is generic. The .date-item / .time-item classes in standard form have overrides. */
/* We need to ensure Hourly items don't inherit 'grid-column: 1 / -1' from somewhere if they overlap classes? */
/* Hourly HTML structure: <div class="form-item">...</div>. No special class like .from-item or .to-item. */
/* So they will flow naturally. Perfect. */

/* Just ensure height consistency applies */
#hourly-form-content .form-item {
    min-height: 85px;
}

/* Fix 7: Time Popup Safety */
.flatpickr-calendar {
    max-width: calc(100vw - 20px) !important;
    left: 10px !important;
    right: auto !important;
}

/* Standardize Airport Form Grid on Mobile */
#airport-form-content.active {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
}

/* Airport Selector Full Width */
#airport-form-content .trip-type-toggle-container {
    grid-column: 1 / -1;
    order: 1;
}

/* Pickup & Drop Fields - Full Width */
#airport-form-content .form-item:nth-child(2),
#airport-form-content .form-item:nth-child(3) {
    grid-column: 1 / -1;
    width: 100% !important;
}

#airport-form-content .form-item:nth-child(2) {
    order: 2;
}

#airport-form-content .form-item:nth-child(3) {
    order: 3;
}

/* Date & Time Fields - 50/50 Split */
#airport-form-content .form-item:nth-child(4) {
    grid-column: 1;
    order: 4;
}

#airport-form-content .form-item:nth-child(5) {
    grid-column: 2;
    order: 5;
}

/* Reset individual airport item borders to match new standardized look */
#airport-form-content .form-item {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin-bottom: 12px !important;
    border-radius: 0 !important;
}

#airport-form-content .main-input {
    background-color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    border-radius: 6px !important;
    padding: 12px 14px !important;
    height: 48px !important;
    font-size: 16px !important;
}