/* =========================================================
   Flight Booking Public UI (Responsive, Screenshot-style)
   Scoped under .fb-public-wrap to avoid theme conflicts
========================================================= */

.fb-public-wrap {
  --fb-text: rgba(255, 255, 255, 0.92);
  --fb-muted: rgba(255, 255, 255, 0.65);
  --fb-muted2: rgba(255, 255, 255, 0.45);
  --fb-pill: rgba(255, 255, 255, 0.95);
  --fb-pill-text: #111;
  --fb-accent: #b6401f;
  --fb-accent-hover: #a43a1c;
  position: relative;
  color: var(--fb-text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}


.city-range {
  display: flex;
}

.fb-public-wrap * {
  box-sizing: border-box;
  padding: 5px;
}

.fb-public-card {
  position: relative;

  background: rgba(255, 255, 255, 0.394);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);

}

.fb-public-form {
  width: 100%;
}

/* Trip toggle (Return / One way) */
.fb-row-trip {
  display: flex;
  gap: 18px;
  padding: 10px;
  align-items: center;
}

.fb-radio {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fb-muted);
  font-size: 14px;
  user-select: none;
}

.fb-radio input {
  width: 16px;
  height: 16px;
  accent-color: var(--fb-accent);
}

/* Main grid */
.fb-row-main {
  gap: 14px;
  align-items: end;
}

/* Field base */
.fb-field label {
  display: block;
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffff;
  font-weight: bold;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;

  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 14px;
}



.fb-field input,
.fb-field select {
  width: 100%;
  height: 56px;
  border-radius: 999px;
  border: 0;
  outline: none;
  padding: 0 18px;
  background: var(--fb-pill);
  color: var(--fb-pill-text);
  font-size: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.fb-field input::placeholder {
  color: rgba(0, 0, 0, 0.45);
}

.fb-field input:focus,
.fb-field select:focus {
  box-shadow: 0 0 0 4px rgba(180, 64, 31, 0.20), 0 10px 26px rgba(0, 0, 0, 0.25);
}

/* Suggestions dropdown */
.fb-has-suggest {
  position: relative;
  width: 100%;
}

.fb-suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(25, 25, 25, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  display: none;
  /* your JS should toggle */
  z-index: 30;
}

.fb-suggest .fb-item,
.fb-suggest div {
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  cursor: pointer;
}

.fb-suggest .fb-item:hover,
.fb-suggest div:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* From/To swap button (screenshot center icon) */
.fb-route-wrap {
  position: relative;
  display: contents;
  /* allows fields to stay in grid */
}

.fb-swap {
  position: absolute;
  left: 50%;
  top: 36px;
  transform: translateX(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(22, 22, 22, 0.92);
  color: rgba(255, 255, 255, 0.92);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.fb-swap:hover {
  background: rgba(28, 28, 28, 0.95);
}

/* Date range wrapper to look like “Depart / Return” group */
.fb-date-range {

  gap: 14px;

}

/* Return field hide animation */
.fb-return.is-hidden {
  display: none !important;
}

.fb-return {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.fb-return.is-hidden {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}


/* Passengers summary field looks clickable */
.fb-passenger-trigger input {
  cursor: pointer;
}

/* CTA button */
.fb-submit-wrap {
  grid-column: 1 / -1;
}

.fb-btn-primary {
  border: 0;
  outline: none;
  height: 56px;
  padding: 0 22px;
  border-radius: 999px;
  background: #644E2B;
  color: #fff;
  font-weight: 650;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 18px 44px rgba(180, 64, 31, 0.35);
}

.fb-btn-primary:hover {
  background: #32240d;
  border: 2px solid #fff;
}

.fb-btn-block {
  width: 100%;
}

/* Footer perks (optional like screenshot bottom row) */
.fb-perks {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
}

.fb-perks .fb-perk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Results */
.fb-results {
  position: relative;
  z-index: 2;
  width: min(1040px, 100%);
  margin: 18px auto 0;
}

/* =========================================================
   Modal (Passenger + Booking) - Fullscreen on mobile,
   centered card on desktop
========================================================= */
.fb-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  /* max safe z-index */
}


.fb-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(2px);
}

.fb-modal-card,
.fb-passenger-card {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, calc(100% - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  border-radius: 18px;
  background: rgba(20, 20, 20, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.55);

}

/* Passenger card a bit wider on desktop */
.fb-passenger-card {
  width: min(560px, calc(100% - 24px));
  padding: 1rem;
  border-radius: 30px;
}

.fb-modal-head,
.fb-passenger-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.fb-modal-title,
.fb-passenger-title {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 650;
  font-size: 16px;
}

.fb-modal-close {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.fb-modal-body,
.fb-passenger-body {
  padding: 14px;
}

.fb-flight-summary {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.85);
}

/* Passenger rows */
.fb-p-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
}

.fb-p-label {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
}

.fb-p-sub {
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  margin-top: 2px;
}

.fb-counter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.fb-minus,
.fb-plus {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.fb-count {
  min-width: 18px;
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 650;
}

.fb-p-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.10);
  margin: 10px 0;
}

.fb-p-class label {
  display: block;
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

#fb-cabin-class {
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  padding: 0 12px;
  width: 100%;
}

.fb-passenger-done {
  margin-top: 12px;
  height: 56px;
  width: 100%;
}

.fb-passenger-hint {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

/* Booking form fields inside dark modal */
.fb-booking-form .fb-field input {
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: none;
}

.fb-booking-form .fb-field input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.fb-msg {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.85);
}

/* =========================================================
   Responsive Breakpoints
========================================================= */
@media (max-width: 980px) {

  .city-range {

    flex-direction: column;
  }




  /* Swap button aligns between first two fields */
  .fb-swap {
    top: 34px;
  }
}

@media (max-width: 640px) {

  .fb-public-wrap * {
    padding: 2px;
  }

  .fb-date-range {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }

  .fb-field {
    width: 100% !important;
    margin: 10px 0 !important;
  }


  .fb-date-range .fb-date-range {
    width: 100% !important;
  }


  .fb-row-main {

    gap: 12px;
  }



  .fb-swap {
    position: static;
    transform: none;
    width: 100%;
    height: 44px;
    border-radius: 14px;
    margin: 6px 0 0;
  }

  /* Fullscreen modal for easy passenger + seats selection */
  .fb-modal-card,
  .fb-passenger-card {
    left: 0;
    top: 0;
    transform: none;
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
    z-index: 2147483647;
  }

  .fb-modal-close {
    width: 42px;
    height: 42px;
  }

  .fb-perks {
    flex-direction: column;
    align-items: flex-start;
  }




}


body.fb-modal-open {
  overflow: auto;
}


.fb-passenger-trigger {
  width: 50%;
}

.fb-submit-wrap {
  width: 50%;
}

.Passenger-ButtonWrapper {
  display: flex;
}


.fb-p-class {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fb-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
}

/* Group */
.fb-radio-group {
  display: flex;
  gap: 10px;
}

/* Hide native radio */
.fb-radio input {
  display: none;
}

/* Radio card */
.fb-radio span {
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;

  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;

  transition: all 0.25s ease;
}

/* Hover */
.fb-radio span:hover {
  background: rgba(122, 90, 56, 0.35);
}

/* Checked state */
.fb-radio input:checked+span {
  background: linear-gradient(145deg, #7a5a38, #c9b18a);
  color: #1a1a1a;
  box-shadow: 0 8px 20px rgba(122, 90, 56, 0.6);
  border-color: transparent;
}




/* =========================================================
   Trip Toggle – Glass Segmented Control
========================================================= */

.fb-row-trip {
  display: flex;
  gap: 12px;
  padding: 10px 0;
}

/* Wrapper label */
.fb-trip-option {
  position: relative;
  flex: 0 0 auto;
}

/* Hide native radio */
.fb-trip-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Pill */
.fb-trip-option span {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 120px;
  height: 44px;
  padding: 0 20px;

  border-radius: 999px;
  cursor: pointer;

  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;

  color: rgba(255, 255, 255, 0.7);

  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: all 0.25s ease;
}

/* Hover */
.fb-trip-option span:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Selected */
.fb-trip-option input:checked+span {
  background: linear-gradient(145deg, #7a5a38, #c9b18a);
  color: #1a1a1a;

  border-color: transparent;
  box-shadow:
    0 10px 28px rgba(122, 90, 56, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

/* Mobile – full width */
@media (max-width: 640px) {
  .fb-row-trip {
    width: 100%;
  }

  .fb-trip-option {
    flex: 1;
  }

  .fb-trip-option span {
    width: 100%;
    min-width: unset;
  }
}


/* One Way selected */
.fb-date-range.is-oneway {
  grid-template-columns: 1fr !important;
}



.fb-result-card {
  background: #0f172a;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 200px;
}

.fb-result-top {
  display: flex;
  gap: 10px;
  align-items: center;
}

.fb-airline-logo {
  width: 36px;
  height: 36px;
  background: #1e293b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.fb-route-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.fb-time-group {
  text-align: center;
  min-width: 48px;
}

.fb-time {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.fb-place {
  font-size: 11px;
  opacity: 0.8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fb-duration {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: center;
}

.fb-line {
  height: 2px;
  background: #334155;
  flex: 1;
}

.fb-duration-text {
  font-size: 11px;
  opacity: 0.8;
  white-space: nowrap;
}

.fb-result-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.fb-flight-meta {
  font-size: 12px;
  opacity: 0.85;
}

.fb-price-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fb-price {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.fb-btn-primary {
  background: linear-gradient(145deg, #7a5a38, #c9b18a);
  border: none;
  padding: 6px 10px;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.fb-btn-primary:active {
  transform: scale(0.97);
}

/* Ultra-small screens (200–260px) */
@media (max-width: 260px) {
  .fb-result-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .fb-route-info {
    flex-direction: column;
    gap: 6px;
  }

  .fb-duration {
    width: 100%;
  }

  .fb-result-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .fb-price-group {
    width: 100%;
    justify-content: space-between;
  }

  .fb-btn-primary {
    width: 100%;
    text-align: center;
  }
}