@font-face {
  font-family: 'Assistant'; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url(/fonts/assistant-hebrew.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: 'Assistant'; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url(/fonts/assistant-latin.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 {
  --cream: #FDF7F2;
  --peach-soft: #FAEDE4;
  --peach: #F6DCCB;
  --apricot: #EDB48C;
  --sand: #DDBCA6;
  --terra: #A56542;
  --terra-deep: #8A5133;
  --text: #3A302B;
  --muted: #6E625B;
  --card: #FFFFFF;
  --err: #A4523A;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  background: var(--cream);
  background-image: radial-gradient(ellipse at top right, var(--peach) 0%, transparent 55%),
                    radial-gradient(ellipse at bottom left, var(--peach-soft) 0%, transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Assistant', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  font-size: 18px; line-height: 1.6;
  text-align: right;
}

.wrap { max-width: 600px; margin: 0 auto; padding: 20px 16px 40px; }
.top { margin: 0 0 16px; }
.banner { display: block; width: 100%; height: auto; aspect-ratio: 4 / 1; border-radius: 18px; box-shadow: 0 6px 20px rgba(165,101,66,.12); }
.portrait { display: block; width: 128px; height: 128px; margin: -4px auto 16px; border-radius: 50%; box-shadow: 0 0 0 5px var(--peach-soft), 0 8px 20px rgba(165,101,66,.18); }

.progress { margin: 0 4px 14px; }
.progress-track { height: 8px; background: rgba(221,188,166,.35); border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; width: 4%; background: linear-gradient(90deg, var(--apricot), var(--terra)); border-radius: 99px; transition: width .6s cubic-bezier(.4,.1,.2,1); margin-inline-start: 0; }
.progress-row { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.progress-row b { color: var(--terra-deep); font-weight: 700; white-space: nowrap; }
.progress-label { text-align: left; }
.screen-title { font-size: 23px; font-weight: 700; line-height: 1.35; margin: 0 0 12px; }
.soft-box.list { margin: 12px 0 18px; }
.soft-box.list ul { margin: 0; padding-inline-start: 20px; }
.soft-box.list li { margin-bottom: 4px; }
.q-field { margin-bottom: 20px; }
.q-field[hidden] { display: none; }
.q-field .lbl { margin-bottom: 10px; }
.q-label.sm { font-size: 19px; }
.f-label { display: block; font-size: 16px; font-weight: 600; margin: 0 0 6px; }
.q-field:has(.f-label) { margin-bottom: 14px; }
.price { background: var(--peach-soft); border-radius: 14px; padding: 14px 16px; margin: 0 0 14px; font-size: 16px; }
.price p { margin: 0 0 4px; } .price p:last-child { margin: 0; }
textarea.field.short { min-height: 84px; }
.options.inline { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.q-field .err:empty { min-height: 0; margin: 0; }

.card {
  background: var(--card); border-radius: 22px; padding: 28px 22px 22px;
  box-shadow: 0 1px 2px rgba(80,70,60,.05), 0 10px 30px rgba(120,100,80,.08);
}
.card.in { animation: rise .38s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .card.in { animation: none; } .progress-fill { transition: none; } }

h1 { margin: 0; }
.intro-title { font-size: 26px; font-weight: 700; margin-bottom: 14px; line-height: 1.3; }
.intro-p { margin: 0 0 10px; }
.closing { font-weight: 600; margin-top: 14px; }
.soft-box { background: var(--peach-soft); border-radius: 14px; padding: 14px 16px; margin: 18px 0 12px; font-size: 16px; }
.soft-box p { margin: 0 0 6px; } .soft-box p:last-child { margin: 0; }
.privacy { font-size: 15px; color: var(--muted); border-inline-start: 3px solid var(--apricot); padding-inline-start: 12px; margin: 14px 0 4px; }
.tiny { font-size: 14px; color: var(--muted); margin: 14px 0 0; text-align: center; }
.tiny a { color: var(--terra); }

.section-intro { font-size: 15px; color: var(--terra-deep); background: var(--peach-soft); border-radius: 12px; padding: 10px 14px; margin: 0 0 18px; }
.q { margin-bottom: 16px; }
.q-label { font-size: 21px; font-weight: 700; line-height: 1.4; margin: 0; }
.q-label.q-sub { font-weight: 600; font-size: 19px; margin-top: 2px; }
.q-hint { font-size: 15px; color: var(--muted); margin: 6px 0 0; }
.q-hint.q-sub { margin-top: 2px; }
.optional { font-size: 13px; color: var(--terra); margin: 8px 0 0; }

.field {
  width: 100%; font: inherit; font-size: 18px; color: var(--text);
  background: var(--cream); border: 1.5px solid #EBDCD1; border-radius: 14px;
  padding: 14px 16px; outline: none; transition: border-color .2s, box-shadow .2s;
}
textarea.field { resize: vertical; min-height: 140px; line-height: 1.55; }
.field:focus { border-color: var(--apricot); box-shadow: 0 0 0 4px rgba(237,180,140,.28); background: #fff; }
.field[dir="ltr"] { text-align: left; }
.field.other { margin-top: 10px; }

.options { display: grid; gap: 10px; }
.opt {
  font: inherit; font-size: 17px; text-align: right; color: var(--text);
  background: var(--cream); border: 1.5px solid #EBDCD1; border-radius: 14px;
  padding: 13px 16px; cursor: pointer; display: flex; align-items: center; gap: 12px;
  transition: background .15s, border-color .15s;
  -webkit-tap-highlight-color: transparent;
}
.opt::before {
  content: ''; flex: 0 0 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--sand); background: #fff; transition: all .15s;
}
.opt.check::before { border-radius: 6px; }
.opt:hover { border-color: var(--apricot); }
.opt.on { background: var(--peach-soft); border-color: var(--apricot); }
.opt.on::before { background: var(--terra); border-color: var(--terra); box-shadow: inset 0 0 0 3px #fff; }
.opt.check.on::before { box-shadow: inset 0 0 0 4px var(--terra); background: #fff; }
.opt:focus-visible, .btn:focus-visible, .resource:focus-visible { outline: 3px solid rgba(165,101,66,.45); outline-offset: 2px; }

.err { color: var(--err); font-size: 15px; min-height: 1.4em; margin: 8px 2px 0; }
.sending-note { font-size: 15px; color: var(--muted); margin: 12px 2px 0; display: flex; align-items: center; gap: 10px; }
.sending-note[hidden] { display: none; }
.sending-note::before { content: ''; flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--apricot); border-top-color: transparent; animation: tq-spin .9s linear infinite; }
@keyframes tq-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sending-note::before { animation: none; } }

.nav { display: flex; gap: 10px; align-items: center; margin-top: 18px; }
.btn {
  font: inherit; font-weight: 700; font-size: 18px; border: 0; border-radius: 99px;
  padding: 13px 30px; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.btn.primary { background: var(--terra); color: #fff; flex: 1; box-shadow: 0 4px 14px rgba(165,101,66,.28); }
.btn.primary:hover { background: var(--terra-deep); }
.btn.primary:disabled, .btn.ghost:disabled { opacity: .6; cursor: default; }
.btn.ghost { background: transparent; color: var(--muted); font-weight: 600; padding: 13px 16px; }

.resources { display: grid; gap: 10px; margin: 16px 0 6px; }
.resource { display: block; text-decoration: none; color: var(--text); background: var(--peach-soft); border: 1.5px solid var(--peach); border-radius: 14px; padding: 12px 16px; }
.resource-label { display: block; font-weight: 700; }
.resource-sub { display: block; font-size: 14px; color: var(--muted); }

.lock { display: flex; gap: 6px; align-items: center; justify-content: center; font-size: 13px; color: var(--muted); margin-top: 16px; }
.hp { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; }
html, body { overflow-x: hidden; }

.thanks { text-align: center; padding: 18px 4px 8px; }
.thanks .heart { font-size: 40px; line-height: 1; }
.thanks h1 { font-size: 27px; margin: 12px 0 10px; }
.thanks p { margin: 0 0 10px; }
.thanks .sign { margin-top: 18px; font-weight: 600; }

@media (max-width: 380px) {
  body { font-size: 17px; }
  .card { padding: 22px 16px 18px; border-radius: 18px; }
  .q-label { font-size: 19px; }
}
