/* ============================================
   bydhi — Premium Light Form / Dark Results
   ============================================ */

:root {
    --gold: #B81319;
    --gold-hover: #961015;
    --primary: var(--gold);
    --bg-light: #FFFFFF;
    --bg-subtle: #F8FAFC;
    --bg-dark: #0F172A;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --border: #E2E8F0;
    --radius: 12px;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.bydhi-exceljet-plugin {
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--text-main);
    line-height: 1.5;
}

/* --- Form Header --- */
.bydhi-exceljet-plugin .bydhi-form-header {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bydhi-exceljet-plugin .bydhi-form-title {
    font-weight: 700;
    margin: 0;
    color: var(--text-main);
    line-height: 1.2;
}

.bydhi-exceljet-plugin .bydhi-form-desc {
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* --- Booking Card --- */
.bydhi-exceljet-plugin .bydhi-booking-card {
    background: var(--bg-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: visible; /* Crucial for dropdowns */
    max-width: 1200px;
    margin: 0 auto 40px;
}

.bydhi-exceljet-plugin .bydhi-booking-card__header {
    padding: 20px 30px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-subtle);
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
}

.bydhi-exceljet-plugin .bydhi-booking-card__tabs {
    display: flex; gap: 10px;
}

.bydhi-exceljet-plugin .bydhi-tab-btn {
    padding: 10px 20px; border-radius: 30px; border: 1px solid var(--border);
    background: #FFF; color: var(--text-muted); font-weight: 600; font-size: 0.85rem;
    cursor: pointer; transition: 0.2s; display: flex; align-items: center; gap: 8px;
}

.bydhi-exceljet-plugin .bydhi-tab-btn.bydhi-active {
    background: var(--primary); color: #FFF; border-color: var(--primary);
}

/* --- Form Fields --- */
.bydhi-exceljet-plugin .bydhi-route-block {
    padding: 30px;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.bydhi-exceljet-plugin .bydhi-route-block__label {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.8rem; font-weight: 700; color: var(--text-muted);
    text-transform: uppercase; margin-bottom: 20px;
}

.bydhi-exceljet-plugin .bydhi-route-block__fields {
    display: flex; align-items: flex-end; gap: 15px;
}

.bydhi-exceljet-plugin .bydhi-field-group {
    flex: 1; position: relative;
}

.bydhi-exceljet-plugin .bydhi-field-group--date { flex: 0 0 180px; }
.bydhi-exceljet-plugin .bydhi-field-group--time { flex: 0 0 140px; }
.bydhi-exceljet-plugin .bydhi-field-group--passengers { flex: 0 0 150px; }

.bydhi-exceljet-plugin .bydhi-field-group label {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.7rem; font-weight: 800; color: var(--text-muted);
    text-transform: uppercase; margin-bottom: 8px;
}

.bydhi-exceljet-plugin .bydhi-input {
    width: 100%; padding: 12px 16px; border: 1.5px solid var(--border);
    border-radius: 8px; font-size: 0.95rem; color: var(--text-main);
    background: #FFF; transition: 0.2s; outline: none;
}

.bydhi-exceljet-plugin .bydhi-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1); }

/* --- Autocomplete Dropdown --- */
.bydhi-exceljet-plugin .bydhi-autocomplete-wrapper { position: relative; }

.bydhi-exceljet-plugin .bydhi-autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: max-content;
    min-width: 100%;
    max-width: min(520px, 85vw);
    background: #FFF;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    z-index: 9999;
    max-height: 280px;
    overflow-y: auto;
    display: none;
    margin-top: 5px;
}

.bydhi-exceljet-plugin .bydhi-autocomplete-dropdown.bydhi-open {
    display: block;
}

.bydhi-exceljet-plugin .bydhi-autocomplete-item {
    padding: 10px 14px;
    cursor: pointer;
    transition: 0.2s;
    border-bottom: 1px solid var(--bg-subtle);
    display: flex;
    align-items: center;
    gap: 12px;
}

.bydhi-exceljet-plugin .bydhi-autocomplete-item:last-child { border-bottom: none; }
.bydhi-exceljet-plugin .bydhi-autocomplete-item:hover { background: var(--bg-subtle); }

.bydhi-exceljet-plugin .bydhi-autocomplete-item__flag-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 18px;
    flex-shrink: 0;
}

.bydhi-exceljet-plugin .bydhi-autocomplete-flag {
    width: 22px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
    border: 1px solid rgba(0,0,0,0.08);
}

.bydhi-exceljet-plugin .bydhi-autocomplete-flag-fallback {
    font-size: 14px;
}

.bydhi-exceljet-plugin .bydhi-autocomplete-item__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.bydhi-exceljet-plugin .bydhi-autocomplete-item__name {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}

.bydhi-exceljet-plugin .bydhi-autocomplete-item__sub {
    font-size: 0.74rem;
    color: var(--text-muted);
    margin-top: 2px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bydhi-exceljet-plugin .bydhi-autocomplete-item__badge {
    background: var(--bg-subtle);
    color: var(--gold);
    font-weight: 800;
    font-size: 0.7rem;
    padding: 3px 7px;
    border-radius: 4px;
    border: 1px solid var(--border);
    white-space: nowrap;
    flex-shrink: 0;
}

/* --- Buttons --- */
.bydhi-exceljet-plugin .bydhi-swap-btn {
    background: var(--primary) !important;
    border: none;
    color: #FFF !important;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-bottom: 3px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(201, 168, 76, 0.3);
    z-index: 10;
}

.bydhi-exceljet-plugin .bydhi-swap-btn:hover {
    transform: rotate(180deg) scale(1.1);
    background: #000 !important;
}

.bydhi-exceljet-plugin .bydhi-swap-btn svg,
.bydhi-exceljet-plugin .bydhi-swap-btn i,
.bydhi-swap-btn svg,
.bydhi-swap-btn i {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    transform: none !important;
    padding: 0 !important;
    margin: 0 !important;
    stroke-width: 2.5 !important;
}

.bydhi-exceljet-plugin .bydhi-form-actions { padding: 25px 30px; text-align: center; }

.bydhi-exceljet-plugin .bydhi-submit-btn {
    background: var(--primary); color: #FFF; border: none;
    padding: 15px 40px; border-radius: 8px; font-weight: 700;
    display: flex; gap: 10px;
}

.bydhi-exceljet-plugin .bydhi-tab-btn {
    padding: 10px 20px; border-radius: 30px; border: 1px solid var(--border);
    background: #FFF; color: var(--text-muted); font-weight: 600; font-size: 0.85rem;
    cursor: pointer; transition: 0.2s; display: flex; align-items: center; gap: 8px;
}

.bydhi-exceljet-plugin .bydhi-tab-btn.bydhi-active {
    background: var(--primary); color: #FFF; border-color: var(--primary);
}

/* --- Form Fields --- */
.bydhi-exceljet-plugin .bydhi-route-block {
    padding: 30px;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.bydhi-exceljet-plugin .bydhi-route-block__label {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.8rem; font-weight: 700; color: var(--text-muted);
    text-transform: uppercase; margin-bottom: 20px;
}

.bydhi-exceljet-plugin .bydhi-route-block__fields {
    display: flex; align-items: flex-end; gap: 15px;
}

.bydhi-exceljet-plugin .bydhi-field-group {
    flex: 1; position: relative;
}

.bydhi-exceljet-plugin .bydhi-field-group--date { flex: 0 0 155px; }
.bydhi-exceljet-plugin .bydhi-field-group--time { flex: 0 0 100px; max-width: 105px; }
.bydhi-exceljet-plugin .bydhi-field-group--passengers { flex: 0 0 110px; }

.bydhi-exceljet-plugin .bydhi-field-group label {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.7rem; font-weight: 800; color: var(--text-muted);
    text-transform: uppercase; margin-bottom: 8px;
}

.bydhi-exceljet-plugin .bydhi-input {
    width: 100%; padding: 12px 16px; border: 1.5px solid var(--border);
    border-radius: 8px; font-size: 0.95rem; color: var(--text-main);
    background: #FFF; transition: 0.2s; outline: none;
}

.bydhi-exceljet-plugin .bydhi-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1); }

/* --- Autocomplete Dropdown --- */
.bydhi-exceljet-plugin .bydhi-field-group--airport {
    position: relative;
    z-index: 50;
}

.bydhi-exceljet-plugin .bydhi-field-group--airport:focus-within {
    z-index: 99999 !important;
}

.bydhi-exceljet-plugin .bydhi-autocomplete-wrapper { 
    position: relative;
    z-index: 100;
}

.bydhi-exceljet-plugin .bydhi-autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: max-content;
    min-width: 100%;
    max-width: min(520px, calc(100vw - 40px));
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22) !important;
    z-index: 999999 !important;
    max-height: 280px;
    overflow-y: auto;
    display: none;
    margin-top: 0;
}

.bydhi-exceljet-plugin .bydhi-autocomplete-dropdown.bydhi-open {
    display: block !important;
}

.bydhi-exceljet-plugin .bydhi-autocomplete-item {
    padding: 10px 14px;
    cursor: pointer;
    transition: 0.2s;
    border-bottom: 1px solid var(--bg-subtle, #f0f2f5);
    background: #ffffff !important;
    background-color: #ffffff !important;
    display: flex;
    align-items: center;
    gap: 12px;
}

.bydhi-exceljet-plugin .bydhi-autocomplete-item:last-child { border-bottom: none; }
.bydhi-exceljet-plugin .bydhi-autocomplete-item:hover { 
    background: #f4f6f8 !important; 
    background-color: #f4f6f8 !important; 
}

.bydhi-exceljet-plugin .bydhi-autocomplete-item__flag-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 18px;
    flex-shrink: 0;
}

.bydhi-exceljet-plugin .bydhi-autocomplete-flag {
    width: 22px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
    border: 1px solid rgba(0,0,0,0.08);
}

.bydhi-exceljet-plugin .bydhi-autocomplete-flag-fallback {
    font-size: 14px;
}

.bydhi-exceljet-plugin .bydhi-autocomplete-item__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.bydhi-exceljet-plugin .bydhi-autocomplete-item__name {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}

.bydhi-exceljet-plugin .bydhi-autocomplete-item__sub {
    font-size: 0.74rem;
    color: var(--text-muted);
    margin-top: 2px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bydhi-exceljet-plugin .bydhi-autocomplete-item__badge {
    background: var(--bg-subtle);
    color: var(--gold);
    font-weight: 800;
    font-size: 0.7rem;
    padding: 3px 7px;
    border-radius: 4px;
    border: 1px solid var(--border);
    white-space: nowrap;
    flex-shrink: 0;
}

/* --- Buttons --- */
.bydhi-exceljet-plugin .bydhi-swap-btn {
    background: var(--primary) !important;
    border: none;
    color: #FFF !important;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-bottom: 3px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(201, 168, 76, 0.3);
    z-index: 10;
}

.bydhi-exceljet-plugin .bydhi-swap-btn:hover {
    transform: rotate(180deg) scale(1.1);
    background: #000 !important;
}

.bydhi-exceljet-plugin .bydhi-swap-btn svg,
.bydhi-exceljet-plugin .bydhi-swap-btn i,
.bydhi-swap-btn svg,
.bydhi-swap-btn i {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    transform: none !important;
    padding: 0 !important;
    margin: 0 !important;
    stroke-width: 2.5 !important;
}

.bydhi-exceljet-plugin .bydhi-form-actions { padding: 25px 30px; text-align: center; }

.bydhi-exceljet-plugin .bydhi-submit-btn {
    background: var(--primary); color: #FFF; border: none;
    padding: 15px 40px; border-radius: 8px; font-weight: 700;
    font-size: 1rem; cursor: pointer; transition: 0.3s;
    display: inline-flex; align-items: center; gap: 10px;
}
.bydhi-exceljet-plugin .bydhi-submit-btn:hover { background: var(--gold-hover); transform: translateY(-2px); }

/* --- PAX Controls --- */
.bydhi-exceljet-plugin .bydhi-pax-control {
    display: flex; align-items: center; border: 1.5px solid var(--border);
    border-radius: 8px; overflow: hidden; background: #FFF; height: 46px;
}

.bydhi-exceljet-plugin .bydhi-pax-count {
    flex: 1;
    min-width: 0;
    width: 100%;
    border: none !important;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-main);
    background: transparent;
    padding: 0 4px;
    height: 100%;
    outline: none !important;
    box-shadow: none !important;
    -moz-appearance: textfield;
}

.bydhi-exceljet-plugin .bydhi-pax-count::-webkit-outer-spin-button,
.bydhi-exceljet-plugin .bydhi-pax-count::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.bydhi-exceljet-plugin .bydhi-pax-btn {
    background: var(--bg-subtle); border: none; width: 28px; height: 100%;
    padding: 0;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    color: var(--text-main); transition: 0.2s;
    flex-shrink: 0;
}
.bydhi-exceljet-plugin .bydhi-pax-btn:hover { background: var(--border); }
.bydhi-exceljet-plugin .bydhi-pax-btn svg,
.bydhi-exceljet-plugin .bydhi-pax-btn i {
    width: 14px;
    height: 14px;
    stroke-width: 2px;
}

/* --- Custom Time Dialer Popup --- */
.bydhi-exceljet-plugin .bydhi-field-group--time {
    position: relative;
}

.bydhi-exceljet-plugin .bydhi-time-input {
    cursor: pointer !important;
    background-color: #FFF !important;
}

.bydhi-time-dialer-popup {
    position: absolute;
    z-index: 999999999 !important;
    background: #0B132B;
    border: 1.5px solid #B81319;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45);
    padding: 14px;
    width: 250px;
    color: #FFF;
    font-family: inherit;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
    animation: bydhiFadeIn 0.2s ease-out;
}

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

.bydhi-dialer-header {
    text-align: center;
    background: rgba(184, 19, 25, 0.12);
    border-radius: 8px;
    padding: 8px;
    border: 1px solid rgba(184, 19, 25, 0.35);
}

.bydhi-dialer-preview {
    font-size: 1.25rem;
    font-weight: 800;
    color: #B81319;
    letter-spacing: 1px;
}

.bydhi-dialer-cols {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    height: 125px;
}

.bydhi-dialer-col {
    flex: 1;
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 2px;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.bydhi-dialer-col::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.bydhi-dialer-colon {
    font-weight: 800;
    font-size: 1.2rem;
    color: #C9A84C;
    padding: 0 2px;
}

.bydhi-dialer-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid transparent;
    color: #E2E8F0;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 5px 0;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.bydhi-dialer-item:hover {
    background: rgba(184, 19, 25, 0.25);
    color: #FFF;
}

.bydhi-dialer-item.active {
    background: #B81319 !important;
    color: #FFF !important;
    font-weight: 800;
    border-color: #B81319;
}

.bydhi-dialer-period-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    width: 50px;
    height: 100%;
}

.bydhi-dialer-period-btn {
    padding: 8px 0;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: #94A3B8;
    border: 1px solid transparent;
    cursor: pointer;
    text-align: center;
    transition: 0.2s;
    outline: none;
}

.bydhi-dialer-period-btn:hover {
    color: #FFF;
    background: rgba(255, 255, 255, 0.15);
}

.bydhi-dialer-period-btn.active {
    background: #B81319 !important;
    color: #FFF !important;
    font-weight: 800;
}

.bydhi-dialer-done-btn {
    width: 100%;
    background: #B81319;
    color: #FFF;
    border: none;
    border-radius: 6px;
    padding: 8px 0;
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bydhi-dialer-done-btn:hover {
    background: #e5bd54;
}

/* --- Results Section (Premium Dark) --- */
.bydhi-exceljet-plugin .bydhi-results-section {
    background: var(--bg-dark); color: #FFF; padding: 60px 40px;
    border-radius: var(--radius); margin-top: 40px;
}

.bydhi-exceljet-plugin .bydhi-charters-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.bydhi-exceljet-plugin .bydhi-charter-card {
    background: #1E293B; border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px; overflow: hidden;
    max-width: 400px; /* Prevent over-stretching */
    width: 100%;
    margin: 0 auto;
}

.bydhi-exceljet-plugin .bydhi-charter-card__image { height: 200px; position: relative; }
.bydhi-exceljet-plugin .bydhi-charter-card__image img { width: 100%; height: 100%; object-fit: cover; }
.bydhi-exceljet-plugin .bydhi-charter-card__image::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to bottom, transparent, #1E293B);
}

.bydhi-exceljet-plugin .bydhi-charter-card__badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gold);
    color: #000;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 30px;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.bydhi-exceljet-plugin .bydhi-charter-card__content { padding: 25px; }
.bydhi-exceljet-plugin .bydhi-charter-card__header h4 { font-size: 1.4rem; margin: 0; color: #FFF; }
.bydhi-exceljet-plugin .bydhi-charter-card__header p { color: var(--gold); font-size: 0.9rem; margin: 5px 0 20px; font-weight: 600; }

.bydhi-exceljet-plugin .bydhi-charter-card__stats {
    display: grid !important; 
    grid-template-columns: repeat(3, 1fr) !important; 
    gap: 12px !important;
    margin-bottom: 25px; 
    padding-top: 20px; 
    border-top: 1px solid rgba(255,255,255,0.05);
}

.bydhi-exceljet-plugin .bydhi-stat-item {
    display: flex;
    flex-direction: column; /* Stack label/value for more space horizontally */
    align-items: flex-start;
    gap: 5px;
}

.bydhi-exceljet-plugin .bydhi-stat-item i {
    width: 14px;
    height: 14px;
    color: var(--gold);
    margin-bottom: 2px;
}

.bydhi-exceljet-plugin .bydhi-stat-item label { 
    color: #94A3B8; 
    font-size: 10px !important; 
    text-transform: uppercase; 
    display: block; 
    margin-bottom: 0px; 
    letter-spacing: 0.3px; 
}

.bydhi-exceljet-plugin .bydhi-stat-item value { 
    font-weight: 700; 
    font-size: 11px !important; 
    color: #F1F5F9; 
    white-space: nowrap; 
}

.bydhi-exceljet-plugin .bydhi-charter-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.bydhi-exceljet-plugin .bydhi-charter-card__quote {
    color: var(--gold);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Map --- */
.bydhi-iata-label {
    background: var(--gold); color: #FFF; padding: 3px 8px;
    border-radius: 6px; font-weight: 800; font-size: 11px;
    border: 1.5px solid #000;
}

/* Responsive */
@media (max-width: 1024px) {
    .bydhi-exceljet-plugin .bydhi-route-block__fields { flex-wrap: wrap; }
    .bydhi-exceljet-plugin .bydhi-field-group { flex: 1 1 calc(50% - 15px); }
    .bydhi-exceljet-plugin .bydhi-field-group--passengers {
        flex: 0 0 calc(50% - 15px) !important;
        max-width: calc(50% - 15px) !important;
    }
    .bydhi-exceljet-plugin .bydhi-field-group--to .bydhi-autocomplete-dropdown,
    .bydhi-exceljet-plugin .bydhi-field-group:nth-of-type(3) .bydhi-autocomplete-dropdown {
        left: auto !important;
        right: 0 !important;
    }
    .bydhi-exceljet-plugin .bydhi-swap-btn { display: none; }
}

@media (max-width: 640px) {
    .bydhi-exceljet-plugin .bydhi-field-group { flex: 1 1 calc(50% - 8px); }
    .bydhi-exceljet-plugin .bydhi-field-group--passengers {
        flex: 0 0 calc(50% - 8px) !important;
        max-width: calc(50% - 8px) !important;
    }
    .bydhi-exceljet-plugin .bydhi-booking-card__tabs {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    .bydhi-exceljet-plugin .bydhi-tab-btn {
        padding: 8px 12px;
        font-size: 0.7rem;
        flex: 1 1 auto;
        justify-content: center;
        gap: 5px;
    }
    .bydhi-exceljet-plugin .bydhi-tab-btn i {
        width: 14px;
        height: 14px;
    }
    .bydhi-exceljet-plugin .bydhi-booking-card {
        margin-left: 15px !important;
        margin-right: 15px !important;
    }
    .bydhi-exceljet-plugin .bydhi-booking-card__header {
        padding: 15px 15px !important;
    }
    .bydhi-exceljet-plugin .bydhi-route-block {
        padding: 20px 15px !important;
    }
    .bydhi-exceljet-plugin .bydhi-form-actions {
        padding: 20px 15px !important;
    }
    .bydhi-exceljet-plugin .bydhi-results-section {
        padding: 30px 15px !important;
    }
    .bydhi-exceljet-plugin .bydhi-charters-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
        padding: 0 10px !important;
    }

    /* Smaller Charter Cards on Mobile */
    .bydhi-exceljet-plugin .bydhi-charter-card {
        max-width: 100% !important;
    }
    .bydhi-exceljet-plugin .bydhi-charter-card__image {
        height: 110px;
    }
    .bydhi-exceljet-plugin .bydhi-charter-card__content {
        padding: 12px;
    }
    .bydhi-exceljet-plugin .bydhi-charter-card__header h4 {
        font-size: 0.85rem;
    }
    .bydhi-exceljet-plugin .bydhi-charter-card__header p {
        font-size: 0.7rem;
        margin-bottom: 10px;
    }
    .bydhi-exceljet-plugin .bydhi-charter-card__badge {
        font-size: 0.55rem;
        padding: 3px 8px;
        top: 10px;
        right: 10px;
    }
    .bydhi-exceljet-plugin .bydhi-charter-card__stats {
        gap: 4px !important;
        margin-bottom: 12px;
        padding-top: 10px;
    }
    .bydhi-exceljet-plugin .bydhi-stat-item label {
        font-size: 6px !important;
        letter-spacing: 0;
    }
    .bydhi-exceljet-plugin .bydhi-stat-item value {
        font-size: 8px !important;
    }
    .bydhi-exceljet-plugin .bydhi-charter-card__footer {
        padding-top: 8px;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
    .bydhi-exceljet-plugin .bydhi-charter-card__quote {
        font-size: 0.65rem;
        text-align: center;
        letter-spacing: 0.2px;
        line-height: 1.2;
    }

    .bydhi-exceljet-plugin .bydhi-submit-btn,
    .bydhi-exceljet-plugin .bydhi-confirm-btn,
    .bydhi-exceljet-plugin .bydhi-add-route-btn {
        padding: 2px 20px !important;
        font-size: 0.7rem !important;
        width: 100%;
        justify-content: center;
        min-height: 28px;
    }
}

/* --- Modal Overlay & Popups --- */
#bydhi-modalOverlay, #bydhi-successOverlay, #bydhi-searchCaptureModal {
    position: fixed !important;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
    z-index: 100000 !important;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.bydhi-exceljet-plugin .bydhi-user-modal {
    background: #0F172A !important; 
    width: 95% !important; 
    max-width: 440px !important; 
    border-radius: 12px !important;
    position: relative !important; 
    overflow: visible !important; 
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.8) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    margin: auto !important;
    padding: 9px !important; /* User requested 9px padding in all side */
}

.bydhi-exceljet-plugin .bydhi-ej-close-modal {
    position: absolute !important; 
    top: 10px !important; 
    right: 10px !important; 
    background: #1F2937 !important; /* Circular dark background */
    border: 1px solid rgba(255,255,255,0.1) !important; 
    color: #FFF !important; 
    cursor: pointer !important; 
    width: 24px !important; 
    height: 24px !important;
    padding: 0 !important;
    display: flex; 
    align-items: center !important; 
    justify-content: center !important;
    border-radius: 50% !important; /* Circular form */
    transition: 0.2s ease !important; 
    z-index: 9999 !important;
    box-shadow: none !important;
}

.bydhi-exceljet-plugin .bydhi-ej-close-modal i { 
    width: 14px !important; 
    height: 14px !important; 
    stroke-width: 3px !important; 
}

.bydhi-exceljet-plugin .bydhi-ej-close-modal:hover { 
    background: #EF4444 !important; 
    border-color: #EF4444 !important;
    transform: scale(1.1) !important; 
}

.bydhi-exceljet-plugin .bydhi-user-modal h3 {
    color: #FFF !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    margin: 0 0 5px !important;
}

.bydhi-exceljet-plugin .bydhi-user-modal p {
    color: #94A3B8 !important;
    font-size: 0.8rem !important;
    margin-bottom: 20px !important;
}

.bydhi-exceljet-plugin .bydhi-modal-summary {
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.05) !important;
    padding: 12px 15px !important;
    border-radius: 8px !important;
    margin-bottom: 20px !important;
    font-size: 0.8rem !important;
    color: #E2E8F0 !important;
}

.bydhi-exceljet-plugin .bydhi-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.bydhi-exceljet-plugin .bydhi-form-group { margin-bottom: 15px; }
.bydhi-exceljet-plugin .bydhi-form-group.bydhi-full { grid-column: span 2; }

.bydhi-exceljet-plugin .bydhi-user-modal label {
    display: flex; align-items: center; gap: 8px; color: var(--gold);
    font-size: 0.65rem; font-weight: 800; text-transform: uppercase; margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.bydhi-exceljet-plugin .bydhi-user-modal input,
.bydhi-exceljet-plugin .bydhi-user-modal textarea {
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    color: #FFF !important;
    width: 100% !important;
    padding: 10px 14px !important;
    border-radius: 8px !important;
    font-size: 0.85rem !important;
}

.bydhi-exceljet-plugin .bydhi-user-modal input:focus,
.bydhi-exceljet-plugin .bydhi-user-modal textarea:focus {
    border-color: var(--gold) !important;
    background: rgba(255,255,255,0.06) !important;
    outline: none;
}

.bydhi-exceljet-plugin .bydhi-confirm-btn {
    width: 100%; background: var(--gold) !important; color: #000 !important;
    font-weight: 800; font-size: 1rem; padding: 14px !important;
    border-radius: 8px !important; border: none; cursor: pointer;
    margin-top: 10px; transition: 0.3s;
}

.bydhi-exceljet-plugin .bydhi-confirm-btn:hover { background: #FFF !important; }

.bydhi-exceljet-plugin .bydhi-success-modal {
    background: #0F172A !important;
    text-align: center;
    max-width: 450px;
    width: 90%;
    padding: 40px 30px !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.8) !important;
    margin: auto;
}

.bydhi-exceljet-plugin .bydhi-success-modal h3 { color: #FFF !important; margin-bottom: 10px; font-size: 1.6rem; }
.bydhi-exceljet-plugin .bydhi-success-modal p { color: #94A3B8 !important; margin-bottom: 25px; font-size: 0.95rem; line-height: 1.6; }

.bydhi-exceljet-plugin .bydhi-success-icon {
    width: 64px;
    height: 64px;
    background: rgba(34, 197, 94, 0.15) !important;
    color: #22C55E !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.bydhi-exceljet-plugin .bydhi-success-icon i { width: 32px; height: 32px; }

@media (max-width: 640px) {
    .bydhi-exceljet-plugin .bydhi-user-modal .bydhi-form-grid { grid-template-columns: 1fr; }
    .bydhi-exceljet-plugin .bydhi-user-modal .bydhi-form-group.bydhi-full { grid-column: span 1; }
    .bydhi-exceljet-plugin .bydhi-user-modal { padding: 30px 20px; }
}

/* ============================================
   Return Route Block — Round Trip
   ============================================ */

/* Smooth slide animation container */
.bydhi-exceljet-plugin #bydhi-returnRouteBlock {
    overflow: hidden;
    border-left: 3px solid var(--gold);
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.04) 0%, rgba(201, 168, 76, 0.01) 100%);
    position: relative;
}

/* Subtle top separator connector line */
.bydhi-exceljet-plugin #bydhi-returnRouteBlock::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--gold), transparent);
    opacity: 0.4;
}

/* "Return Flight" label — gold tinted */
.bydhi-exceljet-plugin .bydhi-return-label {
    color: var(--gold) !important;
    font-size: 0.8rem !important;
}

.bydhi-exceljet-plugin .bydhi-return-label i {
    color: var(--gold);
    width: 15px;
    height: 15px;
}

/* "Auto-synced" pill badge — airports only */
.bydhi-exceljet-plugin .bydhi-return-badge {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--gold);
    background: rgba(201, 168, 76, 0.12);
    border: 1px solid rgba(201, 168, 76, 0.3);
    padding: 3px 10px 3px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.bydhi-exceljet-plugin .bydhi-return-badge i {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
}

/* Helper hint below return pax control */
.bydhi-exceljet-plugin .bydhi-pax-hint {
    display: block;
    font-size: 0.62rem;
    color: var(--text-muted);
    margin-top: 5px;
    font-style: italic;
}

/* Readonly inputs in the return block — dimmed to show they are auto-filled */
.bydhi-exceljet-plugin #bydhi-returnRouteBlock .bydhi-airport-input[readonly] {
    background: var(--bg-subtle) !important;
    color: var(--text-muted) !important;
    cursor: default;
    border-color: var(--border);
}

.bydhi-exceljet-plugin #bydhi-returnRouteBlock .bydhi-airport-input[readonly]:focus {
    border-color: var(--border) !important;
    box-shadow: none !important;
}

/* Return block PAX is now freely adjustable — no locks */
.bydhi-exceljet-plugin #bydhi-returnRouteBlock .bydhi-pax-control {
    background: #FFF !important;
    border-color: var(--border) !important;
    pointer-events: auto !important;
    opacity: 1;
}

.bydhi-exceljet-plugin #bydhi-returnRouteBlock .bydhi-pax-btn {
    display: flex;
}

/* Subtle gold ring when return pax differs from outbound */
.bydhi-exceljet-plugin #bydhi-returnRouteBlock .bydhi-pax-control.pax-adjusted {
    border-color: var(--gold) !important;
    box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.15);
}

/* Return Block Pax Synced Display */
.bydhi-exceljet-plugin .bydhi-pax-synced-display {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    background: var(--bg-subtle);
    height: 46px;
    padding: 0 15px;
    gap: 8px;
    color: var(--text-muted);
}

.bydhi-exceljet-plugin .bydhi-pax-sync-icon {
    width: 14px;
    height: 14px;
    color: var(--gold);
}

.bydhi-exceljet-plugin .bydhi-pax-synced-count {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-main);
}

.bydhi-exceljet-plugin .bydhi-pax-synced-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Disabled swap button in return block */
.bydhi-exceljet-plugin .bydhi-return-swap-disabled {
    opacity: 0.35 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.bydhi-exceljet-plugin .bydhi-return-swap-disabled:hover {
    transform: none !important;
    background: var(--primary) !important;
}

/* Multi-Trip Leg Buttons */
.bydhi-exceljet-plugin .bydhi-route-block__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 0 5px;
}

.bydhi-exceljet-plugin .bydhi-route-block__label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748B;
}

.bydhi-exceljet-plugin .bydhi-remove-leg {
    background: transparent !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
    padding: 6px 14px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    line-height: 1;
}

.bydhi-exceljet-plugin .bydhi-remove-leg:hover {
    background: rgba(239, 68, 68, 0.05) !important;
    border-color: #ef4444 !important;
}

.bydhi-exceljet-plugin .bydhi-remove-leg svg {
    width: 14px;
    height: 14px;
}

.bydhi-exceljet-plugin .bydhi-add-route-wrapper {
    display: flex;
    justify-content: flex-end;
    margin: 25px 0;
    padding-right: 35px; /* Aligns with the Remove button above */
}

.bydhi-exceljet-plugin .bydhi-add-route-btn {
    background: var(--ej-primary) !important;
    color: #FFF !important;
    border: none !important;
    padding: 12px 24px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    border-radius: var(--ej-radius) !important;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.bydhi-exceljet-plugin .bydhi-add-route-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.bydhi-exceljet-plugin .bydhi-add-route-btn svg {
    width: 18px;
    height: 18px;
}

/* --- Flatpickr Luxury Theme Overrides --- */
.flatpickr-calendar {
    background: #0B132B !important;
    border: 1.5px solid #B81319 !important;
    border-radius: 12px !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.65) !important;
    z-index: 99999999 !important;
    font-family: inherit !important;
    color: #FFF !important;
}

.flatpickr-calendar .flatpickr-months,
.flatpickr-calendar .flatpickr-innerContainer,
.flatpickr-calendar .flatpickr-rDays,
.flatpickr-calendar .flatpickr-days,
.flatpickr-calendar .dayContainer {
    background: #0B132B !important;
}

.flatpickr-calendar .flatpickr-month {
    background: #0B132B !important;
    color: #B81319 !important;
    fill: #B81319 !important;
    height: 40px !important;
}

.flatpickr-calendar .flatpickr-current-month {
    color: #FFF !important;
    padding-top: 4px !important;
}

.flatpickr-calendar .flatpickr-current-month select.flatpickr-monthDropdown-months,
.flatpickr-calendar .flatpickr-current-month input.cur-year,
.flatpickr-calendar .flatpickr-current-month select {
    background: transparent !important;
    color: #B81319 !important;
    border: none !important;
    box-shadow: none !important;
    padding: 2px 8px !important;
    margin: 0 !important;
    font-weight: 800 !important;
    font-size: 15px !important;
    height: auto !important;
    line-height: normal !important;
    border-radius: 4px !important;
    display: inline-block !important;
    width: auto !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.flatpickr-calendar .flatpickr-current-month select.flatpickr-monthDropdown-months:hover,
.flatpickr-calendar .flatpickr-current-month input.cur-year:hover {
    background: rgba(184, 19, 25, 0.15) !important;
}

.flatpickr-calendar .flatpickr-current-month select option {
    background: #0B132B !important;
    color: #FFF !important;
}

/* Prev / Next month buttons */
.flatpickr-calendar .flatpickr-prev-month, 
.flatpickr-calendar .flatpickr-next-month {
    color: #B81319 !important;
    fill: #B81319 !important;
    padding: 6px 10px !important;
}

.flatpickr-calendar .flatpickr-prev-month svg, 
.flatpickr-calendar .flatpickr-next-month svg {
    stroke: #B81319 !important;
    fill: #B81319 !important;
    width: 14px !important;
    height: 14px !important;
}

.flatpickr-calendar .flatpickr-prev-month:hover svg, 
.flatpickr-calendar .flatpickr-next-month:hover svg {
    stroke: #FFF !important;
    fill: #FFF !important;
}

/* Fix year input visibility */
.flatpickr-calendar .numInputWrapper {
    display: inline-block !important;
    width: 60px !important;
}

.flatpickr-calendar .numInputWrapper input.cur-year {
    color: #B81319 !important;
    background: transparent !important;
    border: none !important;
}

.flatpickr-calendar .numInputWrapper span {
    display: none !important;
}

/* Weekday labels */
.flatpickr-calendar span.flatpickr-weekday {
    background: #0B132B !important;
    color: #94A3B8 !important;
    font-weight: 700 !important;
    font-size: 11px !important;
}

/* Calendar Days */
.flatpickr-calendar .flatpickr-day {
    color: #E2E8F0 !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    border: 1px solid transparent !important;
    transition: all 0.15s ease !important;
}

.flatpickr-calendar .flatpickr-day:hover,
.flatpickr-calendar .flatpickr-day:focus {
    background: rgba(184, 19, 25, 0.25) !important;
    color: #FFF !important;
    border-color: rgba(184, 19, 25, 0.4) !important;
}

.flatpickr-calendar .flatpickr-day.today {
    border-color: #B81319 !important;
    color: #B81319 !important;
    background: rgba(184, 19, 25, 0.12) !important;
}

.flatpickr-calendar .flatpickr-day.selected,
.flatpickr-calendar .flatpickr-day.startRange,
.flatpickr-calendar .flatpickr-day.endRange {
    background: #B81319 !important;
    color: #FFF !important;
    font-weight: 800 !important;
    border-color: #B81319 !important;
}

.flatpickr-calendar .flatpickr-day.prevMonthDay,
.flatpickr-calendar .flatpickr-day.nextMonthDay,
.flatpickr-calendar .flatpickr-day.flatpickr-disabled,
.flatpickr-calendar .flatpickr-day.flatpickr-disabled:hover {
    color: #334155 !important;
    background: transparent !important;
    border-color: transparent !important;
}

/* Flatpickr arrow tips */
.flatpickr-calendar.arrowTop:before,
.flatpickr-calendar.arrowTop:after {
    border-bottom-color: #0B132B !important;
}
.flatpickr-calendar.arrowBottom:before,
.flatpickr-calendar.arrowBottom:after {
    border-top-color: #0B132B !important;
}

.bydhi-charters-section__title,
.bydhi-map-section__header h3 {
    text-align: center;
    padding: 30px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* Thank You / Confirmation Page Styles */
.bydhi-thankyou-wrapper {
    max-width: 700px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.bydhi-thankyou-container {
    background: #0F172A;
    border: 1px solid #B81319;
    border-radius: 16px;
    padding: 48px 40px;
    color: #F1F5F9;
}

.bydhi-thankyou-header {
    text-align: center;
    margin-bottom: 32px;
}

.bydhi-thankyou-header h2 {
    color: #B81319;
    font-size: 28px;
    margin: 16px 0 8px;
}

.bydhi-thankyou-header p {
    color: #94A3B8;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.bydhi-thankyou-icon {
    margin-bottom: 8px;
}

.bydhi-thankyou-details {
    background: #151C2C;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.bydhi-thankyou-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

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

.bydhi-thankyou-label {
    color: #94A3B8;
    font-size: 14px;
}

.bydhi-thankyou-value {
    color: #F1F5F9;
    font-weight: 600;
    font-size: 14px;
    text-align: right;
}

.bydhi-thankyou-itinerary {
    margin-bottom: 24px;
}

.bydhi-thankyou-itinerary h3 {
    color: #B81319;
    font-size: 18px;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.bydhi-thankyou-leg {
    background: #151C2C;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 12px;
}

.bydhi-thankyou-leg-header {
    color: #B81319;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 12px;
}

.bydhi-thankyou-leg-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.bydhi-thankyou-leg-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bydhi-thankyou-leg-row span {
    color: #94A3B8;
    font-size: 12px;
}

.bydhi-thankyou-leg-row strong {
    color: #F1F5F9;
    font-size: 14px;
}

.bydhi-thankyou-total-dist {
    text-align: right;
    color: #94A3B8;
    font-size: 14px;
    padding: 12px 0 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 4px;
}

.bydhi-thankyou-total-dist strong {
    color: #B81319;
}

.bydhi-thankyou-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.bydhi-thankyou-footer p {
    color: #64748B;
    font-size: 13px;
    margin: 0;
}

.bydhi-thankyou-error {
    text-align: center;
    padding: 40px;
    color: #94A3B8;
}

/* ============================================
   RESPONSIVE DESIGN (768px & 576px)
   ============================================ */
@media (max-width: 768px) {
    .bydhi-exceljet-plugin .bydhi-route-block__fields {
        flex-wrap: wrap !important;
    }
    .bydhi-exceljet-plugin .bydhi-field-group {
        flex: 1 1 calc(50% - 15px);
    }
    .bydhi-exceljet-plugin .bydhi-field-group--date,
    .bydhi-exceljet-plugin .bydhi-field-group--passengers {
        flex: 1 1 calc(50% - 15px) !important;
    }
    .bydhi-exceljet-plugin .bydhi-swap-btn {
        display: none !important;
    }
    .bydhi-exceljet-plugin .bydhi-booking-card__tabs {
        flex-wrap: nowrap !important;
    }
    .bydhi-exceljet-plugin .bydhi-tab-btn {
        flex: 1 1 auto;
        justify-content: center;
        white-space: nowrap;
        padding: 10px 12px;
        font-size: 0.8rem;
    }
    .bydhi-exceljet-plugin .bydhi-form-actions {
        width: 100%;
        display: flex;
        justify-content: flex-end;
        margin-top: 20px;
    }
}

@media (max-width: 576px) {
    .bydhi-exceljet-plugin .bydhi-route-block__fields {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    .bydhi-exceljet-plugin .bydhi-field-group,
    .bydhi-exceljet-plugin .bydhi-field-group--date,
    .bydhi-exceljet-plugin .bydhi-field-group--passengers {
        flex: 1 1 100% !important;
        width: 100%;
    }
    .bydhi-exceljet-plugin .bydhi-swap-btn {
        transform: rotate(90deg) !important;
        margin: -5px auto !important;
        display: flex !important;
    }
    .bydhi-exceljet-plugin .bydhi-booking-card {
        margin: 10px;
    }
    .bydhi-exceljet-plugin .bydhi-route-block {
        padding: 20px 15px;
    }
    .bydhi-exceljet-plugin .bydhi-booking-card__tabs {
        flex-wrap: wrap !important;
    }
    .bydhi-exceljet-plugin .bydhi-tab-btn {
        flex: 1 1 calc(50% - 5px);
    }
    .bydhi-exceljet-plugin .bydhi-form-actions {
        justify-content: center;
    }
    .bydhi-exceljet-plugin .bydhi-submit-btn {
        width: 100%;
    }
}

/* --- Custom Redesign for Horizontal Layout --- */
.bydhi-exceljet-plugin #bydhi-flightForm {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    padding: 20px 30px;
    gap: 15px;
}

.bydhi-exceljet-plugin #bydhi-routesContainer,
.bydhi-exceljet-plugin .bydhi-return-route-block {
    flex: 1;
    display: flex;
    min-width: 0;
}

.bydhi-exceljet-plugin .bydhi-route-block {
    padding: 0 !important;
    border: none !important;
    width: 100%;
}

.bydhi-exceljet-plugin .bydhi-route-block__header {
    display: none !important;
}

.bydhi-exceljet-plugin .bydhi-route-block__fields {
    width: 100%;
    flex-wrap: nowrap;
}

.bydhi-exceljet-plugin .bydhi-form-actions {
    margin: 0;
    padding: 0 !important;
    display: flex;
    align-items: flex-end;
}

.bydhi-exceljet-plugin .bydhi-submit-btn {
    height: 48px;
    margin-bottom: 3px;
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .bydhi-exceljet-plugin #bydhi-flightForm {
        flex-direction: column;
        align-items: stretch;
    }
    .bydhi-exceljet-plugin .bydhi-route-block__fields {
        flex-wrap: wrap !important;
    }
    .bydhi-exceljet-plugin .bydhi-form-actions {
        margin-top: 15px;
    }
}


/* --- Tuning Adjustments --- */
/* 1. Reduce gap between heading and form */
.bydhi-exceljet-plugin .bydhi-form-header {
    margin-bottom: 10px !important;
}

/* 2. Button width shorter, FROM/TO fields wider */
.bydhi-exceljet-plugin .bydhi-form-actions {
    flex: 0 0 auto !important; /* prevent it from growing */
}
.bydhi-exceljet-plugin .bydhi-submit-btn {
    padding: 0 20px !important; /* reduce padding to make it shorter */
}
.bydhi-exceljet-plugin .bydhi-field-group--airport {
    flex: 2 !important; /* make airport fields grow more */
    min-width: 200px;
}
.bydhi-exceljet-plugin .bydhi-field-group--date,
.bydhi-exceljet-plugin .bydhi-field-group--passengers {
    flex: 1 !important; /* make date/passengers take up less space relative to airports */
}

/* 3. Reduce gap between form bottom and badges below */
.bydhi-exceljet-plugin .bydhi-booking-card {
    margin-bottom: 15px !important;
}


/* --- Fixes for Round Trip & Multi-Trip Overlaps --- */
.bydhi-exceljet-plugin #bydhi-flightForm {
    flex-wrap: wrap !important; 
}
.bydhi-exceljet-plugin #bydhi-routesContainer {
    flex: 1 1 600px !important; 
    display: flex;
    flex-direction: column !important; 
    gap: 15px !important;
}
.bydhi-exceljet-plugin .bydhi-return-route-block {
    flex: 1 1 600px !important; 
}
.bydhi-exceljet-plugin .bydhi-form-actions {
    flex: 0 0 auto !important;
    display: flex;
    justify-content: flex-end; 
    align-items: flex-end;
}
.bydhi-exceljet-plugin .bydhi-route-block__fields {
    flex-wrap: nowrap !important;
}

/* Further reduce gap between heading and form */
.bydhi-exceljet-plugin .bydhi-form-header {
    margin-bottom: -5px !important; 
}

/* Further reduce button width */
.bydhi-exceljet-plugin .bydhi-submit-btn {
    padding: 0 15px !important;
    font-size: 0.9rem !important; 
}

@media (max-width: 1024px) {
    .bydhi-exceljet-plugin #bydhi-routesContainer,
    .bydhi-exceljet-plugin .bydhi-return-route-block {
        flex: 1 1 100% !important;
    }
}


/* --- Final Layout Fixes for Perfect Alignment --- */
.bydhi-exceljet-plugin #bydhi-flightForm {
    display: flex;
    flex-wrap: wrap !important;
    align-items: flex-end !important;
    gap: 15px 20px !important;
}

.bydhi-exceljet-plugin #bydhi-routesContainer {
    display: flex;
    flex-direction: column !important;
    gap: 15px !important;
}

.bydhi-exceljet-plugin #bydhi-routesContainer,
.bydhi-exceljet-plugin .bydhi-return-route-block,
.bydhi-exceljet-plugin .bydhi-add-route-wrapper {
    flex: 0 0 calc(100% - 160px) !important;
    min-width: 0;
}

.bydhi-exceljet-plugin .bydhi-form-actions {
    flex: 0 0 140px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    justify-content: flex-end;
}

.bydhi-exceljet-plugin .bydhi-submit-btn {
    width: 100% !important;
    padding: 0 8px !important;
    height: 44px;
    margin-bottom: 0 !important;
    font-size: 0.82rem !important;
}

.bydhi-exceljet-plugin .bydhi-route-block__fields {
    display: flex;
    flex-wrap: nowrap !important;
    gap: 15px !important;
    width: 100%;
}

.bydhi-exceljet-plugin .bydhi-field-group--airport {
    flex: 2 1 0 !important;
    min-width: 0 !important;
}

.bydhi-exceljet-plugin .bydhi-field-group--date,
.bydhi-exceljet-plugin .bydhi-field-group--passengers {
    flex: 1 1 0 !important;
    min-width: 0 !important;
}

.bydhi-exceljet-plugin .bydhi-field-group--passengers {
    position: relative;
}

.bydhi-exceljet-plugin .bydhi-pax-hint {
    position: absolute;
    bottom: -18px;
    left: 0;
    font-size: 9px !important;
    line-height: 1;
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .bydhi-exceljet-plugin #bydhi-routesContainer,
    .bydhi-exceljet-plugin .bydhi-return-route-block,
    .bydhi-exceljet-plugin .bydhi-add-route-wrapper,
    .bydhi-exceljet-plugin .bydhi-form-actions {
        flex: 1 1 100% !important;
    }
    .bydhi-exceljet-plugin .bydhi-route-block__fields {
        flex-wrap: wrap !important;
    }
}     

/* --- One Way: Keep button on same row, prevent overflow --- */
.bydhi-booking-card:has(.bydhi-tab-btn[data-tab="one-way"].bydhi-active) #bydhi-flightForm {
    flex-wrap: nowrap !important;
}
.bydhi-booking-card:has(.bydhi-tab-btn[data-tab="one-way"].bydhi-active) #bydhi-routesContainer {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    overflow: visible !important;
}
.bydhi-booking-card:has(.bydhi-tab-btn[data-tab="one-way"].bydhi-active) .bydhi-route-block__fields {
    flex-wrap: nowrap !important;
}
.bydhi-booking-card:has(.bydhi-tab-btn[data-tab="one-way"].bydhi-active) .bydhi-field-group {
    min-width: 0 !important;
    flex-shrink: 1 !important;
}

/* --- Round Trip: Stacked Two-Row Layout --- */
.bydhi-booking-card:has(.bydhi-tab-btn[data-tab="round-trip"].bydhi-active) #bydhi-flightForm {
    flex-direction: column !important;
    align-items: stretch !important;
}

.bydhi-booking-card:has(.bydhi-tab-btn[data-tab="round-trip"].bydhi-active) #bydhi-routesContainer,
.bydhi-booking-card:has(.bydhi-tab-btn[data-tab="round-trip"].bydhi-active) .bydhi-return-route-block,
.bydhi-exceljet-plugin .bydhi-submit-btn {
    height: 48px;
    margin-bottom: 3px;
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .bydhi-exceljet-plugin #bydhi-flightForm {
        flex-direction: column;
        align-items: stretch;
    }
    .bydhi-exceljet-plugin .bydhi-route-block__fields {
        flex-wrap: wrap !important;
    }
    .bydhi-exceljet-plugin .bydhi-form-actions {
        margin-top: 15px;
    }
}


/* --- Tuning Adjustments --- */
/* 1. Reduce gap between heading and form */
.bydhi-exceljet-plugin .bydhi-form-header {
    margin-bottom: 10px !important;
}

/* 2. Button width shorter, FROM/TO fields wider */
.bydhi-exceljet-plugin .bydhi-form-actions {
    flex: 0 0 auto !important; /* prevent it from growing */
}
.bydhi-exceljet-plugin .bydhi-submit-btn {
    padding: 0 20px !important; /* reduce padding to make it shorter */
}
.bydhi-exceljet-plugin .bydhi-field-group--airport {
    flex: 2 !important; /* make airport fields grow more */
    min-width: 200px;
}
.bydhi-exceljet-plugin .bydhi-field-group--date,
.bydhi-exceljet-plugin .bydhi-field-group--passengers {
    flex: 1 !important; /* make date/passengers take up less space relative to airports */
}

/* 3. Reduce gap between form bottom and badges below */
.bydhi-exceljet-plugin .bydhi-booking-card {
    margin-bottom: 15px !important;
}


/* --- Fixes for Round Trip & Multi-Trip Overlaps --- */
.bydhi-exceljet-plugin #bydhi-flightForm {
    flex-wrap: wrap !important; 
}
.bydhi-exceljet-plugin #bydhi-routesContainer {
    flex: 1 1 600px !important; 
    display: flex;
    flex-direction: column !important; 
    gap: 15px !important;
}
.bydhi-exceljet-plugin .bydhi-return-route-block {
    flex: 1 1 600px !important; 
}
.bydhi-exceljet-plugin .bydhi-form-actions {
    flex: 0 0 auto !important;
    display: flex;
    justify-content: flex-end; 
    align-items: flex-end;
}
.bydhi-exceljet-plugin .bydhi-route-block__fields {
    flex-wrap: nowrap !important;
}

/* Further reduce gap between heading and form */
.bydhi-exceljet-plugin .bydhi-form-header {
    margin-bottom: -5px !important; 
}

/* Further reduce button width */
.bydhi-exceljet-plugin .bydhi-submit-btn {
    padding: 0 15px !important;
    font-size: 0.9rem !important; 
}

@media (max-width: 1024px) {
    .bydhi-exceljet-plugin #bydhi-routesContainer,
    .bydhi-exceljet-plugin .bydhi-return-route-block {
        flex: 1 1 100% !important;
    }
}


/* --- Final Layout Fixes for Perfect Alignment --- */
.bydhi-exceljet-plugin #bydhi-flightForm {
    display: flex;
    flex-wrap: wrap !important;
    align-items: flex-end !important;
    gap: 15px 20px !important;
}

.bydhi-exceljet-plugin #bydhi-routesContainer {
    display: flex;
    flex-direction: column !important;
    gap: 15px !important;
}

.bydhi-exceljet-plugin #bydhi-routesContainer,
.bydhi-exceljet-plugin .bydhi-return-route-block,
.bydhi-exceljet-plugin .bydhi-add-route-wrapper {
    flex: 0 0 calc(100% - 160px) !important;
    min-width: 0;
}

.bydhi-exceljet-plugin .bydhi-form-actions {
    flex: 0 0 140px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    justify-content: flex-end;
}

.bydhi-exceljet-plugin .bydhi-submit-btn {
    width: 100% !important;
    padding: 0 8px !important;
    height: 44px;
    margin-bottom: 0 !important;
    font-size: 0.82rem !important;
}

.bydhi-exceljet-plugin .bydhi-route-block__fields {
    display: flex;
    flex-wrap: nowrap !important;
    gap: 15px !important;
    width: 100%;
}

.bydhi-exceljet-plugin .bydhi-field-group--airport {
    flex: 2.2 1 0 !important;
    min-width: 0 !important;
}

.bydhi-exceljet-plugin .bydhi-field-group--date {
    flex: 1.45 1 0 !important;
    min-width: 125px !important;
}

.bydhi-exceljet-plugin .bydhi-field-group--time {
    flex: 0 0 100px !important;
    min-width: 95px !important;
    max-width: 105px !important;
}

.bydhi-exceljet-plugin .bydhi-field-group--time .bydhi-time-input {
    padding: 12px 6px !important;
    text-align: center !important;
}

.bydhi-exceljet-plugin .bydhi-field-group--date .bydhi-date-input {
    padding: 12px 10px !important;
}

.bydhi-exceljet-plugin .bydhi-field-group--passengers {
    flex: 0 0 105px !important;
    min-width: 95px !important;
    max-width: 110px !important;
    position: relative;
}

.bydhi-exceljet-plugin .bydhi-pax-hint {
    position: absolute;
    bottom: -18px;
    left: 0;
    font-size: 9px !important;
    line-height: 1;
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .bydhi-exceljet-plugin #bydhi-routesContainer,
    .bydhi-exceljet-plugin .bydhi-return-route-block,
    .bydhi-exceljet-plugin .bydhi-add-route-wrapper,
    .bydhi-exceljet-plugin .bydhi-form-actions {
        flex: 1 1 100% !important;
    }
    .bydhi-exceljet-plugin .bydhi-route-block__fields {
        flex-wrap: wrap !important;
    }
}     

/* --- One Way: Keep button on same row, prevent overflow --- */
.bydhi-booking-card:has(.bydhi-tab-btn[data-tab="one-way"].bydhi-active) #bydhi-flightForm {
    flex-wrap: nowrap !important;
}
.bydhi-booking-card:has(.bydhi-tab-btn[data-tab="one-way"].bydhi-active) #bydhi-routesContainer {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    overflow: visible !important;
}
.bydhi-booking-card:has(.bydhi-tab-btn[data-tab="one-way"].bydhi-active) .bydhi-route-block__fields {
    flex-wrap: nowrap !important;
}
.bydhi-booking-card:has(.bydhi-tab-btn[data-tab="one-way"].bydhi-active) .bydhi-field-group {
    min-width: 0 !important;
    flex-shrink: 1 !important;
}

/* --- Round Trip: Stacked Two-Row Layout --- */
.bydhi-booking-card:has(.bydhi-tab-btn[data-tab="round-trip"].bydhi-active) #bydhi-flightForm {
    flex-direction: column !important;
    align-items: stretch !important;
}

.bydhi-booking-card:has(.bydhi-tab-btn[data-tab="round-trip"].bydhi-active) #bydhi-routesContainer,
.bydhi-booking-card:has(.bydhi-tab-btn[data-tab="round-trip"].bydhi-active) .bydhi-return-route-block,
.bydhi-booking-card:has(.bydhi-tab-btn[data-tab="round-trip"].bydhi-active) .bydhi-add-route-wrapper {
    flex: 1 1 100% !important;
    width: 100% !important;
}

.bydhi-booking-card:has(.bydhi-tab-btn[data-tab="round-trip"].bydhi-active) .bydhi-form-actions {
    flex: 1 1 100% !important;
    width: 100% !important;
    justify-content: flex-start !important;
    margin-top: 5px !important;
}

.bydhi-booking-card:has(.bydhi-tab-btn[data-tab="round-trip"].bydhi-active) .bydhi-submit-btn {
    width: auto !important;
}

/* --- Fix Autocomplete & Time Dialer Dropdown Overflow --- */
.bydhi-exceljet-plugin,
.bydhi-exceljet-plugin .bydhi-booking-section,
.bydhi-exceljet-plugin .bydhi-booking-card,
.bydhi-exceljet-plugin .bydhi-route-block,
.bydhi-exceljet-plugin .bydhi-route-block__fields,
.bydhi-exceljet-plugin .bydhi-charter-card,
.bydhi-exceljet-plugin #bydhi-flightForm,
.bydhi-exceljet-plugin #bydhi-routesContainer,
.bydhi-exceljet-plugin #bydhi-returnRouteBlock,
.bydhi-exceljet-plugin .bydhi-booking-card:has(.bydhi-tab-btn[data-tab="one-way"].bydhi-active) #bydhi-flightForm,
.bydhi-exceljet-plugin .bydhi-booking-card:has(.bydhi-tab-btn[data-tab="one-way"].bydhi-active) #bydhi-routesContainer {
    overflow: visible !important;
}

/* --- Client Color Overrides --- */
:root {
    --gold: #B30016 !important;
    --gold-hover: #D32F2F !important;
    --bg-dark: #07172F !important;
}
.bydhi-exceljet-plugin .bydhi-user-modal {
    background: #07172F !important;
}
.bydhi-exceljet-plugin .bydhi-user-modal label {
    color: #B30016 !important;
}
.bydhi-exceljet-plugin .bydhi-user-modal input:focus,
.bydhi-exceljet-plugin .bydhi-user-modal textarea:focus {
    border-color: #B30016 !important;
}


.bydhi-exceljet-plugin .bydhi-user-modal-overlay { position: fixed !important; top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important; background: rgba(0,0,0,0.7) !important; display: flex; align-items: center !important; justify-content: center !important; z-index: 999999 !important; }

/* ============================================
   FORCED RESPONSIVE OVERRIDES FOR 768px & 576px
   These must stay at the bottom to override :has() rules
   ============================================ */
@media (max-width: 768px) {
    .bydhi-exceljet-plugin .bydhi-booking-card:has(.bydhi-tab-btn[data-tab="one-way"].bydhi-active) .bydhi-route-block__fields,
    .bydhi-exceljet-plugin .bydhi-booking-card:has(.bydhi-tab-btn[data-tab="round-trip"].bydhi-active) .bydhi-route-block__fields,
    .bydhi-exceljet-plugin .bydhi-route-block__fields {
        flex-wrap: wrap !important;
        flex-direction: row !important;
    }
    .bydhi-exceljet-plugin .bydhi-booking-card:has(.bydhi-tab-btn[data-tab="one-way"].bydhi-active) .bydhi-field-group,
    .bydhi-exceljet-plugin .bydhi-field-group,
    .bydhi-exceljet-plugin .bydhi-field-group--date,
    .bydhi-exceljet-plugin .bydhi-field-group--passengers {
        flex: 1 1 calc(50% - 15px) !important;
        width: auto !important;
    }
    .bydhi-exceljet-plugin .bydhi-swap-btn {
        display: none !important;
    }
    .bydhi-exceljet-plugin .bydhi-booking-card__tabs {
        flex-wrap: nowrap !important;
    }
    .bydhi-exceljet-plugin .bydhi-tab-btn {
        flex: 1 1 auto !important;
        justify-content: center !important;
        white-space: nowrap !important;
        padding: 10px 12px !important;
        font-size: 0.8rem !important;
    }
    .bydhi-exceljet-plugin .bydhi-form-actions {
        flex: 1 1 100% !important;
        width: 100% !important;
        display: flex !important;
        justify-content: flex-end !important;
        margin-top: 20px !important;
    }
    .bydhi-exceljet-plugin .bydhi-submit-btn {
        width: auto !important;
        padding: 12px 30px !important;
    }
}

@media (max-width: 576px) {
    .bydhi-exceljet-plugin .bydhi-booking-card:has(.bydhi-tab-btn[data-tab="one-way"].bydhi-active) .bydhi-route-block__fields,
    .bydhi-exceljet-plugin .bydhi-booking-card:has(.bydhi-tab-btn[data-tab="round-trip"].bydhi-active) .bydhi-route-block__fields,
    .bydhi-exceljet-plugin .bydhi-route-block__fields {
        flex-wrap: wrap !important;
        flex-direction: row !important;
        gap: 15px !important;
    }
    .bydhi-exceljet-plugin .bydhi-booking-card:has(.bydhi-tab-btn[data-tab="one-way"].bydhi-active) .bydhi-field-group,
    .bydhi-exceljet-plugin .bydhi-field-group,
    .bydhi-exceljet-plugin .bydhi-field-group--date,
    .bydhi-exceljet-plugin .bydhi-field-group--passengers {
        flex: 1 1 calc(50% - 15px) !important;
        width: auto !important;
    }
    .bydhi-exceljet-plugin .bydhi-swap-btn {
        display: none !important;
    }
    .bydhi-exceljet-plugin .bydhi-booking-card__tabs {
        flex-wrap: wrap !important;
    }
    .bydhi-exceljet-plugin .bydhi-tab-btn {
        flex: 1 1 calc(50% - 5px) !important;
        justify-content: center !important;
        white-space: nowrap !important;
        padding: 8px 10px !important;
        font-size: 0.75rem !important;
    }
    .bydhi-exceljet-plugin .bydhi-form-actions {
        flex: 1 1 100% !important;
        width: 100% !important;
        display: flex !important;
        justify-content: flex-end !important;
        margin-top: 20px !important;
    }
    .bydhi-exceljet-plugin .bydhi-submit-btn {
        width: auto !important;
        padding: 12px 30px !important;
    }
}

/* Mobile Responsiveness Tweaks for Form Width */
@media (max-width: 576px) {
    .bydhi-exceljet-plugin .bydhi-booking-card {
        margin: 10px 0 !important;
        border-radius: 12px !important;
    }
    .bydhi-exceljet-plugin .bydhi-booking-card__header {
        padding: 15px 10px !important;
    }
    .bydhi-exceljet-plugin .bydhi-route-block {
        padding: 15px 10px !important;
    }
    .bydhi-exceljet-plugin .bydhi-route-block__fields {
        padding: 5px 8px !important;
    }
    .bydhi-exceljet-plugin .bydhi-form-actions {
        padding: 0 10px !important;
    }
}



/* ========================================================
   CRITICAL MOBILE RESPONSIVE FIXES (<= 768px & <= 576px)
   ======================================================== */

/* 1. HERO PHONE NUMBER PILLS (Fit inside pill properly) */
@media (max-width: 768px) {
    .floating-phones,
    .hero-features-area .floating-phones {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
        width: 100% !important;
        margin-top: 5px !important;
    }
    .floating-phones .phone-btn,
    .hero-features-area .floating-phones .phone-btn,
    .plan-charter-main-wrapper .floating-phones .phone-btn,
    .phone-btn {
        padding: 6px 8px !important;
        font-size: 0.52rem !important;
        letter-spacing: -0.2px !important;
        flex: 1 1 50% !important;
        min-width: 0 !important;
        white-space: nowrap !important;
        justify-content: center !important;
        align-items: center !important;
        display: inline-flex !important;
        border-radius: 20px !important;
        box-sizing: border-box !important;
    }
    .floating-phones .phone-btn i,
    .hero-features-area .floating-phones .phone-btn i,
    .phone-btn i {
        font-size: 0.55rem !important;
        margin-right: 4px !important;
        flex-shrink: 0 !important;
    }
}

/* 2. PLAN YOUR CHARTER FORM (MAXIMIZE MOBILE WIDTH & REMOVE SIDE MARGINS/PADDING) */
@media (max-width: 768px) {
    .plan-charter-main-wrapper,
    .plan-charter-main-wrapper.layout-overlap {
        padding: 20px 4px 30px 4px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .booking-card-container,
    .plan-charter-main-wrapper .booking-card-container,
    .elementor-widget-container:has(.plan-charter-main-wrapper) {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .plan-charter-main-wrapper .booking-card,
    .booking-card-container .booking-card,
    .booking-card {
        padding: 0 !important;
        margin: 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        box-sizing: border-box !important;
    }
    .plan-charter-main-wrapper .bc-right,
    .booking-card-container .bc-right {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    .bydhi-exceljet-plugin {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    .bydhi-exceljet-plugin .bydhi-booking-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto 15px auto !important;
        border-radius: 10px !important;
        box-sizing: border-box !important;
        background: #ffffff !important;
        overflow: visible !important;
    }
    .bydhi-exceljet-plugin .bydhi-booking-card__header {
        padding: 12px 10px !important;
    }
    .bydhi-exceljet-plugin .bydhi-route-block {
        padding: 12px 10px !important;
    }
    .bydhi-exceljet-plugin .bydhi-form-actions {
        padding: 0 10px 14px 10px !important;
    }
}

/* 3. WHO WE ARE CAROUSEL & BADGE FIXES */
@media (max-width: 768px) {
    .who-we-are-carousel-wrapper {
        overflow: visible !important;
    }
    .who-we-are-carousel-wrapper .carousel-slide {
        padding: 0 28px !important;
        box-sizing: border-box !important;
    }
    .who-we-are-carousel-wrapper .carousel-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.75rem !important;
    }
    .split-media {
        position: relative !important;
        overflow: visible !important;
    }
    .split-media .media-badge,
    .who-we-are-carousel-wrapper .media-badge,
    .media-badge {
        position: absolute !important;
        bottom: 12px !important;
        right: 12px !important;
        top: auto !important;
        left: auto !important;
        padding: 8px 14px !important;
        min-width: unset !important;
        width: auto !important;
        max-width: 130px !important;
        border-radius: 6px !important;
        box-shadow: 0 6px 16px rgba(0,0,0,0.3) !important;
        box-sizing: border-box !important;
        z-index: 10 !important;
    }
    .split-media .media-badge strong,
    .who-we-are-carousel-wrapper .media-badge strong,
    .media-badge strong {
        font-size: 1.25rem !important;
        margin-bottom: 2px !important;
        line-height: 1 !important;
        display: block !important;
    }
    .split-media .media-badge span,
    .who-we-are-carousel-wrapper .media-badge span,
    .media-badge span {
        font-size: 0.52rem !important;
        letter-spacing: 0.8px !important;
        line-height: 1.2 !important;
        display: block !important;
    }
}

/* 4. WORLDWIDE COVERAGE BADGE & IMAGE HEIGHT */
@media (max-width: 768px) {
    .worldwide-right {
        position: relative !important;
    }
    .worldwide-right .image-wrapper {
        border-radius: 12px !important;
        overflow: hidden !important;
    }
    .worldwide-right .image-wrapper img {
        height: 280px !important;
        width: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }
    .worldwide-right .floating-box,
    .wwa-right .floating-box {
        position: absolute !important;
        bottom: 12px !important;
        right: 12px !important;
        top: auto !important;
        left: auto !important;
        padding: 8px 14px !important;
        min-width: unset !important;
        width: auto !important;
        max-width: 130px !important;
        border-radius: 6px !important;
        box-shadow: 0 6px 16px rgba(0,0,0,0.3) !important;
        box-sizing: border-box !important;
        z-index: 10 !important;
    }
    .worldwide-right .floating-box .box-num,
    .wwa-right .floating-box .box-num {
        font-size: 1.25rem !important;
        margin-bottom: 2px !important;
        line-height: 1 !important;
        display: block !important;
    }
    .worldwide-right .floating-box .box-text,
    .wwa-right .floating-box .box-text {
        font-size: 0.52rem !important;
        letter-spacing: 0.8px !important;
        line-height: 1.2 !important;
        display: block !important;
    }
}

/* 5. INTERNATIONAL AIR AMBULANCE BADGE */
@media (max-width: 768px) {
    .air-ambulance-right {
        position: relative !important;
    }
    .air-ambulance-right .image-wrapper {
        border-radius: 12px !important;
        overflow: hidden !important;
    }
    .air-ambulance-right .image-wrapper img {
        height: 280px !important;
        width: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }
    .air-ambulance-right .floating-box {
        position: absolute !important;
        bottom: 12px !important;
        right: 12px !important;
        top: auto !important;
        left: auto !important;
        padding: 8px 14px !important;
        min-width: unset !important;
        width: auto !important;
        max-width: 130px !important;
        border-radius: 6px !important;
        box-shadow: 0 6px 16px rgba(0,0,0,0.3) !important;
        box-sizing: border-box !important;
        z-index: 10 !important;
    }
    .air-ambulance-right .floating-box .box-num {
        font-size: 1.25rem !important;
        margin-bottom: 2px !important;
        line-height: 1 !important;
        display: block !important;
    }
    .air-ambulance-right .floating-box .box-text {
        font-size: 0.52rem !important;
        letter-spacing: 0.8px !important;
        line-height: 1.2 !important;
        display: block !important;
    }
}

/* ========================================================
   RESPONSIVE BOOKING FORM ADJUSTMENTS (ONE-WAY, ROUND-TRIP, PASSENGERS & AUTOCOMPLETE)
   ======================================================== */
@media (max-width: 1024px), (max-width: 768px), (max-width: 640px), (max-width: 576px) {
    /* Form & Route containers */
    .bydhi-exceljet-plugin #bydhi-flightForm {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 15px !important;
    }
    .bydhi-exceljet-plugin #bydhi-routesContainer,
    .bydhi-exceljet-plugin .bydhi-return-route-block,
    .bydhi-exceljet-plugin .bydhi-add-route-wrapper,
    .bydhi-exceljet-plugin .bydhi-form-actions {
        flex: 1 1 100% !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    /* Route block fields wrapper (both Outbound & Return Leg) */
    .bydhi-exceljet-plugin .bydhi-route-block__fields,
    .bydhi-exceljet-plugin #bydhi-routesContainer .bydhi-route-block__fields,
    .bydhi-exceljet-plugin #bydhi-returnRouteBlock .bydhi-route-block__fields,
    .bydhi-exceljet-plugin .bydhi-return-route-block .bydhi-route-block__fields,
    .bydhi-exceljet-plugin .bydhi-booking-card:has(.bydhi-tab-btn[data-tab="round-trip"].bydhi-active) .bydhi-route-block__fields,
    .bydhi-exceljet-plugin .bydhi-booking-card:has(.bydhi-tab-btn[data-tab="one-way"].bydhi-active) .bydhi-route-block__fields {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 12px 10px !important;
        width: 100% !important;
    }

    /* All fields take 50% width (2 items per row) */
    .bydhi-exceljet-plugin .bydhi-field-group,
    .bydhi-exceljet-plugin .bydhi-field-group--airport,
    .bydhi-exceljet-plugin .bydhi-field-group--from,
    .bydhi-exceljet-plugin .bydhi-field-group--to,
    .bydhi-exceljet-plugin .bydhi-field-group--date,
    .bydhi-exceljet-plugin .bydhi-field-group--time,
    .bydhi-exceljet-plugin #bydhi-returnRouteBlock .bydhi-field-group,
    .bydhi-exceljet-plugin .bydhi-booking-card:has(.bydhi-tab-btn[data-tab="round-trip"].bydhi-active) .bydhi-field-group,
    .bydhi-exceljet-plugin .bydhi-booking-card:has(.bydhi-tab-btn[data-tab="one-way"].bydhi-active) .bydhi-field-group {
        flex: 1 1 calc(50% - 6px) !important;
        max-width: calc(50% - 6px) !important;
        min-width: 0 !important;
        width: auto !important;
        box-sizing: border-box !important;
    }

    /* Passengers field is strictly 50% width on row 3 (not 100%) */
    .bydhi-exceljet-plugin .bydhi-field-group--passengers,
    .bydhi-exceljet-plugin #bydhi-returnRouteBlock .bydhi-field-group--passengers,
    .bydhi-exceljet-plugin .bydhi-booking-card:has(.bydhi-tab-btn[data-tab="round-trip"].bydhi-active) .bydhi-field-group--passengers,
    .bydhi-exceljet-plugin .bydhi-booking-card:has(.bydhi-tab-btn[data-tab="one-way"].bydhi-active) .bydhi-field-group--passengers {
        flex: 0 0 calc(50% - 6px) !important;
        max-width: calc(50% - 6px) !important;
        min-width: 0 !important;
        width: calc(50% - 6px) !important;
        box-sizing: border-box !important;
    }

    .bydhi-exceljet-plugin .bydhi-pax-control {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Always hide swap button on mobile for all legs */
    .bydhi-exceljet-plugin .bydhi-swap-btn,
    .bydhi-exceljet-plugin #bydhi-returnRouteBlock .bydhi-swap-btn {
        display: none !important;
    }

    /* Mobile / Responsive Autocomplete: Full 2-column wide dropdown (covers From & To) */
    .bydhi-exceljet-plugin .bydhi-autocomplete-dropdown {
        width: calc(200% + 10px) !important;
        min-width: calc(200% + 10px) !important;
        max-width: calc(100vw - 30px) !important;
        box-sizing: border-box !important;
    }

    /* FROM input dropdown anchors to left edge */
    .bydhi-exceljet-plugin .bydhi-field-group--from .bydhi-autocomplete-dropdown,
    .bydhi-exceljet-plugin .bydhi-route-block__fields .bydhi-field-group:first-of-type .bydhi-autocomplete-dropdown {
        left: 0 !important;
        right: auto !important;
    }

    /* TO input dropdown anchors to right edge */
    .bydhi-exceljet-plugin .bydhi-field-group--to .bydhi-autocomplete-dropdown,
    .bydhi-exceljet-plugin .bydhi-route-block__fields .bydhi-field-group:nth-of-type(3) .bydhi-autocomplete-dropdown {
        left: auto !important;
        right: 0 !important;
    }

    /* Full airport name display on responsive */
    .bydhi-exceljet-plugin .bydhi-autocomplete-item__name {
        white-space: normal !important;
        word-break: break-word !important;
        font-size: 0.88rem !important;
        line-height: 1.25 !important;
    }

    .bydhi-exceljet-plugin .bydhi-autocomplete-item__sub {
        white-space: normal !important;
        word-break: break-word !important;
    }

    /* Form submit button full width on mobile or right-aligned */
    .bydhi-exceljet-plugin .bydhi-form-actions {
        display: flex !important;
        justify-content: center !important;
        margin-top: 10px !important;
        padding: 0 !important;
    }
    .bydhi-exceljet-plugin .bydhi-submit-btn {
        width: 100% !important;
        justify-content: center !important;
        height: 46px !important;
    }
}


