@font-face {
  font-family: Vazirmatn;
  src: url("/assets/Vazirmatn-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: Vazirmatn, Tahoma, "Segoe UI", sans-serif;
  font-synthesis: none;
  color: #191b1e;
  background: #f6f6f5;
  line-height: 1.7;
  font-weight: 400;
  --technical-font: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

html[lang="en"] { font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; }

* { box-sizing: border-box; }

body { min-width: 320px; min-height: 100vh; margin: 0; display: flex; flex-direction: column; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.site-header { background: #fff; border-bottom: 1px solid #e9e9e8; }
.header-inner { direction: ltr; width: min(100% - 48px, 1160px); min-height: 66px; margin: auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: "Segoe UI", Tahoma, sans-serif; font-size: 14px; font-weight: 700; white-space: nowrap; }
.brand-mark { display: inline-block; width: 16px; height: 16px; border-radius: 4px; background: #d51d36; }
.language-toggle { min-height: 36px; padding: 5px 13px; border: 1px solid #dfe1e3; border-radius: 7px; background: #fff; color: #42484e; font-family: Vazirmatn, system-ui, sans-serif; font-size: 13px; font-weight: 500; }
.language-toggle:hover { background: #f6f7f7; }

.page-shell { width: min(100% - 40px, 820px); margin: 72px auto 52px; flex: 1; }
.page-intro { width: 100%; text-align: center; margin-inline: auto; }
.page-intro h1 { font-size: clamp(25px, 2.5vw, 32px); line-height: 1.5; margin: 0 0 12px; font-weight: 700; }
.page-intro p { color: #74777b; margin: 0; font-size: 14px; }

.progress-nav { width: min(100%, 590px); margin: 47px auto 41px; }
.stepper { direction: inherit; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; list-style: none; margin: 0; padding: 0; }
.stepper-item { position: relative; display: flex; flex-wrap: nowrap; align-items: center; justify-content: center; gap: 8px; min-width: 0; color: #999da2; font-size: 12px; white-space: nowrap; }
.stepper-item:not(:last-child)::after { content: ""; position: absolute; top: 50%; inset-inline-end: -12px; width: 24px; border-top: 1px solid #dedfdf; transform: translateY(-50%); }
.step-number { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: #e9eaeb; color: #898d92; font: 700 11px/1 "Segoe UI", Tahoma, sans-serif; }
.stepper-item.is-active { color: #16181b; font-weight: 600; }
.stepper-item.is-active .step-number { background: #d51d36; color: #fff; }
.stepper-item.is-done { color: #686d73; }
.stepper-item.is-done .step-number { background: #fff; border: 1px solid #e5a0aa; color: #a62e3d; }

.card { text-align: start; background: #fff; border: 1px solid #e6e7e8; border-radius: 16px; box-shadow: 0 12px 28px rgba(18, 21, 27, .055); padding: 39px 42px 42px; margin-inline: auto; }
.card-narrow { max-width: 570px; }
.card-wide { max-width: 780px; }
.eyebrow { color: #c61d34; font-weight: 500; font-size: 12px; margin: 0 0 10px; }
.card h2 { font-size: 20px; line-height: 1.65; margin: 0 0 9px; font-weight: 600; }
.card-description { color: #74777b; font-size: 14px; margin: 0; }
.field-group { margin-top: 35px; }
.field-group label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 9px; }
.field-group input, .field-group textarea { display: block; width: 100%; border: 1px solid #dfe1e3; border-radius: 10px; background: #fcfcfc; color: #202327; outline: 0; transition: border-color .15s, box-shadow .15s; }
.field-group input { height: 48px; padding: 10px 15px; }
.technical { direction: ltr; unicode-bidi: isolate; font-family: var(--technical-font); font-weight: 400; }
.field-group .technical { font-size: 13px; font-weight: 400; line-height: 1.65; }
.field-group textarea { min-height: 240px; resize: vertical; padding: 14px 16px; }
.field-group input::placeholder, .field-group textarea::placeholder { font-family: Vazirmatn, Tahoma, sans-serif; }
html[lang="en"] .field-group input::placeholder, html[lang="en"] .field-group textarea::placeholder { font-family: inherit; }
.field-group input::placeholder, .field-group textarea::placeholder { color: #9ca0a4; opacity: 1; }
.field-group input:focus, .field-group textarea:focus { border-color: #a2a8ac; box-shadow: 0 0 0 3px rgba(47, 86, 111, .09); }
.field-error { margin: 10px 0 0; color: #b4233a; font-size: 13px; }
.actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.button { min-height: 43px; padding: 9px 19px; border-radius: 9px; font-size: 13px; font-weight: 600; border: 1px solid transparent; transition: background .15s, border-color .15s; }
.button-primary { background: #178652; border-color: #178652; color: #fff; }
.button-primary:hover:not(:disabled) { background: #117345; border-color: #117345; }
.button-secondary { background: #fff; border-color: #d6d8da; color: #33383d; }
.button-secondary:hover:not(:disabled) { background: #f6f7f7; }
.button:disabled { cursor: not-allowed; opacity: .58; }
:focus-visible { outline: 3px solid #2d729b; outline-offset: 3px; }

.summary-list { border: 1px solid #e4e5e6; border-radius: 12px; background: #fcfcfc; margin: 31px 0 0; padding: 0 19px; }
.summary-list > div { min-height: 49px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 0; }
.summary-list > div + div { border-top: 1px solid #ececed; }
.summary-list dt { color: #74777b; font-size: 13px; }
.summary-list dd { margin: 0; font-size: 13px; font-weight: 500; text-align: end; overflow-wrap: anywhere; }
.summary-list dd.technical { font-weight: 400; }
.notice { margin: 21px 0 0; padding: 14px 17px; border: 1px solid #e4e6e8; border-radius: 10px; background: #fafafa; color: #62676c; font-size: 13px; }

.result-card { min-height: 305px; }
.result-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 6px; }
.result-heading h2 { margin: 0; }
.result-symbol { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 30px; height: 30px; border-radius: 50%; background: #eceff1; color: #58616a; font-size: 18px; font-weight: 700; }
.result-card.is-success .result-symbol { background: #e8f5ed; color: #178652; }
.result-card.is-error .result-symbol { background: #fff0f1; color: #bf2439; }
.result-card.is-warning .result-symbol { background: #fff5e6; color: #966119; }
.verification-box { margin-top: 24px; padding: 19px; border-radius: 11px; border: 1px solid #dce9e2; background: #f8fbf9; }
.verification-box p { font-size: 13px; color: #4e5d53; margin: 0 0 15px; }
.verification-box .verification-expiry { color: #656a6e; font-size: 12px; }
.result-card.is-success #result-notice { border-color: #cee7d8; background: #f3faf5; color: #286347; }
.site-footer { color: #a0a4a8; font-size: 12px; text-align: center; padding: 24px 16px 33px; }

@media (max-width: 600px) {
  .header-inner { width: min(100% - 32px, 1160px); min-height: 58px; }
  .page-shell { width: min(100% - 28px, 820px); margin-top: 47px; margin-bottom: 32px; }
  .page-intro h1 { font-size: 25px; }
  .page-intro p { font-size: 13px; line-height: 1.9; }
  .progress-nav { margin: 35px auto 27px; }
  .stepper-item { gap: 5px; font-size: 10px; }
  .step-number { width: 25px; height: 25px; font-size: 10px; }
  .stepper-item:not(:last-child)::after { width: 10px; inset-inline-end: -5px; }
  .card { padding: 27px 21px 29px; border-radius: 14px; }
  .card h2 { font-size: 18px; }
  .field-group { margin-top: 26px; }
  .field-group textarea { min-height: 220px; }
  .actions { margin-top: 25px; }
  .actions .button { min-height: 46px; }
  .summary-list { padding-inline: 14px; }
  .summary-list > div { align-items: flex-start; }
  .summary-list dd { max-width: 61%; }
}

@media (max-width: 360px) {
  .stepper-item { font-size: 9px; gap: 3px; }
  .step-number { width: 23px; height: 23px; }
  .card { padding-inline: 17px; }
}
