@font-face { font-family: "Assistant"; font-weight: 400; font-display: swap; src: url(/fonts/assistant-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Assistant"; font-weight: 600; font-display: swap; src: url(/fonts/assistant-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Assistant"; font-weight: 700; font-display: swap; src: url(/fonts/assistant-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Assistant"; font-weight: 400; font-display: swap; src: url(/fonts/assistant-hebrew-400-normal.woff2) format("woff2"); unicode-range: U+0590-05FF, U+FB1D-FB4F; }
@font-face { font-family: "Assistant"; font-weight: 600; font-display: swap; src: url(/fonts/assistant-hebrew-600-normal.woff2) format("woff2"); unicode-range: U+0590-05FF, U+FB1D-FB4F; }
@font-face { font-family: "Assistant"; font-weight: 700; font-display: swap; src: url(/fonts/assistant-hebrew-700-normal.woff2) format("woff2"); unicode-range: U+0590-05FF, U+FB1D-FB4F; }

:root {
  --navy: #1d304e;
  --navy-2: #2a4268;
  --gold: #b7a35d;
  --gold-soft: #f3eedc;
  --paper: #f6f4ee;
  --ink: #1d304e;
  --muted: #5d6676;
  --line: #dcd8cc;
  --white: #fff;
  --error: #b3261e;
  --ok: #2e6b3f;
  --radius: 10px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Assistant", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
}
a { color: var(--navy); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.site-header { background: var(--navy); color: var(--white); border-bottom: 4px solid var(--gold); }
.site-header .inner { max-width: 1200px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 14px; }
.site-header img { width: 52px; height: auto; background: var(--white); border-radius: 8px; padding: 4px; }
.site-header .name { font-weight: 700; font-size: 1.15rem; line-height: 1.2; }
.site-header .sub { font-size: .9rem; color: #d9d3bd; }
.site-header .spacer { flex: 1; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 8px; border: 1px solid transparent;
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-2); }
.btn-primary[disabled] { opacity: .6; cursor: progress; }
.btn-ghost { background: var(--white); color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-whatsapp { background: #1f7a4d; color: var(--white); }
.btn-whatsapp:hover { background: #18633e; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- public form ---------- */
.form-page { max-width: 680px; margin: 0 auto; padding: 32px 20px 48px; }
.form-page h1 { font-size: 1.9rem; line-height: 1.2; margin: 0 0 8px; text-wrap: balance; }
.form-page .lead { color: var(--muted); margin: 0 0 24px; max-width: 56ch; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.field { margin-bottom: 20px; }
.field > label, .field > legend, .field .label { display: block; font-weight: 600; margin-bottom: 6px; padding: 0; }
.optional { font-weight: 400; color: var(--muted); font-size: .9em; }
fieldset.field { border: 0; margin: 0 0 20px; padding: 0; min-width: 0; }
input[type=text], input[type=tel], input[type=email], input[type=password], textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white);
  border: 1px solid #b9b4a6; border-radius: 8px; padding: 10px 12px; min-height: 46px;
}
textarea { min-height: 150px; resize: vertical; }
input:focus, textarea:focus { border-color: var(--navy); outline: 2px solid var(--gold); outline-offset: 0; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; gap: 0; } }

.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 16px;
  border: 1px solid #b9b4a6; border-radius: 8px; background: var(--white); cursor: pointer;
}
.choice span::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #8d8778; flex: none;
}
.choice input:checked + span { border-color: var(--navy); background: var(--gold-soft); }
.choice input:checked + span::before { border-color: var(--navy); background: radial-gradient(var(--navy) 45%, transparent 50%); }
.choice input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

.error-text { color: var(--error); font-size: .92rem; margin-top: 6px; }
.field.has-error input, .field.has-error textarea, .field.has-error .choice span { border-color: var(--error); }
.form-error { background: #fbeaea; color: var(--error); border-radius: 8px; padding: 12px 14px; margin-bottom: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.submit-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.privacy-note { color: var(--muted); font-size: .9rem; margin: 16px 0 0; }
.thanks { text-align: center; padding: 40px 24px; }
.thanks h2 { margin: 0 0 8px; font-size: 1.6rem; }
.thanks p { color: var(--muted); margin: 0 auto 20px; max-width: 46ch; }
.site-footer { text-align: center; color: var(--muted); font-size: .85rem; padding: 0 20px 32px; }

/* ---------- header links ---------- */
.home-link { display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; border-radius: 8px; }
.home-link:hover .name { text-decoration: underline; text-underline-offset: 3px; }
.header-nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.site-header .link-btn { color: var(--white); }
.link-btn {
  font: inherit; font-weight: 600; color: var(--navy); background: none; border: 0; padding: 8px 10px;
  min-height: 44px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; border-radius: 6px;
}
.link-btn:hover { text-decoration-thickness: 2px; }

/* ---------- accounts ---------- */
.static-value { padding: 10px 12px; background: var(--paper); border-radius: 8px; overflow-wrap: anywhere; }
.code-input { font-size: 1.6rem; letter-spacing: .4em; max-width: 220px; font-variant-numeric: tabular-nums; }
.student-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.student-list li { display: flex; gap: 8px; align-items: center; }
.student-list input { flex: 1; }
.field-hint { margin: -2px 0 8px; color: var(--muted); font-size: .92rem; }
.choices-col { flex-direction: column; align-items: stretch; }
.choice-check span::before { border-radius: 4px; }
.choice-check input:checked + span::before { background: var(--navy); box-shadow: inset 0 0 0 3px var(--white); }
.choice-check input:disabled + span { cursor: default; }
.form-error.is-info { background: #e8f1ea; color: var(--ok); }
.form-success { color: var(--ok); font-weight: 600; margin: 12px 0 0; }
.history { margin-top: 32px; }
.history h2 { font-size: 1.3rem; margin: 0 0 12px; }
.history-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.history-list li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.history-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: .9rem; }
.history-date { font-weight: 600; color: var(--ink); }
.history-msg { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 560px) {
  .site-header .inner { flex-wrap: wrap; }
  .header-nav { width: 100%; justify-content: flex-start; margin-inline-start: -10px; }
}
.new-parent { margin-top: 16px; }
.new-parent h2 { margin: 0 0 6px; font-size: 1.2rem; }
.new-parent p { margin: 0 0 14px; color: var(--muted); }
