/* טופס ההזמנה — שפת העיצוב של המודעה: לילך, חציל, כרטיסים מעוגלים וחצים מסולסלים. */
@font-face { font-family: "Assistant"; src: url("/fonts/Assistant.ttf") format("truetype"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Amatic SC"; src: url("/fonts/AmaticSC-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
:root {
  --lilac: #CDA2DC; --lilac-soft: #E4CDEC; --plum: #531F4A; --ink: #3B1636;
  --field: #FBF5FD; --line: #B987C9; --muted: #7E5A78; --warn: #B4441F;
  --display: "Amatic SC", "Assistant", Arial, sans-serif;
  --body: "Assistant", "Arial Hebrew", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--lilac); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55; direction: rtl;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 0 40px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--plum); outline-offset: 2px; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.hero { position: relative; max-width: 640px; margin: 0 auto 6px; padding-top: 34px; }
.hero-band { background: var(--plum); border-radius: 18px; padding: 22px 26px 18px; color: #fff; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.hero-title { font-family: var(--display); font-size: clamp(52px, 12vw, 78px); line-height: .82; margin: 0; text-align: right; font-weight: 700; }
.hero-title span { display: block; letter-spacing: 6px; }
.sparkle { font-size: 34px; line-height: 1; }
.flip { position: absolute; top: 8px; inset-inline-end: 18px; transform: rotate(-6deg); display: flex; gap: 3px; background: #fff; padding: 6px; border-radius: 10px; box-shadow: 0 3px 0 rgba(0,0,0,.25); direction: ltr; }
.flip i { font-style: normal; display: grid; place-items: center; width: 28px; height: 38px; background: linear-gradient(#2b2b2b 50%, #1c1c1c 50%); color: #eee; border-radius: 5px; font: 700 24px/1 var(--body); }
.flip b { display: grid; place-items: center; color: #222; font-size: 22px; width: 8px; }
.squig { display: block; width: 70px; height: 30px; margin: 4px auto; color: #fff; }
.squig.r { margin-inline-start: 18%; }
.squig.l { margin-inline-end: 18%; }

form { max-width: 640px; margin: 0 auto; }
.card { border: 1.6px solid var(--plum); border-radius: 18px; padding: 18px 20px; background: rgba(255,255,255,.18); }
.card h2 { margin: 0 0 10px; font-size: 24px; font-weight: 700; color: var(--plum); }
.lead { margin: 0 0 12px; font-weight: 700; }
.fld { display: grid; gap: 4px; margin-bottom: 14px; align-content: start; }
.fld:last-child { margin-bottom: 0; }
.lbl, .fld > label { font-weight: 700; }
.req { color: var(--warn); }
.fld input[type=text], .fld input[type=email], .fld input[type=tel], .fld input[type=number], .fld input[type=date], .fld input[type=time], .fld textarea, .fld select {
  width: 100%; background: var(--field); border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 12px; }
.fld input:focus, .fld textarea:focus, .fld select:focus { border-color: var(--plum); outline: none; box-shadow: 0 0 0 3px rgba(83,31,74,.18); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.hint { font-size: 14px; color: var(--muted); font-weight: 400; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { display: flex; align-items: center; gap: 6px; background: var(--field); border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer; font-weight: 600; }
.chips input { accent-color: var(--plum); }
.chips label:has(input:checked) { background: var(--plum); color: #fff; border-color: var(--plum); }
.big-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.big-choice label { position: relative; border: 2px solid var(--line); background: var(--field); border-radius: 14px; padding: 12px 14px; cursor: pointer; display: grid; gap: 2px; }
.big-choice label b { font-size: 18px; }
.big-choice label small { color: var(--muted); font-size: 14px; }
.big-choice input { position: absolute; opacity: 0; pointer-events: none; }
.big-choice label:has(input:checked) { border-color: var(--plum); background: #fff; box-shadow: inset 0 0 0 1.5px var(--plum); }
.big-choice label:has(input:focus-visible) { outline: 3px solid var(--plum); outline-offset: 2px; }
@media (max-width: 420px) { .big-choice { grid-template-columns: 1fr; } }
.hebsel { margin-bottom: 0; display: grid; grid-template-columns: 1fr 1.4fr 1.2fr; gap: 6px; }
.classes { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.classes input { width: 100%; background: var(--field); border: 1.5px solid var(--line); border-radius: 10px; padding: 7px 10px; }
.rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.room { position: relative; border: 1.6px solid var(--line); background: var(--field); border-radius: 16px; padding: 10px; cursor: pointer; display: grid; gap: 6px; justify-items: center; text-align: center; }
.room input { position: absolute; opacity: 0; pointer-events: none; }
.room .ph { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; background: var(--lilac-soft); overflow: hidden; }
.room .ph img { width: 100%; height: 100%; object-fit: cover; }
.room b { font-size: 15px; line-height: 1.25; }
.room small { font-size: 12px; color: var(--warn); font-weight: 700; }
.room:has(input:checked) { border-color: var(--plum); background: #fff; box-shadow: inset 0 0 0 1.5px var(--plum); }
.room:has(input:checked)::after { content: "✓"; position: absolute; top: 6px; inset-inline-start: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--plum); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 13px; }
.room:has(input:focus-visible) { outline: 3px solid var(--plum); outline-offset: 2px; }
.counter { font-weight: 700; margin-top: 8px; }
.counter.bad { color: var(--warn); }
.terms { display: grid; gap: 8px; font-size: 15px; }
.terms p, .plain { margin: 0; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 700; }
.check input { accent-color: var(--plum); width: 18px; height: 18px; margin-top: 3px; flex: none; }
.err { color: var(--warn); font-weight: 700; font-size: 14px; }
.actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.btn { background: var(--plum); color: #fff; border: 0; border-radius: 999px; padding: 10px 26px; font-weight: 800; font-size: 17px; cursor: pointer; }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn.ghost { background: transparent; color: var(--plum); border: 1.6px solid var(--plum); }
.thanks { text-align: center; padding: 30px 20px; }
.thanks h2 { font-family: var(--display); font-size: 56px; margin: 0; color: var(--plum); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.foot { max-width: 640px; margin: 18px auto 0; background: var(--plum); color: #fff; border-radius: 14px; padding: 12px 18px; display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; font-weight: 700; }
.foot span { direction: ltr; unicode-bidi: isolate; }

.privacy-note { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.privacy-note a { color: var(--plum); }
