/* דף ההרשמה לכנס. אותם צבעים כמו האפליקציה, שנדגמו מהכרזה של תרבות בונה מקום. */
:root {
  --bg: #FFFFF0; --sand: #F5EEDF; --ink: #231F20; --muted: #5F5850; --line: #E8DFCD;
  --red: #D04F2F; --red-soft: #FAE4DB; --danger: #A43A45;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
[hidden] { display: none !important; }
body {
  background: var(--bg); color: var(--ink);
  font: 400 17px/1.5 Assistant, 'Segoe UI', Arial, sans-serif;
  -webkit-tap-highlight-color: transparent; text-wrap: pretty;
}
h1, h2, legend { text-wrap: balance; }
a { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 6px; }

/* ───── ראש הדף ───── */
.hero { position: relative; overflow: hidden; background: var(--bg); }
.hero .city { display: block; width: 100%; height: 150px; object-fit: cover; object-position: 50% 100%; }
.hero-in {
  max-width: 560px; margin: 0 auto; padding: 18px 16px 6px;
  display: flex; align-items: center; gap: 18px;
}
.hero .title { width: 112px; height: auto; flex: none; }
.when { display: grid; gap: 2px; }
.when b { font-size: 22px; font-weight: 800; line-height: 1.15; }
.when span { color: var(--red); font-weight: 700; font-size: 17px; line-height: 1.3; }

main { max-width: 560px; margin: 0 auto; padding: 0 16px 32px; }
.stripe { display: flex; height: 6px; border-radius: 3px; overflow: hidden; margin: 14px 0 18px; }
.stripe i { flex: 1; }
.stripe i:nth-child(1) { background: #264C8A; } .stripe i:nth-child(2) { background: #3880A6; }
.stripe i:nth-child(3) { background: #D04F2F; } .stripe i:nth-child(4) { background: #A43A45; }
.stripe i:nth-child(5) { background: #55923F; } .stripe i:nth-child(6) { background: #F0A641; }
.stripe i:nth-child(7) { background: #DC8593; } .stripe i:nth-child(8) { background: #2D5C41; }

/* ───── טופס ───── */
form { display: grid; gap: 18px; }
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 12px; }
legend { font-size: 20px; font-weight: 800; padding: 0; margin-bottom: 4px; }
label { display: grid; gap: 4px; font-weight: 600; font-size: 16px; }
label small { color: var(--muted); font-weight: 400; font-size: 14px; margin-inline-start: 4px; }
input:not([type=radio]):not([type=checkbox]):not([type=range]), select, textarea {
  font: inherit; font-size: 17px; /* 16px ומעלה: בלי זום אוטומטי באייפון */
  width: 100%; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink); font-weight: 400;
}
input[dir=ltr] { text-align: right; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: none; }
input[aria-invalid=true] { border-color: var(--danger); }
textarea { resize: vertical; min-height: 64px; }

.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }

/* בחירת סכום: סליידר. בעברית הסכום הנמוך בצד ימין, והפס האדום מתמלא מימין עד הידית */
.price { gap: 8px; }
.p-now { display: flex; align-items: baseline; gap: 10px; }
.p-now b { font-size: 30px; font-weight: 800; color: var(--red); line-height: 1.1; font-variant-numeric: tabular-nums; min-width: 3.4em; white-space: nowrap; }
.p-now span { font-size: 18px; font-weight: 800; white-space: nowrap; }
.price input[type=range] {
  --p: 25%;
  -webkit-appearance: none; appearance: none; width: 100%; height: 36px; margin: 0;
  background: transparent; cursor: pointer; touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
}
.price input[type=range]::-webkit-slider-runnable-track {
  height: 8px; border-radius: 4px;
  background: linear-gradient(to left, var(--red) var(--p), var(--line) var(--p));
}
.price input[type=range]::-moz-range-track { height: 8px; border-radius: 4px; background: var(--line); }
.price input[type=range]::-moz-range-progress { height: 8px; border-radius: 4px; background: var(--red); }
.price input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; border-radius: 50%;
  background: var(--red); border: 3px solid var(--bg); box-shadow: 0 1px 4px rgba(35,31,32,.3);
}
.price input[type=range]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; background: var(--red); border: 3px solid var(--bg);
}
.price input[type=range]:focus-visible { outline-offset: 4px; }
.p-ends { display: flex; justify-content: space-between; font-size: 15px; font-weight: 700; color: var(--muted); margin-top: -4px; }
.price input[type=range]:disabled { opacity: .35; cursor: default; }
.price .check { margin-top: 4px; }
.other input { max-width: 180px; }
.t-text { margin: 0; font-weight: 400; color: var(--muted); font-size: 15px; min-height: 2.9em; }

.trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.privacy { margin: 0; color: var(--muted); font-size: 14px; }
.err { margin: 0; color: var(--danger); font-weight: 700; }

button[type=submit] {
  font: inherit; font-weight: 800; font-size: 18px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--red); color: var(--bg); padding: 14px 24px; width: 100%;
  transition: transform .12s ease-out, opacity .15s;
  -webkit-user-select: none; user-select: none;
}
button[type=submit]:active { transform: scale(.98); }
button[disabled] { opacity: .6; cursor: progress; }

/* ───── אחרי ההרשמה ───── */
#done { display: grid; gap: 10px; padding: 22px 20px; background: var(--sand); border-radius: 16px; }
#done h1 { margin: 0; font-size: 26px; font-weight: 800; line-height: 1.2; }
#done p { margin: 0; }
#done .muted { color: var(--muted); font-size: 15px; }
.appear { animation: appear .3s ease-out both; }
@keyframes appear { from { opacity: 0; transform: translateY(8px); } }

footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; padding-bottom: 64px; padding-top: 14px; border-top: 1px solid var(--line); }
footer img { display: block; height: auto; }
footer .small { font-size: 14px; color: var(--muted); }

/* ───── תוסף נגישות (js/a11y.js) ───── */
.a11y-btn {
  position: fixed; inset-inline-end: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 50;
  width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--bg); cursor: pointer;
  background: var(--ink); color: var(--bg); display: grid; place-items: center;
  box-shadow: 0 2px 10px rgba(35,31,32,.25);
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.a11y-panel {
  position: fixed; inset-inline-end: 14px; bottom: calc(74px + env(safe-area-inset-bottom)); z-index: 50;
  width: min(270px, calc(100vw - 28px)); display: grid; gap: 8px; padding: 14px;
  background: #fff; color: var(--ink); border: 1.5px solid var(--line); border-radius: 16px;
  box-shadow: 0 8px 30px rgba(35,31,32,.2); font-size: 16px;
}
.a11y-top { display: flex; justify-content: space-between; align-items: center; }
.a11y-top b { font-size: 18px; font-weight: 800; }
.a11y-panel button { font: inherit; cursor: pointer; color: var(--ink); -webkit-user-select: none; user-select: none; }
.a11y-x { border: 0; background: none; font-size: 18px; width: 36px; height: 36px; border-radius: 50%; }
.a11y-size { display: flex; align-items: center; gap: 8px; }
.a11y-size span { flex: 1; font-weight: 600; }
.a11y-size b { min-width: 3em; text-align: center; font-variant-numeric: tabular-nums; }
.a11y-size button, .a11y-t, .a11y-reset {
  border: 1.5px solid var(--line); background: var(--bg); border-radius: 10px; padding: 9px 12px; font-weight: 700;
}
.a11y-size button { width: 44px; padding: 7px 0; }
.a11y-size button:disabled { opacity: .4; cursor: default; }
.a11y-t { text-align: start; }
.a11y-t[aria-pressed=true] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.a11y-reset { background: none; }
.a11y-panel a { text-align: center; font-size: 15px; }

html.a11y-contrast { --bg: #fff; --sand: #fff; --ink: #000; --muted: #000; --line: #000; --red: #A3201A; --red-soft: #fff; --danger: #8A0000; }
html.a11y-contrast .hero .city { filter: contrast(1.2); }
html.a11y-links a { text-decoration: underline !important; text-underline-offset: 3px; font-weight: 800; }
html.a11y-font body, html.a11y-font input, html.a11y-font select, html.a11y-font textarea, html.a11y-font button { font-family: Arial, sans-serif !important; letter-spacing: .01em; }
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }

@media (min-width: 700px) {
  .hero .city { height: 200px; max-width: 760px; margin: 0 auto; }
  .hero .title { width: 132px; }
  .when b { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .appear { animation: none; }
  button[type=submit] { transition: none; }
}

/* Cloudflare Turnstile: בדרך כלל בלתי נראה. כשהוא מופיע, הוא ממורכז מעל כפתור ההרשמה */
.human { display: flex; justify-content: center; }
.human:empty { display: none; }
