@font-face {
  font-family: Vazirmatn;
  src: url("../vendor-local/Vazirmatn-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --page: #f2f5f3;
  --ink: #172421;
  --muted: #51625d;
  --line: #dce5e0;
  --accent: #07654e;
  --accent-hover: #054d3c;
  --pale: #e5f3ec;
  --warm: #ffd278;
  --danger: #a82731;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 16px/1.65 Vazirmatn, Tahoma, sans-serif; }
.shell { max-width: 600px; margin-inline: auto; padding: 52px 22px 24px; padding-block-end: max(24px, env(safe-area-inset-bottom)); }
.intake { border: 1px solid var(--line); border-block-start: 4px solid var(--accent); border-radius: 8px; background: #fff; padding: 28px 28px 26px; box-shadow: 0 8px 28px #253b3310; }
.intro { text-align: center; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 26px; font-weight: 870; }
.mark { display: grid; place-items: center; width: 40px; height: 40px; color: var(--warm); background: #11382e; border-radius: 8px; }
svg, [data-lucide] { display: block; width: 20px; height: 20px; flex: none; }
.mark svg { width: 24px; height: 24px; }
h1 { margin: 17px 0 4px; font-size: 24px; line-height: 1.5; font-weight: 820; }
.intro p { margin: 0; color: var(--muted); font-size: 14px; text-wrap: pretty; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 25px 0 20px; padding: 0 0 17px; border-block-end: 1px solid var(--line); }
.steps li { display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--muted); min-width: 0; }
.steps li.current { color: var(--ink); }
.step-icon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 7px; background: #f7faf8; }
.current .step-icon { border-color: var(--accent); background: var(--accent); color: #fff; }
.complete .step-icon { border-color: var(--pale); background: var(--pale); color: var(--accent); }
.steps strong, .steps small { display: block; }
.steps strong { font-size: 13px; font-weight: 770; }
.steps small { font-size: 11px; color: var(--muted); }
.field label { display: block; font-weight: 680; font-size: 14px; margin-block-end: 7px; }
input, button { font: inherit; }
input { display: block; width: 100%; min-width: 0; min-height: 52px; padding: 10px 12px; background: #fff; color: var(--ink); border: 1px solid #bac9c1; border-radius: 7px; }
input::placeholder { color: #64746e; opacity: 1; }
.phone-input { display: flex; border: 1px solid #bac9c1; border-radius: 7px; }
.phone-input span { display: grid; place-items: center; background: #f1f6f3; color: #355149; border-inline-end: 1px solid var(--line); border-radius: 6px 0 0 6px; min-width: 57px; }
.phone-input input { border: 0; border-radius: 0 6px 6px 0; }
input:focus-visible, button:focus-visible { outline: 2px solid #007961; outline-offset: 3px; }
.phone-input:focus-within { outline: 2px solid #007961; outline-offset: 2px; }
.phone-input input:focus-visible { outline: none; }
input[aria-invalid=true], .invalid { border-color: var(--danger); }
.fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; align-items: start; }
.phone-review { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-block-end: 14px; color: var(--muted); font-size: 13px; }
.phone-review > span { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.phone-review svg { width: 16px; height: 16px; }
.phone-review bdi { color: var(--ink); }
.edit { border: 0; min-height: 44px; padding: 5px 8px; border-radius: 6px; background: transparent; color: var(--accent); font-weight: 720; text-decoration: underline; text-underline-offset: 4px; }
.edit:hover { background: var(--pale); }
.primary { position: relative; display: grid; place-items: center; margin-block-start: 24px; min-height: 52px; width: 100%; padding: 10px 38px; border: 0; border-radius: 7px; background: var(--accent); color: #fff; font-weight: 780; transition: background-color 140ms ease; }
.primary svg, .primary i { position: absolute; inset-inline-end: 15px; }
.primary:hover { background: var(--accent-hover); }
button { cursor: pointer; }
.error { color: var(--danger); font-size: 13px; margin: 7px 0 0; }
.notice { border-inline-start: 3px solid var(--danger); padding-inline-start: 8px; margin-block-start: 15px; }
.success { display: grid; justify-items: center; gap: 4px; text-align: center; color: var(--muted); padding: 14px 8px 12px; }
.success strong { color: var(--ink); }
.success-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-block-end: 6px; border-radius: 50%; color: var(--accent); background: var(--pale); }
.success-icon svg { width: 28px; height: 28px; }
footer { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 15px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
footer svg, footer i { width: 15px; height: 15px; }

@media (max-width: 525px) {
  .shell { padding-block-start: 19px; padding-inline: 14px; }
  .intake { padding: 23px 18px 21px; }
  h1 { font-size: 21px; }
  .steps { gap: 3px; margin-block-start: 20px; }
  .steps li { display: grid; justify-items: center; align-content: start; gap: 5px; text-align: center; }
  .steps strong { font-size: 12px; }
  .steps small { display: none; }
}
@media (max-width: 365px) {
  .fields { grid-template-columns: minmax(0,1fr); }
  .brand { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) { .primary { transition: none; } }
