/* South Florida Chinuch Conference registration.
   The look follows the reserve-the-date ad: deep green ground, a cream card, teal fingerprint accent, gold touches,
   heavy condensed caps with wide letter-spacing for headings, the בגללך mark.
   SWAP HERE: every color, font and image the designer may change is in this :root block (images live in /img/). */
:root {
  --ground: #0c2421;           /* page background */
  --ground-2: #143a35;         /* the soft glow in the background */
  --panel: #17453f;            /* green panels: the schedule card, buttons */
  --panel-2: #1f564e;
  --date: #2f5a52;             /* the big date */
  --teal: #5fa89c;             /* fingerprint accent */
  --teal-soft: #e3efec;
  --cream: #f5f3eb;            /* the card */
  --cream-2: #ece8dc;
  --paper: #ffffff;            /* inputs */
  --gold: #c9a45a;
  --gold-soft: #e9d9ae;
  --gold-text: #7d5f1e;        /* gold that reads on cream */
  --ink: #1b1f1e;
  --muted: #4b5754;
  --line: #cfc7b2;
  --line-strong: #9c937c;
  --error: #a1271c;
  --error-bg: #fbecea;
  --focus: #c9a45a;

  --font-display: "Oswald", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --font-body: "Heebo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --img-fingerprint: url("/img/fingerprint.svg");
  --radius: 10px;
}

/* Fonts: served from the installed @fontsource packages (no outside requests). */
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/oswald/oswald-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/oswald/oswald-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Heebo"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/heebo/heebo-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Heebo"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/heebo/heebo-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Heebo"; font-style: normal; font-weight: 900; font-display: swap; src: url("/fonts/heebo/heebo-hebrew-900-normal.woff2") format("woff2"); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}
[hidden] { display: none !important; }
img { max-width: 100%; }
a { color: var(--panel); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Without JavaScript every question shows; with it, only the ones that apply. */
.js-only { display: none !important; }
html.js .js-only { display: revert !important; }
html.js .nojs-only { display: none !important; }
/* Until form.js has set the page up, only the first section shows (no flash of every question). */
html.js-pending .reg-form .step:not([data-step="about"]), html.js-pending .reg-form [data-show], html.js-pending .job2 { display: none !important; }

.test-bar {
  background: #b3261e; color: #fff; text-align: center; padding: 8px 16px; font-size: 14px;
  letter-spacing: .04em;
}
.test-bar strong { font-family: var(--font-display); letter-spacing: .18em; margin-right: 8px; }

.ground {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 70% 40% at 85% 0%, var(--ground-2), transparent 70%),
    radial-gradient(ellipse 60% 40% at 0% 100%, var(--ground-2), transparent 70%),
    var(--ground);
}
.shell { max-width: 680px; margin: 0 auto; padding: 16px 12px 32px; }
.card {
  background: var(--cream);
  border-radius: 4px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 18px 40px rgba(0, 0, 0, .35);
  overflow: hidden;
}

/* ---------- the header, after the ad ---------- */
.brand { text-align: center; padding: 24px 18px 20px; }
.brand p { margin: 0; }
.brand-logo { display: block; width: 96px; height: auto; margin: 0 auto 14px; }
.brand-name {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(24px, 7vw, 38px); line-height: 1.05; letter-spacing: .04em; color: var(--ink);
}
.brand-print { display: block; width: 40px; height: 40px; margin: 12px auto 2px; }
.brand-hebrew { font-family: "Heebo", var(--font-body); font-weight: 900; font-size: clamp(44px, 13vw, 72px); line-height: 1; color: var(--ink); }
.brand-tagline {
  font-family: var(--font-display); font-weight: 500; text-transform: uppercase; letter-spacing: .22em;
  font-size: 12.5px; line-height: 1.6; color: var(--ink); margin-top: 8px !important; max-width: 19em; margin-left: auto !important; margin-right: auto !important;
}
.brand-dates {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; color: var(--date);
  font-size: clamp(27px, 7.8vw, 50px); line-height: 1.05; letter-spacing: .01em; margin-top: 18px !important;
}
.brand-venue {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .2em;
  font-size: 13px; color: var(--ink); margin-top: 10px !important;
}
.brand-intro {
  font-family: var(--font-body); font-weight: 600; font-size: 16px; line-height: 1.55; color: var(--ink); text-wrap: balance;
  max-width: 30em; margin-top: 16px !important; margin-left: auto !important; margin-right: auto !important;
}
.brand-free {
  display: inline-block; margin-top: 16px !important; padding: 6px 14px; border: 1px solid var(--gold); border-radius: 999px;
  color: var(--gold-text); font-weight: 600; font-size: 14px; background: #fbf6e8;
}

/* ---------- the schedule card ---------- */
.schedule { background: var(--panel); color: #fff; padding: 22px 20px; }
.schedule-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.schedule-list li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.schedule-mark { width: 26px; height: 26px; margin-top: 1px; }
.schedule-when {
  margin: 0; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 15px; line-height: 1.3;
  display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline;
}
.schedule-date {
  font-weight: 500; letter-spacing: .1em; font-size: 12px; color: var(--panel); background: var(--gold-soft); padding: 1px 8px; border-radius: 999px;
}
.schedule-who { margin: 2px 0 0; color: var(--gold-soft); font-size: 14px; font-weight: 600; }

/* ---------- the form ---------- */
.reg-form { padding: 8px 18px 26px; }
.step { padding-top: 22px; }
.step + .step { border-top: 1px solid var(--line); margin-top: 22px; }
html.js .step.is-locked { display: none; }
.step-title {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .14em;
  font-size: 19px; line-height: 1.2; color: var(--panel); margin: 0 0 6px; padding-bottom: 10px;
  border-bottom: 1px solid var(--gold);                       /* the hairline under every title */
  display: flex; align-items: center; gap: 10px;
}
.step-num {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--panel); color: var(--gold-soft); font-size: 14px; letter-spacing: 0; flex: none;
}
.step-hint { margin-top: 4px; }
.job-title {
  font-family: var(--font-display); font-weight: 500; text-transform: uppercase; letter-spacing: .16em; font-size: 13px;
  color: var(--gold-text); margin: 18px 0 2px;
}

.field { margin: 16px 0 0; min-width: 0; }
fieldset.field { border: 0; padding: 0; }
.field > label:not(.option), .field > legend, fieldset.field > legend {
  display: block; font-weight: 600; font-size: 16px; line-height: 1.35; margin-bottom: 6px; padding: 0; color: var(--ink);
}
.req { color: var(--error); }
.opt { color: var(--muted); font-weight: 400; font-size: 14px; }
.hint { color: var(--muted); font-size: 14px; margin: 4px 0 6px; }
.hint-phones { margin-top: 6px; }
.note { margin: 14px 0 0; padding: 10px 12px; border-left: 3px solid var(--teal); background: var(--teal-soft); border-radius: 4px; font-size: 15px; }

input[type="text"], input[type="tel"], input[type="email"], input[type="search"], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line-strong); border-radius: 8px;
  -webkit-appearance: none; appearance: none;
}
select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--panel); outline: 3px solid rgba(201, 164, 90, .45); outline-offset: 0; }
.short { max-width: 9em; }
.short-select { max-width: 14em; }
[aria-invalid="true"] { border-color: var(--error) !important; background-color: var(--error-bg); }

.pair { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
@media (min-width: 560px) { .pair { grid-template-columns: 1fr 1fr; } }

/* option boxes: radios and checkboxes as large tap targets */
.options { display: grid; gap: 8px; grid-template-columns: 1fr; }
.options.two { grid-template-columns: 1fr 1fr; }
@media (min-width: 420px) { .options.three { grid-template-columns: repeat(3, 1fr); } }
.option {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 12px; cursor: pointer;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 8px; font-weight: 400; line-height: 1.3;
}
.option:has(input:checked) { border-color: var(--panel); background: var(--teal-soft); }
.option input, .chip input, .track-card input, .add-job input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--panel); }
.consents { display: grid; gap: 8px; }
.checklist { display: grid; gap: 6px; }
.checklist .option { min-height: 44px; }

/* grades */
.band { margin-top: 12px; }
.band-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-weight: 600; font-size: 14px; color: var(--panel); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .08em; }
.chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
@media (min-width: 520px) { .chips { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.chip {
  display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 8px 10px; cursor: pointer;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 8px; font-size: 15px; line-height: 1.2;
}
.chip:has(input:checked) { border-color: var(--panel); background: var(--teal-soft); }

.link {
  background: none; border: 0; padding: 6px 0; margin: 0; font: inherit; font-size: 14px; font-weight: 600;
  color: var(--panel); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 32px;
}

/* school picker */
.picker-search { position: relative; }
.picker-list { list-style: none; margin: 6px 0 0; padding: 4px; background: var(--paper); border: 1.5px solid var(--line); border-radius: 8px; max-height: 300px; overflow-y: auto; }
.picker-list:empty { display: none; }
.picker-list button {
  display: block; width: 100%; text-align: left; background: none; border: 0; border-radius: 6px; padding: 10px; min-height: 48px;
  font: inherit; color: var(--ink); cursor: pointer;
}
.picker-list button:hover, .picker-list button:focus-visible { background: var(--teal-soft); }
.picker-list b { display: block; font-weight: 600; }
.picker-list small { display: block; color: var(--muted); font-size: 13px; }
.picker-list .add-school { color: var(--panel); font-weight: 600; border-top: 1px solid var(--line); border-radius: 0 0 6px 6px; }
.picker-empty { padding: 10px; color: var(--muted); font-size: 14px; }
html.js .school-select { display: none; }
.school-card {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 14px; border: 1.5px solid var(--panel); border-radius: 8px; background: var(--teal-soft);
}
.school-card b { display: block; font-weight: 600; }
.school-card-city { display: block; color: var(--muted); font-size: 14px; }
.new-school { margin-top: 4px; }
.new-school-note { margin-top: 10px; }

/* second job */
.job2-toggle { margin-top: 18px; }
.add-job {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 16px; cursor: pointer;
  border: 1.5px dashed var(--line-strong); border-radius: 8px; background: transparent; font-weight: 600; color: var(--panel);
}
html.js .add-job input { position: absolute; opacity: 0; pointer-events: none; }
html.js .add-job:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
html.js .job2-toggle.is-on { display: none; }
.job2 { margin-top: 10px; padding: 4px 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, .45); }
.job2-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }

/* tracks */
.prepick-note { margin: 0 0 8px; color: var(--gold-text); font-weight: 600; font-size: 14px; }
.track-cards { display: grid; gap: 8px; }
.track-card {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; cursor: pointer;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius);
}
.track-card input { margin-top: 3px; }
.track-card:has(input:checked) { border-color: var(--panel); background: var(--teal-soft); box-shadow: inset 4px 0 0 var(--panel); }
.track-body { display: grid; gap: 1px; }
.track-name { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 16px; color: var(--panel); }
.track-aud { font-size: 14px; color: var(--ink); }
.track-night { font-size: 14px; color: var(--gold-text); font-weight: 600; }

.children { margin-top: 4px; }
/* Up to 4 children: one column on narrow phones, two (2 x 2) from 400px, so "Baby (under 1)" is never cut off */
.ages { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 12px; }
@media (min-width: 400px) { .ages { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.age { margin-top: 8px; }
.age label { font-weight: 400; font-size: 14px; }

/* errors */
.field-error { color: var(--error); font-weight: 600; font-size: 14px; margin: 6px 0 0; }
.field-error::before { content: "! "; }
.error-summary, .notice {
  margin: 18px 0 0; padding: 14px 16px; border: 2px solid var(--error); border-radius: 8px; background: var(--error-bg);
}
.error-summary:focus { outline: 3px solid var(--focus); }
.error-summary-title { margin: 0 0 6px; font-size: 17px; color: var(--error); }
.error-summary-list { margin: 0; padding-left: 20px; }
.error-summary-list a { color: var(--error); font-weight: 600; }
.notice { border-color: var(--gold); background: #fbf6e8; }

/* buttons */
.btn-next, .btn-primary {
  display: block; width: 100%; min-height: 52px; margin-top: 22px; padding: 12px 20px; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .18em; font-size: 17px;
  border-radius: 8px; border: 2px solid var(--panel);
}
.btn-next { background: transparent; color: var(--panel); }
.btn-next:hover { background: var(--teal-soft); }
.btn-primary { background: var(--panel); color: #fff; border-color: var(--panel); box-shadow: inset 0 -3px 0 var(--gold); }
.btn-primary:hover { background: var(--panel-2); }
.btn-primary[disabled] { opacity: .7; cursor: progress; }
@media (min-width: 560px) { .btn-next, .btn-primary { width: auto; min-width: 220px; } }
html.js .step.is-done > .btn-next { display: none !important; }

/* the honeypot: off screen, never seen */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* thanks and other pages */
.done { padding: 4px 20px 26px; }
.done p { margin: 12px 0 0; }
.summary { margin: 14px 0 0; border-top: 1px solid var(--line); }
.summary-row { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 480px) { .summary-row { grid-template-columns: 11em 1fr; gap: 12px; } }
.summary dt { font-weight: 600; color: var(--muted); font-size: 14px; }
.summary dd { margin: 0; }
.emailed { font-size: 15px; }

.site-foot { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 20px 8px 0; color: var(--gold-soft); font-size: 13px; text-align: center; flex-wrap: wrap; }
.foot-logo { width: 56px; height: auto; filter: invert(1) brightness(1.6); opacity: .85; }

@media (min-width: 560px) {
  .shell { padding-top: 32px; }
  .brand { padding: 36px 36px 26px; }
  .schedule { padding: 24px 36px; }
  .reg-form { padding: 8px 36px 32px; }
  .done { padding: 4px 36px 32px; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
