.phone-field {
  position: relative;
}

.phone-field__combo {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.phone-field__country {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 0 12px;
  min-width: 108px;
  border: 1px solid var(--border);
  border-inline-end: none;
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
}

.phone-field__country:hover,
.phone-field__country[aria-expanded="true"] {
  border-color: var(--gold-mid);
  background: rgba(255, 255, 255, 0.04);
}

.phone-field__flag {
  font-size: 20px;
  line-height: 1;
}

.phone-field__dial {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.phone-field__chevron {
  margin-inline-start: auto;
  color: var(--text-soft);
  transition: transform 0.2s;
}

.phone-field__country[aria-expanded="true"] .phone-field__chevron {
  transform: rotate(180deg);
}

.phone-field__input {
  flex: 1;
  min-width: 0;
  border-start-start-radius: 0;
  border-end-start-radius: 0;
}

.phone-field__combo:focus-within .phone-field__country,
.phone-field__combo:focus-within .phone-field__input {
  border-color: var(--gold-mid);
}

.phone-field__combo:focus-within .phone-field__input {
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.phone-field__dropdown {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  inset-inline: 0;
  max-height: 280px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #0d1f18;
  border: 1px solid rgba(212, 175, 75, 0.2);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.phone-field__dropdown[hidden] {
  display: none !important;
}

.phone-field__search {
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 14px;
  outline: none;
}

.phone-field__search::placeholder {
  color: var(--text-soft);
}

.phone-field__list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  overflow-y: auto;
}

.phone-field__option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  text-align: start;
  cursor: pointer;
  transition: background 0.15s;
}

.phone-field__option:hover,
.phone-field__option.is-active {
  background: rgba(212, 175, 75, 0.12);
}

.phone-field__option-flag {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.phone-field__option-name {
  flex: 1;
  min-width: 0;
}

.phone-field__option-dial {
  color: var(--text-soft);
  font-size: 13px;
  flex-shrink: 0;
}

.lux-input.phone-field__input {
  background: rgba(5, 24, 16, 0.5);
}

.phone-field__country {
  background: rgba(5, 24, 16, 0.5);
  border-color: rgba(212, 175, 75, 0.15);
}

.phone-field__hint {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-soft);
}

.phone-field__hint--warn {
  color: #e8b86d;
}
