/* ── Tokens ──
   Brand palette lives in the shared css/brand.css (linked by signup.html
   before this file). No signup-specific tokens are needed. */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: var(--font-body);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg-base);
  color: var(--fg);
  min-height: 100vh;
  min-height: 100dvh;
}

::selection { background: var(--accent-tint-2); color: var(--fg-strong); }

/* ── Skip link ── */
.skip-link {
  position: absolute; top: -56px; left: 0; z-index: 99999;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: 14px; padding: 10px 20px;
  border-radius: 0 0 8px 0; text-decoration: none;
  transition: top 0.15s;
}
.skip-link:focus { top: 0 !important; }

/* ── Background orbs ── */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.30;
  z-index: 0;
}
.orb1 { width: 520px; height: 520px; background: #E9D6A4; top: -160px; left: -160px; }
.orb2 { width: 420px; height: 420px; background: #E8C0B0; bottom: -110px; right: -110px; }
.orb3 { width: 320px; height: 320px; background: #C2D8CD; top: 38%; left: 42%; }

@media (prefers-reduced-motion: reduce) {
  .bg-orb { filter: none; opacity: 0.12; }
}

/* ── Page layout ── */
.page-wrap {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

/* ── Header ── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--accent-border);
  background: rgba(253,251,247,0.86);
  box-shadow: 0 4px 20px rgba(76,60,28,0.06);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
  gap: 12px;
  flex-wrap: wrap;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.logo-disc {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-200), var(--gold-400));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--accent-ink);
  flex-shrink: 0;
}

.logo-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: 0.01em;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.signin-link {
  font-size: 13px;
  color: var(--fg-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur-fast);
}
.signin-link:hover { color: var(--accent-strong); }
.signin-link:focus-visible { outline: none; box-shadow: var(--ring-focus); border-radius: 4px; }

/* ── Language toggle ── */
.lang-toggle {
  display: flex;
  gap: 4px;
}

.lang-btn {
  font-size: 11px;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg-muted);
  cursor: pointer;
  letter-spacing: 0.04em;
  font-family: var(--font-body);
  transition: all var(--dur-fast) var(--ease-out);
}
.lang-btn.active {
  background: var(--accent-tint);
  border-color: var(--accent-border);
  color: var(--accent-strong);
}
.lang-btn:focus-visible { outline: none; box-shadow: var(--ring-focus); }

/* ── Main content ── */
.main-content {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px 60px;
}

/* ── Wizard card — elevated white card on the cream canvas ── */
.wizard-card {
  background: var(--bg-elev-1);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-2xl);
  padding: 40px 48px;
  width: 100%;
  max-width: 600px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
/* Hairline gold sheen along the card's top edge */
.wizard-card::before {
  content: '';
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, transparent, var(--gold-200), transparent);
}

/* ── Progress ── */
.progress-wrap {
  margin-bottom: 32px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--accent-strong);
  margin-bottom: 8px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.progress-track {
  height: 5px;
  background: var(--gold-100);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-400), var(--gold-200));
  border-radius: var(--radius-pill);
  transition: width 0.35s var(--ease-out);
}

.step-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-100);
  border: 1px solid var(--accent-border);
  transition: background var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast);
}
.dot.active {
  background: var(--accent);
  border-color: var(--gold-400);
  transform: scale(1.3);
}
.dot.done {
  background: var(--gold-500);
  border-color: var(--gold-500);
}

/* ── Step sections ── */
.step { animation: stepIn 0.25s var(--ease-out) both; }
.step.hidden { display: none !important; }

@keyframes stepIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .step { animation: none; }
  .progress-fill { transition: none; }
}

/* ── Step headings ── */
.step-heading {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 4px;
  outline: none;
}

.step-sub {
  font-size: 13px;
  color: var(--fg-muted);
  margin-bottom: 24px;
}

/* ── Form groups ── */
.form-group {
  margin-bottom: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}

.optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--fg-dim);
  font-size: 10px;
}

/* ── Input wrapper — subtle cream fill, gold ring on focus ── */
.input-wrapper {
  background: var(--bg-elev-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  /* Vertical padding lives on the input/select (below) so the whole visible
     field is focusable — with it here, taps near the field's top/bottom edge
     landed on the wrapper and focused nothing. */
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}
.input-wrapper:focus-within {
  border-color: var(--gold-300);
  background: var(--bg-elev-1);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.16);
}
.input-wrapper.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px var(--danger-tint);
}

.input-wrapper svg,
.input-wrapper i {
  color: var(--fg-dim);
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.input-wrapper input,
.input-wrapper select {
  background: transparent;
  border: none;
  outline: none;
  color: var(--fg);
  font-size: 14px;
  width: 100%;
  padding: 11px 0;
  font-family: var(--font-body);
}
.input-wrapper input::placeholder { color: var(--fg-dim); }
.input-wrapper input[aria-invalid="true"] { color: var(--fg); }

/* Select styling */
.select-wrap select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.select-wrap::after {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--fg-dim);
  border-bottom: 2px solid var(--fg-dim);
  transform: rotate(45deg) translateY(-3px);
  flex-shrink: 0;
  pointer-events: none;
}
.select-wrap select option {
  background: var(--bg-elev-3);
  color: var(--fg);
}

/* ── Password toggle ── */
.pass-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--fg-dim);
  /* generous hit area around the small eye icon; the negative margin
     keeps the visual footprint inside the field unchanged */
  padding: 12px 10px;
  margin: 0 -10px 0 0;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: color var(--dur-fast);
  border-radius: 4px;
}
.pass-toggle:hover { color: var(--accent-strong); }
.pass-toggle:focus-visible { outline: none; box-shadow: var(--ring-focus); }
.pass-toggle svg, .pass-toggle i { width: 15px; height: 15px; }

/* ── Strength meter ── */
.strength-meter {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.strength-bar {
  display: flex;
  gap: 4px;
  flex: 1;
}
.strength-seg {
  height: 3px;
  flex: 1;
  border-radius: var(--radius-pill);
  background: var(--bg-inset);
  border: 1px solid var(--border);
  transition: background 0.2s, border-color 0.2s;
}
.strength-text {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  min-width: 36px;
  color: var(--fg-dim);
}
.strength-text.weak   { color: var(--danger); }
.strength-text.fair   { color: var(--gold-500); }
.strength-text.strong { color: var(--success); }

/* Segment colors driven by class on the bar — JS sets .weak/.fair/.strong on .strength-bar */
.strength-bar.weak   .strength-seg:nth-child(-n+1) { background: var(--danger);   border-color: var(--danger); }
.strength-bar.fair   .strength-seg:nth-child(-n+2) { background: var(--gold-400); border-color: var(--gold-400); }
.strength-bar.strong .strength-seg                  { background: var(--success); border-color: var(--success); }

/* ── Field error ── */
.field-error {
  display: block;
  font-size: 11px;
  color: var(--danger);
  margin-top: 4px;
  min-height: 16px;
}
.field-error:empty { display: none; }

/* ── Field hint ──
   Neutral counterpart to .field-error: used by the dependent City field to say
   which country's municipality list is currently in force. */
.field-hint {
  display: block;
  font-size: 11px;
  color: var(--fg-muted, #8a8078);
  margin-top: 4px;
}
.field-hint[hidden], .field-hint:empty { display: none; }

/* ── Error banner ── */
.form-error-banner {
  background: var(--danger-tint);
  border: 1px solid rgba(180,82,75,0.35);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--danger);
  margin-bottom: 16px;
  text-align: center;
}
.form-error-banner[hidden] { display: none; }

/* ── Stepper ── */
.stepper {
  display: flex;
  align-items: center;
  background: var(--bg-elev-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 42px;
}

.stepper-btn {
  width: 38px;
  height: 100%;
  background: none;
  border: none;
  color: var(--fg-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast), color var(--dur-fast);
  flex-shrink: 0;
}
.stepper-btn:hover { background: var(--accent-tint); color: var(--accent-strong); }
.stepper-btn:active { background: var(--accent-tint-2); }
.stepper-btn:focus-visible { outline: none; box-shadow: var(--ring-focus); }
.stepper-btn svg, .stepper-btn i { width: 14px; height: 14px; }

.stepper-input {
  flex: 1;
  background: transparent;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  outline: none;
  color: var(--fg);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  font-family: var(--font-body);
  -moz-appearance: textfield;
  height: 100%;
}
.stepper-input::-webkit-inner-spin-button,
.stepper-input::-webkit-outer-spin-button { -webkit-appearance: none; }

/* ── Service chips ── */
.chips-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.chip {
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-elev-1);
  color: var(--fg-muted);
  font-size: 13px;
  font-family: var(--font-body);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast), transform var(--dur-fast);
}
.chip:hover {
  border-color: var(--accent-border);
  color: var(--accent-strong);
  background: var(--gold-50);
}
.chip.selected {
  background: var(--accent-tint-2);
  border-color: var(--gold-400);
  color: var(--accent-strong);
  font-weight: 600;
}
.chip:focus-visible { outline: none; box-shadow: var(--ring-focus); }
@media (prefers-reduced-motion: reduce) {
  .chip { transition: none; }
}

/* ── Plan cards ── */
.plan-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.plan-card {
  position: relative;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elev-1);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast), transform var(--dur-fast);
  display: block;
  padding-top: 0;
}
.plan-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
@media (prefers-reduced-motion: reduce) {
  .plan-card { transition: border-color var(--dur-fast); }
  .plan-card:hover { transform: none; }
}

.plan-radio {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0; pointer-events: none;
}

.plan-card:has(.plan-radio:checked) {
  border-color: var(--gold-400);
  background: linear-gradient(180deg, var(--bg-elev-1), var(--gold-50));
  box-shadow: 0 0 0 3px rgba(212,175,55,0.16), var(--shadow-sm);
}
.plan-card:focus-within {
  box-shadow: var(--ring-focus);
}

.plan-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--gold-400), var(--gold-200));
  color: var(--accent-ink);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 0 0 8px 8px;
  white-space: nowrap;
}

.plan-inner {
  padding: 20px 16px 16px;
}

.plan-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 4px;
}

.plan-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-strong);
  margin-bottom: 12px;
  /* Reserve a consistent price-row height so feature lists align across all
     three cards (Enterprise shows "Contact us" instead of a $/mo figure). */
  min-height: 30px;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.plan-price.plan-contact {
  font-size: 15px;
  color: var(--fg-muted);
  font-weight: 500;
  align-items: center;
}
.plan-per {
  font-size: 12px;
  font-weight: 400;
  color: var(--fg-muted);
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.plan-features li {
  font-size: 12px;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.plan-features li svg,
.plan-features li i {
  color: var(--accent-strong);
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* ── Trial note ── */
.trial-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--fg-muted);
  background: var(--accent-tint);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 20px;
}
.trial-note svg,
.trial-note i {
  color: var(--accent-strong);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ── Checkbox / terms ── */
.terms-group { margin-bottom: 4px; }

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0; pointer-events: none;
}

.checkbox-custom {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-strong);
  border-radius: 4px;
  background: var(--bg-elev-1);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast), border-color var(--dur-fast);
  margin-top: 1px;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
  background: var(--accent);
  border-color: var(--accent);
}
.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border-right: 2px solid var(--accent-ink);
  border-bottom: 2px solid var(--accent-ink);
  transform: rotate(40deg) translate(-1px, -1px);
}
.checkbox-label input[type="checkbox"]:focus-visible + .checkbox-custom {
  box-shadow: var(--ring-focus);
}

.terms-link {
  color: var(--accent-strong);
  text-decoration: none;
  transition: color var(--dur-fast);
}
.terms-link:hover { color: var(--gold-600); text-decoration: underline; }

/* ── Wizard nav ── */
.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  gap: 12px;
}

/* ── Primary button — soft metallic gold, grounded radius ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(180deg, #D0AD65 0%, var(--gold-300) 55%, #B8934C 100%);
  color: var(--accent-ink);
  border: 1px solid rgba(122,93,34,0.40);
  border-radius: var(--radius-btn);
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), var(--shadow-sm);
  transition: background var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
  min-height: 46px;
  letter-spacing: 0.02em;
  text-decoration: none;
  justify-content: center;
}
.btn-primary:hover {
  background: linear-gradient(180deg, #C29C52 0%, var(--gold-400) 55%, #A5813C 100%);
  transform: translateY(-1px) scale(1.01);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25),
              0 4px 6px -1px rgba(197,160,89,0.25),
              0 10px 24px -8px rgba(118,90,35,0.35);
}
.btn-primary:active { transform: translateY(0) scale(1); }
.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn-primary:focus-visible { outline: none; box-shadow: var(--ring-focus); }
.btn-primary svg, .btn-primary i { width: 16px; height: 16px; flex-shrink: 0; }
.btn-full { width: 100%; margin-top: 16px; }

/* ── Back button ── */
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-elev-1);
  color: var(--fg-muted);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-btn);
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
  min-height: 46px;
  letter-spacing: 0.01em;
}
.btn-back:hover { background: var(--bg-elev-3); color: var(--fg); border-color: var(--border-strong); }
.btn-back:focus-visible { outline: none; box-shadow: var(--ring-focus); }
.btn-back.hidden { visibility: hidden; pointer-events: none; }
.btn-back svg, .btn-back i { width: 16px; height: 16px; }

/* ── Spinner ── */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(43,33,16,0.25);
  border-top-color: var(--accent-ink);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 2s; }
}

/* ── Success screen ── */
.success-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.success-icon svg {
  width: 72px;
  height: 72px;
}
.success-heading {
  text-align: center;
  font-size: 28px;
  color: var(--fg-strong);
  margin-bottom: 8px;
}
#stepSuccess .step-sub {
  text-align: center;
  margin-bottom: 0;
}
#successSignIn {
  display: flex;
  width: 100%;
  margin-top: 28px;
}

/* ── Footer ── */
.page-footer {
  border-top: 1px solid var(--border-soft);
  padding: 16px 24px;
  text-align: center;
  font-size: 12px;
  color: var(--fg-dim);
}
.page-footer a {
  color: var(--fg-muted);
  text-decoration: none;
  transition: color var(--dur-fast);
}
.page-footer a:hover { color: var(--accent-strong); }
.footer-copy { color: var(--fg-dim); }

/* ── Mobile responsive ── */
@media (max-width: 640px) {
  .wizard-card { padding: 28px 20px; border-radius: var(--radius-lg); }
  .plan-cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .step-heading { font-size: 22px; }
  .plan-badge { position: static; transform: none; border-radius: 6px; display: inline-block; margin-bottom: 8px; }
  .page-header { padding: 12px 16px; }
  .main-content { padding: 24px 12px 48px; }
  .signin-link { display: none; }
}

@media (max-width: 400px) {
  .wizard-card { padding: 22px 14px; }
  .logo-name { display: none; }
  .chips-group { gap: 6px; }
  .chip { padding: 6px 12px; font-size: 12px; }
}

/* ── Phone control (shared component) ────────────────────────────────────────
   public/css/phone-input.css styles the country-flag + dial-code control using
   the APP's token set (tokens.css). This page runs on brand.css instead, which
   defines most of the same names but not --font-mono / --z-popover, and sizes
   its fields differently from the app's compact modals. These overrides fill
   the two gaps and match the control to the wizard's taller inputs. */
.phone-field {
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
  --z-popover: 100;
}
.phone-field .phone-input-wrap {
  background: var(--bg-elev-3);
  border-color: var(--border);
  border-radius: var(--radius-md);
}
.phone-field .phone-input-wrap:focus-within {
  border-color: var(--gold-300);
  background: var(--bg-elev-1);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.16);
}
.phone-field .phone-input-wrap.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px var(--danger-tint);
}
/* Match .input-wrapper input metrics (14px text, 11px vertical padding). */
.phone-field .phone-input-wrap input {
  font-size: 14px;
  padding: 11px 14px 11px 6px;
  font-family: var(--font-body);
}
.phone-field .phone-input-country { padding: 0 10px 0 14px; }
.phone-field .phone-input-country .phone-input-dial { font-size: 13px; }

/* The dropdown is portalled to <body>, so it sits outside .phone-field and
   cannot inherit the fallbacks above — give it its own. */
.phone-input-dropdown {
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
  --z-popover: 100;
}

/* ── Google Places autocomplete dropdown ─────────────────────────────────────
   .pac-container is injected into <body> by the Maps SDK with its own inline
   styles; these bring it in line with the cream/gold surface. */
.pac-container {
  background: var(--bg-elev-1);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-family: var(--font-body);
  margin-top: 4px;
  z-index: 100;
}
.pac-container:after { display: none; }  /* strips the "powered by Google" bar's default spacing */
.pac-item {
  padding: 8px 12px;
  border-top: 1px solid var(--border-soft);
  color: var(--fg-muted);
  font-size: 13px;
  cursor: pointer;
}
.pac-item:first-child { border-top: none; }
.pac-item:hover, .pac-item-selected { background: var(--gold-100); }
.pac-item-query { color: var(--fg); font-size: 13px; }
.pac-matched { color: var(--accent-strong); font-weight: 600; }
