/**
 * Amadex Modern Search Bar Styles
 * Enhanced with Smooth Functionality & Modern UI
 */

/* ==================== Container ==================== */
input[type=text] {
    background: none;
    border:none;
    padding:none;
}

.amadex-search-modern {
    max-width: 1040px;
    margin: 0 auto;
    /* padding: 0 20px; */
    position: relative;
    margin-top:20px;
}

.amadex-price-summary-card, .amadex-booking-main {
     box-shadow: none!important;
     border: 1px solid #E5E5E5 !important;
     padding: 28px 15px;
}

section.amadex-card.amadex-passenger-details-card {
    border: 1px solid #E6E6E6 !important;
    margin-top: 15px;
}

 .amadex-passenger-form-card{
margin-bottom: 0!important;
}
 
.amadex-flight-route-title {
    font-size: 15px;
}

input.amadex-dropdown-search-input {
    padding-left: 20px !important;
}

.amadex-field-input-wrap input {
    padding-left: 0 !important;
}

 .main-calnder-mobile {
    display: contents;
   }

.amadex-multi-city-flights div#return-field {
    border-right: 1px solid #E8E8E8;
}

.amadex-modern-field.amadex-location-field.field-active input#modern-origin {
    font-weight: 700;
}

.amadex-modern-field.amadex-location-field.field-active input#modern-destination {
    font-weight: 700;
}
.amadex-modern-field.amadex-date-field {
    justify-content: center;
    align-items: center;
}

/* Apply flexbox alignment properties to specific fields */
#travellers-field {
    height: 44px;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    vertical-align: bottom;
}

#return-field {
    align-items: center;
}

#destination-field {
    justify-content: center;
    align-items: flex-start;
}

#origin-field {
    justify-content: center;
    align-items: flex-start;
}

/* ==================== Main Search Card ==================== */
/* ==================== Trip Type Selector ==================== */
.amadex-trip-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 24px;
    opacity: 1;
    width: fit-content;
    max-width: 450px;
    padding: 6px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.amadex-search-modern .amadex-trip-option {
    position: relative;
}

.amadex-search-modern .amadex-trip-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 0;
    height: 0;
}

.amadex-search-modern .amadex-trip-label {
    display: inline-block;
    padding: 11px 26px;
    border-radius: 20px;
    font-size: 15px!important;
    font-weight: 500;
    color: #000000;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.amadex-trip-label:hover {
    color: #0E7D3F;
    background: rgba(14, 125, 63, 0.08);
}

.amadex-search-modern .amadex-trip-option input[type="radio"]:checked + .amadex-trip-label {
    color: #ffffff;
    font-weight: 500;
    background: #0E7D3F;
    box-shadow: 0 2px 8px rgba(14, 125, 63, 0.3), 0 4px 12px rgba(14, 125, 63, 0.15);
    transform: scale(1.02);
}

.amadex-trip-option input[type="radio"]:checked + .amadex-trip-label:hover {
    background: #0a5f30;
    color: #ffffff;
    transform: scale(1.02);
}

/* ==================== Search Fields Container ==================== */
/* Desktop: Horizontal grid layout | Mobile: Vertical stack */
.amadex-search-modern .amadex-search-fields {
    display: grid;
    grid-template-columns: 1.5fr 1.5fr 1fr 1fr 1fr;
    gap: 0;
    align-items: stretch;
    border: 1px solid #E5E5E5;
    border-radius: 18px;
    opacity: 1;
    background: #ffffff;
    position: relative;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
    min-height: 110px;
}

/* ==================== TABLET (769px - 1024px) - EXPERT/GOD MODE FIX ==================== */
/* Isolated breakpoint range to fix Samsung 10-inch tablet and other tablets */
/* This range is completely isolated from mobile (≤768px) and desktop (≥1025px) */
/* ADVANCED IMPLEMENTATION: 3-column grid to match desired layout (Cities | Dates+Travellers | Search) */
@media (min-width: 769px) and (max-width: 1024px) {
    /* EXPERT/GOD MODE: 3-column grid layout for tablets - enables Dates + Travellers in same row */
    .amadex-search-modern .amadex-search-fields,
    .amadex-modern-form:not(.amadex-multi-city-mode) .amadex-search-fields {
        display: grid !important;
        grid-template-columns: 1fr 1fr 0.85fr !important; /* 3 columns: cities equal (1fr each), travellers slightly smaller (0.85fr) */
        grid-template-rows: auto auto auto !important;   /* 3 rows: Cities | Dates+Travellers | Search */
        gap: 16px !important;
        border: none !important;
        border-radius: 0 !important;
        background: transparent !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: auto !important;
        padding: 0 !important;
    }

    /* Row 1: Cities - Origin | Destination */
    #origin-field {
        grid-column: 1 !important;
        grid-row: 1 !important;
        padding-right: 60px !important; /* Extra padding to prevent swap button overlap */
    }

    #destination-field {
        grid-column: 2 !important;
        grid-row: 1 !important;
        padding-left: 60px !important; /* Extra padding to prevent swap button overlap */
    }

    /* Swap button: ADVANCED - Grid positioning for perfect centering between cities */
    button.amadex-swap-button {
        display: flex !important;
        visibility: visible !important;
        grid-column: 1 / 3 !important; /* Spans both city columns (columns 1-2) */
        grid-row: 1 !important;       /* Same row as cities */
        justify-self: center !important; /* Center horizontally in grid cell */
        align-self: center !important;   /* Center vertically in grid cell */
        position: relative !important;   /* Changed from absolute to relative for grid positioning */
        z-index: 10 !important;
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        border-radius: 50% !important;
        background: #0E7D3F !important;
        border: 3px solid #ffffff !important;
        box-shadow: 0 2px 8px rgba(14, 125, 63, 0.3) !important;
        margin: 0 !important;
        padding: 0 !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
    }

    /* Swap button hover state */
    button.amadex-swap-button:hover {
        background: #0a6835 !important;
        transform: scale(1.05) !important;
        box-shadow: 0 4px 12px rgba(14, 125, 63, 0.4) !important;
    }

    /* Row 2: Dates + Travellers - Departure | Return | Travellers */
    #departure-field {
        grid-column: 1 !important;
        grid-row: 2 !important;
    }

    #return-field {
        grid-column: 2 !important;
        grid-row: 2 !important;
    }

    /* ADVANCED: Travellers moved from Row 3 to Row 2, Column 3 - matches desired layout */
    #travellers-field {
        grid-column: 3 !important; /* Column 3 instead of spanning full width */
        grid-row: 2 !important;    /* Row 2 instead of Row 3 - grouped with dates */
    }

    /* Individual field styling for tablets - enhanced for consistency */
    .amadex-modern-field,
    #origin-field,
    #destination-field,
    #departure-field,
    #return-field,
    #travellers-field {
        display: flex !important;
        flex-direction: column !important;
        padding: 16px 18px !important; /* Increased from 2px 20px for better touch targets */
        min-height: 70px !important; /* Increased from 40px for better usability */
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        border: 1px solid #E5E5E5 !important;
        border-radius: 12px !important;
        background: #ffffff !important;
        box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.08) !important;
        box-sizing: border-box !important;
        transition: all 0.2s ease !important; /* Smooth transitions */
    }

    /* ADVANCED: Ensure all fields in Row 2 have equal height for visual alignment */
    #departure-field,
    #return-field,
    #travellers-field {
        min-height: 70px !important;
        align-items: flex-start !important;
        justify-content: center !important;
        display: flex !important;
        flex-direction: column !important;
    }

    /* Remove right border from fields (using individual borders instead) */
    .amadex-modern-field:not(:last-child):not(.amadex-swap-button) {
        border-right: none !important; /* Individual borders on each field */
    }

    /* Search button: Full width, positioned in Row 3 */
    button.amadex-search-btn {
        display: flex !important;
        visibility: visible !important;
        grid-column: 1 / -1 !important; /* Span all 3 columns */
        grid-row: 3 !important;        /* Row 3 instead of Row 4 */
        position: static !important;
        width: 100% !important;
        margin-top: 16px !important;
        margin-bottom: 0 !important;
        padding: 14px 24px !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        min-height: 50px !important;
        background: #0E7D3F !important;
        color: #ffffff !important;
        border: none !important;
        border-radius: 12px !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
    }

    /* Search button hover state */
    button.amadex-search-btn:hover {
        background: #0a6835 !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 4px 12px rgba(14, 125, 63, 0.3) !important;
    }

    /* Search button active state */
    button.amadex-search-btn:active {
        transform: translateY(0) !important;
        box-shadow: 0 2px 6px rgba(14, 125, 63, 0.2) !important;
    }

    /* Field labels, values, descriptions - visible and properly sized */
    .amadex-field-label,
    .amadex-field-value,
    .amadex-field-description {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Field label styling */
    .amadex-field-label {
        font-size: 12px !important;
        font-weight: 500 !important;
        color: #0E7D3F !important;
        margin-bottom: 8px !important;
    }

    /* Field value styling */
    .amadex-field-value {
        font-size: 15px !important; /* Increased from 14px for better readability */
        font-weight: 600 !important;
        color: #000000 !important;
    }

    /* Field description styling */
    .amadex-field-description {
        font-size: 12px !important;
        color: #6B7280 !important;
        margin-top: 4px !important;
    }

    /* ADVANCED: Field input wrapper alignment for consistent appearance */
    .amadex-field-input-wrap {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 4px !important;
    }

    /* ADVANCED: Ensure travellers field displays correctly with 2-line content */
    #travellers-field .amadex-travellers-trigger {
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
        width: 100% !important;
    }

    #travellers-field .amadex-travellers-value {
        font-size: 15px !important;
        font-weight: 600 !important;
        color: #000000 !important;
    }

    #travellers-field .amadex-cabin-value {
        font-size: 12px !important;
        color: #6B7280 !important;
        margin-top: 2px !important;
    }

    /* ADVANCED: Prevent field content overflow */
    .amadex-modern-field {
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .amadex-field-value {
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    /* ADVANCED: Ensure date fields display correctly */
    #departure-field .amadex-field-value,
    #return-field .amadex-field-value {
        font-size: 15px !important;
        font-weight: 600 !important;
        color: #000000 !important;
    }

    #departure-field .amadex-field-description,
    #return-field .amadex-field-description {
        font-size: 12px !important;
        color: #6B7280 !important;
    }

    /* Container adjustments for tablets */
    .amadex-search-modern {
        padding: 0 24px !important; /* Increased from 20px */
        max-width: 100% !important;
    }

    .amadex-modern-form {
        padding: 24px 20px !important; /* Increased from 16px */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Trip selector adjustments */
    .amadex-trip-selector {
        width: 100% !important;
        max-width: 100% !important;
        justify-content: center !important;
        gap: 12px !important; /* Increased from 8px */
        margin-bottom: 24px !important; /* Increased from 20px */
    }

    .amadex-trip-label {
        padding: 12px 28px !important; /* Increased from 11px 26px */
        font-size: 14px !important;
    }

    /* ADVANCED: Ensure grid container has proper positioning context for swap button */
    .amadex-search-fields {
        position: relative !important;
    }

    /* ADVANCED: Handle edge case - if swap button is not in grid, fallback positioning */
    button.amadex-swap-button:not([style*="grid-column"]) {
        position: absolute !important;
        left: calc(50% - 24px) !important; /* Center minus half button width */
        top: 50% !important;
        transform: translateY(-50%) !important;
    }

    /* ADVANCED: Ensure search button icon alignment */
    button.amadex-search-btn svg,
    button.amadex-search-btn::after {
        display: inline-block !important;
        vertical-align: middle !important;
    }
}

/* ==================== TABLET PORTRAIT ORIENTATION (769px - 1024px) ==================== */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {
    /* ADVANCED: 3-column grid works perfectly for portrait - same layout structure */
    /* Additional portrait-specific adjustments */
    .amadex-modern-form {
        padding: 20px 16px !important;
    }
    
    /* Ensure 3-column grid is maintained in portrait */
    .amadex-search-modern .amadex-search-fields,
    .amadex-modern-form:not(.amadex-multi-city-mode) .amadex-search-fields {
        grid-template-columns: 1fr 1fr 0.85fr !important;
        grid-template-rows: auto auto auto !important;
    }
}

/* ==================== TABLET LANDSCAPE ORIENTATION (769px - 1024px) ==================== */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
    /* ADVANCED: 3-column grid maintained for landscape - optimal use of horizontal space */
    .amadex-modern-form {
        padding: 20px 24px !important;
    }
    
    /* Ensure 3-column grid is maintained in landscape */
    .amadex-search-modern .amadex-search-fields,
    .amadex-modern-form:not(.amadex-multi-city-mode) .amadex-search-fields {
        grid-template-columns: 1fr 1fr 0.85fr !important;
        grid-template-rows: auto auto auto !important;
    }
    
    /* Slightly adjust column proportions for landscape if needed */
    /* Can use 1fr 1fr 1fr for equal columns if space allows */
}

/* ==================== DESKTOP (≥1025px) - UPDATED BREAKPOINT ==================== */
/* EXPERT/GOD MODE: Changed from 769px to 1025px to isolate desktop from tablets */
/* This ensures tablets (769px-1024px) use tablet rules, desktop (≥1025px) uses desktop rules */
@media (min-width: 1025px) {
    /* Force grid layout on desktop for Round Trip and One Way */
    .amadex-search-modern .amadex-search-fields,
    .amadex-modern-form:not(.amadex-multi-city-mode) .amadex-search-fields {
        display: grid !important;
        grid-template-columns: 1.5fr 1.5fr 1fr 1fr 1.2fr !important;
        flex-direction: row !important;
        gap: 0 !important;
        border: 1px solid #E8E8E8 !important;
        border-radius: 16px !important;
        background: #ffffff !important;
        width: 86% !important;
        max-width: 86% !important;
        min-height: 60px !important;
    }

    .amadex-modern-field,
    #origin-field,
    #destination-field,
    #departure-field,
    #return-field,
    #travellers-field {
        display: flex !important;
        flex-direction: column !important;
        min-height: 40px !important;
        padding: 2px 20px !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
    }

    button.amadex-swap-button {
        display: flex !important;
        visibility: visible !important;
    }
   
    button.amadex-search-btn {
        display: flex !important;
        visibility: visible !important;
    }
    
    .amadex-field-label,
    .amadex-field-value,
    .amadex-field-description {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}


.amadex-search-modern .amadex-modern-form.searching .amadex-search-fields {
    pointer-events: none;
    opacity: 0.8;
}

.amadex-modern-field:not(:last-child):not(.amadex-swap-button) {
    border-right: 1px solid #E5E5E5;
}

.amadex-modern-field:hover {
    background: #F0FFF7;
    border-radius: 16px;
}

.amadex-modern-field:focus-within {
    background: rgba(14, 125, 63, 0.04);
}

/* Disable hover and focus states for disabled date fields */
.amadex-modern-field.amadex-date-field.field-disabled.subtle-disabled:hover,
.amadex-modern-field.amadex-date-field.field-disabled.subtle-disabled:focus-within,
#return-field.field-disabled.subtle-disabled:hover,
#return-field.field-disabled.subtle-disabled:focus-within {
    background: transparent !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* ==================== DESKTOP FIELD STYLES (≥1025px) ==================== */
/* EXPERT/GOD MODE: Updated from 769px to 1025px to isolate from tablets */
@media (min-width: 1025px) {
    .amadex-modern-field {
        display: flex;
        flex-direction: column;
        padding: 12px;
        min-height: 115px;
        justify-content: center;
    }

    .amadex-modern-field:not(:last-child):not(.amadex-swap-button) {
        border-right: 1px solid #E8E8E8;
    }

    /* Apply specific flexbox alignment for desktop */
    #travellers-field {
        height: 44px;
        justify-content: center;
        align-items: center;
    }

    .amadex-modern-field.amadex-date-field {
        align-items: center;
    }

    #return-field {
        align-items: center;
    }

    #destination-field {
        justify-content: center;
        align-items: flex-start;
    }

    #origin-field {
        justify-content: center;
        align-items: flex-start;
    }
}

/* Active state with green border */
.amadex-modern-field.field-active {
    background: rgba(14, 125, 63, 0.03);
    border: 2px solid #0E7D3F !important;
    border-radius: 12px!important;
    margin: -2px;
    padding: 14px 22px;
}

/* Active state for date fields when calendar is open */
.amadex-modern-field.amadex-date-field.field-active {
    background: rgba(14, 125, 63, 0.03);
    border: 2px solid #0E7D3F !important;
    border-radius: 12px;
    margin: -2px;
    padding: 14px 22px;
}

/* Active state for travellers field when dropdown is open */
.amadex-modern-field.amadex-travellers-field.field-active {
    background: rgba(14, 125, 63, 0.03);
    border: 2px solid #0E7D3F !important;
    border-radius: 12px;
    margin: -2px;
    padding: 14px 22px;
}

/* Disabled Field State - For One Way Return Date */
.amadex-modern-field.field-disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
    position: relative;
}

/* Override disabled styles for return-promo to look normal/active */
.amadex-modern-field.field-disabled.return-promo {
    /* opacity: 1 !important; */
    cursor: default;
    pointer-events: none;
}

.amadex-modern-field.field-disabled.return-promo::after {
    display: none !important;
}

.amadex-modern-field.field-disabled.return-promo .amadex-field-label {
    color: #0E7D3F !important;
    opacity: 1 !important;
    font-size: 12px!important;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: capitalize;
}

.amadex-modern-field.field-disabled.return-promo .amadex-field-value {
    color: #111827 !important;
    opacity: 1 !important;
    font-weight: 400;
    font-size: 10px;
    line-height: 1.5;
}

.amadex-modern-field.field-disabled.return-promo .amadex-field-value strong {
    font-weight: 700 !important;
    color: #111827 !important;
}

.amadex-modern-field.field-disabled.return-promo .amadex-field-description {
    color: #6B7280 !important;
    opacity: 1 !important;
    display: none;
}

/* One-way trip: Return date field opacity - Apply to all forms */
.amadex-modern-field.amadex-date-field.field-disabled.subtle-disabled,
#return-field.field-disabled.subtle-disabled,
.amadex-modern-form #return-field.field-disabled.subtle-disabled,
.amadex-modern-form .amadex-modern-field.amadex-date-field.field-disabled.subtle-disabled,
.amadex-search-modern #return-field.field-disabled.subtle-disabled,
.amadex-search-modern .amadex-modern-field.amadex-date-field.field-disabled.subtle-disabled {
    opacity: 0.2 !important;
    pointer-events: none !important;
    cursor: not-allowed !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    touch-action: none !important;
    position: relative;
}

/* Disable all child elements to prevent calendar opening */
.amadex-modern-field.amadex-date-field.field-disabled.subtle-disabled *,
#return-field.field-disabled.subtle-disabled *,
.amadex-modern-form #return-field.field-disabled.subtle-disabled *,
.amadex-modern-form .amadex-modern-field.amadex-date-field.field-disabled.subtle-disabled *,
.amadex-search-modern #return-field.field-disabled.subtle-disabled *,
.amadex-search-modern .amadex-modern-field.amadex-date-field.field-disabled.subtle-disabled * {
    pointer-events: none !important;
    cursor: not-allowed !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    touch-action: none !important;
}

/* Specifically disable calendar trigger elements */
.amadex-modern-field.amadex-date-field.field-disabled.subtle-disabled .amadex-field-value,
.amadex-modern-field.amadex-date-field.field-disabled.subtle-disabled .amadex-field-input-wrap,
.amadex-modern-field.amadex-date-field.field-disabled.subtle-disabled #return-display,
.amadex-modern-field.amadex-date-field.field-disabled.subtle-disabled #return-day,
.amadex-modern-field.amadex-date-field.field-disabled.subtle-disabled input,
#return-field.field-disabled.subtle-disabled .amadex-field-value,
#return-field.field-disabled.subtle-disabled .amadex-field-input-wrap,
#return-field.field-disabled.subtle-disabled #return-display,
#return-field.field-disabled.subtle-disabled #return-day,
#return-field.field-disabled.subtle-disabled input {
    pointer-events: none !important;
    cursor: not-allowed !important;
    touch-action: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

/* Results page: Return date field opacity for one-way trips */
.amadex-results-page .amadex-modern-field.amadex-date-field.field-disabled.subtle-disabled,
.amadex-results-page #return-field.field-disabled.subtle-disabled,
.amadex-results-page .amadex-modern-form #return-field.field-disabled.subtle-disabled {
    opacity: 0.2 !important;
    pointer-events: none !important;
    cursor: not-allowed !important;
    user-select: none !important;
    touch-action: none !important;
}

/* Disable all child elements on results page */
.amadex-results-page .amadex-modern-field.amadex-date-field.field-disabled.subtle-disabled *,
.amadex-results-page #return-field.field-disabled.subtle-disabled *,
.amadex-results-page .amadex-modern-form #return-field.field-disabled.subtle-disabled * {
    pointer-events: none !important;
    cursor: not-allowed !important;
    touch-action: none !important;
}

/* Mobile: Ensure return date field opacity for one-way trips */
@media (max-width: 768px) {
    .amadex-modern-field.amadex-date-field.field-disabled.subtle-disabled,
    #return-field.field-disabled.subtle-disabled,
    .amadex-modern-form #return-field.field-disabled.subtle-disabled,
    .amadex-modern-form .amadex-modern-field.amadex-date-field.field-disabled.subtle-disabled,
    .amadex-search-modern #return-field.field-disabled.subtle-disabled {
        opacity: 0.2 !important;
        pointer-events: none !important;
        cursor: not-allowed !important;
        user-select: none !important;
        -webkit-user-select: none !important;
        -moz-user-select: none !important;
        -ms-user-select: none !important;
        touch-action: none !important;
        -webkit-touch-callout: none !important;
    }
    
    /* Disable all child elements and prevent calendar opening */
    .amadex-modern-field.amadex-date-field.field-disabled.subtle-disabled *,
    #return-field.field-disabled.subtle-disabled *,
    .amadex-modern-form #return-field.field-disabled.subtle-disabled *,
    .amadex-modern-form .amadex-modern-field.amadex-date-field.field-disabled.subtle-disabled *,
    .amadex-search-modern #return-field.field-disabled.subtle-disabled * {
        pointer-events: none !important;
        cursor: not-allowed !important;
        user-select: none !important;
        -webkit-user-select: none !important;
        -moz-user-select: none !important;
        -ms-user-select: none !important;
        touch-action: none !important;
    }
    
    /* Specifically disable calendar trigger elements */
    .amadex-modern-field.amadex-date-field.field-disabled.subtle-disabled .amadex-field-value,
    .amadex-modern-field.amadex-date-field.field-disabled.subtle-disabled .amadex-field-input-wrap,
    .amadex-modern-field.amadex-date-field.field-disabled.subtle-disabled #return-display,
    .amadex-modern-field.amadex-date-field.field-disabled.subtle-disabled #return-day,
    #return-field.field-disabled.subtle-disabled .amadex-field-value,
    #return-field.field-disabled.subtle-disabled .amadex-field-input-wrap,
    #return-field.field-disabled.subtle-disabled #return-display,
    #return-field.field-disabled.subtle-disabled #return-day {
        pointer-events: none !important;
        cursor: not-allowed !important;
        touch-action: none !important;
        -webkit-tap-highlight-color: transparent !important;
    }
} 

.amadex-field-input-wrap input {
    border: none !important;
}

.amadex-multi-city-flights div#return-field {
    opacity: 2 !important;
}

.amadex-modern-field.field-disabled.subtle-disabled::after {
    display: none;
}

.amadex-modern-field.field-disabled.subtle-disabled .amadex-field-label,
.amadex-modern-field.field-disabled.subtle-disabled .amadex-field-value,
.amadex-modern-field.field-disabled.subtle-disabled .amadex-field-description {
    color: inherit;
    opacity: 1;
}

.amadex-modern-field.field-disabled.subtle-disabled .amadex-field-label {
    color: #0E7D3F;
    font-weight: 600;
}

.amadex-modern-field.field-disabled.subtle-disabled .amadex-field-value {
    color: #000000;
    font-weight: 500;
    font-size: 16px;
}

.amadex-modern-field.field-disabled.subtle-disabled .amadex-field-description {
    color: #6B7280;
}

.amadex-modern-field.field-disabled::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.6);
    cursor: not-allowed;
    z-index: 1;
}

.amadex-modern-field.field-disabled .amadex-field-label,
.amadex-modern-field.field-disabled .amadex-field-value,
.amadex-modern-field.field-disabled .amadex-field-description {
    color: #9CA3AF;
}

   /* Hide sticky search bar on scroll - Mobile */
    .amadex-search-bar-wrapper.sticky,
    .amadex-search-bar-wrapper.fixed,
    .amadex-search-summary-modern.sticky,
    .amadex-search-summary-modern.fixed {
        display: none !important;
        position: static !important;
    }


/* ==================== Results Page Search Bar ==================== */
.amadex-results-page .amadex-search-summary-modern {
    margin-bottom: 24px;
    width: 100%;
}

.amadex-search-summary-modern .amadex-modern-form {
    margin: 0;
    padding: 20px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

/* Multi-city mode - expandable background */
.amadex-search-summary-modern .amadex-modern-form.amadex-multi-city-mode {
    /* background: #ffffff; */
    min-height: auto;
    max-height: none;
    transition: all 0.4s ease;
    animation: expandForm 0.3s ease;
}

@keyframes expandForm {
    from {
        opacity: 0.9;
    }
    to {
        opacity: 1;
    }
}

.amadex-results-page #amadex-modify-search-btn .amadex-search-icon {
    display: none;
}

.amadex-results-page .amadex-search-summary-modern .amadex-field-label {
    color: #000000; 
}

.amadex-search-summary-modern .amadex-location-field .amadex-field-value {
        font-weight: 600;
 }

 .amadex-results-page .amadex-search-summary-modern div#destination-description{
  display:none;
}

.amadex-results-page .amadex-search-summary-modern div#origin-description{
display:none;
}
.amadex-search-summary-modern .amadex-field-description {
   padding: 10px 0;
   font-size:14px;
}
.amadex-search-summary-modern .amadex-field-input-wrap {
    flex-direction: row;
    gap: 6px!important;
    align-items:center; 
    justify-content: flex-start;
}
.amadex-search-summary-modern .amadex-date-field .amadex-field-value {width: 80%;}


/* form#amadex-modern-form div#return-display {
    width: 100% !important;
} */

input:focus, select:focus {
    border-color: #0E7D3F;
    box-shadow: 0 0 0 1px rgba(5, 150, 105, 0.14), 0 8px 20px rgba(5, 150, 105, 0.18);
    transform: translateY(-1px);
}
.amadex-results-page #destination-field {
    padding-left: 25px;
}
.amadex-results-page .amadex-search-summary-modern button.amadex-swap-button {
  margin-left: -21.8rem!important;
}
.amadex-search-btn.amadex-search-btn-results {
    left: 100rem !important;
    width: 50%;
}
.amadex-results-page .amadex-search-summary-modern .amadex-travellers-trigger {
 flex-direction: column;
}

.amadex-multi-city-flights button.amadex-swap-button {
    top: 0.6rem !important;
}

input#ccnumber {
    border-radius: 15px !important;
}

input#ccexp {
    border-radius: 15px !important;
}
input#cvv {
    border-radius: 15px !important;
}

/* .amadex-search-summary-modern .amadex-date-field .amadex-field-value {
    width: 60%;
} */

.amadex-field-input-wrap input:hover {
    background: #F0FFF8 !important;
}

.amadex-results-page .amadex-search-summary-modern .amadex-trip-selector {
  margin-bottom: 0;
  background: none;
  box-shadow:none;
}

.amadex-search-summary-modern button.amadex-search-btn {
           height: 80px;
           margin-bottom: 4px;
           left: 58.5rem;
}

.amadex-results-page .amadex-search-summary-modern .amadex-modern-field {
    justify-content:center;
     min-height: 50px;
}

.amadex-modern-field.amadex-date-field.subtle-disabled.field-disabled.return-promo div#return-display {
    width: 100% !important;
    font-size: 12px;;
}

.amadex-results-page .amadex-search-summary-modern .amadex-search-fields {
    min-height: 80px;
    width: 85%;
    grid-template-columns: 1.3fr 1.3fr 1fr 1fr 1.2fr;
}

/* .amadex-modern-field.field-disabled.subtle-disabled .amadex-field-value{
    width: 100%!important;
} */

.amadex-modern-form:not(.amadex-multi-city-mode) .amadex-flight-segment:not([data-segment="1"]) {
    display: none !important;
}

.amadex-search-summary-modern button.amadex-search-btn {left: 100rem!important; top:4px; min-height: 50px;}

.amadex-results-page .amadex-search-summary-modern button.amadex-swap-button {
bottom: 0.6rem;
}
/* ==================== Multi-City Layout ==================== */
.amadex-search-container {
    position: relative;
}

.amadex-multi-city-flights {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.amadex-flight-segment {
    position: relative;
    margin-bottom: 0!important; 
    padding-bottom: 2px;
    border:none!important;
}

.amadex-flight-segment:last-child {
    margin-bottom: 0;
}

.amadex-modern-form:not(.amadex-multi-city-mode) .amadex-flight-segment:not([data-segment="1"]) {
    display: none;
}

.amadex-multi-city-mode .amadex-flight-segment + .amadex-flight-segment {
    border-top: 1px solid #E5E7EB;
    padding-top: 18px;
    margin-top: 8px;
}

/* Adjust search fields for multi-city mode */
.amadex-multi-city-mode .amadex-search-fields {
    display: grid;
    grid-template-columns: 1.5fr 1.5fr 1fr 1fr 1fr;
    gap: 0;
    align-items: stretch;
    margin-bottom: 0;
}

.amadex-modern-form.has-extra-segments .amadex-search-btn {
    grid-column: 1 / -1;
    justify-self: center;
    /* width: 220px; */
    margin: 16px auto 0;
    top: 3rem;
}

input[type=text] {
    background: none;
}

/* Add City Button - Green with White Border */
.amadex-add-city-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 15px;
    background: #ffffff;
    border: 1px solid #0E7D3F;
    border-radius: 15px;
    color: #0E7D3F;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 24px 0 0;
}

.amadex-add-city-btn .amadex-add-city-icon {
    width: 26px;
    height: 26px;
   border:none;    
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    line-height: 1;
}

.amadex-add-city-btn:hover {
    background: rgba(14, 125, 63, 0.05);
    border-color: #0a6835;
    color: #0a6835;
    transform: translateY(-1px);
}

.amadex-add-city-btn:active {
    transform: translateY(0);
}

.amadex-add-city-btn:disabled,
.amadex-add-city-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    color: #93A38E;
    border-color: #C8D1C8;
    transform: none;
}

.amadex-modern-form.has-extra-segments .amadex-add-city-btn {
    margin-left: 0;
    margin-right: auto;
}

/* Remove Button - Grey with X Icon */
.amadex-remove-field {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.amadex-remove-field .amadex-field-label {
    visibility: hidden;
    height: 16px;
    display:none;
}

.amadex-remove-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}


.amadex-remove-segment-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    background: #F3F4F6;
    border-radius: 999px;
    color: #000;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.amadex-modern-form.amadex-multi-city-mode.has-extra-segments .amadex-field-description {
    display: none;
}

form#amadex-modern-form-results button#amadex-modify-search-btn {
    height: 70px;
    margin-bottom: 14px !important;
}
.amadex-flight-price-wrapper .amadex-flight-price{
    color: #000;
}

.amadex-remove-segment-btn svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.5;
}

.amadex-remove-segment-btn:hover {
    background: #E5E7EB;
    border-color: #9CA3AF;
    color: #374151;
}

.amadex-remove-segment-btn:active {
    transform: scale(0.98);
}

/* Multi-City Return Field - Promotional Text */
.amadex-return-placeholder .amadex-field-value {
    color: #000;
    font-weight: 500;
    font-size: 13px;
}

.amadex-return-placeholder .amadex-field-input-wrap {
    display: flex;
    align-items: center;
}

.amadex-return-promo {
    background: #ffffff;
    border: none;
    cursor: default;
    pointer-events: none;
}

.amadex-return-promo .amadex-field-value {
    color: #111827;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
}

/* Make "Save More" bold within the text */
.amadex-return-promo .amadex-field-value strong {
    font-weight: 700;
    color: #111827;
}

.amadex-return-promo .amadex-field-label {
    color: #0E7D3F;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: capitalize;
    opacity: 1;
}

.amadex-return-promo .amadex-field-description {
    display: none;
}

.amadex-field-label {
    font-size: 13px!important;
    font-weight: 600;
    color: #0E7D3F!important;
    letter-spacing: 0.2px;
    text-transform: capitalize;
    opacity: 1;
    margin-bottom: 6px;
    transition: all 0.3s ease;
}

#modern-origin.amadex-field-value::placeholder,
#modern-destination.amadex-field-value::placeholder {
    font-weight: 500;
    color: #000000; /* Adjust placeholder color */
    opacity: 1; /* Ensures the placeholder color is fully visible */
}

/* Placeholder color for dynamically added origin/destination inputs */
input[id^="modern-origin"]::placeholder,
input[id^="modern-destination"]::placeholder {
    color: #000;
    font-weight: 600;
    opacity: 1;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="reset"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
    border-color: inherit !important;
    box-shadow: none !important;
    outline: none !important;
    color: inherit !important;
}

.amadex-modern-field:focus-within .amadex-field-label {
    color: #0a5f30;
    transform: translateY(-1px);
}

.amadex-field-input-wrap {
    display: flex;
    flex-direction: row;
    color: #202924;
    gap: 10px;
    align-items: center;
}

.amadex-field-value {
    font-size: 15px;
    font-weight: 500;
    color: #000000;
    padding: 6px 0;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.amadex-field-value::placeholder {
    color: #cbd5e1;
    font-weight: 500;
}

.amadex-field-value:focus {
    outline: none;
    color: #0E7D3F;
}

.amadex-field-value:hover {
    color: #0E7D3F;
    background: #F0FFF7;
}

.amadex-field-description {
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    letter-spacing: 0px;
    color: #6B7280;
    opacity: 1;
    transition: all 0.3s ease;
    display: none!important;
}

/* ==================== Origin/Destination Fields ==================== */
.amadex-location-field .amadex-field-value {
    text-align: left;
    letter-spacing: 0px;
    color: #000000 !important;
    opacity: 1;
    border: none;
    box-shadow: none;
    padding: 0!important;
    font-size: 15px!important;
}

/* ==================== Dropdown Container ==================== */
.amadex-suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15),
                0 8px 24px rgba(0, 0, 0, 0.08);
    max-height: 420px;
    overflow: hidden;
    z-index: 1000;
    margin-top: 14px;
    display: none;
    opacity: 0;
    transform: translateY(-12px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.amadex-suggestions-dropdown.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: slideInDown 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInDown {
    0% {
        opacity: 0;
        transform: translateY(-12px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== Search Input Inside Dropdown ==================== */
.amadex-dropdown-search {
    padding: 16px 18px 14px 18px;
    background: #ffffff;
    /* border-bottom: 1px solid #F3F4F6; */
    position: sticky;
    top: 0;
    z-index: 10;
}

.amadex-dropdown-search-input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 400;
    background: #F9FAFB;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #1F2937;
}

.amadex-dropdown-search-input::placeholder {
    color: #9CA3AF;
    font-weight: 400;
}

.amadex-dropdown-search-input:focus {
    outline: none;
    border-color: #0E7D3F;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(14, 125, 63, 0.1);
}

.amadex-dropdown-search-icon {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #6B7280;
    pointer-events: none;
}

.amadex-dropdown-search-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* ==================== Scrollable Suggestions Area ==================== */
.amadex-suggestions-scroll {
    max-height: 380px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Smooth scrolling */
.amadex-suggestions-scroll {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* ==================== Custom Scrollbar ==================== */
.amadex-suggestions-scroll::-webkit-scrollbar {
    width: 6px;
}

.amadex-suggestions-scroll::-webkit-scrollbar-track {
    background: transparent;
    margin: 8px 0;
}

.amadex-suggestions-scroll::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 10px;
    transition: background 0.3s ease;
}

.amadex-suggestions-scroll::-webkit-scrollbar-thumb:hover {
    background: #0E7D3F;
}

/* Firefox scrollbar */
.amadex-suggestions-scroll {
    scrollbar-width: thin;
    scrollbar-color: #D1D5DB transparent;
}

/* ==================== Section Headers ==================== */
.amadex-suggestions-section {
    padding: 14px 18px 10px 18px;
    background: transparent;
}

.amadex-suggestions-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* ==================== Suggestion Items==================== */
.amadex-suggestion-item {
    padding: 14px 18px;
    cursor: pointer;
    border-bottom: 1px solid #CFCFCF;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

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

.amadex-suggestion-item:hover {
    background: #F0FDF4;
}

/* Left arrow indicator on hover */
.amadex-suggestion-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0px;
    background: #0E7D3F;
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.amadex-suggestion-item:hover::before {
    width: 4px;
}

/* ==================== Suggestion Content ==================== */
.amadex-suggestion-content {
    flex: 1;
    min-width: 0;
}

.amadex-suggestion-city {
    font-size: 15px;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 4px;
    transition: all 0.2s ease;
    letter-spacing: 0.2px;
}

.amadex-suggestion-item:hover .amadex-suggestion-city {
    color: #0E7D3F;
}

.amadex-suggestion-airport {
    font-size: 13px;
    color: #6B7280;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 400;
}

/* ==================== Airport Code Pill  ==================== */
.amadex-suggestion-code {
    padding: 6px 14px;
    background: #fff;
    color: #0E7D3F;
    font-size: 13px;
    font-weight: 700;
    border-radius: 16px;
    white-space: nowrap;
    flex-shrink: 0;
    border: 1px solid #0E7D3F;
    box-shadow: 0 2px 6px rgba(14, 125, 63, 0.25);
    letter-spacing: 0.5px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.amadex-suggestion-item:hover .amadex-suggestion-code {
    /* background: #0a5f30; */
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(14, 125, 63, 0.35);
}

.amadex-suggestions-dropdown {
    width: 320px;
}

/* ==================== Empty State ==================== */
.amadex-suggestions-empty {
    padding: 32px 18px;
    text-align: center;
    color: #9CA3AF;
    font-size: 15px;
    font-weight: 400;
}

table.amadex-calendar-table {
    border: none !important;
    border-style: none !important;
}

.amadex-modern-field.amadex-date-field.field-active {
    background: rgba(14, 125, 63, 0.03);  /* Light green tint */
    border: 2px solid #0E7D3F !important;  /* Green border */
    border-radius: 12px;
    margin: -2px;
    padding: 14px 22px;
}

/* ==================== Custom Calendar Widget - Positioned Below Date Field ==================== */
/* Ensure date field container is positioned relative for calendar positioning */
.amadex-modern-field.amadex-date-field,
#departure-field,
#return-field {
    position: relative;
}

/* Calendar widget positioned below the date field - Single month view */
.amadex-calendar-widget,
#departure-calendar,
#return-calendar {
    position: absolute;
    top: calc(100% + 8px);
    left: 44rem;
    right: 0;
    width: 100%;
    min-width: 320px;
    max-width: 400px;
    background: #ffffff;
    border: 1px solid #E8E8E8;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.15),
                0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 18px;
    z-index: 10001;
    display: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 4px;
}

/* Active state - show calendar below date field */
.amadex-calendar-widget.active,
#departure-calendar.active,
#return-calendar.active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0);
    animation: slideInDown 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* When date field is active, ensure calendar appears below it */
.amadex-modern-field.amadex-date-field.field-active ~ .amadex-calendar-widget,
#departure-field.field-active ~ #departure-calendar,
#return-field.field-active ~ #return-calendar,
.amadex-modern-field.amadex-date-field.field-active + .amadex-calendar-widget,
#departure-field.field-active + #departure-calendar,
#return-field.field-active + #return-calendar {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0);
}


/* Arrow pointing to date field */
div#departure-calendar::before,
div#return-calendar::before,
.amadex-calendar-widget::before {
   /* content: '';
    position: absolute;
    top: -8px;
    left: 26px;
    width: 16px;
    height: 16px;
    background: #ffffff;
    border-left: 1px solid #E5E7EB;
    border-top: 1px solid #E5E7EB;
    transform: rotate(45deg); */
}

/* Calendar Header - Two Dates Display */
.amadex-calendar-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    /* margin-bottom: 24px; */
    padding-bottom: 18px;
    padding-right: 50px;
    border-bottom: 2px solid #CFCFCF;
    gap: 40px;
    position: relative;
}

.amadex-calendar-selected-date {
    font-size: 14px;
    font-weight: 700;
    color: #1F2937;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.amadex-calendar-date-item {
    position: relative;
    padding-bottom: 6px;
}

.amadex-calendar-date-item.active {
    color: #0E7D3F;
}

.amadex-calendar-date-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #0E7D3F;
    border-radius: 2px;
}

.amadex-calendar-trip-type {
    font-size: 14px;
    color: #9CA3AF;
    font-weight: 500;
    margin-left: auto;
    display: none;
}

/* Calendar Close Button */
.amadex-calendar-close-btn {
    position: absolute;
    top: 0;
    right: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6B7280;
    transition: all 0.2s ease;
    z-index: 10;
    border-radius: 8px;
}

.amadex-calendar-close-btn:hover {
    background: #F3F4F6;
    color: #1F2937;
}

.amadex-calendar-close-btn:active {
    background: #E5E7EB;
    transform: scale(0.95);
}

.amadex-calendar-close-btn svg {
    width: 20px;
    height: 20px;
    display: block;
}

/* Calendar Grid Container - Single Month View */
.amadex-calendar-months {
    display: block;
    position: relative;
    padding-top: 15px;
    width: 100%;
    max-width: 100%;
}

/* Remove vertical border for single month */
.amadex-calendar-months::before {
    display: none;
}

span.amadex-calendar-day.selected {
    background: #0E7D3F;
    color: #fff;
}

/* Single Month - Centered and Responsive */
.amadex-calendar-month {
    min-width: 280px;
    max-width: 100%;
    width: 100%;
    position: relative;
    margin: 0 auto;
}

.amadex-calendar-month-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    position: relative;
    padding: 0 8px;
}

.amadex-calendar-month-title {
    font-size: 17px;
    font-weight: 700;
    color: #1F2937;
    letter-spacing: 0.2px;
    text-align: center;
    flex: 1;
    margin: 0 8px;
}

.amadex-calendar-nav {
    display: flex;
    gap: 6px;
    position: absolute;
    left: 0;
    right: 0;
    justify-content: space-between;
    pointer-events: none;
}

.amadex-calendar-nav-btn {
    pointer-events: auto;
}

.amadex-calendar-nav-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: #F3F4F6;
    color: #1F2937;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    box-shadow: none;
    padding: 0;
    flex-shrink: 0;
}

.amadex-calendar-nav-btn:hover:not(:disabled) {
    background: #E8F5E9;
    color: #0E7D3F;
    transform: scale(1.05);
}

.amadex-calendar-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: #F3F4F6;
    color: #9CA3AF;
}

/* Calendar Table */
.amadex-calendar-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 4px 4px;
    border: none !important;
    border-style: none !important;
    margin-bottom: 0!important;
}

.amadex-calendar-table thead th {
    font-size: 13px;
    font-weight: 600;
    color: #707070;
    text-align: center;
    padding: 10px 4px;
    text-transform: capitalize;
    letter-spacing: 0.3px;
    border: none !important;
    border-style: none !important;
}

.amadex-calendar-table tbody td {
    text-align: center;
    padding: 2px;
    border: none !important;
    border-style: none !important;
}

/* Day Cell - Pixel Perfect from Screenshot */
.amadex-calendar-day {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #1F2937;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    background: transparent;
}

.amadex-calendar-day:hover:not(.disabled):not(.selected) {
    background: #F0FDF4;
    color: #0E7D3F;
    border-color: #E8F5E9;
}

/* Selected Start/End Dates - Green Background */
.amadex-calendar-day.selected {
    background: #0E7D3F !important;
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(14, 125, 63, 0.25);
    border-color: #0E7D3F;
}

/* In-Range Dates - Light Green Background */
.amadex-calendar-day.in-range {
    background: #E8F5E9;
    color: #0E7D3F;
    font-weight: 500;
}

.amadex-calendar-day.disabled {
    color: #B9B9B9;
    cursor: not-allowed;
    opacity: 1;
}

.amadex-calendar-day.other-month {
    color: #E5E7EB;
    font-weight: 400;
}

.amadex-calendar-day.today:not(.selected) {
    border-color: #0E7D3F;
    font-weight: 600;
    color: #0E7D3F;
}

/* Tablet Responsive for Calendar (768px) - Single Month View */
@media (min-width: 768px) and (max-width: 1024px) {
    .amadex-calendar-widget,
    #departure-calendar,
    #return-calendar {
        position: absolute !important;
        top: calc(100% + 8px) !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        min-width: 400px !important;
        max-width: 450px !important;
        padding: 20px 24px !important;
        z-index: 10001 !important;
        max-height: 50vh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
        background: #ffffff !important;
        border-radius: 16px !important;
        transform: translateY(-8px) !important;
    }
    
    /* Single month on tablet */
    .amadex-calendar-months {
        display: block !important;
    }
    
    .amadex-calendar-months::before {
        display: none !important;
    }
    
    .amadex-calendar-widget.active,
    #departure-calendar.active,
    #return-calendar.active {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
    }
    
    /* Ensure date field container allows overflow */
    .amadex-modern-field.amadex-date-field,
    #departure-field,
    #return-field {
        position: relative !important;
        overflow: visible !important;
    }
    
    /* Ensure parent containers allow calendar overflow */
    .amadex-modern-form,
    .amadex-search-container,
    .amadex-search-fields {
        overflow: visible !important;
        position: relative !important;
    }
    
    /* Tablet: Show 2 columns side by side */
    .amadex-calendar-months {
        grid-template-columns: 1fr 1fr !important;
        gap: 24px !important;
        max-height: 38vh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        display: grid !important;
    }
    
    /* Show vertical border on tablet */
    .amadex-calendar-months::before {
        display: block !important;
    }
    
    .amadex-calendar-month {
        min-width: 280px;
    }
    
    .amadex-calendar-day {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }
}

/* Mobile Responsive for Calendar (below 768px) - CONSOLIDATED */
@media only screen and (min-width: 320px) and (max-width: 767px) {
    .amadex-search-fields {
        background: none!important;
        box-shadow: none!important;
        border: none!important;
        border-radius: none!important;
    }

    .amadex-search-btn.loading::before {
        top: 85%!important;
        left: 48%!important;
    }
    /* .amadex-modern-form button.amadex-search-btn.loading {
        position: static !important;   
        width: 100% !important;
    } */
  
    /* Calendar widget positioned below date field on mobile */
    .amadex-calendar-widget,
    #departure-calendar,
    #return-calendar {
        position: absolute !important;
        top: 50% !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        min-width: auto !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 16px !important;
        border-radius: 16px !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
        z-index: 10001 !important;
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        transform: translateY(-8px) !important;
        pointer-events: none !important;
        /* max-height: 58vh !important; */
        height: auto!important;
        overflow-y: none !important;
        -webkit-overflow-scrolling: touch !important;
        background: #ffffff !important;
    }
    
    /* Active state - show calendar below date field */
    .amadex-calendar-widget.active,
    #departure-calendar.active,
    #return-calendar.active {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
    }
    
    /* Ensure date field container allows overflow for calendar */
    .amadex-modern-field.amadex-date-field,
    #departure-field,
    #return-field {
        position: relative !important;
        overflow: visible !important;
    }
    
    /* Ensure parent containers allow calendar overflow */
    .amadex-modern-form,
    .amadex-search-container,
    .amadex-search-fields,
    .amadex-search-bar-wrapper {
        overflow: visible !important;
        position: relative !important;
    }
    
    /* Calendar months - single month view on mobile */
    .amadex-calendar-months {
        display: block !important;
        width: 100% !important;
    }
    
    /* Hide vertical border on mobile */
    .amadex-calendar-months::before {
        display: none !important;
    }
    
    /* Calendar month - single month display */
    .amadex-calendar-widget.active .amadex-calendar-months {
        display: block !important;
        width: 100% !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Single month container */
    .amadex-calendar-month {
        width: 100% !important;
        max-width: 100% !important;
        min-width: auto !important;
    }
    
    /* Calendar table and days must be visible */
    .amadex-calendar-widget.active .amadex-calendar-table,
    .amadex-calendar-widget.active .amadex-calendar-day {
        /* display: block !important; */
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .amadex-calendar-table {
        display: table !important;
    }
    
    .amadex-calendar-table tbody {
        display: table-row-group !important;
    }
    
    .amadex-calendar-table tr {
        display: table-row !important;
    }
    
    .amadex-calendar-table td {
        display: table-cell !important;
    }
    
    /* Prevent duplicate calendar displays - ensure only one calendar widget exists */
    .amadex-calendar-widget:not(.active),
    #departure-calendar:not(.active),
    #return-calendar:not(.active) {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    /* Ensure only one calendar is visible at a time - prevent duplicates */
    .amadex-calendar-widget.active ~ .amadex-calendar-widget:not(.active),
    #departure-calendar.active ~ #departure-calendar:not(.active),
    #return-calendar.active ~ #return-calendar:not(.active),
    .amadex-calendar-widget.active + .amadex-calendar-widget,
    #departure-calendar.active + #departure-calendar,
    #return-calendar.active + #return-calendar {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    /* Force single calendar display - hide any duplicate instances */
    body:has(.amadex-calendar-widget.active) .amadex-calendar-widget:not(.active),
    body:has(#departure-calendar.active) #departure-calendar:not(.active),
    body:has(#return-calendar.active) #return-calendar:not(.active) {
        display: none !important;
    }
    
    /* Hide loading spinner in search fields on mobile */
    .amadex-suggestions-empty .spinner,
    .amadex-suggestions-scroll .spinner,
    .amadex-dropdown .spinner,
    .amadex-autocomplete-list .spinner {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        position: absolute !important;
        left: -9999px !important;
        animation: none !important;
    }
    
    /* Hide loading text container when spinner is present on mobile */
    .amadex-suggestions-empty:has(.spinner),
    .amadex-suggestions-scroll:has(.spinner) {
        display: none !important;
    }
    
    /* Alternative selector for browsers that don't support :has() */
    .amadex-suggestions-empty .spinner ~ * {
        display: none !important;
    }
    
    /* Calendar header adjustments for mobile */
    .amadex-calendar-header {
        padding-right: 50px !important;
        padding-top: 0 !important;
    }
    
    /* Calendar month header - mobile friendly */
    /* .amadex-calendar-month-header {
        padding: 0 4px !important;
        margin-bottom: 16px !important;
    } */
    
    .amadex-calendar-month-title {
        font-size: 16px !important;
        font-weight: 700 !important;
    }
    
    /* Navigation buttons - mobile friendly */
    .amadex-calendar-nav-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 28px !important;
        min-width: 40px !important;
        min-height: 40px !important;
    }
    
    /* Calendar table - mobile responsive */
    .amadex-calendar-table {
        width: 100% !important;
        border-spacing: 4px !important;
    }
    
    /* Calendar day cells - mobile touch friendly */
    .amadex-calendar-day {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        font-size: 14px !important;
    }
    .amadex-disclaimer-note {
        display: none;
    }
    
    /* Close button styles for mobile */
    .amadex-calendar-close-btn {
        top: -6 !important;
        right: 6px !important;
        padding: 10px !important;
        background: #F3F4F6 !important;
        border-radius: 50% !important;
        width: 36px !important;
        height: 36px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .amadex-calendar-close-btn:hover {
        background: #E5E7EB !important;
    }
    
    .amadex-calendar-close-btn svg {
        width: 18px !important;
        height: 18px !important;
    }
    
    /* Backdrop overlay for mobile calendar */
    .amadex-calendar-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9999;
        display: none;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    
    .amadex-calendar-backdrop.active {
        display: block !important;
    }

    .amadex-search-modern .amadex-trip-label {
        font-size: 14px!important;
    }

    .amadex-field-input-wrap input {
    padding: 0 !important;
    }

    .amadex-cabin-btn {
        font-size: 12px;
    }
    .amadex-field-input-wrap input {
    padding: 0 !important;
   }

    div#travellers-field {
    border: 1px solid #E6E6E6 !important;
    border-radius: 15px;
    }
    div#destination-field{
    border-top-left-radius: 0 ;
    border-bottom-left-radius: 0 ;
    }
    div#origin-field {
    /* border-right: none !important; */
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    }

    div#return-field {
    border-top-left-radius: 0 ;
    border-bottom-left-radius: 0 ;
    }

    .amadex-modern-field.amadex-date-field {
    border-top-right-radius: 0 !important;
border-bottom-right-radius: 0 !important;
    }

    .amadex-field-value {
    font-size: 12px !important;
    }

    .amadex-field-description {
        font-size: 12px !important;
    }

    .amadex-search-modern .amadex-trip-label {
        padding: 10px 12px;
    }

    div#return-field {
    border-top-right-radius: 15px !important;
    border-bottom-right-radius: 15px !important;
    }


    .amadex-calendar-header {
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
    }

    /* Mobile: Show 1 column (below 768px) */
    .amadex-calendar-months {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
    }

    /* Hide vertical border on mobile */
    .amadex-calendar-months::before {
        display: none !important;
    }

    .amadex-calendar-month {
        min-width: auto;
    }

    .amadex-calendar-selected-date {
        font-size: 17px;
    }

    .amadex-calendar-day {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .amadex-calendar-date-item {
        font-size: 12px;
    }

    /* Mobile layout for main search card */
    .amadex-search-modern {
        padding: 0;
    }

    .amadex-modern-form {
        padding: 18px 20px 26px;
        border-radius: 28px;
        box-shadow: 0 25px 65px rgba(12, 97, 54, 0.18);
        border: 1px solid rgba(8, 65, 32, 0.08);
        background: linear-gradient(180deg, #F8FFFA 0%, #FFFFFF 60%);
    }

    .amadex-trip-selector {
        width: fit-content;
        margin-bottom: 0!important;
                padding: 6px 6px;
        background: #F3F3F3;
        box-shadow: inset 0 1px 3px rgba(0,0,0,0.08);
    }

    .amadex-search-fields {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .amadex-modern-field {
        border: 1px solid #e5e7eb;
        border-radius: 20px;
        padding: 14px 16px;
        background: #fff;
        min-height: auto;
        box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
    }

    .amadex-modern-field + .amadex-modern-field {
        margin-top: 8px;
    }

    /* .amadex-modern-field.amadex-travellers-field {
        border: 1.5px solid #0E7D3F;
        box-shadow: 0 4px 18px rgba(14, 125, 63, 0.12);
    } */

    .amadex-modern-field.amadex-date-field .amadex-field-value {
        font-weight: 600;
        font-size: 15px;
    }

    .amadex-modern-field.amadex-date-field .amadex-field-description {
        color: #6B7280;
        font-size: 13px;
    }

    .amadex-flight-segment + .amadex-flight-segment {
        border-top: 1px solid transparent;
        padding-top: 0;
        margin-top: 0;
    }

    .amadex-swap-button {
        position: static !important;
        margin: 10px auto 8px;
    }

    button.amadex-search-btn {
        position: static;
        width: 100%;
        height: auto;
        margin-top: 16px;
        border-radius: 18px;
        font-size: 18px;
    }

    .amadex-add-city-btn {
        width: 100%;
        justify-content: center;
        margin: 20px 0 0;
    }

    .amadex-modern-field.amadex-travellers-field,
    #travellers-field {
        position: relative !important;
        z-index: 1002 !important;
        overflow: visible !important;
        opacity: 1 !important;
    }
    
    /* When other dropdowns are active, ensure travellers field doesn't interfere */
    .amadex-location-field.field-active ~ .amadex-travellers-field,
    .amadex-location-field.field-active ~ #travellers-field,
    .amadex-date-field.field-active ~ .amadex-travellers-field,
    .amadex-date-field.field-active ~ #travellers-field {
        z-index: 1 !important;
        opacity: 1 !important;
    }
    
    /* When travellers field is active */
    .amadex-modern-field.amadex-travellers-field.field-active,
    #travellers-field.field-active,
    #travellers-field.active {
        z-index: 1002 !important;
        position: relative !important;
        opacity: 1 !important;
    }
    
    /* Travellers Dropdown - Mobile */
    .amadex-travellers-dropdown {
        position: absolute !important;
        top: calc(100% + 8px) !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        background: #ffffff !important;
        border: 1px solid #E5E7EB !important;
        border-radius: 16px !important;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15),
                    0 8px 24px rgba(0, 0, 0, 0.08) !important;
        padding: 20px !important;
        z-index: 10003 !important;
        margin-top: 8px !important;
        max-height: 70vh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(-12px) !important;
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    
    /* Ensure travellers field has relative positioning for dropdown */
    .amadex-modern-field.amadex-travellers-field,
    #travellers-field {
        position: relative !important;
    }
    .amadex-paypal-option{
        width: 60%;
    }
    
    /* Active State - Mobile */
    .amadex-travellers-dropdown.active,
    .amadex-modern-field.amadex-travellers-field.field-active .amadex-travellers-dropdown,
    .amadex-modern-field.amadex-travellers-field.field-active .amadex-travellers-dropdown.active,
    #travellers-field.field-active .amadex-travellers-dropdown,
    #travellers-field.field-active .amadex-travellers-dropdown.active,
    #travellers-field.active .amadex-travellers-dropdown,
    #travellers-field.active .amadex-travellers-dropdown.active,
    #travellers-field.field-active #travellers-dropdown.active,
    #travellers-field.active #travellers-dropdown.active {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
        z-index: 10003 !important;
        position: absolute !important;
        animation: slideInDown 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    
    /* Ensure parent containers allow dropdown overflow */
    .amadex-modern-form,
    .amadex-search-container,
    .amadex-search-fields,
    .amadex-search-bar-wrapper,
    .amadex-search-bar-container {
        overflow: visible !important;
        position: relative !important;
    }
    
    /* When travellers dropdown is active in search bar wrapper, use fixed positioning */
    .amadex-search-bar-wrapper.amadex-search-bar-active .amadex-travellers-dropdown.active,
    .amadex-search-bar-wrapper.amadex-search-bar-active #travellers-field.active .amadex-travellers-dropdown,
    .amadex-search-bar-wrapper.amadex-search-bar-active #travellers-field.field-active .amadex-travellers-dropdown {
        position: fixed !important;
        left: 16px !important;
        right: 16px !important;
        width: calc(100% - 32px) !important;
        max-width: calc(100% - 32px) !important;
        max-height: calc(100vh - 120px) !important;
        top: auto !important;
        bottom: 20px !important;
        z-index: 10003 !important;
    }
    
    /* Ensure search bar wrapper doesn't clip dropdown */
    .amadex-search-bar-wrapper.amadex-search-bar-active {
        overflow: visible !important;
        padding-bottom: 0 !important;
        margin-bottom: -400px !important;
    }

    .amadex-travellers-dropdown::before {
        left: 40px;
    }

    .amadex-travellers-dropdown .amadex-traveller-row {
        padding: 14px 0;
    }

    .amadex-travellers-dropdown .amadex-counter-btn {
        width: 25px;
        height: 25px;
    }

    .amadex-travellers-dropdown .amadex-traveller-counter {
        gap: 14px;
    }

    .amadex-travellers-dropdown .amadex-travellers-apply-btn {
        margin-top: 10px;
        border-radius: 18px;
        font-size: 18px;
    }
   
    .amadex-trip-label {
        min-height: 28px!important;
        min-width: 28px!important;
    }

        .amadex-calendar-header {
        padding: 0 12px 10px !important;
    }

    .amadex-calendar-months {
        padding-top: 0;
    }

    .amadex-calendar-month-header{
     margin-bottom: 0;
    }

    .amadex-modern-form button.amadex-search-btn {
        max-width: 100% !important;
        height: 40px !important;
        font-size: 14px !important;
        position: static !important;
        transform: none !important;
    }

    .amadex-modern-form button.amadex-search-btn.loading {
        position: static !important;
        transform: none !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        top: auto !important;
    }

    .amadex-modern-form {
        padding: 10px 12px !important;
        border-radius: 16px !important;
    }

        .amadex-modern-form {
        padding: 15px 10px !important;
        }

   .main-calnder-mobile {
    display: flex;
}

#departure-day, #return-day {
    display: none !important;
}

    div#return-field {
        border-radius: 0 12px 12px 0 !important;
}

.amadex-modern-form:not(.amadex-multi-city-mode) .amadex-modern-field {
   border-radius: 12px 0 0 12px !important;
}

.amadex-field-input-wrap div#departure-display {
        width: 100% !important;
    }

    .amadex-field-input-wrap div#return-display {
        width: 100% !important;
    }

.amadex-travellers-trigger{
padding:0!important ;
}

.amadex-modern-form button.amadex-search-btn{
height: 40px!important;
}

.amadex-modern-field, #origin-field, #destination-field, #departure-field, #return-field, #travellers-field, .amadex-location-field, .amadex-date-field, .amadex-travellers-field{
box-shadow:none!important;
}

.amadex-modern-form button.amadex-search-btn{
margin-top:10px!important;
box-shadow:none!important;
}

.amadex-trip-selector {
margin-bottom:15px!important;
}

.amadex-modern-form div#destination-field {
        padding-left: 10px !important;
    }

.amadex-modern-field, #origin-field {
padding: 8px 10px !important;
}

.amadex-modern-form:not(.amadex-multi-city-mode) .amadex-modern-field {
padding: 8px 10px !important;
}

#departure-display, #return-display, #departure-day, #return-day {
    display: none!important;
}

.amadex-field-input-wrap {
        gap: 10px !important;
    }

/* Search Button - Large green button at bottom */
    .amadex-modern-form button.amadex-search-btn {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 40px !important;
        margin-top: 0px !important;
        padding: 0 24px !important;
        background: #0E7D3F !important;
        color: #ffffff !important;
        border: none !important;
        border-radius: 16px !important;
        font-size: 16px !important;
        font-weight: 600;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        box-shadow: 0 4px 12px rgba(14, 125, 63, 0.3);
        transition: all 0.3s ease;
        left: auto !important;
        transform: none !important;
    }

    .amadex-modern-form button.amadex-search-btn.loading {
        position: static !important;
        width: 100% !important;
        transform: none !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        top: auto !important;
    }

    .amadex-modern-form button.amadex-search-btn:hover {
        background: #0a6835 !important;
        box-shadow: 0 6px 16px rgba(14, 125, 63, 0.4);
    }

    button.amadex-cabin-btn.active:focus {
      outline: none!important;
    }
    
 .amadex-booking-section {
overflow-x: none!important;
}

.amadex-payment-tab-checkmark {
 top: -24px;
 right: -20px;
}

 .amadex-add-passenger-dropdown {
  min-width: 100% !important;
    }


    /* 23-12-2025 changes into css ajay singh */
    #travellers-dropdown
    {
        width: 100% !important;
        margin-left: 0px;
        min-width: 260px !important;
        padding: 10px 20px 20px 10px !important;
    }
    .amadex-modern-form {
        height: auto !important;
    }

    .amadex-traveller-row {
        padding: 4px 0 !important;
        border-bottom: 1px solid #E6E6E6 !important;
    }
    .amadex-trip-selector {
        padding: 2px!important;
    }

    /* 24th dec 2025 ajay singh*/
    
}

/* 6: 20pm 24 dec */

@media only screen and (min-width: 768px) and (max-width: 1024px) {
  .amadex-modern-field,
  #origin-field,
  #destination-field,
  #departure-field,
  #return-field,
  #travellers-field {
      flex-direction: row !important;
      height: 44px !important;
  }

  .amadex-modern-form div#destination-field {
    padding-left: 10px !important;
}

  .amadex-modern-field {
    max-height: 44px !important;
        justify-content: center;
  }

  /* Apply specific flexbox alignment for tablet */
  #travellers-field {
      height: 44px !important;
      justify-content: center !important;
      align-items: center !important;
      width: 135px;
  }

  .amadex-modern-field.amadex-date-field {
      border-top-right-radius: 0 !important;
      border-bottom-right-radius: 0 !important;
      align-items: center !important;
      width: 135px !important;
  }

  #return-field {
      align-items: center !important;
  }

  #destination-field {
      justify-content: center !important;
      align-items: flex-start !important;
  }

  #origin-field {
      justify-content: center !important;
      align-items: flex-start !important;
  }

  .main-calnder-mobile {
      display: flex;
  }

  div#return-field {
      border-top-left-radius: 0 !important;
      border-bottom-left-radius: 0 !important;
  }

  .amadex-travellers-trigger {
      gap: 10px !important;
  }

}



/* ipad air */
@media screen and (min-width: 810px) and (max-width: 830px) {

      .amadex-modern-form {
        background: rgb(255, 255, 255);
        border-radius: 20px;
        padding: 20px 16px;
        box-shadow: rgba(0, 0, 0, 0.08) 0px 2px 12px;
      }
       
      .amadex-modern-form:not(.amadex-multi-city-mode) .amadex-search-fields {
        border: none!important;
      }

}



/* ==================== Swap Button ==================== */
.amadex-swap-button {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    border-radius: 50% !important;
    background: #0E7D3F;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                background-color 0.3s ease, 
                box-shadow 0.3s ease;
    margin-bottom: 8px;
    flex-shrink: 0;
    opacity: 1;
    padding: 0;
    position: relative;
    box-shadow: 0 2px 8px rgba(14, 125, 63, 0.25);
    overflow: visible;
    transform: rotate(0deg);
    will-change: transform;
}

.amadex-swap-button:hover {
    background: #0a6835;
    box-shadow: 0 4px 12px rgba(14, 125, 63, 0.35);
    transform: rotate(0deg) scale(1.05);
}

.amadex-swap-button:active {
    transform: rotate(0deg) scale(0.95);
    box-shadow: 0 3px 12px rgba(14, 125, 63, 0.35);
}

/* Anticlockwise rotation animation on swap */
.amadex-swap-button.rotating {
    transform: rotate(-180deg);
    background: #0a6835;
    box-shadow: 0 4px 16px rgba(14, 125, 63, 0.4);
}

/* Keyframe for smooth anticlockwise rotation */
@keyframes rotateAnticlockwise {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(-180deg);
    }
}

/* Animation class for swap action */
.amadex-swap-button.animating {
    animation: rotateAnticlockwise 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.amadex-swap-button svg {
    width: 48px!important;
    height: 48px!important;
    fill: #ffffff;
    /* stroke: #ffffff; */
    stroke-width: 0.5;
    display: block;
    transition: filter 0.3s ease;
    pointer-events: none;
}

.amadex-swap-button:hover svg {
    filter: brightness(1.1);
}

.amadex-swap-button.rotating svg {
    filter: brightness(1.15);
}

input.amadex-dropdown-search-input {
    box-shadow:none!important;
    border: none!important;
     padding-left: 20px !important;
    /* margin-top: 10px; */
    margin-top: 6px;
}

/* input:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    color: inherit !important;
    border-style: none;
  background:none!important;
  } */


/* ==================== Date Fields ==================== */
.amadex-date-field .amadex-field-value {
    cursor: pointer;
}

.amadex-date-field input[type="date"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* ==================== Travellers & Cabin Dropdown ==================== */
.amadex-travellers-field {
    position: relative;
}

.amadex-travellers-trigger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 4px 0;
    cursor: pointer;
    position: relative;
}

.amadex-modern-form.amadex-multi-city-mode.has-extra-segments .amadex-modern-field.amadex-location-field {
    padding-left: 30px !important;
}

/* ==================== TABLET/MID-RANGE DESKTOP (770px - 1112px) ==================== */
/* EXPERT/GOD MODE: This range overlaps with tablet, but is more specific */
/* Note: Tablet rules (769px-1024px) will take precedence for most cases */
@media (min-width: 770px) and (max-width: 1112px) {
    /* Specific adjustments for mid-range screens */
     .amadex-travellers-trigger::after {
        right: -16px !important;
        top: 44% !important;
        width: 10px !important;
        height: 10px !important;
    }
    .amadex-travellers-value svg {
     display: none !important;
    }
    .amadex-field-value {
        font-size: 12px !important;
    }
    .amadex-field-value {
        padding : 0 0 !important;
    }
}

/* ==================== DROPDOWN ARROW - DESKTOP ONLY (≥1025px) ==================== */
/* EXPERT/GOD MODE: Updated from 769px to 1025px to isolate from tablets */
@media (min-width: 1025px) {
    .amadex-travellers-trigger::after {
        content: '';
        position: absolute;
        right: -18px;
        top: 30%;
        transform: translateY(-50%);
        width: 7px;
        height: 7px;
        border-right: 2px solid #000000;
        border-bottom: 2px solid #000000;
        transform: translateY(-60%) rotate(45deg);
        transition: transform 0.3s ease;
    }
    .amadex-results-page .amadex-search-summary-modern .amadex-modern-form.amadex-multi-city-mode.has-extra-segments button.amadex-swap-button {
        left: 46.5rem;
    }

    .amadex-modern-form.amadex-multi-city-mode.has-extra-segments button.amadex-swap-button {
        /* top:1.2rem; */
        top: 0.6rem;
        left: 41.5rem;
    }
    .amadex-travellers-field.active .amadex-travellers-trigger::after {
        transform: translateY(-40%) rotate(-135deg);
    }
}

@media (max-width: 768px) {
    .amadex-travellers-trigger::after {
        display: none !important;
    }
}

.amadex-travellers-value {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

.amadex-cabin-value {
    font-size: 13px;
    letter-spacing: 0px;
    color: #202924;
}
.amadex-form-field input {
    border-radius: 15px !important;
    border: 1px solid #E6E6E6 !important;
    padding: 14px 15px !important;
}
/* ==================== Swap Button Base Styles ==================== */
button.amadex-swap-button {
    position: absolute;
    left: 50%;
    bottom: 1.5rem;
    transform: translateX(-50%) rotate(0deg);
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 50%;
    background: none!important;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                background-color 0.3s ease;
    box-shadow: none!important;
    z-index: 10;
    font-size: 20px;
    will-change: transform;
}

button.amadex-swap-button:hover {
    background: #0a6835;
    transform: translateX(-50%) rotate(0deg) scale(1.05);
    box-shadow: 0 6px 20px rgba(14, 125, 63, 0.5), 0 3px 10px rgba(14, 125, 63, 0.4);
}

button.amadex-swap-button:active {
    transform: translateX(-50%) rotate(0deg) scale(0.95);
}

/* Anticlockwise rotation animation for positioned button */
button.amadex-swap-button.rotating {
    transform: translateX(-50%) rotate(-180deg);
}

/* Keyframe for positioned button rotation */
@keyframes rotateAnticlockwisePositioned {
    from {
        transform: translateX(-50%) rotate(0deg);
    }
    to {
        transform: translateX(-50%) rotate(-180deg);
    }
}

/* Animation class for positioned button */
button.amadex-swap-button.animating {
    animation: rotateAnticlockwisePositioned 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

button.amadex-swap-button svg,
button.amadex-swap-button i {
    color: #ffffff;
    font-size: 20px;
    width: 60px;
    height: 80px;
    background: #0e7d3f;
    border-radius: 50px;
    transition: filter 0.3s ease;
    pointer-events: none;
}

button.amadex-swap-button:hover svg,
button.amadex-swap-button:hover i {
    filter: brightness(1.1);
}

button.amadex-swap-button.rotating svg,
button.amadex-swap-button.rotating i {
    filter: brightness(1.15);
}
label.amadex-field-label {
    display: none !important;
}
/* Desktop - Swap button between origin and destination */
@media (min-width: 769px) {
    button.amadex-swap-button {
        position: absolute;
        left: calc(50% - 28px);
        bottom: 1.2rem;
        transform: translateX(-50%);
        width: 40px;
        height: 40px;
    }
}

/* ==================== Search Button ==================== */
.amadex-search-btn {
    background: linear-gradient(135deg, #0E7D3F 0%, #0a6835 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 18px 36px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    min-height: 50px;
    margin-bottom: 8px;
    opacity: 1;
    box-shadow: 0 4px 12px rgba(14, 125, 63, 0.25), 0 2px 6px rgba(14, 125, 63, 0.15);
    position: relative;
    overflow: hidden;
}

/* ==================== DESKTOP - SEARCH BUTTON POSITIONED ABSOLUTELY (≥1025px) ==================== */
/* EXPERT/GOD MODE: Updated from 769px to 1025px to isolate from tablets */
@media (min-width: 1025px) {
    button.amadex-search-btn {
        position: absolute;
        right: 0;
        bottom: 0.5rem;
        width: auto;
        min-width: 140px;
        height: 50px!important;
        padding: 0 32px;
        transform: none;
    }
}

.amadex-search-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.amadex-search-btn:hover::before {
    left: 100%;
}

button.amadex-swap-button {
    position: absolute;
    margin-left: -19.2rem!important;
    z-index: 2;
}
.amadex-results-page .amadex-search-summary-modern #origin-description {
    display: none !important;
}
.amadex-results-page .amadex-search-summary-modern div#destination-description {
    display: none!important;
}
button.amadex-swap-button::before {
    display: none;
}
.amadex-travellers-field {
    border-right: none !important;
}
.amadex-modern-form button.amadex-search-btn {
    position: absolute;
    right: -165px;
    width: 146px;
    height: 50px;
    background: #0E7D3F 0% 0% no-repeat padding-box;
    border-radius: 16px;
    opacity: 1;
    bottom: 6px;
    margin-bottom: 0;
    font-size: 18px;
    font-weight: 600;
    flex-shrink: 0;
}

.amadex-modern-form button.amadex-search-btn.loading {
    position: absolute !important;
    right: -165px !important;
    bottom: 6px !important;
    width: 146px;
    height: 50px !important;
    transform: none !important;
}

.amadex-search-btn:hover:not(.loading) {
    background: linear-gradient(135deg, #0a6835 0%, #085428 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(14, 125, 63, 0.35), 0 4px 12px rgba(14, 125, 63, 0.2);
    color: #ffffff;
}

.amadex-search-btn:active:not(.loading) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 125, 63, 0.3);
}

/* Search Icon - SVG with perfect alignment */
.amadex-search-btn .amadex-search-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 2px;
    transition: all 0.3s ease;
}

.amadex-search-btn svg {
    width: 22px;
    height: 22px;
    display: block;
}

.amadex-search-btn .search-icon-svg {
    width: 22px;
    height: 22px;
    vertical-align: middle;
}

/* Ensure text and icon are perfectly aligned */
.amadex-search-btn {
    line-height: 1;
}

.amadex-search-btn:hover .amadex-search-icon {
    transform: scale(1.1) rotate(15deg);
}

/* ==================== Passengers Modal ==================== */
/* Base Travellers Dropdown Styles - Desktop */
.amadex-travellers-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15),
                0 8px 24px rgba(0, 0, 0, 0.08);
    padding: 15px;
    z-index: 1000;
    margin-top: 14px;
    min-width: 360px;
    display: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Active State - Desktop */
.amadex-travellers-dropdown.active,
.amadex-modern-field.amadex-travellers-field.field-active .amadex-travellers-dropdown,
.amadex-modern-field.amadex-travellers-field.field-active .amadex-travellers-dropdown.active,
#travellers-field.field-active .amadex-travellers-dropdown,
#travellers-field.field-active .amadex-travellers-dropdown.active {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    animation: slideInDown 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Travellers Field - Ensure proper z-index hierarchy */
.amadex-modern-field.amadex-travellers-field,
#travellers-field {
    position: relative;
    z-index: 1002;
    overflow: visible;
}

/* When other dropdowns are active, ensure travellers field doesn't interfere */
.amadex-location-field.field-active ~ .amadex-travellers-field,
.amadex-location-field.field-active ~ #travellers-field,
.amadex-date-field.field-active ~ .amadex-travellers-field,
.amadex-date-field.field-active ~ #travellers-field {
    z-index: 1;
    opacity: 1;
}

/* When travellers field is active, ensure it's above other fields */
.amadex-modern-field.amadex-travellers-field.field-active,
#travellers-field.field-active,
#travellers-field.active {
    z-index: 1002;
    position: relative;
}

.amadex-modern-field.amadex-travellers-field.field-active .amadex-travellers-dropdown,
#travellers-field.field-active .amadex-travellers-dropdown,
#travellers-field.active .amadex-travellers-dropdown {
    z-index: 10003;
}

.amadex-travellers-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 32rem;
    width: 16px;
    height: 16px;
    background: #ffffff;
    border-left: 1px solid #E5E7EB;
    border-top: 1px solid #E5E7EB;
    transform: rotate(45deg);
}

.amadex-traveller-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    /* border-bottom: 1px solid #F3F4F6; */
}

.amadex-traveller-row:last-child {
    border-bottom: 1px solid #F3F4F6;
    margin-bottom: 4px;
}

.amadex-traveller-label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.amadex-traveller-type {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    letter-spacing: -0.2px;
}

.amadex-traveller-age {
    font-size: 12px;
    color: #202924;
    font-weight: 400;
}

.amadex-traveller-counter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.amadex-counter-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-weight: 500;
    line-height: 1;
    padding: 0;
}

/* Grey Minus Button */
.amadex-counter-btn.amadex-counter-minus {
    background: #F1F1F1;
    color: #000;
    border: 1px solid #D1D5DB;
    border-radius: 5px;
}

.amadex-counter-btn.amadex-counter-minus:hover:not(:disabled) {
    background: #D1D5DB;
    transform: scale(1.05);
}

.amadex-counter-btn.amadex-counter-minus:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Green Plus Button */
.amadex-counter-btn.amadex-counter-plus {
    background: #0E7D3F;
    color: #ffffff;
    border: 1px solid #0E7D3F;border-radius:5px;
}

.amadex-counter-btn.amadex-counter-plus:hover:not(:disabled) {
    background: #0a6835;
    border-color: #0a6835;
    transform: scale(1.05);
}

.amadex-counter-btn.amadex-counter-plus:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.amadex-counter-value {
    min-width: 32px;
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    color: #202924;
}

.amadex-cabin-selector {
    /* margin-top: 20px; */
    padding-top: 0px;
    border-top: none;
    /*border-top: 1px solid #E6E6E6; */
}

.amadex-cabin-label {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 14px;
    letter-spacing: -0.2px;
}

.amadex-cabin-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.amadex-cabin-btn {
    padding: 11px 16px;
    border: 1px solid #CFCFCF;
    border-radius: 15px;
    background: #ffffff;
    color: #111827;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    white-space: nowrap;
}

.amadex-cabin-btn:hover:not(.active) {
    border-color: #9CA3AF;
    background: #F9FAFB;
}

.amadex-cabin-btn.active {
    border-color: #0E7D3F;
    background: rgba(14, 125, 63, 0.08);
    color: #0E7D3F;
    font-weight: 600;
}

/* .amadex-cabin-btn.active:hover {
    background: rgba(14, 125, 63, 0.12);
    border-color: #0a6835;
} */

/* Apply Button - Pixel Perfect from Screenshot */
.amadex-travellers-apply-btn {
    width: 100%;
    padding: 14px 24px;
    margin-top: 20px;
    background: #0E7D3F;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    letter-spacing: 0.3px;
}

.amadex-travellers-apply-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(14, 125, 63, 0.2);
}

/* ==================== Responsive Design ==================== */
@media (max-width: 1200px) {
    .amadex-search-fields {
        grid-template-columns: 1.5fr auto 1.5fr 1.3fr 1.3fr 1.5fr auto;
        gap: 12px;
    }
    
    .amadex-field-value {
        font-size: 14px;
    }
    
    .amadex-search-btn {
        padding: 14px 24px;
        font-size: 14px;
    }
}

@media (max-width: 992px) {
    .amadex-modern-form {
        padding: 24px 20px;
    }
    
    .amadex-search-fields {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .amadex-modern-field {
        padding: 10px;
        border-bottom: 1px solid #f1f5f9;
    }
    
    .amadex-modern-field:last-child {
        border-bottom: none;
    }
    
    .amadex-swap-button {
        display: none;
    }
    
    .amadex-search-btn {
        width: 100%;
        margin-top: 16px;
        margin-bottom: 0;
    }
    
    .amadex-field-description {
        white-space: normal;
    }
    
    /* Removed duplicate travellers dropdown rule - using main mobile styles */
}

@media (max-width: 640px) {
    .amadex-modern-form {
        padding: 15px 10px;
        border-radius: 12px;
    }
    
    .amadex-trip-selector {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .amadex-trip-label {
        padding: 8px 20px;
        font-size: 13px;
    }
    
    .amadex-cabin-options {
        grid-template-columns: 1fr;
    }
}

/* ==================== Loading State ==================== */
.amadex-search-btn.loading {
    color: transparent !important;
    pointer-events: none;
    background: #0E7D3F !important;
    opacity: 1 !important;
    cursor: not-allowed;
    box-shadow: none !important;
}

/* ==================== DESKTOP: MAINTAIN ABSOLUTE POSITION (≥1025px) ==================== */
/* EXPERT/GOD MODE: Updated from 769px to 1025px to isolate from tablets */
@media (min-width: 1025px) {
    .amadex-search-btn.loading {
        position: absolute !important;
        transform: none !important;
    }
    
    .amadex-modern-form button.amadex-search-btn.loading {
        position: absolute !important;
        right: -165px !important;
        bottom: 6px !important;
        transform: none !important;
    }
}

/* Mobile: Maintain static position */
@media (max-width: 768px) {
    .amadex-search-btn.loading {
        position: static !important;
        transform: none !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        top: auto !important;
    }
    
    .amadex-modern-form button.amadex-search-btn.loading {
        position: static !important;
        transform: none !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        top: auto !important;
    }
}

.amadex-search-btn.loading .amadex-search-icon {
    display: none !important;
}

.amadex-search-btn.loading > * {
    opacity: 0 !important;
    visibility: hidden !important;
}

.amadex-modern-form.amadex-multi-city-mode .amadex-modern-field.amadex-date-field.field-disabled.return-promo{
    background: #FFFFFF !important;
    opacity: 1 !important;
    position: relative;
    z-index: 1;
}

/* Apply opacity only to text content, not the background */
.amadex-modern-form.amadex-multi-city-mode .amadex-modern-field.amadex-date-field.field-disabled.return-promo .amadex-field-label,
.amadex-modern-form.amadex-multi-city-mode .amadex-modern-field.amadex-date-field.field-disabled.return-promo .amadex-field-value,
.amadex-modern-form.amadex-multi-city-mode .amadex-modern-field.amadex-date-field.field-disabled.return-promo .amadex-field-description,
.amadex-modern-form.amadex-multi-city-mode .amadex-modern-field.amadex-date-field.field-disabled.return-promo .amadex-field-input-wrap {
    opacity: 0.2 !important;
}

.amadex-search-btn.loading::before {
    content: '';
    position: absolute;
    top: 24%;
    left: 42%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    z-index: 10;
    display: block;
    visibility: visible;
    opacity: 1;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ==================== Animations ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideIn {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.amadex-suggestions-dropdown.active,
.amadex-travellers-dropdown.active {
    animation: fadeInScale 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== Focus States ==================== */

@keyframes slideInFocus {
    from {
        transform: scaleX(0);
        opacity: 0;
    }
    to {
        transform: scaleX(1);
        opacity: 1;
    }
}

/* Form Entrance Animation */
@keyframes formEntrance {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.amadex-modern-form {
    animation: formEntrance 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth transition for field borders */
.amadex-modern-field {
    will-change: background, box-shadow;
    background: none;
}

/* Add ripple effect on click */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 0.5;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* ==================== Additional Polish & Enhancements ==================== */

/* Smooth scrollbar for dropdowns */
.amadex-travellers-dropdown::-webkit-scrollbar {
    width: 6px;
}

.amadex-travellers-dropdown::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 0 16px 16px 0;
}

.amadex-travellers-dropdown::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.amadex-travellers-dropdown::-webkit-scrollbar-thumb:hover {
    background: #0E7D3F;
}

/* Prevent text selection on interactive elements */
.amadex-trip-label,
.amadex-counter-btn,
.amadex-cabin-btn,
.amadex-swap-button,
.amadex-search-btn {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Add hardware acceleration for smooth animations */
.amadex-modern-form,
.amadex-swap-button,
.amadex-search-btn,
.amadex-trip-label,
.amadex-suggestions-dropdown,
.amadex-travellers-dropdown {
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Enhanced focus ring for accessibility */
.amadex-field-value:focus-visible,
.amadex-counter-btn:focus-visible,
.amadex-cabin-btn:focus-visible {
    outline: 2px solid #0E7D3F;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    .amadex-search-modern {
        box-shadow: none;
    }
    
    .amadex-modern-form {
        box-shadow: none;
        border: 1px solid #000;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .amadex-modern-form {
        border: 2px solid currentColor;
    }
    
    .amadex-search-btn {
        border: 2px solid currentColor;
    }
}

/* ================================
   MOBILE LAYOUT (≤ 767px)
   ================================ */
@media (max-width: 767px) {
 
  .amadex-modern-form {
    max-width: 100%;
    margin: 12px auto 20px;
    padding: 14px 12px 18px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
  }
   body.home .amadex-mobile-sort-bar {
        display: none !important;
    }
  .amadex-booking-progress {
    gap:6px!important;
  }
  .amadex-disclaimer-note{
    margin-top:15px;
  }
  .amadex-leg-meta{
    margin-top:0!important;
  }
  .amadex-flight-price-wrapper .amadex-flight-price {
    font-size: 20px;
    color:#000;
    font-weight: 600!important;
    }
    .amadex-flight-card-main{
        padding: 6px;
    }
  .amadex-location-field .amadex-field-value {
    background: none!important;
  }

  /* TRIP TYPE TOGGLE */
  .amadex-trip-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    overflow-x: auto;
  }

  .amadex-trip-option {
    flex: 0 0 auto;
  }

  .amadex-trip-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    font-size: 12px;
    line-height: 1;
    border-radius: 999px;
    border: 1px solid #d7dde5;
    white-space: nowrap;
  }

  .amadex-trip-option input[type="radio"] {
    display: none;
  }

  .amadex-trip-option input[type="radio"]:checked + .amadex-trip-label {
    border-color: #0e7d3f;
    background: #0e7d3f;
    color: #fff;
  }

  /* SEARCH CONTAINER */
  .amadex-search-container {
    margin-top: 4px;
  }

  .amadex-multi-city-flights {
    width: 100%;
  }

  .amadex-flight-segment {
    width: 100%;
  }

  /* STACK FIELDS VERTICALLY ON MOBILE */
  .amadex-search-fields {
    position: relative;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .amadex-modern-field {
    width: 100%;
    display: flex !important;
    flex-direction: column !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* Ensure ALL field IDs are visible */
  #origin-field,
  #destination-field,
  #departure-field,
  #return-field,
  #travellers-field {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .amadex-field-label {
    display: block !important;
    font-size: 11px;
    font-weight: 500;
    color: #6c7480;
    margin-bottom: 4px;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .amadex-disclaimer-note {
    margin-top:15px;
  }
  .amadex-flight-price{
    font-size: 20px !important;
    color: #111827 !important;
  }

  .amadex-field-input-wrap {
   border: none!important;
    padding: 0;
    background: none!important;
    display: flex !important;
    flex-direction: column !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .amadex-field-value {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    color: #121826;
    padding: 0;
    margin: 0;
    outline: none;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .amadex-swap-button {
    display: none!important;
  }

  .amadex-search-modern .amadex-search-fields{
    max-width: 100%!important;
  }

  .amadex-field-description {
    margin-top: 2px;
    font-size: 11px;
    color: #818898;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* ORIGIN / DESTINATION + SWAP BUTTON */
  .amadex-location-field {
    position: relative;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* add right padding so swap btn doesn't overlap text */
  #origin-field .amadex-field-input-wrap,
  #destination-field .amadex-field-input-wrap {
    padding-right: 0;
  }

  .amadex-swap-button {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .amadex-swap-button svg {
    width: 32px;
    height: 32px;
  }

  /* DATE FIELDS */
  .amadex-date-field {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .amadex-date-field .amadex-field-input-wrap {
    display: flex !important;
    flex-direction: row !important;
   justify-content: flex-start;
    visibility: visible !important;
    opacity: 1 !important;
    gap:6px;
  }

  #departure-display,
  #return-display {
    font-size: 13px;
    font-weight: 600;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  #departure-day,
  #return-day {
    font-size: 11px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  #modern-departure,
  #modern-return {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none !important; /* Completely disable native date picker */
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: -1;
  }

  /* TRAVELLERS & CABIN FIELD */
  .amadex-travellers-field {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .amadex-travellers-field .amadex-travellers-trigger {
    /* border-radius: 10px;
    border: 1px solid #dde2ea;
    padding: 8px 10px;
    background: #f9fafc; */
    display: flex !important;
    flex-direction: row !important;
    gap: 12px;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .amadex-travellers-value {
    font-size: 14px;
    font-weight: 500;
    color: #121826;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .amadex-cabin-value {
    font-size: 14px;
    color: #818898;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* TRAVELLERS POPUP – REMOVED DUPLICATE - Using main mobile styles instead */
  /* This rule was conflicting with the main mobile dropdown styles */

  .amadex-traveller-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f2f7;
  }

  .amadex-traveller-type {
    font-size: 13px;
    font-weight: 500;
  }

  .amadex-traveller-age {
    font-size: 11px;
    color: #818898;
  }

  .amadex-counter-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #dde2ea;
    background: #f9fafc;
    font-size: 18px;
    line-height: 1;
  }

  .amadex-counter-value {
    min-width: 20px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
  }

  .amadex-cabin-selector {
    margin-top: 12px;
  }

  .amadex-cabin-label {
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 6px;
  }

  .amadex-cabin-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px!important;
  }

  .amadex-cabin-btn {
    flex: 1 1 calc(50% - 6px);
    border-radius: 999px;
    border: 1px solid #dde2ea;
    padding: 3px 6px;
    font-size: 11px;
    text-align: center;
    background: #fff;
  }

  .amadex-cabin-btn.active {
    border-color: #0e7d3f;
    background: #0e7d3f;
    color: #fff;
  }

  .amadex-travellers-apply-btn {
    margin-top: 16px;
    width: 100%;
    border-radius: 999px;
    border: none;
    padding: 3px 3px;
    font-size: 13px !important;
    font-weight: 600;
    background: #0e7d3f;
    color: #fff;
  }

  /* SEARCH BUTTON */
  .amadex-search-btn {
    width: 100%;
    margin-top: 8px;
    height: 48px;
    border-radius: 999px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    background: #0e7d3f;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(14, 125, 63, 0.35);
  }

  .amadex-search-btn .amadex-search-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
  }

  .amadex-search-btn .search-icon-svg {
    width: 18px;
    height: 18px;
  }

  /* ADD CITY BUTTON (STILL HIDDEN BY DEFAULT) */
  .amadex-add-city-btn {
    width: 100%;
    margin-top: 10px;
    height: 42px;
    border-radius: 999px;
    border: 1px dashed #c2cad8;
    background: #ffffff;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }

  .amadex-add-city-icon {
    font-size: 18px;
    line-height: 1;
  }

  /* CALENDAR WIDGET UNDER FORM – FULL WIDTH */
  .amadex-calendar-widget {
    margin-top: 12px;
    width: 100%;
    max-width: 100%;
    border-radius: 16px;
    background: #ffffff;
    padding: 12px;
    box-sizing: border-box;
  }
  
  /* Mobile calendar styles are handled in the consolidated mobile media query above */

  .amadex-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
  }

  .amadex-calendar-selected-date {
    display: flex;
    gap: 6px;
    font-size: 12px;
  }

  .amadex-calendar-date-item {
    padding: 4px 8px;
    border-radius: 999px;
  }

  .amadex-calendar-date-item.active {
    background: none;
    color: #0e7d3f;
  }

  .amadex-calendar-trip-type {
    font-size: 11px;
    color: #6c7480;
  }

  #calendar-months-container {
    /* max-height: 260px; */
    overflow-y: none!important;
  }
}

/* ==================== Galaxy S24 Ultra & Large Phones (412px - 430px) ==================== */
@media (max-width: 430px) {
  .amadex-modern-form {
    padding: 12px 10px 16px !important;
    border-radius: 16px !important;
    margin: 10px auto 16px !important;
  }
  .amadex-field-value, #modern-origin, #modern-destination, #departure-display, #return-display {
    font-size: 12px!important;
  }
  
  /* .amadex-trip-selector {
    gap: 6px !important;
  } */
  
  .amadex-trip-label {
    padding: 5px 8px !important;
    font-size: 11px !important;
  }
  
  .amadex-search-container {
    margin-top: 3px !important;
  }
  
  .amadex-location-field {
    padding: 8px 10px !important;
  }
  
  .amadex-field-label {
    font-size: 12px !important;
    margin-bottom: 5px !important;
  }
  
  .amadex-field-value {
    font-size: 14px !important;
    padding: 10px 12px !important;
    min-height: 15px !important;
  }
  
  .amadex-date-field {
    padding: 10px 12px !important;
    min-height: 15px !important;
  }
  
  .amadex-travellers-field {
    padding: 10px 12px !important;
    min-height: 15px !important;
  }
  
  .amadex-search-btn {
    padding: 12px 20px !important;
    font-size: 15px !important;
    border-radius: 12px !important;
    margin-top: 12px !important;
  }
  
  .amadex-add-city-btn {
    padding: 8px 14px !important;
    font-size: 12px !important;
    border-radius: 10px !important;
  }
  
  .amadex-remove-segment-btn {
    padding: 8px 14px !important;
    font-size: 12px !important;
  }
  
  /* Calendar Widget */
  .amadex-calendar-widget {
    width: 96% !important;
    max-width: 96% !important;
    margin: 10px !important;
    border-radius: 16px !important;
  }
  
  .amadex-calendar-header h3 {
    font-size: 16px !important;
  }
  
  .amadex-calendar-body {
    padding: 10px 8px !important;
  }
  
  .amadex-calendar-day {
    width: 36px !important;
    height: 36px !important;
    font-size: 13px !important;
  }
  
  /* Multi-city */
  .amadex-flight-segment {
    padding: 0 !important;
    border-radius: 12px !important;
  }
  
  .amadex-segment-header {
    font-size: 13px !important;
    margin-bottom: 10px !important;
  }
}

/* ==================== Galaxy S24 Ultra Specific (412px) ==================== */
@media (max-width: 412px) {
  .amadex-modern-form {
    padding: 10px 8px 14px !important;
    margin: 8px auto 14px !important;
  }
  
  .amadex-trip-label {
    padding: 4px 6px !important;
    font-size: 10px !important;
  }
  
  .amadex-field-value {
    padding: 9px 10px !important;
    font-size: 13px !important;
  }
  
  .amadex-search-btn {
    padding: 10px 16px !important;
    font-size: 14px !important;
  }
  
  .amadex-calendar-widget {
    width: 98% !important;
    max-width: 98% !important;
    margin: 5px !important;
  }
  
  .amadex-calendar-day {
    width: 32px !important;
    height: 32px !important;
    font-size: 12px !important;
  }
  
  .amadex-flight-segment {
    padding: 0!important;
  }
}

a.c-btn.-default.-primary.dst-adivaha-switcher {
    display: none;
}

/* ==================== Mobile Modern Search Bar Enhancements ==================== */
/* This section enhances the mobile experience with better styling */
@media only screen and (max-width: 768px) {
    /* Override desktop styles for mobile */
    .amadex-search-modern {
        padding: 0 !important;
        margin-top: 20px !important;
    }

    .amadex-modern-form {
        border-radius: 24px !important;
        margin: 0 !important;
    }

    /* Trip selector - enhanced pill style */
    .amadex-trip-selector {
        display: flex !important;
        flex-direction: row !important;
        gap: 8px !important;
        background: none !important;
        border-radius: 16px !important;
        box-shadow: none !important;
        margin-bottom: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .amadex-trip-option {
        flex: 1 !important;
    }

    .amadex-trip-label {
        padding: 10px 16px !important;
        border-radius: 20px !important;
        font-size: 13px !important;
        font-weight: 500 !important;
        color: #000000 !important;
        background: transparent !important;
        border: none !important;
        white-space: nowrap !important;
        width: 100% !important;
        text-align: center !important;
    }

    .amadex-trip-option input[type="radio"]:checked + .amadex-trip-label {
        color: #ffffff !important;
        font-weight: 600 !important;
        background: #0E7D3F !important;
        box-shadow: 0 2px 8px rgba(14, 125, 63, 0.3) !important;
        transform: scale(1.02) !important;
    }

    /* Fields container - 2-COLUMN GRID LAYOUT - ENHANCED VISIBILITY */
    .amadex-search-fields {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
        border: none !important;
        border-radius: 0 !important;
        background: transparent !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: auto !important;
        padding: 0 !important;
        visibility: visible !important;
        opacity: 1 !important;
        overflow: visible !important;
    }

    /* Individual fields - MUST BE VISIBLE - ENHANCED WITH BORDER */
    .amadex-modern-field {
        display: flex !important;
        flex-direction: column !important;
        padding: 12px !important;
        border: 1px solid #E5E5E5 !important;
        border-radius: 12px !important;
        min-height: auto !important;
        background: #FFFFFF !important;
        margin: 0 !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
    }
    
    /* Ensure ALL field types are visible - FORCED DISPLAY */
    #origin-field,
    #destination-field,
    #departure-field,
    #return-field,
    #travellers-field,
    .amadex-location-field,
    .amadex-date-field,
    .amadex-travellers-field {
        display: flex !important;
        flex-direction: column !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        height: auto !important;
    }
    
    /* Make travellers field span full width (both columns) */
    #travellers-field,
    .amadex-travellers-field {
        grid-column: 1 / -1 !important;
        max-height: none !important;
    }

    .amadex-modern-field:last-child {
        border-bottom: none !important;
    }

    .amadex-modern-field:hover {
        background: #F9FAFB !important;
        border-radius: 0 !important;
    }

    .amadex-modern-field.field-active {
        background: rgba(14, 125, 63, 0.04) !important;
        border: none !important;
        border-radius: 0 !important;
        margin: 0 !important;
        padding: 18px 0 !important;
    }

    .amadex-modern-field:not(:last-child):not(.amadex-swap-button) {
        border-right: none !important;
    }
    
    /* Force show field input wrappers */
    .amadex-field-input-wrap {
        display: flex !important;
        flex-direction: column !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Labels - green matching XD - MUST BE VISIBLE */
    .amadex-field-label {
        display: block !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        color: #0E7D3F !important;
        margin-bottom: 8px !important;
        text-transform: capitalize !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Values - bold black - MUST BE VISIBLE */
    .amadex-field-value {
        display: block !important;
        font-size: 17px !important;
        font-weight: 700 !important;
        color: #000000 !important;
        line-height: 1.3 !important;
        padding: 0 !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        background: transparent !important;
        border: none !important;
    }

    /* Descriptions - light gray - MUST BE VISIBLE */
    .amadex-field-description {
        display: block !important;
        font-size: 14px !important;
        color: #6B7280 !important;
        margin-top: 4px !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Date display elements */
    #departure-display,
    #return-display,
    #departure-day,
    #return-day {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Travellers trigger */
    .amadex-travellers-trigger,
    .amadex-travellers-value,
    .amadex-cabin-value {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Swap button - circular green icon */
    .amadex-swap-button {
        display: flex !important;
        position: absolute !important;
        right: 0 !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        border-radius: 50% !important;
        background: #0E7D3F !important;
        border: 3px solid #ffffff !important;
        box-shadow: 0 3px 10px rgba(14, 125, 63, 0.35) !important;
        z-index: 10 !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .amadex-swap-button svg,
    .amadex-swap-button i {
        color: #ffffff !important;
        font-size: 20px !important;
        width: 20px !important;
        height: 20px !important;
    }

    /* Search button - large green button */
    button.amadex-search-btn {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 56px !important;
        margin-top: 28px !important;
        padding: 0 24px !important;
        background: #0E7D3F !important;
        color: #ffffff !important;
        border: none !important;
        border-radius: 18px !important;
        font-size: 17px !important;
        font-weight: 600 !important;
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        box-shadow: 0 4px 14px rgba(14, 125, 63, 0.35) !important;
        transition: all 0.3s ease !important;
        left: auto !important;
        transform: none !important;
    }

    button.amadex-search-btn:hover {
        background: #0a6835 !important;
        box-shadow: 0 6px 18px rgba(14, 125, 63, 0.45) !important;
        transform: translateY(-2px) !important;
    }

    /* Input wrappers */
    .amadex-field-input-wrap {
        display: flex !important;
        flex-direction: column !important;
                padding-right: 0 !important;
    }

    /* Location fields - ENSURE VISIBILITY */
    .amadex-location-field {
        position: relative !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .amadex-location-field input,
    .amadex-location-field .amadex-field-value {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Date fields - ENSURE VISIBILITY */
    .amadex-date-field {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .amadex-date-field .amadex-field-value {
        width: 100% !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .amadex-date-field .amadex-field-input-wrap {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Travellers field - with chevron - ENSURE VISIBILITY */
    .amadex-travellers-field {
        position: relative !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .amadex-travellers-field .amadex-travellers-trigger {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .amadex-travellers-field::after {
        display: none !important;
    }

    .amadex-travellers-trigger::after {
        display: none !important;
        content: none !important;
        visibility: hidden !important;
    }

    /* Ensure parent containers allow dropdown overflow */
    .amadex-search-container,
    .amadex-search-fields,
    .amadex-modern-form {
        overflow: visible !important;
    }
    
    /* Ensure location fields have relative positioning for dropdown */
    .amadex-location-field,
    #origin-field,
    #destination-field,
    .amadex-modern-field.amadex-location-field {
        position: relative !important;
        overflow: visible !important;
        z-index: auto !important;
    }
    
    /* Autocomplete dropdown - Position relative to field (not fixed) */
    .amadex-suggestions-dropdown,
    .amadex-autocomplete-list,
    #origin-suggestions,
    #destination-suggestions {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 16px !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
        max-height: 50vh !important;
        z-index: 1000 !important;
        background: #ffffff !important;
        margin-top: 8px !important;
        transform: translateY(0) !important;
    }
    
    .amadex-suggestions-dropdown.active,
    .amadex-autocomplete-list.active,
    #origin-suggestions.active,
    #destination-suggestions.active {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
    
    /* When field is active, ensure dropdown is visible */
    .amadex-location-field.field-active {
        z-index: 1001 !important;
    }
    
    .amadex-location-field.field-active .amadex-suggestions-dropdown {
        z-index: 1002 !important;
    }

    /* Ensure travellers field is positioned relative */
    .amadex-modern-field.amadex-travellers-field,
    #travellers-field {
        position: relative !important;
        z-index: 1001 !important;
        overflow: visible !important;
    }
    
    /* Travellers dropdown - ENSURE VISIBILITY - Same style as suggestions dropdown */
    .amadex-travellers-dropdown {
        position: absolute !important;
        top: calc(100% + 8px) !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        background: #ffffff !important;
        border: 1px solid #E5E7EB !important;
        border-radius: 16px !important;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15),
                    0 8px 24px rgba(0, 0, 0, 0.08) !important;
        padding: 20px !important;
        z-index: 10002 !important;
        margin-top: 8px !important;
        max-height: 70vh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(-12px) !important;
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    
    .amadex-travellers-dropdown.active,
    .amadex-modern-field.amadex-travellers-field.field-active .amadex-travellers-dropdown,
    .amadex-modern-field.amadex-travellers-field.field-active .amadex-travellers-dropdown.active,
    #travellers-field.field-active .amadex-travellers-dropdown,
    #travellers-field.field-active .amadex-travellers-dropdown.active,
    #travellers-field.active .amadex-travellers-dropdown,
    #travellers-field.active .amadex-travellers-dropdown.active {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
        z-index: 10002 !important;
        position: absolute !important;
        animation: slideInDown 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    
    /* Ensure field-active state is visible */
    .amadex-modern-field.amadex-travellers-field.field-active,
    #travellers-field.field-active,
    #travellers-field.active {
        z-index: 10001 !important;
        position: relative !important;
    }
    
    /* Ensure parent containers allow dropdown overflow */
    .amadex-modern-form,
    .amadex-search-container,
    .amadex-search-fields,
    .amadex-search-bar-wrapper,
    .amadex-search-bar-container {
        overflow: visible !important;
        position: relative !important;
    }
    
    .amadex-search-bar-wrapper.amadex-search-bar-active {
        overflow: visible !important;
        padding-bottom: 0 !important;
        margin-bottom: -400px !important;
    }

}

/* ==================== Multi-City Mobile Design ==================== */
@media only screen and (max-width: 768px) {
  
    .amadex-multi-city-mode {
        width: 100%;
    }

    .amadex-multi-city-mode .amadex-multi-city-flights {
        display: flex !important;
        flex-direction: column;
        gap: 16px;
        margin-bottom: 20px;
    }

    .amadex-multi-city-mode .amadex-flight-segment {
        display: block !important;
        background: none;
        border-radius: 16px;
        padding: 16px;
        position: relative;
        border: none;
        margin-bottom: 0;
    }

    .amadex-segment-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 12px;
        padding-bottom: 10px;
        border-bottom: 1px solid #E0E0E0;
    }

    .amadex-segment-title {
        font-size: 14px;
        font-weight: 600;
        color: #0E7D3F;
        margin: 0;
    }

    .amadex-segment-remove-btn,
    .amadex-remove-segment-btn {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: #ffffff;
        border: 1px solid #E0E0E0;
        color: #666666;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 16px;
        padding: 0;
        line-height: 1;
        transition: all 0.2s ease;
    }

    .amadex-segment-remove-btn:hover,
    .amadex-remove-segment-btn:hover {
        background: #FEE2E2;
        border-color: #DC2626;
        color: #DC2626;
    }

    .amadex-multi-city-mode .amadex-add-city-btn,
    .amadex-multi-city-mode .amadex-add-segment-btn,
    .amadex-multi-city-mode button.amadex-add-city-btn,
    .amadex-multi-city-mode button.amadex-add-segment-btn {
        display: flex !important;
        width: 100%;
        max-width: 100%;
        margin-top: 16px;
        margin-bottom: 0;
        margin-left: 0;
        margin-right: auto;
        padding: 14px 20px;
        background: #0E7D3F;
        color: #ffffff;
        border: none;
        border-radius: 16px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        box-shadow: 0 2px 8px rgba(14, 125, 63, 0.25);
        transition: all 0.3s ease;
        text-align: left;
    }

    .amadex-multi-city-mode .amadex-add-city-btn:hover,
    .amadex-multi-city-mode .amadex-add-segment-btn:hover,
    .amadex-multi-city-mode button.amadex-add-city-btn:hover,
    .amadex-multi-city-mode button.amadex-add-segment-btn:hover {
        background: #0a6835;
        box-shadow: 0 4px 12px rgba(14, 125, 63, 0.35);
        transform: translateY(-1px);
    }

    .amadex-add-city-icon,
    .amadex-add-segment-icon {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        border: 2px solid #ffffff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        color: #ffffff;
        line-height: 1;
    }

    .amadex-multi-city-mode .amadex-flight-segment .amadex-search-fields {
        display: flex;
        flex-direction: column;
        gap: 0;
        border: none;
        background: transparent;
        padding: 0;
        width: 100%;
        max-width: 100%;
        min-height: auto;
    }

    .amadex-multi-city-mode .amadex-flight-segment .amadex-modern-field {
        padding: 14px 0;
        border: none;
        background: transparent;
        margin: 0;
        min-height: auto;
    }

    .amadex-multi-city-mode .amadex-flight-segment .amadex-modern-field:hover {
        background: transparent;
    }

    .amadex-multi-city-mode .amadex-flight-segment .amadex-modern-field.field-active {
        background: transparent;
        border: none;
    }

    /* Field styling inside segments - ONLY in multi-city mode */
    .amadex-multi-city-mode .amadex-flight-segment .amadex-field-label {
        font-size: 12px;
        font-weight: 500;
        color: #0E7D3F;
        margin-bottom: 6px;
    }

    .amadex-multi-city-mode .amadex-flight-segment .amadex-field-value {
        font-size: 16px;
        font-weight: 600;
        color: #000000;
    }

    .amadex-multi-city-mode .amadex-flight-segment .amadex-field-description {
        font-size: 13px;
        color: #6B7280;
    }

    /* Swap button inside segments - ONLY in multi-city mode */
    .amadex-multi-city-mode .amadex-flight-segment .amadex-swap-button {
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        width: 36px;
        height: 36px;
        min-width: 36px;
        border-radius: 50%;
        background: #0E7D3F;
        border: 2px solid #ffffff;
        box-shadow: 0 2px 8px rgba(14, 125, 63, 0.3);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Round Trip and One Way - Show normal fields (Mobile Vertical) */
    .amadex-modern-form:not(.amadex-multi-city-mode) .amadex-search-fields {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        border: none !important;
        background: transparent !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Ensure all fields are visible */
    .amadex-modern-form:not(.amadex-multi-city-mode) .amadex-modern-field {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .amadex-multi-city-mode .amadex-travellers-field {
        margin-top: 20px;
        padding: 16px 0;
        background: transparent;
        border: none;
    }

    /* Search button for multi-city */
    .amadex-multi-city-mode button.amadex-search-btn {
        margin-top: 24px;
        width: 100%;
        max-width: 100%;
    }

    /* Hide main swap button in multi-city mode */
    .amadex-multi-city-mode > .amadex-swap-button:not(.amadex-flight-segment .amadex-swap-button) {
        display: none;
    }
}

/* ==================== iPhone SE and Smaller (375px and below) ==================== */
@media only screen and (max-width: 375px) {
    .amadex-trip-label {
        padding: 8px 14px !important;
        font-size: 12px !important;
    }

    .amadex-field-label {
        font-size: 11px !important;
        display: block !important;
        visibility: visible !important;
    }

    .amadex-field-value {
        font-size: 14px !important;
        display: block !important;
        visibility: visible !important;
    }

    .amadex-field-description {
        font-size: 12px !important;
        display: block !important;
        visibility: visible !important;
    }

    button.amadex-search-btn {
        height: 48px !important;
        font-size: 14px !important;
    }

    .amadex-swap-button {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
    }

    .amadex-swap-button svg,
    .amadex-swap-button i {
        font-size: 14px !important;
    }
    
    /* Ensure all fields are visible on small screens */
    .amadex-modern-field,
    #origin-field,
    #destination-field,
    #departure-field,
    #return-field,
    #travellers-field {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

    /* Multi-city adjustments for small screens - ONLY in multi-city mode */
    .amadex-multi-city-mode .amadex-flight-segment {
        padding: 12px 0;  }

    .amadex-multi-city-mode .amadex-segment-title {
        font-size: 13px;
    }

    .amadex-multi-city-mode .amadex-segment-remove-btn,
    .amadex-multi-city-mode .amadex-remove-segment-btn {
        /* width: 24px; */
        height: 24px;
        font-size: 14px;
        padding: 20px;
    }

    .amadex-multi-city-mode .amadex-add-city-btn,
    .amadex-multi-city-mode .amadex-add-segment-btn {
        padding: 12px 16px;
        font-size: 14px;
    }

    .amadex-multi-city-mode .amadex-flight-segment .amadex-field-label {
        font-size: 10px;
    }

    .amadex-multi-city-mode .amadex-flight-segment .amadex-field-value {
        font-size: 16px;
        font-weight: 500;
    }

    .amadex-multi-city-mode .amadex-flight-segment .amadex-field-description {
        font-size: 11px;
    }

    .amadex-multi-city-mode .amadex-flight-segment .amadex-swap-button {
        width: 46px;
        height: 46px;
        min-width: 30px;
    }

    .amadex-modern-field.amadex-date-field.subtle-disabled.field-disabled.return-promo #return-display {
        opacity: 0.2 !important;
    }
    span.amadex-switch-slider {
        display: none;
    }
    

/* ==================== DESKTOP - HIDE MULTI-CITY ELEMENTS IN NON-MULTI-CITY MODES (≥1025px) ==================== */
/* EXPERT/GOD MODE: Updated from 769px to 1025px to isolate from tablets */
@media only screen and (min-width: 1025px) {
    /* Show multi-city elements ONLY when multi-city mode is active */
    .amadex-multi-city-mode .amadex-multi-city-flights {
        display: flex;
    }

    .amadex-multi-city-mode .amadex-flight-segment {
        display: block;
    }

    .amadex-multi-city-mode > .amadex-search-fields:not(.amadex-flight-segment .amadex-search-fields) {
        display: none !important;
    }

    /* Show regular fields in Round Trip and One Way modes - Desktop Grid */
    .amadex-modern-form:not(.amadex-multi-city-mode) .amadex-search-fields {
        display: grid !important;
        grid-template-columns: 1.5fr 1.5fr 1fr 1fr 1.2fr !important;
        gap: 0 !important;
        /* border: 1px solid #E8E8E8 !important; */
        border-radius: 16px !important;
        background: #ffffff !important;
        width: 86% !important;
        max-width: 86% !important;
        min-height: 60px !important;
    }
    
    /* Ensure all fields are visible in non-multi-city modes */
    .amadex-modern-form:not(.amadex-multi-city-mode) .amadex-modern-field {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}


.amadex-disclaimer-note {
    display: none!important;
}