/* Needy self-service (/request, /request/status): phone-first, one question per screen. Tokens from app.css. */
.n-shell { min-height: 100vh; min-height: 100dvh; display: flex; justify-content: center; }
.n-form { width: 100%; max-width: 440px; min-height: 100dvh; display: flex; flex-direction: column; padding: 26px 20px 22px; position: relative; }
@media (min-width: 600px) {
  .n-shell, body.sbx .n-shell { align-items: stretch; padding: 16px 0; }
  /* the phone-shaped card is as tall as the window; its «بعدی» bar is pinned to the card's bottom edge */
  .n-form, body.sbx .n-form { min-height: calc(100dvh - 32px - var(--banner-h, 0px)); background: var(--card); border-radius: 46px; box-shadow: var(--shadow); }
  .n-next { position: sticky; bottom: 16px; }
}
.n-default { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
.n-top { position: relative; display: flex; justify-content: center; align-items: center; height: 40px; }
.n-back { position: absolute; inset-inline-start: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--card); box-shadow: var(--shadow); display: grid; place-items: center; color: var(--ink2); }
.n-circ { display: flex; gap: 10px; }
.n-circ i { width: 30px; height: 30px; border-radius: 50%; background: var(--card); box-shadow: var(--shadow); color: var(--ink2); font-style: normal; font-size:14px; font-weight: 600; display: grid; place-items: center; }
.n-more > summary { list-style: none; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 16px; margin: 0 auto; width: max-content; border-radius: 99px; background: var(--mint); color: var(--em-t); font-size: 14px; font-weight: 500; cursor: pointer; }
.n-more > summary::-webkit-details-marker { display: none; }
.n-more > summary .i { width: 18px; height: 18px; transition: transform .2s; }
.n-more[open] > summary .i { transform: rotate(180deg); }
.n-more-b { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.n-circ i.d { background: var(--em); color: #fff; box-shadow: none; }
.n-circ i.d .i { width: 15px; height: 15px; stroke-width: 3; }
.n-circ i.n { background: var(--em); color: #fff; box-shadow: 0 0 0 6px rgba(7,139,78,.18); }
.n-q { margin-top: 30px; }
.n-q.n-first { margin-top: 18px; }
.n-q h1 { font-size: 28px; line-height: 1.45; }
.n-q p { font-size:14px; color: var(--ink3); margin-top: 6px; }
.n-body { flex: 1; margin-top: 24px; display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.n-next { height: 58px; font-size:16px; width: 100%; flex: none; margin-top: 20px; }
.n-fld { background: var(--card); border-radius: 22px; box-shadow: var(--shadow); padding: 12px 18px; min-width: 0; }
.n-fld small { display: block; font-size: 12px; color: var(--ink3); line-height: 1.6; }
.n-fld .v, .n-fld input, .n-fld textarea { width: 100%; font-size: 20px; line-height: 1.6; outline: none; background: none; text-align: start; min-width: 0; }
.n-fld:focus-within { box-shadow: 0 0 0 5px rgba(7,139,78,.22), var(--shadow); }
.n-fld.bad, .n-up.bad { box-shadow: 0 0 0 2px var(--danger), var(--shadow); }
.n-row2 { display: flex; align-items: center; gap: 10px; }
.n-row2 .n-fld { flex: 1; }
.n-send { height: 44px; padding: 0 18px; }
.n-codes { display: flex; gap: 10px; }
.n-codes input { flex: 1; min-width: 0; height: 64px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); font-size: 28px; font-weight: 500; text-align: center; outline: none; padding: 0; }
.n-codes input:focus { box-shadow: 0 0 0 5px rgba(7,139,78,.22), var(--shadow); }
.n-codes input:disabled { opacity: .55; }
.n-lnk { color: var(--em-t); font-size:14px; font-weight: 500; margin-top: 10px; text-align: start; display: inline-block; }
.n-out { text-align: center; margin-top: 14px; }
.n-hint { font-size:12px; color: var(--ink3); }
.n-hint.n-big { font-size:14px; margin-top: 16px; max-width: 290px; }

.n-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.n-tile { position: relative; background: var(--card); border-radius: 26px; box-shadow: var(--shadow); height: 128px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; font-weight: 500; font-size:14px; cursor: pointer; }
.n-tile input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.n-tile .ok { position: absolute; top: 10px; inset-inline-start: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--em); color: #fff; display: none; place-items: center; }
.n-tile .ok .i { width: 13px; height: 13px; stroke-width: 2.8; }
.n-tile:has(input:checked) { box-shadow: 0 0 0 4px rgba(7,139,78,.22); }
.n-tile:has(input:checked) .ok { display: grid; }
/* Focus = the brand halo, never a hard rectangle (light and dark). */
.n-form :focus, .n-form :focus-visible { outline: none; }
.n-tile:has(input:focus-visible) { box-shadow: 0 0 0 5px rgba(7,139,78,.38), var(--shadow); }
.n-tile:has(input:checked:focus-visible) { box-shadow: 0 0 0 5px rgba(7,139,78,.38); }
.n-form .btn:focus-visible, .n-back:focus-visible, .n-chip:focus-visible, .n-send:focus-visible, .n-up:has(input:focus-visible), .n-trk:focus-visible, .n-adddoc:has(input:focus-visible), .n-lnk:focus-visible, .n-seg label:has(input:focus-visible) { box-shadow: 0 0 0 5px rgba(7,139,78,.38); }
.n-lnk:focus-visible { border-radius: 12px; }
.n-codes input.bad { box-shadow: 0 0 0 4px rgba(229,72,77,.32), var(--shadow); }
.n-codes input::placeholder { color: var(--ink3); opacity: .45; font-weight: 400; }
.n-amount input::placeholder { color: var(--ink3); opacity: .4; }

.n-seg { display: flex; background: var(--field); border-radius: 99px; padding: 4px; height: 52px; }
.n-seg label { flex: 1; display: grid; place-items: center; border-radius: 99px; font-size: 16px; color: var(--ink3); cursor: pointer; position: relative; }
.n-seg input { position: absolute; opacity: 0; inset: 0; }
.n-seg label:has(input:checked) { background: var(--card); color: var(--ink); font-weight: 500; box-shadow: 0 2px 6px rgba(0,0,0,.1); }
.n-amount { display: flex; align-items: baseline; gap: 10px; }
.n-amount input { font-size: 38px; font-weight: 300; line-height: 1.4; text-align: start; flex: 1; width: auto; }
.n-amount em { font-style: normal; font-size: 16px; color: var(--ink3); }
.n-ta { min-height: 112px; }
.n-ta textarea { font-size: 16px; line-height: 1.9; color: var(--ink2); resize: none; border: 0; font-family: inherit; }
.n-s3:has(#h-cash:checked) .n-goods { display: none; }
.n-s3:has(#h-goods:checked) .n-cash { display: none; }

.n-up { display: flex; align-items: center; gap: 14px; background: var(--card); border-radius: 26px; box-shadow: var(--shadow); padding: 16px; position: relative; cursor: pointer; }
.n-up .nm { flex: 1; min-width: 0; font-weight: 500; font-size:14px; line-height: 1.6; }
.n-up .nm small { display: block; font-weight: 400; font-size:12px; color: var(--ink3); }
.n-up.has .nm small { color: var(--em-t); }
.n-up.bad .nm small { color: var(--crit-t); }
.n-up .add { height: 36px; padding: 0 14px; border-radius: 99px; background: var(--mint); color: var(--em-t); display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; flex: none; }
.n-up .add .i { width: 16px; height: 16px; }
.n-up input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; width: 100%; }
.n-note { display: flex; align-items: center; gap: 10px; padding: 4px 6px; color: var(--ink3); font-size: 14px; }
.n-note .i { width: 20px; height: 20px; color: var(--em-t); }

.n-done { display: flex; flex-direction: column; align-items: center; text-align: center; flex: 1; }
.n-okbig { position: relative; width: 132px; height: 132px; margin: 46px 0 6px; display: grid; place-items: center; }
.n-okbig::before, .n-okbig::after { content: ""; position: absolute; border-radius: 50%; background: var(--ok-b); }
.n-okbig::before { inset: -26px; opacity: .5; }
.n-okbig::after { inset: -8px; opacity: .9; }
.n-okbig span { position: relative; z-index: 1; width: 132px; height: 132px; border-radius: 50%; background: var(--em); color: #fff; display: grid; place-items: center; box-shadow: 0 18px 30px -12px rgba(7,139,78,.7); }
.n-okbig .i { width: 62px; height: 62px; stroke-width: 2.6; }
.n-doneq { margin-top: 34px; }
.n-trk { background: var(--card); border-radius: 26px; box-shadow: var(--shadow); padding: 16px 30px; margin-top: 10px; cursor: pointer; }
.n-trk:active { transform: scale(.98); }
.n-resend { margin-top: 0; }
.n-trk small { font-size:12px; color: var(--ink3); display: block; }
.n-trk b { font-size: 40px; font-weight: 300; line-height: 1.4; }

.n-case { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 22px; box-shadow: var(--shadow); padding: 14px; min-width: 0; }
.n-case .nm { flex: 1; min-width: 0; }
.n-case .nm b { display: block; font-weight: 500; font-size:14px; line-height: 1.5; }
.n-case .nm small { display: block; font-size: 12px; color: var(--ink3); line-height: 1.6; }
.n-case .n-meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.n-case .n-meta b { font-weight: 500; font-size: 14px; }
.n-case .n-meta em { font-style: normal; font-weight: 400; font-size: 12px; color: var(--ink3); }
.n-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 48px 12px; color: var(--ink3); text-align: center; }
.n-empty .i { width: 64px; height: 64px; opacity: .4; stroke-width: 1.4; }

/* server-rendered toast: shows, then fades by itself (no JS on a static page) */
.n-toast-zone { position: fixed; top: calc(var(--banner-h, 0px) + max(14px, env(safe-area-inset-top))); inset-inline: 0; display: flex; justify-content: center; pointer-events: none; z-index: 80; padding: 0 16px; }
.n-toast { animation: drop .3s cubic-bezier(.2,.9,.3,1), n-out .4s 4.5s forwards; }
@keyframes n-out { to { opacity: 0; transform: translateY(-12px); visibility: hidden; } }

/* status page: add a document to an existing request, and the charity phone */
.n-case { flex-wrap: wrap; }
.n-adddoc { position: relative; flex-basis: 100%; height: 44px; border-radius: 99px; background: var(--mint); color: var(--em-t); display: flex; align-items: center; justify-content: center; gap: 8px; font-size:14px; font-weight: 500; cursor: pointer; overflow: hidden; }
.n-adddoc .i { width: 18px; height: 18px; }
.n-adddoc input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; width: 100%; }
.n-call { text-align: center; margin-top: 14px; }
.n-call a { color: var(--em-t); font-weight: 500; }
/* a running cool-down notice does not fade away */
.n-toast.n-stay { animation: drop .3s cubic-bezier(.2,.9,.3,1); }

/* «از طرفِ کسِ دیگری»: a soft chip that fills when on, its extra fields slide in */
.n-chip { align-self: flex-start; height: 40px; padding: 0 18px; border-radius: 99px; background: var(--mint); color: var(--em-t); font-size:14px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; transition: background .2s, color .2s; }
.n-chip .i { width: 17px; height: 17px; stroke-width: 3; }
.n-chip.on { background: var(--em); color: #fff; }
.n-slide { animation: n-slide .32s cubic-bezier(.2,.9,.3,1); }
.n-other { display: flex; flex-direction: column; gap: 14px; }
@keyframes n-slide { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .n-slide { animation: none; } }

/* the code notice: a plain line in the flow right under the boxes (no floating pill) */
.n-flow { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; line-height: 1.7; padding: 8px 14px; border-radius: 16px; background: var(--field); }
.n-flow.k-ok .i { color: var(--em-t); }
.n-flow.k-warn .i { color: var(--wait-t, #b26a00); }
.n-flow.k-error { color: var(--crit-t); background: var(--crit-b); }
.n-flow.k-error .i { color: var(--crit-t); }
.n-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size:15px; font-weight: 600; }
.n-brand img { height: 44px; width: auto; flex: none; }
