/* Colors from telhai-brand tokens.json (Brandbook 2025) — do not invent new ones.
   Composition: 3 primaries + 3 secondaries (purple, blue, pink). Gray #606060 is typography only.
   Shadows only on colored surfaces, using shadows.digital; white surfaces stay flat. */
:root {
  --green: #7ae994;
  --dark-green: #254b39;
  --white: #ffffff;
  --gray-text: #606060;
  --purple: #98a1ff;
  --blue: #5877fa;
  --pink: #ff9db7;
  --sh-green: #51bd72;
  --sh-dark: #003422;
  --sh-purple: #778bd1;
  --ink: #254b39;
  --line: #d5e0da;
  --surface-soft: #f3f8f5;
  --error: #b00020;
  --font: 'Heebo', 'Assistant', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--gray-text); background: var(--surface-soft); line-height: 1.6; font-size: 1.0625rem; }
h1, h2, h3, legend { color: var(--ink); font-weight: 800; line-height: 1.2; }
a { color: var(--dark-green); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.skip-link { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--white); padding: 8px 14px; z-index: 10; }
.skip-link:focus { top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Hero: perspective shapes + one flat white surface (logo top-right) ---------- */
.hero { position: relative; overflow: hidden; background: var(--dark-green); padding: 32px 16px 44px; display: grid; place-items: center; isolation: isolate; }
/* Faint topographic contour lines: a nod to geography, tone-on-tone so the shapes stay the focus. */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2; opacity: .16;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='400' viewBox='0 0 600 400' fill='none' stroke='%237ae994' stroke-width='1.4'%3E%3Cpath d='M-20 320c80-40 140-10 210-50s90-120 180-130 150 40 250 10'/%3E%3Cpath d='M-20 350c90-30 150 0 230-40s110-130 190-135 140 50 220 25'/%3E%3Cpath d='M-20 380c100-20 170 10 250-30s120-140 200-140 130 60 190 40'/%3E%3Cpath d='M-20 60c60 30 120 20 170-10s110-40 170-10 120 60 300 20'/%3E%3Cpath d='M-20 90c70 30 130 25 180-5s100-30 160 0 120 70 300 30'/%3E%3Cellipse cx='300' cy='205' rx='60' ry='28'/%3E%3Cellipse cx='300' cy='205' rx='105' ry='52'/%3E%3C/svg%3E") repeat center / 600px 400px;
}
.shape { position: absolute; z-index: -1; }
.shape-green  { background: var(--green);  width: 44%; height: 72%; inset-block-start: -10%; inset-inline-end: -8%; transform: skewY(-9deg); box-shadow: 16px 20px 28px rgba(0, 52, 34, .45); }
.shape-purple { background: var(--purple); width: 26%; height: 46%; inset-block-end: -12%; inset-inline-start: 6%; transform: skewX(-14deg); box-shadow: 12px 14px 24px rgba(0, 52, 34, .45); }
.shape-blue   { background: var(--blue);   width: 12%; height: 26%; inset-block-end: 10%; inset-inline-start: 30%; transform: skewY(10deg); box-shadow: -10px 12px 18px rgba(119, 139, 209, .55); }
.hero-surface { position: relative; background: var(--white); width: min(860px, 100%); padding: 24px 36px 28px; }
.logo { display: block; width: 150px; max-width: 64%; height: auto; min-width: 35px; margin: 0 0 14px 0; }
.eyebrow { margin: 0 0 4px; font-weight: 700; font-size: .95rem; letter-spacing: .02em; color: var(--gray-text); }
/* Two deliberate lines: "הכנס השנתי של" / "האגודה הגאוגרפית" (kept whole, never split mid-name). */
.hero h1 { margin: 0 0 16px; font-size: clamp(1.9rem, 5.2vw, 3.1rem); line-height: 1.12; }
.hero h1 .h1-lead { display: block; font-size: .62em; font-weight: 700; color: var(--ink); margin-bottom: .12em; }
.hero h1 .hl { white-space: nowrap; box-shadow: inset 0 -.3em 0 var(--green); }
.facts { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1.5px solid var(--dark-green); color: var(--ink); font-weight: 600; font-size: .98rem; }
.facts svg { width: 18px; height: 18px; flex: none; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 0; padding: 14px 30px; font: 700 1.1rem var(--font); cursor: pointer; text-decoration: none; min-height: 50px; transition: background-color .15s, color .15s, transform .15s; }
.btn-primary { background: var(--green); color: var(--dark-green); box-shadow: 6px 6px 0 var(--sh-green); }
.btn-primary:hover { background: var(--dark-green); color: var(--white); box-shadow: 6px 6px 0 var(--sh-dark); }
.btn-primary:active { transform: translate(3px, 3px); box-shadow: 3px 3px 0 var(--sh-green); }
.btn-primary[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- Sections ---------- */
main { max-width: 900px; margin: 0 auto; padding: 0 16px 56px; }
section { margin-top: 28px; }
h2 { font-size: 1.5rem; margin: 0 0 12px; display: flex; align-items: center; gap: 12px; }
h2::before { content: ""; width: 14px; height: 28px; background: var(--green); transform: skewY(-12deg); flex: none; }

/* Fees: compact strip — amount and audience side by side */
.prices { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .prices { grid-template-columns: 1fr 1fr; } }
.price { display: flex; align-items: center; gap: 14px; padding: 12px 18px; color: var(--dark-green); }
.price.p-senior { background: var(--green); box-shadow: 6px 6px 0 var(--sh-green); }
.price.p-student { background: var(--purple); box-shadow: 6px 6px 0 var(--sh-purple); }
.price strong { flex: none; font-size: 1.9rem; line-height: 1; font-weight: 800; white-space: nowrap; }
.price span { font-weight: 600; font-size: .95rem; line-height: 1.35; }
.price-note { margin: 16px 0 0; font-size: .95rem; }

/* ---------- Form ---------- */
.required-note { margin: 0 0 16px; }
.card { background: var(--white); border: 0; border-top: 6px solid var(--dark-green); padding: 20px 20px 24px; margin: 0 0 24px; min-width: 0; }
legend { font-size: 1.25rem; padding: 0 8px; }
.card-intro { margin: 0 0 14px; }
.grid { display: grid; gap: 16px 24px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; margin-bottom: 20px; }
.field:last-child { margin-bottom: 0; }
.grid .field { margin-bottom: 0; align-content: start; }
label, .label { font-weight: 600; color: var(--ink); }
.req { color: var(--error); }
small { color: var(--gray-text); }
input[type=text], input[type=email], input[type=tel], textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 1.5px solid var(--gray-text); border-radius: 0; font: inherit; color: var(--ink); background: var(--white);
}
textarea { min-height: 110px; resize: vertical; }
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
input[aria-invalid=true], textarea[aria-invalid=true] { border-color: var(--error); box-shadow: 0 0 0 2px rgba(176, 0, 32, .2); }
.err { color: var(--error); font-weight: 600; font-size: .92rem; }
.err::before { content: "\26A0\FE0E "; }

/* Choice cards: big tap targets for radio groups */
.choices { display: grid; gap: 10px; grid-template-columns: 1fr; }
.choices.two { grid-template-columns: 1fr 1fr; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--line); background: var(--white); cursor: pointer; font-weight: 400; color: var(--gray-text); transition: border-color .15s, background-color .15s; }
.choice:hover { border-color: var(--dark-green); }
.choice input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--dark-green); }
.choice b { display: block; color: var(--ink); font-weight: 700; }
.choice .tag { display: inline-block; margin-top: 6px; padding: 1px 8px; background: var(--pink); color: var(--dark-green); font-size: .85rem; font-weight: 700; }
.choice .amount { margin-inline-start: auto; font-weight: 800; font-size: 1.25rem; color: var(--ink); white-space: nowrap; }
.choice:has(input:checked) { border-color: var(--dark-green); background: var(--surface-soft); box-shadow: inset -5px 0 0 var(--green); }
.choice:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.choices[aria-invalid=true] .choice { border-color: var(--error); }

/* Summary */
.summary { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; justify-content: space-between; margin-top: 20px; padding: 16px 18px; background: var(--dark-green); color: var(--white); box-shadow: 8px 8px 0 var(--sh-dark); }
.summary-label { font-weight: 600; }
.summary-total { font-size: 1.9rem; font-weight: 800; color: var(--green); }
.summary-sub { flex-basis: 100%; margin: 0; font-size: .95rem; }
.pay-note { margin: 22px 0 0; display: flex; gap: 8px; align-items: center; }
.pay-note svg { width: 20px; height: 20px; flex: none; }

.form-error { background: #fdecef; border: 1.5px solid var(--error); color: var(--error); padding: 12px 16px; margin-bottom: 16px; font-weight: 600; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark-green); color: var(--white); text-align: center; padding: 28px 16px; }
.site-footer p { margin: 4px 0; }
.site-footer a { color: var(--green); }

/* ---------- Status pages ---------- */
.status-card { max-width: 580px; margin: 64px auto; background: var(--white); border-top: 8px solid var(--green); padding: 32px; text-align: center; }
.status-card.bad { border-top-color: var(--pink); }
.status-card .logo { margin: 0 auto 20px; }
.status-card .btn { margin-top: 8px; }

@media (max-width: 480px) {
  .hero { padding: 24px 16px 32px; }
  .hero-surface { padding: 22px 20px 26px; }
  .hero h1 .hl { white-space: normal; }
  .choices.two { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
