﻿/* search engine  form css */

:root {
  --fs-blue: #0066ff;
  --fs-blue-dark: #0052cc;
  --fs-blue-darker: #0047b3;
  --fs-blue-soft: rgba(0, 102, 255, .14);
  --fs-border: #ced4da;
  --fs-text: #1d2433;
  --fs-muted: #6b7280;
  --fs-h: 46px;
  --fs-radius: 6px;
}

#RF_Booking,
#RF_Booking * {
  box-sizing: border-box;
}

#RF_Booking {
  width: 100%;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--fs-text);
}

#RF_Booking input,
#RF_Booking select,
#RF_Booking button {
  font-family: inherit;
}

/* ---------- Built-in grid (works even if Bootstrap is NOT loaded) ---------- */
#RF_Booking .row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -4px;
  margin-right: -4px;
}

#RF_Booking .row > * {
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  padding-left: 4px;
  padding-right: 4px;
}

#RF_Booking .row > .col-6 {
  width: 50%;
}

#RF_Booking .row > .col-12 {
  width: 100%;
}

@media (min-width: 992px) {
  #RF_Booking .row > .col-lg-7 { width: 58.333333%; }
  #RF_Booking .row > .col-lg-3 { width: 25%; }
  #RF_Booking .row > .col-lg-2 { width: 16.666667%; }
}

#RF_Booking .position-relative {
  position: relative;
}

/* undo global reset "svg { display:block }" inside the form only */
#RF_Booking svg {
  display: inline-block;
  vertical-align: middle;
}

/* used by search-form.js when the trip type is switched */
#RF_Booking.fs-reset * {
  transition: none !important;
}

/* helper classes your JS may toggle (normally come from Bootstrap) */
#RF_Booking .d-none,
#RF_Booking .hidden,
#RF_Booking [hidden] {
  display: none !important;
}

#RF_Booking .d-block {
  display: block;
}

/* One Way selected -> never show Return (works even without JS) */
#RF_Booking:has(#one:checked) #divReturn {
  display: none !important;
}

/* ---------- jQuery UI autocomplete (city suggestions) ---------- */
.ui-helper-hidden-accessible {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.ui-autocomplete {
  z-index: 100000 !important;
  list-style: none;
  margin: 4px 0 0;
  padding: 4px 0;
  max-height: 300px;
  overflow-x: hidden;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e3e6ea;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0, 30, 90, .18);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

.ui-autocomplete .ui-menu-item {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ui-autocomplete .ui-menu-item-wrapper,
.ui-autocomplete li > a,
.ui-autocomplete li > div {
  display: block;
  padding: 9px 14px;
  margin: 0;
  border: 0;
  color: #1d2433;
  font-size: 15px;
  line-height: 1.35;
  text-decoration: none;
  cursor: pointer;
}

.ui-autocomplete .ui-menu-item-wrapper:hover,
.ui-autocomplete .ui-menu-item-wrapper.ui-state-active,
.ui-autocomplete .ui-state-active,
.ui-autocomplete .ui-state-focus {
  background: #eaf2ff;
  color: #0066ff;
  border: 0;
  margin: 0;
}

/* ---------- Trip type tabs ---------- */
#RF_Booking .new_search_trip {
  display: block;
  width: fit-content;
  background: #fff;
  padding: 10px 10px 0;
  border-radius: 12px 12px 0 0;
}

#nav-tab {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
}

#nav-tab li {
  position: relative;
  margin: 0;
  padding: 0;
  cursor: pointer;
}

#nav-tab li input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  margin: 0;
  border: 2px solid #2b2b2b;
  border-radius: 50%;
  background: #fff;
  z-index: 1;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}

#nav-tab li input[type="radio"]:checked {
  border-color: #fff;
  background: #fff;
  box-shadow: inset 0 0 0 3px var(--fs-blue);
}

#nav-tab li label {
  display: block;
  margin: 0;
  padding: 9px 16px 9px 40px;
  border-radius: 8px;
  background: #f1f1f1;
  color: var(--fs-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s, color .2s;
}

#nav-tab li:hover label {
  background: #e3e6ea;
}

#nav-tab li input:checked + label {
  background: var(--fs-blue);
  color: #fff;
}

#nav-tab li:hover input:checked + label {
  background: var(--fs-blue-dark);
}

/* ---------- Main card ---------- */
#RF_Booking .new_search_e {
  background: #fff;
  padding: 12px;
  border-radius: 0 12px 12px 12px;
  box-shadow: 0 10px 30px rgba(0, 40, 120, .15);
}

/* uniform 8px gap between every column, whatever px-/pe-/ps- classes exist */
#RF_Booking .new_search_e .row {
  --bs-gutter-x: .5rem;
  --bs-gutter-y: 0;
}

#RF_Booking .new_search_e .row > * {
  margin-top: 0;
}

#RF_Booking .new_search_e .row > [class*="col-"] {
  padding-left: 4px !important;
  padding-right: 4px !important;
}

#RF_Booking .new_search_e .margin_top {
  margin-top: 8px;
}

/* =========================================================
   DESKTOP fields (floating label)
   ========================================================= */
.new_search_text {
  position: relative;
}

#toggle-slow {
  position: relative;
}

.new_search_text > input,
#toggle-slow > input {
  display: block;
  width: 100%;
  height: var(--fs-h);
  margin: 0;
  padding: 0 12px 0 46px;
  border: 1px solid var(--fs-border);
  border-radius: var(--fs-radius);
  background: #fff;
  color: var(--fs-text);
  font-size: 16px;
  line-height: normal;
  outline: none;
  text-overflow: ellipsis;
  transition: border-color .2s, box-shadow .2s, padding-left 0s linear 99999s;
}

.new_search_text > input:hover,
#toggle-slow > input:hover {
  border-color: #8fb4ff;
}

.new_search_text > input:focus,
#toggle-slow > input:focus {
  border-color: var(--fs-blue);
  box-shadow: 0 0 0 3px var(--fs-blue-soft);
}

/* label = icon + text, sits inside the field like a placeholder */
.new_search_text > label,
#toggle-slow > label {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: var(--fs-muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  /* going back down is delayed ~27h => label stays up after first tap */
  transition: all 0s linear 99999s, color .18s ease;
}

.new_search_text > label span,
#toggle-slow > label span {
  display: inline-flex;
}

.new_search_text > label svg,
#toggle-slow > label svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--fs-blue);
  transition: width 0s linear 99999s, height 0s linear 99999s;
}

/* floated label: on focus / filled / readonly fields (dates, passengers) */
.new_search_text > :is(input:focus, input.has-value, input[readonly]) + label,
#toggle-slow > input + label {
  top: 0;
  left: 10px;
  gap: 4px;
  padding: 0 5px;
  background: #fff;
  color: var(--fs-text);
  font-size: 12px;
  font-weight: 500;
  transition: all .18s ease 0s;
}

.new_search_text > :is(input:focus, input.has-value, input[readonly]) + label svg,
#toggle-slow > input + label svg {
  width: 14px;
  height: 14px;
  transition: width .18s ease, height .18s ease;
}

.new_search_text > input:focus + label {
  color: var(--fs-blue);
}

/* date columns are the .new_search_text element itself (they have col padding) */
#divDepart > input + label,
#divReturn > input + label {
  left: 14px;
}

.new_search_text > :is(input:focus, input.has-value) {
  padding-left: 14px;
  transition: border-color .2s, box-shadow .2s;
}

/* readonly value fields: date + passenger */
.new_search_text > input[readonly],
#toggle-slow > input {
  padding: 6px 12px 0 14px;
  font-weight: 600;
  cursor: pointer;
}

/* ---------- Passenger / class dropdown ---------- */
.pass-name {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 300px;
  padding: 14px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 30, 90, .22);
  z-index: 1000;
}

.passen_left > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #eef0f3;
}

.passen_left > span:last-of-type {
  border-bottom: 0;
}

.passen_left > span > label {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--fs-text);
}

.class_con {
  margin-bottom: 6px;
}

.class_con select {
  display: block;
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--fs-border);
  border-radius: var(--fs-radius);
  background-color: #fff;
  color: var(--fs-text);
  font-size: 15px;
  outline: none;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}

.class_con select:focus {
  border-color: var(--fs-blue);
  box-shadow: 0 0 0 3px var(--fs-blue-soft);
}

.adult-right,
.children-right,
.infants-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qtyminus {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--fs-blue);
  border-radius: 50%;
  color: var(--fs-blue);
  background: #fff;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: background .2s, color .2s, transform .1s;
}

.qtyminus:hover {
  background: var(--fs-blue);
  color: #fff;
}

.qtyminus:active {
  transform: scale(.92);
}

.adult-minus-txt {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}

.qtynumber {
  width: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--fs-text);
  outline: none;
}

.passen-button {
  display: block;
  width: 100%;
  height: 42px;
  margin-top: 10px;
  border: 0;
  border-radius: var(--fs-radius);
  background: var(--fs-blue);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, box-shadow .2s;
}

.passen-button:hover {
  background: var(--fs-blue-dark);
  box-shadow: 0 6px 14px rgba(0, 102, 255, .3);
}

.passen-button:active {
  background: var(--fs-blue-darker);
}

/* ---------- Search button ---------- */
.new_search_sub {
  height: 100%;
}

.new_search_sub button {
  display: block;
  width: 100%;
  height: var(--fs-h);
  padding: 0 10px;
  border: 0;
  border-radius: var(--fs-radius);
  background: var(--fs-blue);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .2px;
  white-space: nowrap;
  cursor: pointer;
  transition: background .25s ease, box-shadow .25s ease, transform .2s ease;
}

.new_search_sub button:hover {
  background: var(--fs-blue-dark);
  box-shadow: 0 8px 18px rgba(0, 102, 255, .38);
  transform: translateY(-2px);
}

.new_search_sub button:active {
  background: var(--fs-blue-darker);
  box-shadow: 0 3px 8px rgba(0, 102, 255, .3);
  transform: translateY(0);
}

.new_search_sub button:focus-visible {
  outline: 3px solid var(--fs-blue-soft);
  outline-offset: 2px;
}

/* mobile-only blocks are hidden on desktop */
.phone_search_injan {
  display: none;
}

/* =========================================================
   Small laptops
   ========================================================= */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .new_search_text > label,
  #toggle-slow > label,
  .new_search_text > input,
  #toggle-slow > input {
    font-size: 14px;
  }

  .new_search_text > input {
    padding-left: 40px;
  }

  .new_search_text > label svg {
    width: 20px;
    height: 20px;
  }

  .new_search_sub button {
    font-size: 15px;
  }
}

/* =========================================================
   MOBILE + TABLET  (< 992px)
   ========================================================= */
@media (max-width: 991.98px) {

  /* hide desktop version of fields */
  #RF_Booking .new_search_e .col-6 > .new_search_text,
  #RF_Booking .new_search_e .margin_top > .new_search_text,
  #divDepart > input,
  #divDepart > label,
  #divReturn > input,
  #divReturn > label {
    display: none;
  }

  /* show mobile version */
  .phone_search_injan {
    display: block;
  }

  #RF_Booking .new_search_e .search_input1 {
    margin-top: 8px;
  }

  /* boxed fields */
  .phone_search_injan .from-box,
  .phone_search_injan .phone_search {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 56px;
    padding: 7px 12px;
    background: #fff;
    border: 1px solid var(--fs-border);
    border-radius: 8px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: border-color .2s, box-shadow .2s;
  }

  /* inputs there come first in HTML, label after: show label on top */
  .phone_search_injan .phone_search {
    flex-direction: column-reverse;
    cursor: text;
  }

  .phone_search_injan .from-box:hover,
  .phone_search_injan .phone_search:hover {
    border-color: #8fb4ff;
  }

  .phone_search_injan .phone_search:focus-within {
    border-color: var(--fs-blue);
    box-shadow: 0 0 0 3px var(--fs-blue-soft);
  }

  .phone_search_injan label:not(.back-icon) {
    display: block;
    margin: 0 0 2px;
    color: var(--fs-muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    cursor: inherit;
  }

  .phone_search_injan .phone_search:focus-within label {
    color: var(--fs-blue);
  }

  .phone_search_injan input {
    display: block;
    width: 100%;
    height: 24px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    outline: none;
    color: var(--fs-text);
    font-size: 16px;
    font-weight: 600;
    text-overflow: ellipsis;
    cursor: inherit;
  }

  .phone_search_injan input::placeholder {
    color: #9aa1ac;
    font-weight: 400;
  }

  .phone_search_injan #fromMainInput::placeholder,
  .phone_search_injan #toMainInput::placeholder {
    color: var(--fs-text);
    font-weight: 600;
  }

  .phone_search_injan p {
    margin: 0;
    color: var(--fs-muted);
    font-size: 12px;
    line-height: 1.2;
    min-height: 14px;
  }

  /* swap icon between origin and destination */
  .change_icon {
    position: absolute;
    left: -18px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--fs-border);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
  }

  .change_icon svg {
    width: 16px;
    height: 16px;
    fill: var(--fs-blue);
  }

  /* passenger box keeps floating-label look, a bit taller */
  #toggle-slow > input {
    height: 56px;
    font-size: 16px;
  }

  .pass-name {
    left: 0;
    right: 0;
    width: auto;
  }

  /* full-screen popups for origin / destination */
  .search_popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    background: #fff;
    overflow-y: auto;
  }

  .popupContent {
    padding: 16px;
  }

  .Origin p {
    margin: 4px 0 14px;
    font-size: 18px;
    font-weight: 700;
    color: var(--fs-text);
  }

  .search_popup .main_input input {
    width: 100%;
    height: 50px;
    padding: 0 14px 0 46px;
    border: 1px solid var(--fs-blue);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 0 0 3px var(--fs-blue-soft);
    font-size: 16px;
    font-weight: 500;
  }

  .search_popup .back-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 46px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    color: var(--fs-blue);
    font-size: 24px;
    cursor: pointer;
  }

  .new_search_sub button {
    height: 50px;
    font-size: 17px;
  }
}

/* =========================================================
   Phones (< 576px)
   ========================================================= */
@media (max-width: 575.98px) {
  #RF_Booking .new_search_trip {
    width: 100%;
    padding: 10px 8px 0;
  }

  #nav-tab li {
    flex: 1;
  }

  #nav-tab li label {
    padding: 9px 8px 9px 36px;
    text-align: center;
    font-size: 14px;
  }

  #RF_Booking .new_search_e {
    padding: 8px 6px 10px;
    border-radius: 0 0 12px 12px;
  }

  .pass-name {
    padding: 12px;
  }
}

/* =========================================================
   Passenger / Class dropdown
   (high specificity so other site CSS cannot override it)
   ========================================================= */
#RF_Booking .pass-name {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  width: 300px;
  max-width: calc(100vw - 24px);
  margin: 0;
  padding: 14px;
  background: #fff;
  border: 1px solid #e3e6ea;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 30, 90, .22);
  overflow: visible;
  z-index: 1000;
}

#RF_Booking .pass-name .passen_con,
#RF_Booking .pass-name .passen_left,
#RF_Booking .pass-name .airclass_con {
  float: none;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

#RF_Booking .pass-name .class_con {
  margin: 0 0 6px;
  padding: 0;
}

#RF_Booking .pass-name select {
  display: block;
  width: 100%;
  height: 42px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  background-color: #fff;
  color: #1d2433;
  font-size: 15px;
  outline: none;
  box-shadow: none;
  cursor: pointer;
}

#RF_Booking .pass-name select:focus {
  border-color: #0066ff;
  box-shadow: 0 0 0 3px rgba(0, 102, 255, .14);
}

#RF_Booking .pass-name .passen_left > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid #eef0f3;
}

#RF_Booking .pass-name .passen_left > span:last-of-type {
  border-bottom: 0;
}

#RF_Booking .pass-name .passen_left > span > label {
  margin: 0;
  padding: 0;
  color: #1d2433;
  font-size: 15px;
  font-weight: 500;
}

#RF_Booking .pass-name .adult-right,
#RF_Booking .pass-name .children-right,
#RF_Booking .pass-name .infants-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}

#RF_Booking .pass-name .qtyminus {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  border: 1px solid #0066ff !important;
  border-radius: 50% !important;
  background: #fff !important;
  color: #0066ff !important;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: background .2s, color .2s, transform .1s;
}

#RF_Booking .pass-name .qtyminus:hover {
  background: #0066ff !important;
  color: #fff !important;
}

#RF_Booking .pass-name .qtyminus:active {
  transform: scale(.92);
}

#RF_Booking .pass-name .adult-minus-txt {
  margin: 0;
  padding: 0;
  color: inherit !important;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}

#RF_Booking .pass-name .qtynumber {
  width: 34px;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none;
  color: #1d2433;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  outline: none;
}

#RF_Booking .pass-name .passen-button {
  display: block;
  width: 100%;
  height: 42px;
  margin: 10px 0 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: #0066ff !important;
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, box-shadow .2s, transform .2s;
}

#RF_Booking .pass-name .passen-button:hover {
  background: #0052cc !important;
  box-shadow: 0 6px 14px rgba(0, 102, 255, .3);
  transform: translateY(-1px);
}

#RF_Booking .pass-name .passen-button:active {
  background: #0047b3 !important;
  box-shadow: none;
  transform: translateY(0);
}

@media (max-width: 991.98px) {
  #RF_Booking .pass-name {
    left: 0;
    right: 0;
    width: auto;
  }
}

/* ---------- Passenger dropdown: compact size ---------- */
@media (min-width: 992px) {
  #RF_Booking .pass-name {
    width: 270px;
  }
}

#RF_Booking .pass-name {
  padding: 10px 12px;
}

#RF_Booking .pass-name select {
  height: 36px;
  font-size: 14px;
}

#RF_Booking .pass-name .class_con {
  margin-bottom: 2px;
}

#RF_Booking .pass-name .passen_left > span {
  padding: 6px 0;
}

#RF_Booking .pass-name .passen_left > span > label {
  font-size: 14px;
}

#RF_Booking .pass-name .qtyminus {
  width: 26px;
  height: 26px;
}

#RF_Booking .pass-name .adult-minus-txt {
  font-size: 16px;
}

#RF_Booking .pass-name .qtynumber {
  width: 30px;
  font-size: 15px;
}

#RF_Booking .pass-name .passen-button {
  height: 36px;
  margin-top: 8px;
  font-size: 14px;
}

/* ---------- Passenger dropdown: CSS-only open / close (no JS) ----------
   press on the field          -> opens and stays open
   press on Done               -> closes
   press anywhere outside box  -> closes                                  */
#RF_Booking #box {
  display: block !important;                 /* overrides the inline display:none */
  visibility: hidden;
  transition: visibility 0s linear 99999s;   /* keeps the last state after the press ends */
}

#RF_Booking .new_search_text_class:has(input[id="txtPaxDetail"]:active) #box {
  visibility: visible;
  transition: visibility 0s linear 0s;
}

#RF_Booking .new_search_text_class:has(.passen-button:active) #box {
  visibility: collapse;
  transition: visibility 0s linear 0s;
}

html:active:not(:has(.new_search_text_class:active)) #RF_Booking #box {
  visibility: collapse;
  transition: visibility 0s linear 0s;
}

/* =========================================================
   Mobile Origin / Destination  ->  Name / Email jaisa inline field
   Box par tap karo -> wahi type karo (popup nahi khulta).
   Popup ka asli autocomplete input box ke upar visible field bana diya hai.
   ========================================================= */
@media (max-width: 991.98px) {

  #RF_Booking #txtMobileFrom,
  #RF_Booking #txtMobileTo {
    position: relative;
  }

  /* swap icon hamesha upar rahe */
  #RF_Booking .change_icon {
    z-index: 10;
  }

  /* label ("Origin" / "Destination") - Name/Email jaisa, upar centered */
  #RF_Booking #txtMobileFrom::before,
  #RF_Booking #txtMobileTo::before {
    position: absolute;
    top: 7px;
    left: 0;
    right: 0;
    z-index: 7;
    text-align: center;
    color: var(--fs-muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    pointer-events: none;
    transition: color .2s;
  }

  #RF_Booking #txtMobileFrom::before { content: "Origin"; }
  #RF_Booking #txtMobileTo::before   { content: "Destination"; }

  #RF_Booking #txtMobileFrom:focus-within::before,
  #RF_Booking #txtMobileTo:focus-within::before {
    color: var(--fs-blue);
  }

  /* popup container: ab popup nahi, box ke upar ka layer */
  #RF_Booking #popupSearchFrom,
  #RF_Booking #popupSearchTo {
    display: block !important;
    visibility: visible;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    background: transparent;
    z-index: 5;
    transition: none;
  }

  /* andar ka baaki sab (heading, back arrow, etc.) chhupa do */
  #RF_Booking #popupSearchFrom *,
  #RF_Booking #popupSearchTo * {
    visibility: hidden;
  }

  #RF_Booking #popupSearchFrom .popupContent,
  #RF_Booking #popupSearchTo .popupContent,
  #RF_Booking #popupSearchFrom .main_input,
  #RF_Booking #popupSearchTo .main_input {
    position: static;
    padding: 0;
    margin: 0;
  }

  /* asli input = visible boxed field */
  #RF_Booking #popupSearchFrom .main_input input,
  #RF_Booking #popupSearchTo .main_input input {
    visibility: visible;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 56px;
    margin: 0;
    padding: 22px 12px 6px;
    border: 1px solid var(--fs-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
    color: var(--fs-text);
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-overflow: ellipsis;
    outline: none;
    cursor: text;
    transition: border-color .2s, box-shadow .2s;
  }

  #RF_Booking #popupSearchFrom .main_input input:hover,
  #RF_Booking #popupSearchTo .main_input input:hover {
    border-color: #8fb4ff;
  }

  #RF_Booking #popupSearchFrom .main_input input:focus,
  #RF_Booking #popupSearchTo .main_input input:focus {
    border-color: var(--fs-blue);
    box-shadow: 0 0 0 3px var(--fs-blue-soft);
  }

  #RF_Booking #popupSearchFrom .main_input input::placeholder,
  #RF_Booking #popupSearchTo .main_input input::placeholder {
    color: #9aa1ac;
    font-weight: 400;
  }
}

/* =========================================================
   Calendar (jQuery UI datepicker) - two months side by side
   ========================================================= */
.ui-datepicker {
  display: none;                              /* plugin shows it with inline display:block */
  box-sizing: border-box;
  width: 300px;
  padding: 14px 12px 10px;
  background: #fff;
  border: 1px solid #e3e6ea;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 30, 90, .25);
  color: #1d2433;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  z-index: 100000 !important;
}

.ui-datepicker * {
  box-sizing: border-box;
}

.ui-datepicker::after {
  content: "";
  display: block;
  clear: both;
}

.ui-datepicker.ui-datepicker-multi-2 {
  width: 640px;
}

.ui-datepicker .ui-datepicker-group {
  position: relative;
  float: left;
  width: 50%;
  padding: 0 10px;
}

.ui-datepicker .ui-datepicker-group-last {
  border-left: 1px solid #eef0f3;
}

.ui-datepicker .ui-datepicker-row-break {
  clear: both;
  width: 100%;
}

.ui-datepicker .ui-datepicker-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  margin: 0 0 8px;
  padding: 0;
  background: transparent;
  border: 0;
}

.ui-datepicker .ui-datepicker-title {
  margin: 0;
  color: #1d2433;
  font-family: "Plus Jakarta Sans", "Inter", system-ui, Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
  position: absolute;
  top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #0066ff;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s;
}

.ui-datepicker .ui-datepicker-prev { left: 0; }
.ui-datepicker .ui-datepicker-next { right: 0; }

.ui-datepicker .ui-datepicker-prev:hover,
.ui-datepicker .ui-datepicker-next:hover {
  background: #eaf2ff;
}

.ui-datepicker .ui-datepicker-prev.ui-state-disabled,
.ui-datepicker .ui-datepicker-next.ui-state-disabled {
  opacity: .3;
  cursor: default;
  background: transparent;
}

/* hide the "Prev"/"Next" text, draw a chevron instead */
.ui-datepicker .ui-datepicker-prev .ui-icon,
.ui-datepicker .ui-datepicker-next .ui-icon {
  display: block;
  width: 9px;
  height: 9px;
  margin: 0;
  overflow: hidden;
  font-size: 0;
  line-height: 0;
  text-indent: 0;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  background: none;
}

.ui-datepicker .ui-datepicker-prev .ui-icon { transform: rotate(-135deg); margin-left: 4px; }
.ui-datepicker .ui-datepicker-next .ui-icon { transform: rotate(45deg); margin-right: 4px; }

.ui-datepicker table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  table-layout: fixed;
}

.ui-datepicker th {
  padding: 6px 0;
  border: 0;
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.ui-datepicker td {
  padding: 1px;
  border: 0;
  text-align: center;
}

.ui-datepicker td a,
.ui-datepicker td span {
  display: block;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #1d2433;
  font-size: 14px;
  font-weight: 500;
  line-height: 32px;
  text-align: center;
  text-decoration: none;
  transition: background .15s, color .15s;
}

.ui-datepicker td a:visited {
  color: #1d2433;
}

.ui-datepicker td a:hover {
  background: #eaf2ff;
  color: #0066ff;
}

.ui-datepicker td.ui-datepicker-today a {
  border-color: #0066ff;
  color: #0066ff;
}

.ui-datepicker td.ui-datepicker-current-day a,
.ui-datepicker td a.ui-state-active {
  background: #0066ff;
  border-color: #0066ff;
  color: #fff;
}

.ui-datepicker td.ui-datepicker-current-day a:hover,
.ui-datepicker td a.ui-state-active:hover {
  background: #0052cc;
  color: #fff;
}

.ui-datepicker td.ui-state-disabled span,
.ui-datepicker td.ui-datepicker-unselectable span,
.ui-datepicker td.ui-datepicker-other-month span {
  color: #c3c8d0;
  cursor: default;
}

.ui-datepicker .ui-datepicker-buttonpane {
  clear: both;
  padding-top: 8px;
}

@media (max-width: 680px) {
  .ui-datepicker.ui-datepicker-multi-2 {
    width: min(330px, calc(100vw - 16px));
  }

  .ui-datepicker .ui-datepicker-group {
    float: none;
    width: 100%;
    padding: 0;
  }

  .ui-datepicker .ui-datepicker-group-last {
    margin-top: 10px;
    padding-top: 10px;
    border-left: 0;
    border-top: 1px solid #eef0f3;
  }
}