/* Hanukkah camp registration — מרכז חוגים מירי חזן */
:root {
  --navy: #173F8C;
  --navy-700: #0F2E6A;
  --navy-50: #EEF2FA;
  --orange: #F8AD2B;
  --orange-50: #FFF6E6;
  --purple: #8A4B96;
  --purple-50: #F5EEF7;
  --teal: #12A19B;
  --teal-text: #0B7A75;      /* AA on white */
  --teal-50: #E8F6F5;
  --ink: #1B2440;
  --muted: #56607A;           /* AA on white */
  --line: #DCE2EE;
  --bg: #FFFFFF;
  --bg-soft: #F7F9FD;
  --error: #B42318;
  --error-50: #FEF3F2;
  --ok: #067647;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(23, 63, 140, .06), 0 8px 24px rgba(23, 63, 140, .08);
  --focus: 0 0 0 3px #fff, 0 0 0 6px var(--navy);
  --font: 'Assistant', 'Segoe UI', Arial, sans-serif;
  --font-head: 'Rubik', 'Assistant', 'Segoe UI', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, .btn:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}
.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;
}
.skip-link {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip-link:focus { top: 12px; }
[hidden] { display: none !important; }

/* ---------- demo banner ---------- */
.demo-banner {
  background: repeating-linear-gradient(-45deg, var(--orange-50), var(--orange-50) 12px, #FFEFD0 12px, #FFEFD0 24px);
  color: #6B4300; text-align: center; font-weight: 700; font-size: 15px; padding: 8px 16px;
  border-bottom: 1px solid #F3D9A6;
}

/* ---------- header ---------- */
.site-header { background: #fff; }
.site-header__inner {
  max-width: 960px; margin: 0 auto; padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logos { display: flex; align-items: center; gap: 14px; }
.logo-main { height: 64px; width: auto; }
.logo-second { height: 52px; width: auto; }
.logo-sep { width: 1px; height: 40px; background: var(--line); }
.header-phone {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700;
  color: var(--navy); background: var(--navy-50); border-radius: 999px; padding: 10px 16px; min-height: 44px;
  direction: ltr; white-space: nowrap;
}
.header-phone svg { width: 18px; height: 18px; flex: none; }
.tricolor { display: flex; height: 6px; direction: ltr; } /* same order as the brand banner */
.tricolor span:nth-child(1) { flex: 1; background: var(--orange); }
.tricolor span:nth-child(2) { flex: 2; background: var(--purple); }
.tricolor span:nth-child(3) { flex: 2.3; background: var(--teal); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(248, 173, 43, .22) 0 2px, transparent 3px) 0 0 / 46px 46px,
    radial-gradient(1200px 400px at 85% -10%, #2350A8 0%, transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-700) 100%);
  color: #fff;
}
.hero__inner {
  position: relative; max-width: 960px; margin: 0 auto; padding: 28px 16px 84px;
  display: grid; gap: 12px; align-items: center;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px; padding: 4px 12px; font-size: 14px; font-weight: 600; letter-spacing: .2px;
}
.hero__eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); display: inline-block; }
.hero h1 {
  font-family: var(--font-head); font-weight: 800; margin: 4px 0 0;
  font-size: clamp(30px, 8vw, 50px); line-height: 1.08; letter-spacing: -.5px;
}
.hero h1 .accent { color: var(--orange); }
.hero__lead { margin: 0; font-size: 18px; opacity: .92; max-width: 34ch; }
.menorah { width: min(250px, 66vw); justify-self: center; margin-top: 8px; filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .25)); }
.menorah .flame { transform-box: fill-box; transform-origin: 50% 100%; animation: flicker 2.4s ease-in-out infinite; }
.menorah .flame:nth-of-type(2n) { animation-duration: 1.9s; animation-delay: -.6s; }
.menorah .flame:nth-of-type(3n) { animation-duration: 2.8s; animation-delay: -1.2s; }
@keyframes flicker {
  0%, 100% { transform: scale(1, 1) rotate(0deg); }
  30% { transform: scale(.94, 1.06) rotate(-2deg); }
  60% { transform: scale(1.04, .95) rotate(2deg); }
}
@media (prefers-reduced-motion: reduce) { .menorah .flame { animation: none; } }

/* ---------- facts strip (overlaps hero) ---------- */
.facts {
  position: relative; max-width: 960px; margin: -60px auto 0; padding: 0 16px; z-index: 2;
}
.facts__card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  list-style: none; margin: 0; padding: 0;
}
.fact { padding: 14px 16px; display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.fact + .fact { border-inline-start: 1px solid var(--line); }
.fact:nth-child(3) { border-inline-start: 0; }
.fact:nth-child(n+3) { border-top: 1px solid var(--line); }
.fact__icon {
  flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
}
.fact__icon svg { width: 20px; height: 20px; }
.fact:nth-child(1) .fact__icon { background: var(--orange-50); color: #9A5B00; }
.fact:nth-child(2) .fact__icon { background: var(--purple-50); color: var(--purple); }
.fact:nth-child(3) .fact__icon { background: var(--teal-50); color: var(--teal-text); }
.fact:nth-child(4) .fact__icon { background: var(--navy-50); color: var(--navy); }
.fact__label { font-size: 13px; color: var(--muted); font-weight: 600; }
.fact__value { font-weight: 700; font-size: 16px; overflow-wrap: anywhere; }

/* ---------- layout ---------- */
main { max-width: 760px; margin: 0 auto; padding: 20px 16px 48px; }

/* step nav */
.stepnav {
  position: sticky; top: 0; z-index: 10; margin: 0 -16px 8px; padding: 10px 16px;
  background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid transparent;
}
.stepnav.is-stuck { border-bottom-color: var(--line); }
.stepnav ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.stepnav li { flex: 1; min-width: 0; }
.stepnav a {
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none;
  color: var(--muted); font-size: 12px; font-weight: 600; padding: 2px 0; border-radius: 8px;
}
.stepnav a::before {
  content: ''; display: block; width: 100%; height: 5px; border-radius: 99px; background: var(--line);
  transition: background .25s;
}
.stepnav a.is-done::before { background: var(--teal); }
.stepnav a.is-current { color: var(--navy); }
.stepnav a.is-current::before { background: var(--navy); }
.stepnav .stepnav__text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* section cards */
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px 16px; margin-top: 16px; scroll-margin-top: 72px;
}
.step__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.step__num {
  flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; color: #fff; background: var(--navy);
}
.step--2 .step__num { background: var(--purple); }
.step--3 .step__num { background: var(--teal-text); }
.step--4 .step__num { background: #9A5B00; }
.step__title { font-family: var(--font-head); font-size: 21px; font-weight: 700; margin: 0; line-height: 1.2; }
.step__sub { margin: 2px 0 0; color: var(--muted); font-size: 15px; }

/* fields */
.grid { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .field > .label, fieldset > legend {
  font-weight: 700; font-size: 16px; color: var(--ink);
}
.req { color: var(--error); margin-inline-start: 2px; }
.opt { color: var(--muted); font-weight: 500; font-size: 14px; }
.hint { color: var(--muted); font-size: 14px; margin: 0; }
input[type=text], input[type=tel], input[type=email], input[type=date], select, textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink);
  background: #fff; border: 1.5px solid #C5CEDF; border-radius: var(--radius-sm);
  padding: 12px 14px; min-height: 50px; transition: border-color .15s, background .15s;
}
textarea { min-height: 92px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #8891A5; }
input:hover, textarea:hover { border-color: #9AA6C0; }
input:focus, textarea:focus { border-color: var(--navy); }
input[type=tel], input[type=email] { direction: ltr; text-align: right; }
input[type=tel]::placeholder, input[type=email]::placeholder { direction: rtl; }
textarea:disabled { background: var(--bg-soft); color: var(--muted); border-style: dashed; }
[aria-invalid=true] { border-color: var(--error) !important; background: var(--error-50) !important; }
.err {
  color: var(--error); font-size: 14.5px; font-weight: 600; margin: 0; display: flex; gap: 6px; align-items: flex-start;
}
.err:empty { display: none; }
.err::before { content: '!'; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--error); color: #fff; font-size: 12px; display: grid; place-items: center; margin-top: 2px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

/* checkbox & radio cards */
.check {
  display: flex; gap: 12px; align-items: flex-start; cursor: pointer; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; min-height: 50px;
}
.check:hover { border-color: #9AA6C0; }
.check input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--navy); }
.check:has(input:checked) { border-color: var(--navy); background: var(--navy-50); }
.check:has(input:focus-visible) { box-shadow: var(--focus); }
.check input:focus-visible { box-shadow: none; }
.check--inline { padding: 8px 12px; min-height: 44px; align-items: center; width: fit-content; }
.check--inline input { margin: 0; }
.check.is-invalid { border-color: var(--error); background: var(--error-50); }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; border: 1.5px solid #C5CEDF; border-radius: var(--radius-sm); cursor: pointer;
  font-weight: 700; background: #fff;
}
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg label:has(input:checked) { border-color: var(--navy); background: var(--navy); color: #fff; }
.seg label:has(input:focus-visible) { box-shadow: var(--focus); }
.seg.is-invalid label { border-color: var(--error); }

/* children */
.child {
  border: 1.5px solid var(--line); border-radius: var(--radius); padding: 16px 14px; background: var(--bg-soft);
  position: relative;
}
.child + .child { margin-top: 14px; }
.child__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.child__title { margin: 0; font-family: var(--font-head); font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.child__badge {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; color: #fff;
  background: var(--purple);
}
.child:nth-child(3n+2) .child__badge { background: var(--teal-text); }
.child:nth-child(3n+3) .child__badge { background: #9A5B00; }
.assistant-extra { display: grid; gap: 10px; margin-top: 10px; }
.facts__note {
  margin: 10px 0 0; padding: 10px 16px; border-radius: var(--radius-sm); text-align: center;
  background: var(--orange-50); color: #6B4300; font-weight: 700;
}
.doc-title { margin: 0 0 6px; font-family: var(--font-head); font-size: 17px; color: var(--navy); }
.doc-list { margin: 0 0 10px; padding-inline-start: 20px; }
.doc-list li + li { margin-top: 4px; }
.doc-text { margin: 0 0 10px; }
.consent-hint {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  background: var(--purple-50); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 15px;
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer;
  min-height: 50px; padding: 12px 20px; border-radius: 14px; border: 1.5px solid transparent;
  transition: transform .06s, background .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--orange); color: var(--navy-700); box-shadow: 0 6px 16px rgba(248, 173, 43, .35); }
.btn--primary:hover { background: #F6A10C; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-700); }
.btn--ghost { background: #fff; color: var(--navy); border-color: #B9C5DE; }
.btn--ghost:hover { background: var(--navy-50); }
.btn--danger-ghost { background: transparent; color: var(--error); border-color: transparent; min-height: 44px; padding: 8px 12px; }
.btn--danger-ghost:hover { background: var(--error-50); }
.btn--purple { background: var(--purple); color: #fff; }
.btn--block { width: 100%; }
.btn--xl { min-height: 60px; font-size: 19px; border-radius: 16px; }
.btn[disabled], .btn[aria-disabled=true] { opacity: .55; cursor: not-allowed; box-shadow: none; }
.add-row { margin-top: 14px; display: grid; gap: 6px; }
.add-btn { border: 2px dashed #B9C5DE; background: #fff; color: var(--navy); width: 100%; }
.add-btn:hover { background: var(--navy-50); border-color: var(--navy); }

/* summary */
.summary {
  margin-top: 16px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.summary__top { background: var(--navy); color: #fff; padding: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.summary__calc { font-size: 16px; opacity: .92; }
.summary__total { font-family: var(--font-head); font-weight: 800; font-size: 30px; line-height: 1; white-space: nowrap; }
.summary__total small { font-size: 16px; font-weight: 600; opacity: .85; }
.summary__body { padding: 16px; display: grid; gap: 12px; background: #fff; }
.secure-note { display: flex; gap: 8px; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; margin: 0; }
.secure-note svg { width: 16px; height: 16px; }
.privacy { color: var(--muted); font-size: 14px; margin: 0; }

.error-summary {
  border: 2px solid var(--error); background: var(--error-50); border-radius: var(--radius-sm); padding: 12px 14px;
}
.error-summary h3 { margin: 0 0 6px; font-size: 16px; color: var(--error); }
.error-summary ul { margin: 0; padding-inline-start: 20px; }
.error-summary a { color: var(--error); font-weight: 600; }
.alert {
  border-radius: var(--radius-sm); padding: 12px 14px; font-weight: 600;
  background: var(--error-50); color: var(--error); border: 1px solid #F5C2BE;
}

.spinner {
  width: 20px; height: 20px; border-radius: 50%; border: 3px solid currentColor; border-inline-end-color: transparent;
  animation: spin .8s linear infinite; flex: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2s; } }

/* honeypot */
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; white-space: nowrap; }

/* ---------- status / result cards ---------- */
.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px 18px; text-align: center; margin-top: 16px;
}
.panel h2 { font-family: var(--font-head); font-size: 26px; margin: 12px 0 6px; line-height: 1.2; }
.panel p { margin: 6px 0; }
.panel .actions { display: grid; gap: 10px; margin-top: 18px; }
.badge-icon { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto; }
.badge-icon svg { width: 40px; height: 40px; }
.badge-icon--ok { background: #E7F6EE; color: var(--ok); }
.badge-icon--wait { background: var(--orange-50); color: #9A5B00; }
.badge-icon--bad { background: var(--error-50); color: var(--error); }
.badge-icon--info { background: var(--navy-50); color: var(--navy); }
.regno {
  display: inline-flex; flex-direction: column; gap: 2px; background: var(--navy-50); border-radius: 14px;
  padding: 10px 22px; margin: 10px auto 4px;
}
.regno span { font-size: 13px; color: var(--muted); font-weight: 600; }
.regno strong { font-family: var(--font-head); font-size: 28px; color: var(--navy); letter-spacing: .5px; }
.muted { color: var(--muted); }
.skeleton { display: grid; gap: 12px; }
.skeleton div { height: 74px; border-radius: var(--radius); background: linear-gradient(90deg, #F0F3F9, #E5EAF4, #F0F3F9); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); }
.site-footer__inner { max-width: 760px; margin: 0 auto; padding: 18px 16px 28px; color: var(--muted); font-size: 14px; text-align: center; }
.site-footer a { color: var(--navy); font-weight: 600; }

/* ---------- wider screens ---------- */
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: 1fr 1fr; }
  .facts__card { grid-template-columns: repeat(4, 1fr); }
  .fact:nth-child(3) { border-inline-start: 1px solid var(--line); }
  .fact:nth-child(n+3) { border-top: 0; }
  .step { padding: 26px 26px; }
  .child { padding: 18px; }
  .panel { padding: 40px 32px; }
  .panel .actions { grid-template-columns: auto; justify-content: center; }
  .stepnav a { font-size: 13px; }
}
@media (min-width: 860px) {
  .hero__inner { grid-template-columns: 1.2fr .8fr; padding: 40px 16px 96px; }
  .menorah { width: 300px; margin: 0; }
  .logo-main { height: 76px; }
}

/* embedded in an iframe: compact chrome */
.is-embedded .site-header, .is-embedded .site-footer { display: none; }
.is-embedded .hero__inner { padding-top: 20px; }

@media print {
  .hero, .stepnav, .site-header, .btn { display: none !important; }
}

/* compact hero for thanks/failed */
.hero--compact .hero__inner { padding: 22px 16px 70px; grid-template-columns: 1fr; }
.main--result { margin-top: -56px; position: relative; z-index: 2; }
.main--result .panel { margin-top: 0; }
