/* ═══════════ مسیر ثبت‌نام و پرداخت ═══════════ */
.page-flow { background: radial-gradient(1000px 500px at 50% -80px, rgba(27, 42, 105, .22), transparent 70%), var(--cream-50); }
.flow { padding-block: 24px 64px; min-height: calc(100svh - var(--topbar-h)); }
.flow-inner { max-width: 720px; }

.stepper { display: flex; justify-content: center; gap: 0; margin: 4px 0 22px; counter-reset: st; }
.stepper li { flex: 1; max-width: 160px; display: grid; justify-items: center; gap: 4px; position: relative; font-size: .85rem; color: var(--ink-300); }
.stepper li::before { content: ""; position: absolute; top: 17px; inset-inline-start: 50%; width: 100%; height: 3px; background: var(--cream-200); z-index: 0; }
.stepper li:last-child::before { display: none; }
.stepper li.done::before { background: var(--turq-500); }
.stepper span { position: relative; z-index: 1; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 2.5px solid var(--cream-200); font-weight: 800; color: var(--ink-300); }
.stepper .now { color: var(--night-800); }
.stepper .now span { border-color: var(--gold-500); color: var(--night-800); box-shadow: 0 0 0 5px rgba(230, 176, 75, .25); }
.stepper .done { color: var(--turq-600); }
.stepper .done span { background: var(--turq-500); border-color: var(--turq-500); color: #fff; }

.flow-card { background: #fff; border-radius: 26px; padding: clamp(20px, 5vw, 36px); box-shadow: var(--shadow-lg); border: 1px solid rgba(11, 18, 51, .05); display: grid; gap: 18px; }
.flow-head h1 { font-size: clamp(1.35rem, 4.6vw, 1.8rem); font-weight: 800; line-height: 1.6; }
.flow-head p { color: var(--ink-500); margin-top: 4px; font-size: .95rem; }

.form-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
fieldset.pardis { border: 0; padding: 0; margin: 18px 0 0; min-width: 0; }
.legend { padding: 0; margin-bottom: 8px; }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { cursor: pointer; display: block; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-box { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--radius-sm); border: 2px solid var(--cream-200); background: #fff; text-align: center; transition: all .25s var(--ease); }
.choice-box small { color: var(--ink-500); font-size: .82rem; }
.choice:hover .choice-box { border-color: #cfc6ac; }
.choice input:checked + .choice-box { border-color: var(--turq-500); background: #e9f8f6; box-shadow: 0 0 0 4px rgba(25, 181, 165, .15); }
.choice input:focus-visible + .choice-box { outline: 3px solid var(--turq-400); outline-offset: 2px; }
.secure { display: flex; gap: 8px; align-items: flex-start; font-size: .85rem; color: var(--ink-500); margin: 16px 0 14px; line-height: 1.8; }
.secure .icon { margin-top: 5px; color: var(--turq-600); }
#form-alert { margin-bottom: 14px; }

/* ───────── پرداخت ───────── */
.who { display: grid; gap: 1px; grid-template-columns: 1fr 1fr; background: var(--cream-200); border-radius: var(--radius-sm); overflow: hidden; margin: 0; }
.who div { background: var(--cream-50); padding: 10px 14px; }
.who dt { font-size: .78rem; color: var(--ink-500); }
.who dd { margin: 0; font-weight: 700; font-size: .95rem; line-height: 1.6; }
@media (max-width: 420px) { .who { grid-template-columns: 1fr; } }
.bill { border: 1.5px dashed var(--cream-200); border-radius: var(--radius-sm); padding: 6px 16px; }
.bill-row, .bill-total { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--cream-100); }
.bill-offer b, .bill-code b { color: var(--ok); }
.bill-code em { font-style: normal; font-weight: 800; direction: ltr; display: inline-block; padding: 0 8px; border-radius: 8px; background: #e9f8f6; color: var(--turq-600); letter-spacing: .05em; }
.bill-total { border: 0; padding-top: 14px; font-weight: 700; font-size: 1.05rem; }
.bill-total b { font-size: 1.7rem; font-weight: 800; color: var(--night-800); }
.bill-total small { font-size: .9rem; font-weight: 500; color: var(--ink-500); }
.bill-total b.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.12); color: var(--turq-600); } }
.link-btn { font-size: .82rem; color: var(--danger); text-decoration: underline; text-underline-offset: 4px; margin-inline-start: 6px; }
.code-box { display: grid; gap: 8px; }
.code-box > label { font-weight: 700; font-size: .95rem; }
.code-row { display: flex; gap: 8px; }
.code-row .input { flex: 1; text-transform: uppercase; }
.msg { font-size: .88rem; min-height: 1.4em; }
.msg.ok { color: var(--ok); font-weight: 700; }
.msg.bad { color: var(--danger); }
.confirm { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--cream-50); border: 1.5px solid var(--cream-200); font-weight: 500; }
.confirm input { position: absolute; opacity: 0; pointer-events: none; }
.confirm .box { flex: none; margin-top: 4px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 9px; border: 2px solid #cfc6ac; background: #fff; color: transparent; transition: all .25s var(--ease); }
.confirm .box .icon { width: 17px; height: 17px; stroke-width: 3; }
.confirm input:checked + .box { background: var(--turq-500); border-color: var(--turq-500); color: #fff; }
.confirm input:focus-visible + .box { outline: 3px solid var(--turq-400); outline-offset: 2px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; justify-self: center; color: var(--ink-500); font-size: .92rem; }
.back-link:hover { color: var(--night-800); }

/* ───────── نتیجه‌ها ───────── */
.result-card, .success-card { text-align: center; justify-items: center; }
.result-card h1, .success-card h1 { font-size: clamp(1.4rem, 5vw, 1.9rem); font-weight: 800; line-height: 1.6; }
.lead { color: var(--ink-700); max-width: 52ch; }
.result-actions { display: grid; width: min(100%, 360px); gap: 10px; }
.tick svg, .cross svg { width: 92px; height: 92px; fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.tick circle { stroke: var(--turq-500); fill: #e9f8f6; stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw 1s var(--ease) forwards; }
.tick path { stroke: var(--turq-600); stroke-dasharray: 50; stroke-dashoffset: 50; animation: draw .6s .7s var(--ease) forwards; }
.cross circle { stroke: var(--danger); fill: #fdeaed; }
.cross path { stroke: var(--danger); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.loader { width: 64px; height: 64px; border-radius: 50%; border: 5px solid var(--cream-200); border-top-color: var(--gold-500); animation: spin 1s linear infinite; }
.tg-box { width: 100%; display: grid; gap: 14px; padding: 20px; border-radius: 22px; background: linear-gradient(160deg, #eefaf8, #fff); border: 1.5px solid #bfe6e1; text-align: center; justify-items: center; }
.tg-box h2 { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; font-weight: 800; }
.tg-box .icon { color: var(--turq-600); }
.copy-row { display: flex; gap: 8px; width: 100%; }
.copy-row .input { flex: 1; font-size: .82rem; letter-spacing: 0; min-width: 0; }
.qr { display: grid; justify-items: center; gap: 6px; color: var(--ink-500); font-size: .82rem; }
.qr svg { width: 176px; height: 176px; border-radius: 12px; box-shadow: var(--shadow); }
.tg-box .alert { text-align: start; width: 100%; margin: 0; }
.next-steps { display: grid; gap: 10px; width: 100%; text-align: start; }
.next-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--cream-50); }
.next-steps span { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--night-800); color: var(--gold-300); font-weight: 800; font-size: .9rem; margin-top: 3px; }
