/* =========================================================
   Phone Input Widget  –  phone-input.css
   Country-code selector + digit input composite widget.
   ========================================================= */

.pi-wrapper {
  display: flex;
  align-items: stretch;
  width: 100%;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

.pi-country {
  flex-shrink: 0;
  max-width: 178px;
  min-width: 108px;
  padding: 7px 5px;
  margin: 5px;
  border: none;
  border-right: 1px solid #cbd5e0;
  background: #f4f6fb;
  font-size: 0.82rem;
  color: #333;
  cursor: pointer;
  outline: none;
  appearance: auto;
  -webkit-appearance: auto;
  font-family: inherit;
}

.pi-country:focus {
  background: #edf0f8;
}

.pi-number {
  flex: 1;
  min-width: 0;
  padding: 7px 10px;
  border: none;
  outline: none;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  color: #333;
}

.pi-number:disabled {
  background: #f4f6fb;
  color: #aaa;
  cursor: not-allowed;
}

.pi-wrapper:focus-within {
  border-color: #1f3b73;
  box-shadow: 0 0 0 2px rgba(31, 59, 115, 0.15);
}

@media (max-width: 480px) {
  .pi-country {
    max-width: 140px;
    min-width: 90px;
    font-size: 0.78rem;
    padding: 7px 3px;
  }
}
