/* Palette read off the live hadar-systems.co.il DOM, not guessed:
   #071824 ground, #B9FF43 lime accent, #74EAD2 mint, 3px radius, Assistant.

   No @font-face and no Google Fonts on purpose: the CSP here is hermetic
   (font-src 'self'), a request to Google would contradict the privacy promise
   this page makes, and a filtered client might block it anyway. Assistant is
   used when the device has it; otherwise the system Hebrew stack, which is
   good on every phone that matters. */

:root {
  --ground:  #071824;
  --panel:   #0d2433;
  --panel-2: #12303f;
  --line:    #1d3d4e;
  --ink:     #ffffff;
  --muted:   #91a3aa;
  --dim:     #61717a;
  --lime:    #b9ff43;
  --mint:    #74ead2;
  --danger:  #ff8a7a;
  --radius:  3px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: Assistant, "Segoe UI", Arial, "Noto Sans Hebrew", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}

.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }

/* ---------- banner: the WhatsApp in-app browser warning ---------- */
.banner {
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
  padding: 10px 16px;
  font-size: 14px;
  color: var(--muted);
}
.banner b { color: var(--ink); font-weight: 600; }
.banner .row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- header ---------- */
header { padding: 22px 0 12px; }
.brand {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.brand .name { font-weight: 700; letter-spacing: .02em; }
.brand .name span { color: var(--lime); }
h1 { font-size: 26px; line-height: 1.25; margin: 18px 0 6px; font-weight: 700; }
.sub { color: var(--muted); margin: 0 0 4px; }

/* ---------- trust box ---------- */
.trust {
  background: var(--panel);
  border: 1px solid var(--line);
  border-right: 3px solid var(--mint);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 18px 0;
  font-size: 15px;
}
.trust h2 { font-size: 15px; margin: 0 0 6px; font-weight: 700; }
.trust p { margin: 6px 0; color: var(--muted); }
.trust b { color: var(--ink); }
details summary {
  cursor: pointer; color: var(--mint); margin-top: 8px;
  font-size: 14px; list-style: none;
}
details summary::-webkit-details-marker { display: none; }
details summary::before { content: "▸ "; }
details[open] summary::before { content: "▾ "; }
details ol { color: var(--muted); font-size: 14px; padding-inline-start: 20px; }

/* ---------- progress ---------- */
.prog { position: sticky; top: 0; background: var(--ground); padding: 10px 0 8px; z-index: 5; }
.prog .bar { height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.prog .bar i { display: block; height: 100%; background: var(--lime); width: 0; transition: width .25s; }
.prog .txt { font-size: 13px; color: var(--dim); margin-bottom: 6px; }

/* ---------- questions ---------- */
.q {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 12px 0;
}
.q.done { border-right: 3px solid var(--lime); }
.q .n { color: var(--dim); font-size: 13px; }
.q label { display: block; font-weight: 600; margin: 2px 0 4px; }
.q .why { color: var(--dim); font-size: 13px; margin-bottom: 8px; }

input, textarea, select {
  width: 100%;
  font: inherit;
  font-size: 16px;              /* below 16px iOS zooms in and never back out */
  color: var(--ink);
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 12px;
  min-height: 44px;             /* touch target */
}
textarea { min-height: 108px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--mint); outline-offset: -1px; }
select { appearance: none; background-image: none; }

/* ---------- consent ---------- */
.consent {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 18px 0;
  display: flex; gap: 12px; align-items: flex-start;
}
.consent input[type=checkbox] {
  width: 22px; height: 22px; min-height: 22px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--lime);
}
.consent label { font-size: 15px; color: var(--muted); }

/* ---------- buttons ---------- */
button {
  font: inherit; font-weight: 600; cursor: pointer;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--panel-2); color: var(--ink);
  padding: 11px 16px; min-height: 44px;
}
button.primary { background: var(--lime); color: #06131c; border-color: var(--lime); }
button.primary[disabled] { background: var(--line); color: var(--dim); border-color: var(--line); cursor: not-allowed; }
button.link { background: none; border: none; color: var(--mint); padding: 6px 0; text-decoration: underline; }
button.small { font-size: 13px; padding: 7px 11px; min-height: 36px; }

.submitbar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 10;
  background: rgba(7, 24, 36, .96);
  border-top: 1px solid var(--line);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
}
.submitbar .inner { max-width: 720px; margin: 0 auto; display: flex; gap: 12px; align-items: center; }
.submitbar button.primary { flex: 1; }

/* ---------- states ---------- */
.state { text-align: center; padding: 56px 0; }
.state .big { font-size: 40px; }
.state h1 { font-size: 22px; }
.state p { color: var(--muted); }
.err { color: var(--danger); }
.saved { color: var(--dim); font-size: 13px; }
a.back, button.back {
  display: inline-block; margin-top: 22px; color: var(--mint);
  background: none; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 16px; text-decoration: none;
}
footer { color: var(--dim); font-size: 13px; padding: 26px 0 10px; text-align: center; }
