.mg-phone {
  display: flex;
  align-items: center;
  gap: .25rem;
  font-variant-numeric: tabular-nums;
}

.mg-phone:focus-within { border-color: #19569a; }
.mg-phone:has(+ .is-invalid) { border-color: var(--bs-danger, #dc3545); }
.mg-phone > input {
  width: 3ch;
  box-sizing: content-box;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: center;
}
.mg-phone > input[maxlength="2"] { width: 2ch; }
.mg-phone > input:focus-visible { outline-offset: 1px; }
