@font-face {
  font-family: Vazirmatn;
  src: url("../fonts/vazirmatn-arabic-wght-normal.woff2") format("woff2");
  font-display: swap;
  font-weight: 100 900;
  unicode-range: U+0600-06FF,U+0750-077F,U+08A0-08FF,U+200C-200E,U+FB50-FDFF,U+FE70-FEFF;
}
@font-face {
  font-family: Vazirmatn;
  src: url("../fonts/vazirmatn-latin-wght-normal.woff2") format("woff2");
  font-display: swap;
  font-weight: 100 900;
  unicode-range: U+0000-00FF,U+2000-206F;
}

:root {
  color-scheme: light;
  --canvas: #f7f7f3;
  --ink: #182321;
  --muted: #515e5a;
  --line: #dce1da;
  --accent: #a92b22;
  --accent-hover: #8a221b;
  --wash: #fff2ee;
  --night: #142623;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100dvh; background: var(--canvas); color: var(--ink); font: 400 16px/1.8 Vazirmatn, Tahoma, sans-serif; }
h1, h2, p, ul, ol { margin: 0; }
svg { display: block; width: 1em; height: 1em; flex: none; }
.sprite, .hp, .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip { position: fixed; top: 10px; inset-inline-start: 10px; z-index: 4; padding: 10px 16px; border-radius: 10px; background: white; transform: translateY(-200%); }
.skip:focus { transform: none; }
.reg-container { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.rp-head { border-bottom: 1px solid var(--line); }
.rp-head__in, .rp-foot__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rp-head__in { min-height: 76px; }
.rp-brand { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; }
.rp-brand__mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--accent); color: white; font-size: 32px; }
.rp-brand__name { display: grid; line-height: 1.2; }
.rp-brand__name strong { font-size: 21px; font-weight: 900; }
.rp-brand__name small { margin-top: 4px; font: 800 8px/1 system-ui, sans-serif; letter-spacing: .12em; color: var(--muted); }
.rp-status { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #f0cec4; background: var(--wash); color: var(--accent); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 750; }
.rp-status > span, .rp-guide__tag span { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.rp-main { padding-block: clamp(24px, 5.4vw, 68px) clamp(38px, 6vw, 76px); }
.rp-intro { max-width: 680px; margin-block-end: clamp(20px, 3vw, 32px); }
.rp-kicker { color: var(--accent); font-size: 14px; font-weight: 800; }
.rp-intro h1 { margin-block: 3px 7px; font-size: clamp(30px, 5vw, 54px); font-weight: 800; line-height: 1.5; text-wrap: balance; overflow-wrap: anywhere; }
.lead { color: var(--muted); font-size: clamp(14px, 2vw, 17px); }
.rp-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 30px); align-items: start; }
.rp-card { min-width: 0; background: white; border: 1px solid var(--line); border-radius: 25px; padding: clamp(18px, 3.8vw, 38px); box-shadow: 0 16px 38px -32px #263d32; }
.rf-progress { list-style: none; padding: 0 0 21px; margin: 0 0 24px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rf-progress li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.rf-progress li span { display: grid; place-items: center; width: 29px; height: 29px; flex: none; border-radius: 50%; background: #eef1ec; font-weight: 800; }
.rf-progress [aria-current="step"] { color: var(--accent); }
.rf-progress [aria-current="step"] span { background: var(--accent); color: white; }
.rf-progress .is-complete span { background: #dceee5; color: #215139; }
.rf-heading { margin-block-end: 20px; }
.rf-heading h2, .rf-done h2 { font-size: clamp(20px, 3vw, 28px); line-height: 1.4; font-weight: 900; }
.rf-heading p, .rf-hint, .rf-done p { margin-block-start: 4px; color: var(--muted); font-size: 14px; }
.rf-sec { min-inline-size: 0; border: 0; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; }
.rf-sec:last-child { margin-bottom: 0; }
.rf-sec legend:not(.sr-only) { margin-block-end: 8px; padding: 0; font-weight: 800; }
.rf-step:not([hidden]) + .rf-step:not([hidden]) { margin-block-start: 24px; }
.rf-two, .choices, .chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.field { display: grid; min-width: 0; gap: 5px; font-weight: 700; }
.field small { font-weight: 500; color: var(--muted); }
.field input, .field select { width: 100%; min-width: 0; min-height: 48px; padding: 8px 12px; border: 1px solid #aeb8ae; border-radius: 11px; background: #fcfcf9; color: var(--ink); font-size: 16px; font-weight: 500; }
.field input[disabled], .field select[disabled] { background: #eff1ed; color: var(--muted); }
.field [aria-invalid="true"] { border-color: var(--accent); background: var(--wash); }
.field em, .gerr { color: var(--accent); font-size: 13px; font-style: normal; font-weight: 650; }
.field em:empty, .gerr:empty { display: none; }
.rf-sub { display: grid; gap: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--canvas); padding: 14px; }
.rf-sub p { color: var(--muted); font-size: 13px; }
.choice, .chip { position: relative; min-width: 0; cursor: pointer; }
.choice input, .chip input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span, .chip span { display: flex; align-items: center; justify-content: center; min-height: 49px; gap: 6px; padding: 8px; border: 1px solid #aeb8ae; border-radius: 11px; background: #fcfcf9; text-align: center; font-size: 14px; font-weight: 700; }
.choice input:checked + span, .chip input:checked + span { color: var(--accent); border-color: var(--accent); background: var(--wash); box-shadow: inset 0 0 0 1px var(--accent); }
.choice input:focus-visible + span, .chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.note { border-radius: 10px; background: #eef4ee; padding: 10px 12px; color: #384f43; font-size: 14px; }
.field .pin { text-align: center; max-width: 220px; letter-spacing: .55em; font-size: 22px; }
.rf-actions { display: flex; justify-content: space-between; gap: 10px; margin-block-start: 24px; }
.reg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 49px; padding: 8px 16px; border: 1px solid transparent; border-radius: 11px; cursor: pointer; font-weight: 800; }
.reg-btn--primary { margin-inline-start: auto; background: var(--accent); color: white; }
.reg-btn--primary:hover { background: var(--accent-hover); }
.reg-btn--quiet { border-color: #aeb8ae; background: white; color: var(--ink); }
.reg-btn--quiet:hover { background: #eff1ed; }
.reg-btn:disabled { cursor: wait; opacity: .75; }
.reg__error { margin-block: 10px; padding: 9px 12px; border: 1px solid #e7b9b0; background: var(--wash); color: var(--accent); border-radius: 11px; font-size: 14px; }
.reg__error:empty { margin: 0; padding: 0; border: 0; }
ul.reg__error { padding-inline-start: 30px; }
.rf-done { text-align: center; padding-block: 24px; }
.reg__check { display: grid; place-items: center; width: 50px; height: 50px; margin: 0 auto 16px; border-radius: 50%; background: #dceee5; color: #215139; font-size: 26px; }
.code { display: block; width: max-content; max-width: 100%; margin: 20px auto 16px; padding: 12px 16px; border-radius: 11px; background: var(--canvas); border: 1px dashed #aeb8ae; font: 800 clamp(24px, 7vw, 42px)/1.2 ui-monospace, Consolas, monospace; letter-spacing: .17em; user-select: all; }
.rp-guide { display: grid; gap: 17px; padding: 24px; border: 1px solid #203e32; border-radius: 25px; overflow: hidden; background: var(--night); color: #f3f7f4; }
.rp-guide__art { position: relative; display: grid; place-items: center; aspect-ratio: 2.05; isolation: isolate; overflow: hidden; border-radius: 16px; border: 1px solid #2e5143; background: radial-gradient(ellipse at center, #2b493e, #1a312b 72%); }
.rp-guide__art::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 19px, #8aae991e 19px 20px), repeating-linear-gradient(90deg, transparent 0 19px, #8aae991e 19px 20px); }
.rp-guide__art i { position: absolute; border: 1px solid #7fa7928f; border-radius: 50%; width: 20%; aspect-ratio: 1; }
.rp-guide__art i:nth-child(2) { width: 34%; }
.rp-guide__art i:nth-child(3) { width: 48%; }
.rp-guide__art i:nth-child(4) { width: 64%; opacity: .55; }
.rp-target { position: absolute; top: 35%; right: 41%; width: 10px; height: 10px; border-radius: 50%; background: #ffa896; box-shadow: 0 0 0 5px #ffb09c38, 0 0 20px #ffa896; }
.rp-guide__tag { display: flex; align-items: center; gap: 8px; margin-block-end: 8px; font-size: 13px; font-weight: 750; color: #ffc1ae; }
.rp-guide h2 { font-size: clamp(18px, 2.3vw, 23px); font-weight: 850; }
.rp-guide__copy > p:not(.rp-guide__tag) { color: #d1dfd6; margin-block: 7px 14px; }
.rp-guide ul { padding: 13px 0 0; border-top: 1px solid #3c584c; list-style: none; display: grid; gap: 6px; }
.rp-guide li { display: flex; align-items: baseline; gap: 8px; font-size: 13px; color: #d1dfd6; }
.rp-guide li svg { align-self: center; color: #a4d1ae; }
.rp-foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; padding-block: 16px; }

@media (max-width: 760px) {
  .reg-container { width: min(580px, calc(100% - 32px)); }
  .rp-head__in { min-height: 63px; }
  .rp-grid { grid-template-columns: minmax(0, 1fr); }
  .rp-guide { padding: 20px; }
  .rp-guide__art { display: none; }
}
@media (max-width: 420px) {
  .reg-container { width: calc(100% - 24px); }
  .rp-card { padding: 16px; border-radius: 17px; }
  .rf-progress { margin-block-end: 18px; padding-block-end: 14px; gap: 5px; }
  .rf-progress li { gap: 4px; font-size: 12px; }
  .rf-progress li span { width: 24px; height: 24px; }
  .rf-two { grid-template-columns: minmax(0, 1fr); }
  .reg-btn { padding-inline: 11px; font-size: 14px; }
}

/* Persian typography */
h1, h2, h3 { letter-spacing: 0; text-wrap: balance; }
p, li, .lead { text-wrap: pretty; }
.field > span, .rf-sec legend { line-height: 1.7; }
input::placeholder { opacity: .6; }
input[dir="ltr"], .code { font-family: ui-monospace, Consolas, monospace; }

/* Alert bar */
.alertbar { background: #c4161c; color: #fff; text-align: center; padding: 10px 16px; font-size: 14.5px; font-weight: 700; line-height: 1.8; }
.alertbar p { margin: 0; max-width: 1120px; margin-inline: auto; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.alertbar b { display: inline-block; padding: 0 10px; border-radius: 999px; background: #fff; color: #c4161c; font-size: 12.5px; font-weight: 900; }
@media (max-width: 420px) { .alertbar { font-size: 13px; padding: 9px 12px; } }

/* Footer link, about and FAQ */
.rp-foot__link { color: var(--accent); font-weight: 700; border-bottom: 1px solid currentColor; }
.rp-foot__link:hover { color: var(--accent-hover); }
.field input[data-fa-digits] { text-align: left; letter-spacing: 0; }
.rp-about { margin-block-start: clamp(28px, 5vw, 56px); max-width: 820px; }
.rp-about h2 { font-size: clamp(20px, 2.8vw, 26px); font-weight: 800; line-height: 1.6; }
.rp-about > p { margin-block: 8px 20px; color: var(--muted); }
.rp-about > p a { color: var(--accent); font-weight: 700; border-bottom: 1px solid currentColor; }
.rp-faq__title { font-size: 18px; font-weight: 800; margin-block: 8px 12px; }
.rp-faq { display: grid; gap: 8px; }
.rp-faq details { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 4px 16px; }
.rp-faq summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; list-style: none; }
.rp-faq summary::-webkit-details-marker { display: none; }
.rp-faq summary::after { content: "+"; margin-inline-start: auto; color: var(--accent); font-size: 22px; }
.rp-faq details[open] summary::after { content: "−"; }
.rp-faq details p { padding-block: 0 12px; color: var(--muted); }
