/* ── Shared intl-tel-input dark theme ──────────────────────────────────
   Applies to any page that calls FFForms.initPhone(), which adds `ff-iti`
   to <body>. Scoped to body.ff-iti so it never touches flight.php (which uses
   its own body.flight-page theme in flight-form.css). */

body.ff-iti .iti {
  width: 100%;
  display: block;
}

body.ff-iti .iti--separate-dial-code .iti__selected-flag {
  background-color: transparent;
  padding-left: 6px;
}

body.ff-iti .iti__selected-flag {
  outline: none;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.15s;
}

body.ff-iti .iti__selected-flag:hover,
body.ff-iti .iti__selected-flag:focus {
  background-color: rgba(16, 185, 129, 0.08);
}

body.ff-iti .iti__selected-dial-code {
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding-right: 6px;
}

body.ff-iti .iti__arrow {
  border-top-color: rgba(255, 255, 255, 0.5);
}

/* ── country dropdown (floated to <body> via dropdownContainer) ── */
body.ff-iti .iti__country-selector {
  background-color: #141a22 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 8px !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55) !important;
  padding: 4px !important;
  z-index: 9999;
  overflow: hidden;
  --iti-country-selector-bg: #141a22;
  --iti-hover-color: rgba(16, 185, 129, 0.10);
  --iti-border-color: rgba(255, 255, 255, 0.12);
  --iti-icon-color: rgba(255, 255, 255, 0.55);
}

body.ff-iti .iti__country-list {
  background: transparent;
  max-height: 240px;
  overflow-y: auto;
}

body.ff-iti .iti__country-list::-webkit-scrollbar { width: 8px; }
body.ff-iti .iti__country-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}
body.ff-iti .iti__country-list::-webkit-scrollbar-track { background: transparent; }

body.ff-iti .iti__country {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 6px;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
  transition: background 0.12s, color 0.12s;
}

body.ff-iti .iti__country:hover,
body.ff-iti .iti__country.iti__highlight {
  background: rgba(16, 185, 129, 0.10);
  color: #fff;
}

body.ff-iti .iti__country.iti__active {
  background: rgba(16, 185, 129, 0.16);
  color: #22c56e;
  font-weight: 600;
}

body.ff-iti .iti__dial-code {
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

body.ff-iti .iti__country.iti__active .iti__dial-code {
  color: #22c56e;
}

body.ff-iti .iti__divider {
  border-color: rgba(255, 255, 255, 0.06);
}

body.ff-iti .iti__flag {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

/* ── search/filter field inside the dropdown header ── */
body.ff-iti .iti__search-input-wrapper {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin: 0 2px 4px;
  border-radius: 0;
}

body.ff-iti .iti__search-input {
  background: transparent;
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  border: none;
  border-radius: 0;
  padding-top: 9px;
  padding-bottom: 9px;
  caret-color: #22c56e;
  outline: none;
}

body.ff-iti .iti__search-input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

body.ff-iti .iti__search-icon-svg {
  stroke: rgba(255, 255, 255, 0.55);
}

body.ff-iti .iti__search-clear:hover,
body.ff-iti .iti__search-clear:focus {
  background: rgba(16, 185, 129, 0.12);
  outline: none;
}

body.ff-iti .iti__search-clear-bg {
  fill: rgba(255, 255, 255, 0.55);
}

body.ff-iti .iti__no-results {
  color: rgba(255, 255, 255, 0.55);
  font-family: "DM Sans", sans-serif;
  font-size: 12.5px;
  padding: 16px 0;
}