@font-face {
  font-family: 'Heebo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/heebo-hebrew-wght-normal.woff2) format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Heebo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/heebo-latin-wght-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;
}

:root {
  --green-950: #0d2b28;
  --green-900: #123935;
  --green-800: #174a46;
  --green-700: #1e5f5a;
  --green-600: #2a7a73;
  --green-100: #d3e7e3;
  --green-50: #ecf5f3;
  --gold-700: #7d5f0e;
  --gold-500: #c9aa4d;
  --gold-400: #e4c569;
  --gold-300: #f0d688;
  --ink: #16211f;
  --muted: #4d5b58;
  --line: #cfdcd9;
  --bg: #f4f8f7;
  --card: #ffffff;
  --err: #b42318;
  --err-bg: #fef3f2;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Heebo', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}
a { color: var(--green-700); }
a:hover { color: var(--green-900); }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 20px; background: #fff; border-bottom: 3px solid var(--gold-500);
}
.brand img { display: block; height: 40px; width: auto; }
.secure-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--green-800);
  background: var(--green-50); border: 1px solid var(--green-100);
  padding: 5px 10px; border-radius: 999px; white-space: nowrap;
}
.secure-badge svg { width: 15px; height: 15px; }

.wrap { max-width: 760px; margin: 0 auto; padding: 24px 16px 40px; }
.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(13, 43, 40, .08), 0 1px 3px rgba(13, 43, 40, .06);
  padding: 28px 28px 24px; min-width: 0;
}
.loading { color: var(--muted); text-align: center; margin: 40px 0; }

/* progress */
.progress { margin-bottom: 20px; }
.progress-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 14px; color: var(--muted); }
.progress-top strong { color: var(--green-900); font-size: 15px; }
.bar { height: 8px; background: var(--green-50); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.bar > span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-500), var(--green-600)); border-radius: 99px; transition: width .35s ease; }

h1 { font-size: 26px; line-height: 1.25; margin: 0 0 6px; color: var(--green-950); }
h2 { font-size: 21px; margin: 0 0 4px; color: var(--green-900); }
.lead { margin: 0 0 18px; color: var(--muted); }
.intro {
  background: var(--green-50); border: 1px solid var(--green-100); border-right: 4px solid var(--gold-500);
  border-radius: 10px; padding: 12px 16px; margin: 0 0 20px; font-weight: 500;
}
.req-note { font-size: 13px; color: var(--muted); margin: 0 0 16px; }
.req-note b, .label .star { color: var(--err); }

.group-title {
  margin: 26px 0 12px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 16px; font-weight: 700; color: var(--green-800);
}

.group-title.first { margin-top: 4px; padding-top: 0; border-top: 0; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.fields > * { min-width: 0; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.wide { grid-column: 1 / -1; }
.label { font-weight: 600; font-size: 15px; color: var(--green-950); }
.hint { font-size: 13px; color: var(--muted); margin-top: -2px; }

input[type=text], input[type=tel], input[type=email], input[type=number], input[type=date], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 12px; min-height: 48px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(42, 122, 115, .18); }
input[type=tel], input[type=email] { direction: ltr; text-align: right; }
input[type=date] { direction: rtl; }
.field.invalid input, .field.invalid select, .field.invalid textarea, .field.invalid .drop, .field.invalid .sig-box { border-color: var(--err); }
.error { color: var(--err); font-size: 13px; font-weight: 600; }

.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 76px; min-height: 46px;
  padding: 8px 18px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font-weight: 600; cursor: pointer;
}
.choice input:checked + span { background: var(--green-800); border-color: var(--green-800); color: #fff; }
.choice input:focus-visible + span { box-shadow: 0 0 0 3px rgba(201, 170, 77, .55); }

.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-weight: 500; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--green-700); cursor: pointer; }

/* file upload */
.drop {
  position: relative; display: flex; align-items: center; gap: 12px;
  border: 1.5px dashed var(--green-600); border-radius: 12px; padding: 12px 14px; background: var(--green-50); min-height: 72px;
}
.drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop .ico { flex: none; width: 46px; height: 46px; border-radius: 10px; background: #fff; display: grid; place-items: center; color: var(--green-700); overflow: hidden; border: 1px solid var(--green-100); }
.drop .ico svg { width: 24px; height: 24px; }
.drop .ico img { width: 100%; height: 100%; object-fit: cover; }
.drop .txt { display: flex; flex-direction: column; min-width: 0; }
.drop .txt b { color: var(--green-900); }
.drop .txt small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop.has-file { border-style: solid; background: #fff; }
.drop.busy { opacity: .6; }

/* signature */
.sig-box { border: 1.5px solid var(--line); border-radius: 12px; background: #fff; position: relative; touch-action: none; }
.sig-box canvas { display: block; width: 100%; height: 190px; cursor: crosshair; border-radius: 12px; }
.sig-box .sig-ph { position: absolute; inset: 0; display: grid; place-items: center; color: #9aa9a6; pointer-events: none; font-size: 15px; }
.sig-tools { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; font-size: 13px; color: var(--muted); }

.notice {
  font-size: 14px; background: #fbf8ee; border: 1px solid #eadfb9; border-radius: 12px; padding: 14px 16px; color: #3b3418;
}
.notice h3 { margin: 0 0 6px; font-size: 15px; color: var(--gold-700); }
.notice p { margin: 0 0 6px; }
.notice ul { margin: 0; padding-inline-start: 18px; }

/* buttons */
.actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; }
.btn {
  font: inherit; font-weight: 700; font-size: 17px; border: 0; border-radius: 12px; padding: 13px 28px; min-height: 50px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-primary { background: var(--green-800); color: #fff; }
.btn-primary:hover { background: var(--green-900); }
.btn-gold { background: linear-gradient(135deg, var(--gold-400), var(--gold-500)); color: var(--green-950); }
.btn-gold:hover { filter: brightness(.96); }
.btn-ghost { background: transparent; color: var(--green-800); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--green-600); }
.btn-link { background: none; border: 0; color: var(--green-700); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; padding: 4px; }
.btn:disabled { opacity: .55; cursor: wait; }
.btn:focus-visible, .btn-link:focus-visible, a:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; }

.err-box { background: var(--err-bg); border: 1px solid #fecdca; color: var(--err); border-radius: 10px; padding: 12px 14px; font-weight: 600; margin: 16px 0 0; }
.sending { text-align: center; padding: 30px 0; }
.sending .bar { max-width: 360px; margin: 16px auto 0; }

.done { text-align: center; padding: 30px 0 10px; }
.done .tick { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; background: var(--green-50); color: var(--green-700); border: 2px solid var(--gold-500); }
.done .tick svg { width: 38px; height: 38px; }

.foot { text-align: center; font-size: 13px; color: var(--muted); padding: 0 16px 28px; }
.foot p { margin: 4px 0; }

@media (max-width: 640px) {
  .top { padding: 10px 16px; }
  .brand img { height: 32px; }
  .secure-badge { font-size: 12px; padding: 4px 8px; }
  .wrap { padding: 14px 10px 28px; }
  .card { padding: 20px 16px; }
  .fields { grid-template-columns: 1fr; }
  h1 { font-size: 22px; }
  .actions { flex-direction: column-reverse; align-items: stretch; }
  .btn { width: 100%; }
}
@media (max-width: 380px) {
  .secure-badge { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

.ok { color: #1e7a4a; font-size: 13px; font-weight: 600; }

.resume { text-align: center; padding: 26px 0 8px; }
.resume .actions { justify-content: center; }
.resume .hint { margin-top: 18px; }
