/*
  N.M.A · דף הרשמה למאגר
  שפה עיצובית: כרטיס הזמנה לחתונה - שמנת וזהב, דיו כחול-עמוק, קווי זהב דקים, קשתות.
*/

:root {
  --bg: #FBF5E6;
  --bg-deep: #F4E9CC;
  --surface: #FFFCF4;
  --field: #FFFDF8;
  --ink: #1B2033;
  --ink-soft: #565A6B;
  --ink-faint: #8A8C96;
  --line: rgba(27, 32, 51, .13);
  --line-soft: rgba(27, 32, 51, .07);
  --gold: #A97E2C;
  --gold-text: #7A5A1A;
  --gold-light: #E3C478;
  --gold-hair: rgba(169, 126, 44, .38);
  --gold-wash: rgba(217, 180, 94, .14);
  --gold-grad: linear-gradient(120deg, #8C6420 0%, #D9B45E 45%, #A97E2C 70%, #8C6420 100%);
  --on-gold: #1B2033;
  --danger: #A3402E;
  --danger-wash: rgba(163, 64, 46, .08);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 30px 80px -40px rgba(122, 90, 26, .55), 0 8px 24px -16px rgba(27, 32, 51, .18);
  --shadow-soft: 0 10px 30px -18px rgba(122, 90, 26, .5);
  --radius: 18px;
  --serif: "Frank Ruhl Libre", "David Libre", Georgia, serif;
  --sans: "Assistant", "Segoe UI", Arial, sans-serif;
  --script: "Parisienne", "Brush Script MT", cursive;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1118;
    --bg-deep: #131623;
    --surface: #181B27;
    --field: #1D2130;
    --ink: #F3EAD3;
    --ink-soft: #BDB6A4;
    --ink-faint: #8C8778;
    --line: rgba(227, 196, 120, .2);
    --line-soft: rgba(227, 196, 120, .09);
    --gold: #D9B45E;
    --gold-text: #E3C478;
    --gold-light: #E3C478;
    --gold-hair: rgba(217, 180, 94, .34);
    --gold-wash: rgba(217, 180, 94, .1);
    --danger: #F09A86;
    --danger-wash: rgba(240, 154, 134, .1);
    --shadow-card: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 40px 90px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(217, 180, 94, .06);
    --shadow-soft: 0 12px 30px -16px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- רקע ---------- */
html { background: var(--bg); }
.backdrop {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
  background:
    radial-gradient(1100px 600px at 100% -10%, var(--gold-wash), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, var(--gold-wash), transparent 60%);
}
.arch { position: absolute; width: 420px; height: auto; stroke: var(--gold-hair); stroke-width: 1; opacity: .55; }
.arch-a { top: 8vh; inset-inline-start: -170px; }
.arch-b { bottom: -140px; inset-inline-end: -160px; width: 520px; opacity: .4; }
.motes span {
  position: absolute; width: 4px; height: 4px; border-radius: 50%;
  background: radial-gradient(circle, var(--gold-light) 0 35%, transparent 70%);
  opacity: 0; animation: mote 9s var(--ease-io) infinite;
}
@keyframes mote {
  0% { opacity: 0; transform: translateY(16px) scale(.6); }
  25% { opacity: .9; }
  70% { opacity: .5; }
  100% { opacity: 0; transform: translateY(-70px) scale(1.1); }
}

.bsd {
  position: absolute; top: max(10px, env(safe-area-inset-top)); inset-inline-start: 16px; z-index: 30;
  font-family: var(--serif); font-size: 13px; font-weight: 500; color: var(--ink-soft); letter-spacing: .02em;
}

/* ---------- מעטפת ---------- */
.shell {
  position: relative; z-index: 1;
  width: min(680px, 100%);
  margin-inline: auto;
  padding: 40px 16px 0;
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
}

body.is-welcome .shell { justify-content: center; }
body.is-welcome .card { margin-block: auto; }
body.is-welcome .foot { margin-top: 0; }
.topbar { display: flex; flex-direction: column; align-items: stretch; gap: 14px; margin-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 10px; justify-content: center; }
.brand img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 4px 14px -6px rgba(122, 90, 26, .6); }
.brand-txt { display: flex; flex-direction: column; line-height: 1.05; }
.brand-mark { font-family: var(--script); font-size: 25px; color: var(--gold-text); direction: ltr; text-align: right; }
.brand-sub { font-size: 12.5px; color: var(--ink-soft); font-weight: 600; letter-spacing: .04em; }

/* ---------- פס התקדמות ---------- */
.progress { padding: 0 4px; }
.progress-dots {
  list-style: none; margin: 0; padding: 0;
  display: flex; justify-content: space-between; align-items: center;
  position: relative; height: 22px;
}
.progress-dots::before, .progress-dots::after {
  content: ""; position: absolute; top: 50%; height: 2px; margin-top: -1px;
  inset-inline-start: 10px; border-radius: 2px;
}
.progress-dots::before { inset-inline-end: 10px; background: var(--line); }
.progress-dots::after {
  width: calc((100% - 20px) * var(--p, 0)); background: var(--gold-grad);
  box-shadow: 0 0 10px rgba(217, 180, 94, .55);
  transition: width .7s var(--ease);
}
.progress-dots li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.pdot {
  width: 20px; height: 20px; border-radius: 50%; border: 0; padding: 0;
  display: grid; place-items: center;
  background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line);
  transition: transform .4s var(--ease), box-shadow .3s, background .3s;
  cursor: default;
}
.pdot::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background .3s; }
.pdot.done { background: var(--gold-grad); box-shadow: none; cursor: pointer; }
.pdot.done::after { width: 5px; height: 9px; border-radius: 0; background: none; border: solid var(--on-gold); border-width: 0 2px 2px 0; transform: translate(0, -1px) rotate(45deg); }
.pdot.cur { transform: scale(1.18); background: var(--surface); box-shadow: inset 0 0 0 2px var(--gold), 0 0 0 5px var(--gold-wash); }
.pdot.cur::after { background: var(--gold); width: 8px; height: 8px; transform: rotate(45deg); border-radius: 1px; }
.pname { display: none; }
.progress-label { margin-top: 10px; text-align: center; font-size: 14px; color: var(--ink-soft); font-weight: 600; }
.progress-label b { color: var(--gold-text); font-weight: 700; }

/* ---------- הכרטיס ---------- */
.card {
  position: relative;
  background: var(--surface);
  border-radius: 26px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--gold-hair);
  padding: 30px 20px 26px;
  isolation: isolate;
}
.card::before {
  content: ""; position: absolute; inset: 7px; border-radius: 20px;
  border: 1px solid var(--line-soft); pointer-events: none; z-index: -1;
}
.corner { position: absolute; top: 14px; width: 38px; height: 38px; pointer-events: none; opacity: .9; }
.corner::before, .corner::after { content: ""; position: absolute; background: var(--gold-grad); }
.corner::before { top: 0; width: 100%; height: 1px; }
.corner::after { top: 0; width: 1px; height: 100%; }
.c-tr { inset-inline-start: 14px; }
.c-tr::before, .c-tr::after { inset-inline-start: 0; }
.c-tl { inset-inline-end: 14px; }
.c-tl::before, .c-tl::after { inset-inline-end: 0; }
.corner i { display: none; }

/* ---------- שלבים ---------- */
.step { animation: none; }
.step.in-fwd { animation: inFwd .55s var(--ease) both; }
.step.in-back { animation: inBack .55s var(--ease) both; }
.step.out-fwd { animation: outFwd .2s ease-in both; }
.step.out-back { animation: outBack .2s ease-in both; }
/* בעברית מתקדמים שמאלה: השלב הבא נכנס משמאל */
@keyframes inFwd { from { opacity: 0; transform: translateX(-34px); } to { opacity: 1; transform: none; } }
@keyframes inBack { from { opacity: 0; transform: translateX(34px); } to { opacity: 1; transform: none; } }
@keyframes outFwd { to { opacity: 0; transform: translateX(26px); } }
@keyframes outBack { to { opacity: 0; transform: translateX(-26px); } }
.step > * + * { margin-top: 22px; }

.step-head { text-align: center; }
.step-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 700; letter-spacing: .02em; color: var(--gold-text);
}
.step-kicker::before, .step-kicker::after { content: ""; width: 18px; height: 1px; background: var(--gold-hair); }
.step-head h2 { font-size: clamp(27px, 7vw, 34px); margin-top: 6px; outline: none; }
.step-sub { margin-top: 6px; color: var(--ink-soft); font-size: 16px; }

/* ---------- פתיחה ---------- */
.step-welcome { text-align: center; padding: 6px 0 4px; }
.step-welcome > * + * { margin-top: 16px; }
.medallion { position: relative; width: 168px; height: 168px; margin: 0 auto 6px; display: grid; place-items: center; }
.medallion img { position: relative; width: 168px; height: 168px; border-radius: 50%; z-index: 2; filter: drop-shadow(0 14px 22px rgba(122, 90, 26, .35)); }
.medallion-glow { position: absolute; inset: -30px; border-radius: 50%; background: radial-gradient(circle, rgba(227, 196, 120, .45), transparent 65%); animation: breathe 5s ease-in-out infinite; }
.medallion-ring {
  position: absolute; inset: -12px; border-radius: 50%; z-index: 1;
  background: conic-gradient(from 0deg, transparent 0 62%, rgba(227, 196, 120, .95) 72%, transparent 82%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px));
  animation: spin 7s linear infinite;
}
.medallion-ring::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--gold-hair); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { transform: scale(1.06); opacity: .75; } }

.welcome-wa {
  display: inline-block; padding: 7px 16px; border-radius: 999px;
  background: var(--gold-wash); border: 1px solid var(--gold-hair);
  color: var(--gold-text); font-weight: 700; font-size: 15px;
}
.step-welcome h1 { display: flex; flex-direction: column; align-items: center; gap: 4px; outline: none; }
.eyebrow { font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--ink-soft); letter-spacing: .04em; }
.office { font-size: clamp(30px, 8.4vw, 42px); font-weight: 900; }
.divider { display: flex; align-items: center; justify-content: center; gap: 10px; }
.divider span { width: 54px; height: 1px; background: var(--gold-hair); }
.divider i { width: 7px; height: 7px; transform: rotate(45deg); background: var(--gold-grad); }
.lead { font-size: 18px; color: var(--ink-soft); max-width: 34ch; margin-inline: auto; text-wrap: balance; }
.meta { list-style: none; margin: 18px 0 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.meta li {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: 999px; font-size: 14.5px; font-weight: 600;
  background: var(--bg); border: 1px solid var(--line-soft); color: var(--ink-soft);
}
.step-welcome .btn-xl { margin-top: 26px; width: 100%; max-width: 340px; }
.resume-note { font-size: 14.5px; color: var(--ink-soft); display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; align-items: center; }

/* ---------- כפתורים ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px;
  border-radius: 999px; border: 1px solid transparent;
  font: 700 17.5px/1 var(--sans); text-decoration: none; white-space: nowrap;
  cursor: pointer; user-select: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-position .6s var(--ease), border-color .2s, color .2s, opacity .2s;
}
.btn:active { transform: scale(.975); }
.btn-gold {
  background: var(--gold-grad); background-size: 180% 100%; background-position: 0 0;
  color: var(--on-gold);
  box-shadow: 0 12px 26px -12px rgba(140, 100, 32, .85), inset 0 1px 0 rgba(255, 255, 255, .4);
}
@media (hover: hover) { .btn-gold:hover { background-position: 100% 0; transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(140, 100, 32, .9), inset 0 1px 0 rgba(255, 255, 255, .4); } }
.btn-xl { min-height: 60px; font-size: 19px; padding: 0 32px; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15.5px; gap: 7px; }
.btn-sm .ico { width: 19px; height: 19px; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
@media (hover: hover) { .btn-ghost:hover { border-color: var(--gold); color: var(--gold-text); } }
.btn-outline { background: var(--surface); border-color: var(--gold-hair); color: var(--gold-text); }
@media (hover: hover) { .btn-outline:hover { border-color: var(--gold); background: var(--gold-wash); } }
.btn-round { width: 54px; padding: 0; flex: none; }
.btn[disabled] { opacity: .65; pointer-events: none; }

.shimmer::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 45%; inset-inline-start: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-18deg);
  animation: sheen 5.5s var(--ease-io) 1.2s infinite;
}
@keyframes sheen { 0%, 70% { inset-inline-start: -60%; } 100% { inset-inline-start: 130%; } }

.link-btn {
  background: none; border: 0; padding: 6px 4px; min-height: 44px; cursor: pointer;
  color: var(--gold-text); font-weight: 700; text-decoration: underline; text-decoration-color: var(--gold-hair); text-underline-offset: 4px;
}

/* ---------- סרגל ניווט תחתון ---------- */
.navbar {
  position: sticky; bottom: 0; z-index: 20;
  display: flex; gap: 10px; align-items: center;
  margin: 14px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, color-mix(in srgb, var(--bg) 94%, transparent) 60%, transparent);
}
.btn-next { flex: 1; }
.btn-next.loading { pointer-events: none; }
.btn-next.loading::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .55) 50%, transparent 80%);
  background-size: 200% 100%; animation: loadSweep 1.1s linear infinite;
}
@keyframes loadSweep { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.btn-next .spinner { width: 20px; height: 20px; border-width: 2.2px; border-color: rgba(27, 32, 51, .25); border-top-color: var(--on-gold); }

.foot { text-align: center; color: var(--ink-faint); font-size: 13px; padding: 14px 0 22px; margin-top: auto; }
.foot a { text-decoration: none; direction: ltr; unicode-bidi: isolate; }

/* ---------- שדות ---------- */
.field { position: relative; }
.field > label, .label, .q, .photo-title {
  display: block; font-weight: 700; font-size: 15.5px; color: var(--ink); margin-bottom: 8px;
}
.q small { font-weight: 500; color: var(--ink-faint); font-size: 13.5px; }
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; min-height: 30px; }
.label-row > label, .label-row > .label { margin: 0; font-weight: 700; font-size: 15.5px; }

input[type="text"], input[type="tel"], textarea {
  width: 100%; min-height: 54px; padding: 13px 16px;
  font-size: 17.5px; line-height: 1.45;
  background: var(--field); color: var(--ink);
  border: 1px solid var(--line); border-radius: 14px;
  outline: none; appearance: none; -webkit-appearance: none;
  transition: border-color .2s, box-shadow .25s, background .2s;
}
textarea { resize: vertical; min-height: 112px; display: block; }
input::placeholder, textarea::placeholder { color: var(--ink-faint); opacity: 1; }
input[type="text"]:focus, input[type="tel"]:focus, textarea:focus {
  border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-wash), 0 6px 18px -12px rgba(122, 90, 26, .6);
}
input[dir="ltr"] { text-align: right; }
input[dir="ltr"]:placeholder-shown { text-align: right; }
.row2 { display: grid; gap: 22px; }
.hint { margin-top: 7px; font-size: 14px; color: var(--ink-faint); }
.count { position: absolute; bottom: 8px; inset-inline-end: 12px; font-size: 12px; color: var(--ink-faint); pointer-events: none; opacity: 0; transition: opacity .2s; }
.field:focus-within .count { opacity: 1; }

.field.invalid input, .field.invalid textarea { border-color: var(--danger); box-shadow: 0 0 0 4px var(--danger-wash); }
.group.invalid .gcard, .group.invalid .who, .group.invalid .chip span { border-color: var(--danger); }
.consent.invalid .check-ui { border-color: var(--danger); box-shadow: 0 0 0 4px var(--danger-wash); }
.ferr {
  margin: 8px 0 0; color: var(--danger); font-weight: 600; font-size: 14.5px;
  display: flex; gap: 6px; align-items: baseline; animation: nudge .45s var(--ease);
}
.ferr::before { content: "!"; flex: none; width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--danger); color: var(--surface); font-size: 12px; font-weight: 800; transform: translateY(2px); }
.group.invalid .ferr, .consent .ferr { margin-top: 10px; }
.err {
  color: var(--danger); font-weight: 600; font-size: 15px; text-align: center;
  min-height: 0; margin: 0 !important;
}
.err:not(:empty) { margin-top: 18px !important; padding: 10px 14px; border-radius: 12px; background: var(--danger-wash); animation: nudge .45s var(--ease); }
@keyframes nudge { 20% { transform: translateX(-6px); } 45% { transform: translateX(5px); } 70% { transform: translateX(-3px); } }

/* segmented */
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line-soft); }
.seg-btn {
  border: 0; background: none; cursor: pointer; padding: 0 14px; min-height: 38px; border-radius: 999px;
  font-size: 14px; font-weight: 700; color: var(--ink-soft); transition: background .25s, color .25s, box-shadow .25s;
}
.seg-btn[aria-pressed="true"] { background: var(--surface); color: var(--gold-text); box-shadow: 0 2px 8px -3px rgba(122, 90, 26, .45), inset 0 0 0 1px var(--gold-hair); }

/* stepper */
.stepper { display: flex; align-items: stretch; gap: 10px; }
.stepper input { flex: 1; text-align: center; font-family: var(--serif); font-size: 26px; font-weight: 700; letter-spacing: .02em; padding: 8px; }
.step-btn {
  width: 54px; flex: none; border-radius: 14px; cursor: pointer;
  border: 1px solid var(--line); background: var(--bg);
  font-size: 26px; font-weight: 500; color: var(--gold-text); line-height: 1;
  transition: border-color .2s, background .2s, transform .15s;
}
.step-btn:active { transform: scale(.94); }
@media (hover: hover) { .step-btn:hover { border-color: var(--gold); background: var(--gold-wash); } }

/* ---------- בחירה: מי ממלא ---------- */
.who-list { display: grid; gap: 10px; }
.who {
  position: relative; display: flex; align-items: center; gap: 14px;
  min-height: 70px; padding: 12px 16px; border-radius: var(--radius); cursor: pointer;
  background: var(--field); border: 1px solid var(--line);
  transition: border-color .25s, box-shadow .3s var(--ease), transform .3s var(--ease), background .25s;
}
.who input, .gcard input, .chip input { position: absolute; opacity: 0; pointer-events: none; }
.who-ico {
  width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--bg); border: 1px solid var(--gold-hair); color: var(--gold-text);
  transition: background .3s, color .3s;
}
.who-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.who-txt { display: flex; flex-direction: column; line-height: 1.3; flex: 1; }
.who-txt b { font-size: 17.5px; }
.who-txt small { color: var(--ink-faint); font-size: 14px; }
.tick {
  width: 24px; height: 24px; border-radius: 50%; flex: none;
  border: 1.5px solid var(--line); position: relative;
  transition: background .3s, border-color .3s, transform .4s var(--ease);
}
.tick::after {
  content: ""; position: absolute; left: 7px; top: 5px; width: 6px; height: 10px;
  border: solid var(--on-gold); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .35s var(--ease) .05s;
}
.who:has(input:checked) { border-color: var(--gold); background: var(--surface); box-shadow: 0 0 0 3px var(--gold-wash), var(--shadow-soft); }
.who:has(input:checked) .who-ico { background: var(--gold-grad); color: var(--on-gold); border-color: transparent; }
.who:has(input:checked) .tick, .gcard:has(input:checked) .tick { background: var(--gold-grad); border-color: transparent; transform: scale(1.06); }
.who:has(input:checked) .tick::after, .gcard:has(input:checked) .tick::after { transform: rotate(45deg) scale(1); }
.who:has(input:focus-visible), .gcard:has(input:focus-visible), .chip:has(input:focus-visible) span { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (hover: hover) { .who:hover, .gcard:hover { border-color: var(--gold-hair); transform: translateY(-1px); } }

/* ---------- בחור / בחורה ---------- */
.gender-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gcard {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  min-height: 148px; padding: 20px 10px 16px; border-radius: 22px; cursor: pointer; text-align: center;
  background: var(--field); border: 1px solid var(--line);
  transition: border-color .25s, box-shadow .35s var(--ease), transform .35s var(--ease), background .25s;
  overflow: hidden;
}
.gcard::before {
  content: ""; position: absolute; inset: 6px; border-radius: 17px; border: 1px solid transparent; transition: border-color .3s;
}
.gcard-art {
  width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, var(--surface), var(--bg-deep));
  border: 1px solid var(--gold-hair); color: var(--gold);
  transition: transform .5s var(--ease), box-shadow .4s;
}
.gcard-art svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.gcard-name { font-family: var(--serif); font-size: 24px; font-weight: 700; }
.gcard .tick { position: absolute; top: 12px; inset-inline-end: 12px; }
.gcard:has(input:checked) {
  border-color: var(--gold); background: var(--surface);
  box-shadow: 0 0 0 3px var(--gold-wash), 0 20px 40px -24px rgba(122, 90, 26, .8);
}
.gcard:has(input:checked)::before { border-color: var(--gold-hair); }
.gcard:has(input:checked) .gcard-art { transform: scale(1.08) rotate(-4deg); box-shadow: 0 0 0 6px var(--gold-wash); }

/* ---------- צ'יפים ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { position: relative; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 46px; padding: 0 18px; border-radius: 999px;
  background: var(--field); border: 1px solid var(--line);
  font-size: 16px; font-weight: 600; color: var(--ink);
  transition: background .25s, border-color .25s, color .25s, box-shadow .3s var(--ease), transform .3s var(--ease);
}
.chip span::before {
  content: ""; width: 0; height: 9px; margin-inline-end: -7px;
  border: solid var(--on-gold); border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px);
  opacity: 0; transition: width .25s var(--ease), margin .25s var(--ease), opacity .2s;
}
.chip input:checked + span {
  background: var(--gold-grad); background-size: 160% 100%; border-color: transparent; color: var(--on-gold);
  box-shadow: 0 8px 18px -10px rgba(140, 100, 32, .9), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.chip input:checked + span::before { width: 5px; margin-inline-end: 0; opacity: 1; }
@media (hover: hover) { .chip:hover span { border-color: var(--gold); } }
.chip:active span { transform: scale(.96); }
.chips-lg .chip span { min-height: 52px; padding: 0 22px; font-size: 17px; }
.chip.any span { border-style: dashed; }

/* ---------- סליידרים ---------- */
.big-val {
  font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--gold-text);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.big-val bdi { unicode-bidi: isolate; }
.big-val small { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--ink-soft); margin-inline-start: 3px; }
.range { position: relative; height: 44px; }
.range .track { position: absolute; left: 14px; right: 14px; top: 50%; height: 6px; margin-top: -3px; border-radius: 6px; background: var(--line); }
.range .fill { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 6px; background: var(--gold-grad); box-shadow: 0 0 10px rgba(217, 180, 94, .5); }
.range input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 44px; margin: 0;
  background: transparent; -webkit-appearance: none; appearance: none; outline: none;
}
.range.dual input[type="range"] { pointer-events: none; }
.range input[type="range"]::-webkit-slider-runnable-track { height: 44px; background: transparent; }
.range input[type="range"]::-moz-range-track { height: 44px; background: transparent; }
.range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; pointer-events: auto; cursor: grab;
  width: 30px; height: 30px; margin-top: 7px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--gold) 0 4px, var(--surface) 4.5px);
  border: 2px solid var(--gold);
  box-shadow: 0 4px 12px -3px rgba(122, 90, 26, .65), 0 0 0 0 var(--gold-wash);
  transition: box-shadow .25s, transform .2s;
}
.range input[type="range"]::-moz-range-thumb {
  pointer-events: auto; cursor: grab; width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--gold) 0 4px, var(--surface) 4.5px);
  border: 2px solid var(--gold); box-shadow: 0 4px 12px -3px rgba(122, 90, 26, .65);
}
.range input[type="range"]:active::-webkit-slider-thumb { cursor: grabbing; transform: scale(1.1); box-shadow: 0 4px 12px -3px rgba(122, 90, 26, .65), 0 0 0 8px var(--gold-wash); }
.range input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--gold); }
.range-scale { display: flex; justify-content: space-between; padding: 0 8px; font-size: 12.5px; color: var(--ink-faint); margin-top: -2px; }

/* מתג */
.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 700; font-size: 15.5px; min-height: 44px; }
.switch input { position: absolute; opacity: 0; }
.switch-ui {
  position: relative; width: 48px; height: 28px; border-radius: 999px; flex: none;
  background: var(--line); transition: background .3s;
}
.switch-ui::after {
  content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--surface); box-shadow: 0 2px 6px rgba(0, 0, 0, .25); transition: inset-inline-start .35s var(--ease);
}
.switch input:checked + .switch-ui { background: var(--gold-grad); }
.switch input:checked + .switch-ui::after { inset-inline-start: 23px; }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--gold); outline-offset: 3px; }
.collapse { animation: inFwd .4s var(--ease) both; animation-name: drop; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ניצוצות כתיבה */
.sparks { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 0 10px; }
.spark {
  flex: none; display: inline-flex; align-items: center; gap: 5px;
  min-height: 36px; padding: 0 13px; border-radius: 999px; cursor: pointer;
  background: var(--gold-wash); border: 1px dashed var(--gold-hair); color: var(--gold-text);
  font-size: 14px; font-weight: 700; transition: background .2s, border-color .2s, opacity .2s;
}
.spark::before { content: "+"; font-size: 16px; }
@media (hover: hover) { .spark:hover { border-style: solid; border-color: var(--gold); } }
.spark.used { opacity: .45; }

/* ---------- תמונה ---------- */
.photo-block { display: flex; gap: 18px; align-items: center; }
.arch-frame {
  position: relative; flex: none; width: 128px; height: 166px; cursor: pointer;
  border-radius: 64px 64px 16px 16px; overflow: hidden;
  background:
    linear-gradient(var(--field), var(--field)) padding-box,
    var(--gold-grad) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 0 0 5px var(--surface), 0 0 0 6px var(--gold-hair), var(--shadow-soft);
  margin: 7px;
  transition: transform .35s var(--ease), box-shadow .3s;
}
.arch-frame:focus-visible { outline: 2px solid var(--gold); outline-offset: 9px; }
.arch-frame.drag { transform: scale(1.04); box-shadow: 0 0 0 5px var(--surface), 0 0 0 7px var(--gold), var(--shadow-soft); }
.arch-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: reveal .7s var(--ease) both; }
@keyframes reveal { from { opacity: 0; transform: scale(1.08); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.arch-empty {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: var(--gold-text); text-align: center; padding: 10px;
  background: repeating-linear-gradient(135deg, transparent 0 9px, var(--gold-wash) 9px 10px);
}
.arch-empty svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.arch-empty b { font-size: 15px; }
.arch-empty small { font-size: 12.5px; color: var(--ink-faint); }
.arch-busy { position: absolute; inset: 0; display: grid; place-items: center; background: color-mix(in srgb, var(--surface) 70%, transparent); }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 2.5px solid var(--gold-hair); border-top-color: var(--gold); animation: spin .8s linear infinite; display: inline-block; }
.photo-side { flex: 1; min-width: 0; }
.photo-side .hint { margin-top: 0; font-size: 14.5px; }
.photo-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.photo-actions label { cursor: pointer; }
.touch-only { display: none; }
@media (pointer: coarse) { .touch-only { display: inline-flex; } .desk-only { display: none; } }

/* צ'קבוקס */
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 16px; line-height: 1.45; min-height: 44px; padding-top: 8px; }
.check input { position: absolute; opacity: 0; }
.check-ui {
  width: 26px; height: 26px; border-radius: 8px; flex: none; position: relative; margin-top: -2px;
  border: 1.5px solid var(--line); background: var(--field);
  transition: background .25s, border-color .25s, box-shadow .25s;
}
.check-ui::after {
  content: ""; position: absolute; left: 8.5px; top: 4px; width: 6px; height: 12px;
  border: solid var(--on-gold); border-width: 0 2.2px 2.2px 0; transform: rotate(45deg) scale(0); transition: transform .3s var(--ease);
}
.check input:checked + .check-ui { background: var(--gold-grad); border-color: transparent; box-shadow: 0 6px 14px -8px rgba(140, 100, 32, .9); }
.check input:checked + .check-ui::after { transform: rotate(45deg) scale(1); }
.check-note { display: block; margin-top: 3px; font-size: 13.5px; color: var(--ink-faint); }
.check input:focus-visible + .check-ui { outline: 2px solid var(--gold); outline-offset: 3px; }

.contact-block { padding: 18px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line-soft); }
.contact-block > * + * { margin-top: 18px; }

.consent {
  padding: 16px 16px 14px; border-radius: var(--radius);
  background: linear-gradient(var(--bg), var(--bg)) padding-box, linear-gradient(140deg, var(--gold-hair), transparent 60%, var(--gold-hair)) border-box;
  border: 1px solid transparent;
}
.check-consent { font-weight: 700; padding-top: 4px; }
.privacy { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14.5px; color: var(--ink-soft); }
.privacy li { display: flex; gap: 9px; align-items: baseline; }

/* ---------- סיכום ---------- */
.summary { display: grid; gap: 12px; }
.sum-card {
  display: block; width: 100%; text-align: start; cursor: pointer;
  background: var(--field); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; position: relative;
  transition: border-color .2s, box-shadow .3s var(--ease), transform .3s var(--ease);
}
@media (hover: hover) { .sum-card:hover { border-color: var(--gold); box-shadow: var(--shadow-soft); transform: translateY(-1px); } }
.sum-card:active { transform: scale(.99); }
.sum-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.sum-head h3 { margin: 0; font-family: var(--serif); font-size: 19px; font-weight: 700; }
.sum-edit { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 700; color: var(--gold-text); }
.sum-edit svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sum-rows { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 15.5px; margin: 0; }
.sum-rows dt { color: var(--ink-faint); font-weight: 600; }
.sum-rows dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.sum-rows dd.muted { color: var(--ink-faint); font-style: italic; }
.sum-photo { display: flex; gap: 14px; align-items: center; }
.sum-photo img { width: 52px; height: 66px; object-fit: cover; border-radius: 26px 26px 8px 8px; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--gold-hair); flex: none; }

.send-error {
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
  padding: 16px; border-radius: var(--radius); background: var(--danger-wash); color: var(--danger); font-weight: 600;
}

/* ---------- הצלחה ---------- */
.step-success { text-align: center; padding: 4px 0 6px; }
.step-success > * + * { margin-top: 16px; }
.rings { position: relative; width: 220px; height: 154px; margin: 0 auto; }
.rings svg { position: relative; width: 100%; height: 100%; overflow: visible; z-index: 1; }
.ring { fill: none; stroke: url(#gGold); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 264; stroke-dashoffset: 264; filter: drop-shadow(0 6px 10px rgba(122, 90, 26, .35)); }
.step-success.play .r1 { animation: draw 1.3s var(--ease) .15s forwards; }
.step-success.play .r2 { animation: draw 1.3s var(--ease) .5s forwards; }
.gem { fill: url(#gGold); stroke: #FFF6DC; stroke-width: 1; opacity: 0; transform-origin: 78px 36px; }
.step-success.play .gem { animation: gemIn .7s var(--ease) 1.25s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes gemIn { from { opacity: 0; transform: translateY(-14px) scale(.4); } to { opacity: 1; transform: none; } }
.burst { position: absolute; left: 50%; top: 52%; width: 0; height: 0; z-index: 2; }
.burst i {
  position: absolute; width: 7px; height: 7px; left: -3.5px; top: -3.5px;
  background: var(--gold-grad); transform: rotate(45deg); opacity: 0; border-radius: 1px;
  animation: fly 1.4s var(--ease) forwards;
}
.burst i.dot { border-radius: 50%; width: 5px; height: 5px; background: var(--gold-light); }
@keyframes fly {
  0% { opacity: 0; transform: translate(0, 0) rotate(45deg) scale(.3); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(225deg) scale(1); }
}
.step-success h2 { font-size: clamp(30px, 8vw, 40px); outline: none; }
.step-success .lead { max-width: 34ch; }
.next-steps { list-style: none; padding: 0; margin: 24px auto 0; display: grid; gap: 10px; text-align: start; max-width: 440px; }
.next-steps li {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 16px;
  background: var(--bg); border: 1px solid var(--line-soft); font-size: 15.5px; color: var(--ink-soft);
}
.next-steps b { color: var(--ink); }
.next-steps .n {
  width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-grad); color: var(--on-gold); font-weight: 800; font-size: 14px;
}
.step-success .btn-xl { margin-top: 26px; width: 100%; max-width: 380px; }
.ico-wa { width: 24px; height: 24px; }
.blessing { font-family: var(--serif); color: var(--gold-text); font-size: 18px; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 50;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 11px 18px; border-radius: 999px; max-width: calc(100% - 32px);
  background: var(--ink); color: var(--bg); font-weight: 600; font-size: 15px;
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .6);
  transition: opacity .3s, transform .4s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.noscript { position: fixed; inset: auto 16px 16px; z-index: 99; padding: 16px; border-radius: 14px; background: var(--ink); color: var(--bg); text-align: center; }

/* ---------- מסכים רחבים ---------- */
@media (min-width: 640px) {
  .shell { padding-top: 52px; }
  .card { padding: 44px 52px 36px; }
  .row2 { grid-template-columns: 1fr 1fr; gap: 16px; }
  .who-list { grid-template-columns: repeat(3, 1fr); }
  .who { flex-direction: column; text-align: center; padding: 20px 12px 18px; min-height: 0; }
  .who .tick { position: absolute; top: 10px; inset-inline-end: 10px; }
  .who-txt small { margin-top: 2px; }
  .gcard { min-height: 176px; }
  .progress-dots { height: 46px; align-items: flex-start; }
  .progress-dots::before, .progress-dots::after { top: 10px; }
  .pname { display: block; position: absolute; top: 28px; white-space: nowrap; font-size: 12.5px; font-weight: 600; color: var(--ink-faint); transition: color .3s; }
  .progress-dots li.is-cur .pname { color: var(--gold-text); font-weight: 800; }
  .progress-dots li.is-done .pname { color: var(--ink-soft); }
  .progress-label { display: none; }
  .navbar { margin: 8px 0 0; padding: 14px 0 18px; }
  .photo-block { gap: 26px; }
  .arch-frame { width: 150px; height: 194px; border-radius: 75px 75px 18px 18px; }
  .topbar { flex-direction: row; align-items: flex-start; gap: 28px; margin-bottom: 22px; }
  .topbar .brand { flex: none; padding-top: 2px; }
  .topbar .progress { flex: 1; padding-inline-end: 22px; }
}
@media (min-width: 1024px) {
  .shell { width: min(760px, 100%); }
  .arch { width: min(300px, calc((100% - 760px) / 2 - 30px)); opacity: .8; }
  .arch-a { inset-inline-start: calc((100% - 760px) / 2 - min(300px, calc((100% - 760px) / 2 - 30px)) - 14px); top: 16vh; bottom: auto; }
  .arch-b { inset-inline-end: calc((100% - 760px) / 2 - min(300px, calc((100% - 760px) / 2 - 30px)) - 14px); top: 16vh; bottom: auto; }
}

@media (max-width: 380px) {
  .card { padding: 26px 15px 22px; border-radius: 22px; }
  .chip span { padding: 0 15px; font-size: 15.5px; }
  .gcard { min-height: 136px; }
  .photo-block { gap: 12px; }
  .arch-frame { width: 112px; height: 146px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .motes { display: none; }
  .ring { stroke-dashoffset: 0; }
  .gem { opacity: 1; }
}
