:root {
  --blue: #0B5A8A;
  --blue-dark: #084469;
  --navy: #13294B;
  --bg: #E9EEF3;
  --card: #fff;
  --line: #CBD6E2;
  --muted: #5B6B80;
  --burgundy: #8B1E2D;
  --ok: #1E7B4F;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: Heebo, Arial, sans-serif; color: var(--navy); line-height: 1.5;
  background: var(--bg) radial-gradient(ellipse at 10% 0%, #fff 0, transparent 55%) fixed;
}
button, input, select, textarea { font: inherit; color: inherit; }

/* כותרת */
.hero { background: linear-gradient(160deg, var(--blue) 0%, var(--blue-dark) 100%); color: #fff; padding: 16px 16px 28px; }
.hero-inner { max-width: 720px; margin: 0 auto; }
.brand { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; background: #fff; padding: 10px 14px 8px; border-radius: 0 0 10px 10px; margin-top: -16px; }
.brand img { width: 92px; height: auto; display: block; }
.brand span { color: var(--burgundy); font-weight: 900; font-size: 14px; }
.hero-grid { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.kicker { margin: 0; font-size: 26px; font-weight: 500; opacity: .9; }
h1 { margin: 0; font-size: clamp(52px, 15vw, 92px); font-weight: 900; line-height: .95; color: #EFEDEA; letter-spacing: -1px; }
h1 small { display: block; font-size: .42em; color: #C9D3DC; letter-spacing: 0; margin-top: 6px; }
.quote { font-size: 15px; margin: 14px 0 0; max-width: 300px; font-weight: 500; }
.quote span { opacity: .75; font-size: 13px; }
.portrait { width: clamp(120px, 34vw, 220px); height: auto; border-radius: 50%; border: 4px solid rgba(255,255,255,.85); box-shadow: 0 8px 30px rgba(0,0,0,.25); flex-shrink: 0; }
.event { margin-top: 20px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius); padding: 12px 16px; display: grid; gap: 2px; }
.event strong { font-size: 22px; font-weight: 900; }

main { max-width: 720px; margin: -10px auto 0; padding: 0 16px 24px; position: relative; }
.card { background: var(--card); border-radius: var(--radius); padding: 20px 18px; margin-top: 16px; box-shadow: 0 2px 12px rgba(19,41,75,.08); }
h2 { margin: 0 0 4px; font-size: 22px; font-weight: 900; display: flex; align-items: center; gap: 10px; }
h2 { flex-wrap: wrap; row-gap: 0; }
h2 em { white-space: nowrap; }
h2 em, label em { font-style: normal; font-weight: 400; font-size: 14px; color: var(--muted); }
.num { background: var(--blue); color: #fff; width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 16px; flex-shrink: 0; }
.lead { margin: 0 0 14px; color: var(--muted); }
.small { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

label { display: grid; gap: 4px; font-size: 14px; font-weight: 500; margin-bottom: 10px; }
input, select, textarea { width: 100%; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font-size: 16px; min-height: 46px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11,90,138,.15); }
.grid2 { display: grid; gap: 0 12px; grid-template-columns: 1fr 1fr; }
.grid3 { display: grid; gap: 0 10px; grid-template-columns: 1fr 82px 1fr; }
@media (max-width: 480px) { .grid2 { grid-template-columns: 1fr; } .grid3 { grid-template-columns: 1fr 76px; } .grid3 > label:last-child { grid-column: 1 / -1; } }

.entry { position: relative; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 12px 6px; margin-bottom: 12px; background: #F7F9FB; }
.entry.ded { border-inline-start: 5px solid var(--blue); }
.entry.ded.iluy { border-inline-start-color: #6B7280; }
.ded-kind { margin: 0 0 8px; font-weight: 700; padding-inline-end: 34px; }
.remove { position: absolute; top: 6px; left: 6px; width: 32px; height: 32px; border: 0; background: transparent; color: var(--muted); border-radius: 8px; cursor: pointer; font-size: 16px; }
.remove:hover { background: #E3E9EF; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 8px; }
.chips button { border: 1.5px solid var(--line); background: #fff; border-radius: 99px; padding: 5px 12px; font-size: 14px; cursor: pointer; min-height: 34px; }
.chips button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }

.add { border: 1.5px dashed var(--blue); color: var(--blue); background: transparent; border-radius: 10px; padding: 10px 16px; font-weight: 700; cursor: pointer; min-height: 46px; }
.add:hover { background: rgba(11,90,138,.06); }
.row-btns { display: flex; gap: 10px; flex-wrap: wrap; }

.amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.amounts button { border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 14px 6px; font-size: 18px; font-weight: 700; cursor: pointer; }
.amounts button[aria-checked="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.other { margin-top: 10px; max-width: 220px; }
.link { background: none; border: 0; color: var(--blue); text-decoration: underline; cursor: pointer; padding: 8px 0; font-size: 14px; display: block; }

.submit { display: block; width: 100%; text-align: center; text-decoration: none; background: var(--blue); color: #fff; border: 0; border-radius: 12px; padding: 15px; font-size: 19px; font-weight: 900; cursor: pointer; margin-top: 6px; }
.submit:hover { background: var(--blue-dark); }
.submit:disabled { opacity: .6; cursor: wait; }
.submit.wa { background: #1F9D55; margin: 16px 0 4px; }
.error { color: #B42318; font-weight: 500; min-height: 1.2em; margin: 4px 0; }

.done h2 { color: var(--ok); }
.sep { border: 0; border-top: 1px solid var(--line); margin: 18px 0 14px; }
.blessing { text-align: center; font-weight: 700; color: var(--blue); margin: 20px 0 0; }
.frame-wrap { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); margin-top: 14px; }
#sumit { width: 100%; height: 1250px; border: 0; display: block; background: #fff; }

footer { text-align: center; color: var(--muted); font-size: 14px; padding: 8px 16px 32px; }
