/* International phone input — shared across signup, profile, settings, invites. */
.phone-field {
  position: relative;
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border, #e0e0e0);
  border-radius: var(--radius-md, 10px);
  background: #fff;
  overflow: visible;
  transition: border-color .15s ease, box-shadow .15s ease;
}
/* Highlight the whole control (brand blue) when either the dial button or number field is active. */
.phone-field:focus-within {
  border-color: var(--dark-blue, #1f2937);
  outline: none;
}
.phone-field.pf-invalid { border-color: var(--danger, #ef4444); }

.phone-field .pf-country {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--border, #e0e0e0);
  border-radius: var(--radius-md, 10px) 0 0 var(--radius-md, 10px);
  cursor: pointer;
  font-size: 14px;
  color: var(--black, #222);
  white-space: nowrap;
  transition: background .15s ease;
}
.phone-field .pf-country:hover { background: var(--off-white, #fafafa); }
.phone-field .pf-flag { font-size: 20px; line-height: 1; }
.phone-field .pf-dial { font-weight: 700; letter-spacing: .2px; }
.phone-field .pf-caret { color: var(--gray, #666); font-size: 10px; transition: transform .2s ease; }
/* Flip the caret while the country list is open. */
.phone-field:has(.pf-dropdown:not([hidden])) .pf-caret { transform: rotate(180deg); }

.phone-field .pf-number {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--black, #222);
  background: transparent;
  border-radius: 0 var(--radius-md, 10px) var(--radius-md, 10px) 0;
}

.phone-field .pf-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 60;
  background: #fff;
  border: 1px solid var(--border, #e0e0e0);
  border-radius: var(--radius-lg, 14px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
  overflow: hidden;
}
.phone-field .pf-search {
  width: 100%;
  box-sizing: border-box;
  border: 0;
  border-bottom: 1px solid var(--border-light, #f0f0f0);
  padding: 13px 16px;
  font-size: 14px;
  outline: none;
}
.phone-field .pf-search::placeholder { color: var(--gray-light, #999); }
.phone-field .pf-list {
  max-height: 264px;
  overflow-y: auto;
  padding: 6px;
  scrollbar-width: thin;
}
.phone-field .pf-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  cursor: pointer;
  font-size: 14px;
  border-radius: 8px;
}
.phone-field .pf-item:hover,
.phone-field .pf-item-active {
  background: color-mix(in srgb, var(--dark-blue, #1f2937) 8%, transparent);
}
.phone-field .pf-item-flag { font-size: 20px; line-height: 1; }
.phone-field .pf-item-name { flex: 1; color: var(--black, #222); }
.phone-field .pf-item-dial { color: var(--gray, #666); font-variant-numeric: tabular-nums; }
