/* Shared international phone UI. Booking keeps its established class styling;
   Contacts uses the same geometry and interaction through these neutral classes. */
.phone-input {
  display: grid;
  grid-template-columns: minmax(128px, .45fr) minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
}
.phone-input__picker { position: relative; min-width: 0; }
.phone-input__trigger,
.phone-input__number {
  width: 100%;
  min-width: 0;
  min-height: 54px;
  border: 1px solid var(--c-slate-200);
  border-radius: var(--radius-12);
  background: var(--c-white);
  color: var(--c-slate-900);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  outline: none;
  transition: border-color 140ms var(--ease), box-shadow 140ms var(--ease), background 140ms var(--ease);
}
.phone-input__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px;
  cursor: pointer;
}
.phone-input__trigger:hover { border-color: rgba(79,70,229,.3); }
.phone-input__trigger:focus-visible,
.phone-input__picker.is-open .phone-input__trigger,
.phone-input__number:focus {
  border-color: rgba(79,70,229,.55);
  box-shadow: 0 0 0 3px rgba(79,70,229,.11);
}
.phone-input__trigger > .icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: var(--c-slate-500);
  transition: transform .16s ease;
}
.phone-input__picker.is-open .phone-input__trigger > .icon { transform: rotate(180deg); }
.phone-input__current {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.phone-input__current img,
.phone-input__option img {
  width: 24px;
  height: 18px;
  flex: 0 0 24px;
  display: block;
  object-fit: cover;
  border: 1px solid rgba(15,23,42,.1);
  border-radius: 3px;
  background: #fff;
}
.phone-input__current strong {
  overflow: hidden;
  color: var(--c-slate-900);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.phone-input__number { padding: 0 15px; }
.phone-input__number::placeholder { color: var(--c-slate-400); opacity: 1; }
.phone-input__menu {
  position: absolute;
  z-index: 90;
  top: calc(100% + 7px);
  left: 0;
  width: 250px;
  padding: 6px;
  border: 1px solid var(--c-slate-200);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(15,23,42,.15);
}
.phone-input__menu[hidden] { display: none; }
.phone-input__option {
  width: 100%;
  min-height: 42px;
  display: grid;
  grid-template-columns: 24px minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--c-slate-700);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.phone-input__option:hover,
.phone-input__option:focus-visible { outline: none; background: rgba(79,70,229,.06); }
.phone-input__option.is-selected { background: rgba(79,70,229,.09); color: var(--c-indigo-600); }
.phone-input__option span:not(.phone-input__country-globe) {
  overflow: hidden;
  font-size: 13px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.phone-input__option strong { color: currentColor; font-size: 13px; font-weight: 800; white-space: nowrap; }
.phone-input__country-globe {
  width: 24px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--c-indigo-600);
}
.phone-input__country-globe .icon { width: 19px; height: 19px; }
.contact-field.is-invalid .phone-input__trigger,
.contact-field.is-invalid .phone-input__number {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,.07);
}
@media (max-width: 767px) {
  .phone-input { grid-template-columns: 136px minmax(0,1fr); }
  .phone-input__menu { width: min(250px, calc(100vw - 58px)); }
  .phone-input__current img,
  .phone-input__option img { width: 22px; height: 16.5px; flex-basis: 22px; }
  .phone-input__option { grid-template-columns: 22px minmax(0,1fr) auto; }
}
@media (max-width: 390px) {
  .phone-input { grid-template-columns: 122px minmax(0,1fr); }
}
