:root {
  --navy: #0b2a4a;
  --navy-2: #0e3a60;
  --sea: #0e7490;
  --sea-2: #14b8c4;
  --gold: #f5b82e;
  --gold-2: #ffd56b;
  --ink: #1d2a3a;
  --muted: #5b6b7d;
  --line: #dde5ee;
  --shadow: 0 8px 24px rgba(11, 42, 74, .12);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Rubik", "Assistant", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: #f4f8fb;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
}
img { display: block; max-width: 100%; }

/* =========================================================
   Landing page - always exactly one screen, no scrolling
   ========================================================= */
.landing {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--navy);
}
.landing .photo {
  flex: 1 1 auto; min-height: 24vh; position: relative;
  background: url("img/hotel-main.jpg") center 40% / cover no-repeat;
}
.landing .photo::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 40%;
  background: linear-gradient(0deg, rgba(11, 42, 74, .55), transparent);
}
/* soft light band at the top of the photo, so the two logos sit on it without a white box */
.landing .photo::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 30%;
  background: linear-gradient(180deg, rgba(255,255,255,.7), rgba(255,255,255,0));
}
.logos {
  position: absolute; z-index: 1;
  top: calc(env(safe-area-inset-top) + 10px); inset-inline: 12px;
  display: flex; justify-content: space-between; align-items: center; /* RTL: committee right, Histadrut left */
}
.logos img {
  width: auto;
  filter: drop-shadow(0 0 1px rgba(255,255,255,.9)) drop-shadow(0 1px 6px rgba(255,255,255,.8));
}
.logos .logo-vaad { height: clamp(40px, 7vh, 56px); }
.logos .logo-hist { height: clamp(26px, 4.6vh, 38px); }

.intro {
  flex: none; position: relative; z-index: 1;
  margin-top: -26px; border-radius: 26px 26px 0 0;
  background: linear-gradient(180deg, var(--navy-2), var(--navy));
  color: #fff; text-align: center;
  padding: clamp(14px, 2.6vh, 26px) 20px calc(env(safe-area-inset-bottom) + clamp(10px, 2vh, 20px));
  display: flex; flex-direction: column; align-items: center; gap: clamp(6px, 1.3vh, 12px);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px; text-align: center;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  padding: 4px 12px; border-radius: 999px; font-size: 13px;
}
.intro h1 { margin: 0; font-size: clamp(28px, 4.8vh, 46px); line-height: 1.08; font-weight: 800; }
.intro h1 .gold { display: block; color: var(--gold-2); }
.intro .hotel { margin: 0; font-size: clamp(16px, 2.4vh, 22px); font-weight: 500; opacity: .95; }

.date-card {
  display: inline-flex; align-items: stretch;
  background: #fff; color: var(--navy); border-radius: 16px;
  box-shadow: 0 10px 26px rgba(0,0,0,.25); overflow: hidden;
}
.date-card .d { padding: clamp(7px, 1.3vh, 14px) 20px; text-align: center; }
.date-card .big { font-size: clamp(24px, 4vh, 34px); font-weight: 800; line-height: 1; }
.date-card .small { font-size: 13px; color: var(--muted); margin-top: 4px; }
.date-card .arrow { display: grid; place-items: center; padding: 0 2px; color: var(--sea); font-size: 20px; }
.nights { font-size: 14px; opacity: .85; }

.cta {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; max-width: 360px; margin-top: clamp(2px, .8vh, 8px);
  padding: clamp(12px, 2vh, 16px) 24px; border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: var(--navy); font-weight: 800; font-size: 19px; text-decoration: none;
  box-shadow: 0 10px 24px rgba(245, 184, 46, .4);
  transition: transform .15s ease;
}
.cta:hover { transform: translateY(-2px); }
.cta:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.cta .chev { font-size: 21px; }
.sig { font-size: 12px; opacity: .6; }

/* wide screens: photo fills the screen, the text sits in a card on the right */
@media (min-width: 900px) {
  .landing { position: relative; justify-content: center; align-items: flex-start; padding: 40px 7vw; }
  .landing .photo { position: absolute; inset: 0; }
  .landing .photo::after {
    inset: 0; height: auto;
    background: linear-gradient(270deg, rgba(8, 33, 60, .55), transparent 55%);
  }
  .logos { top: 22px; inset-inline: 7vw; }
  .logos .logo-vaad { height: 76px; }
  .logos .logo-hist { height: 52px; }
  .intro {
    margin: 0; width: 460px; border-radius: 28px;
    background: rgba(9, 36, 64, .86); backdrop-filter: blur(6px);
    padding: 34px 34px 24px; gap: 12px; box-shadow: 0 24px 60px rgba(0,0,0,.35);
  }
  .intro h1 { font-size: 46px; }
}

/* =========================================================
   Registration page - compact, phone first
   ========================================================= */
/* light header, so the two logos sit on it transparently (same look as the top of the landing page) */
.reg-head {
  padding: calc(env(safe-area-inset-top) + 8px) 14px 24px;
  color: var(--navy);
  background: linear-gradient(180deg, #ffffff 0%, #e4f3f8 65%, #f4f8fb 100%);
}
.reg-logos, .reg-title { max-width: 560px; margin: 0 auto; }
.reg-logos {
  display: flex; justify-content: space-between; align-items: center; /* RTL: committee right, Histadrut left */
  margin-bottom: 6px;
}
.reg-logos img { width: auto; }
.reg-logos .logo-vaad { height: 38px; }
.reg-logos .logo-hist { height: 26px; }
.reg-title { display: flex; align-items: center; gap: 10px; }
.reg-head .back {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; text-decoration: none; color: var(--navy);
  background: rgba(11, 42, 74, .08); font-size: 19px;
}
.reg-head .ttl { flex: 1; min-width: 0; }
.reg-head h1 { margin: 0; font-size: clamp(16px, 4.7vw, 19px); line-height: 1.2; white-space: nowrap; }
.reg-head p { margin: 2px 0 0; font-size: clamp(11px, 3.3vw, 13px); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.form-wrap { max-width: 560px; margin: -18px auto 0; padding: 0 12px 14px; position: relative; }
.panel {
  background: #fff; border-radius: 16px; box-shadow: var(--shadow);
  padding: 14px 14px 12px; margin-bottom: 10px;
}
.panel h2 { margin: 0 0 10px; font-size: 16px; color: var(--navy); }

.field { margin-bottom: 10px; }
.field:last-child { margin-bottom: 0; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.field label small { font-weight: 400; color: var(--muted); }
.field label .req { color: #d14343; }
.field input {
  width: 100%; font: inherit; font-size: 16px; padding: 10px 12px;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fbfdff;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus { outline: none; border-color: var(--sea-2); box-shadow: 0 0 0 3px rgba(20, 184, 196, .18); }
.field.invalid input { border-color: #d14343; }
.field .err { display: none; color: #d14343; font-size: 13px; margin-top: 3px; }
.field.invalid .err { display: block; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.two .field { margin-bottom: 0; }

.options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opt {
  position: relative; display: flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 10px;
  cursor: pointer; background: #fbfdff; transition: border-color .15s, background .15s;
  -webkit-tap-highlight-color: transparent;
}
.opt.wide { grid-column: 1 / -1; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .dot {
  flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #9fb3c6;
  display: grid; place-items: center;
}
.opt .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sea); transform: scale(0); transition: transform .15s; }
.opt .txt { flex: 1; min-width: 0; }
.opt .txt b { display: block; font-size: 15px; line-height: 1.2; white-space: nowrap; }
.opt .txt small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; }
.opt .price { font-weight: 800; color: var(--navy); font-size: 15px; white-space: nowrap; }
.opt .price small { font-weight: 500; color: var(--muted); font-size: 12px; }
.opt:has(input:checked) { border-color: var(--sea); background: #eefafb; }
.opt:has(input:checked) .dot { border-color: var(--sea); }
.opt:has(input:checked) .dot::after { transform: scale(1); }
.opt:has(input:focus-visible) { outline: 3px solid var(--sea-2); outline-offset: 2px; }
.opt.check .dot, .opt.check .dot::after { border-radius: 4px; }
.opt.infant { margin-top: 8px; }
.options.invalid .opt { border-color: #e7a3a3; }
.options-err { display: none; color: #d14343; font-size: 13px; margin-top: 6px; }
.options.invalid + .options-err { display: block; }

.pay { margin-top: 10px; }
.pay[hidden] { display: none; }
.pay-lbl { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.pay-lbl .req { color: #d14343; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.seg label { position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: block; text-align: center; padding: 10px 4px; border-radius: 10px;
  border: 1.5px solid var(--line); background: #fbfdff; font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: border-color .15s, background .15s, color .15s;
}
.seg input:checked + span { border-color: var(--sea); background: var(--sea); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--sea-2); outline-offset: 2px; }
.seg.invalid span { border-color: #e7a3a3; }
.seg-err { display: none; color: #d14343; font-size: 13px; margin-top: 4px; }
.seg.invalid + .seg-err { display: block; }

.extra { margin-top: 8px; padding: 10px; border-radius: 12px; background: #f3f8fb; border: 1px dashed #c9dbe7; }
.extra[hidden] { display: none; }

.sumbar {
  position: sticky; bottom: calc(env(safe-area-inset-bottom) + 8px); z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--navy); color: #fff; border-radius: 16px; padding: 10px 10px 10px 14px;
  box-shadow: 0 12px 28px rgba(11, 42, 74, .35);
}
.sumbar .lbl { font-size: 13px; opacity: .8; }
.sumbar .amount { font-size: 26px; font-weight: 800; line-height: 1.1; }
.sumbar .per { font-size: 13px; color: var(--gold-2); }
.sumbar .per:empty { display: none; }
.sumbar .amount .cur { font-size: 18px; color: var(--gold-2); margin-inline-start: 4px; }
.submit {
  border: 0; cursor: pointer; font: inherit; font-weight: 800; font-size: 17px;
  padding: 12px 22px; border-radius: 999px; color: var(--navy);
  background: linear-gradient(180deg, var(--gold-2), var(--gold)); white-space: nowrap;
}
.submit:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.send-err { color: #d14343; font-size: 14px; font-weight: 600; text-align: center; margin: 8px 0 0; }
.submit:disabled { opacity: .7; cursor: wait; }
.note { color: var(--muted); font-size: 12px; text-align: center; margin: 8px 0 0; }

.done { text-align: center; padding: 30px 20px; }
.done .ok {
  width: 70px; height: 70px; margin: 0 auto 12px; border-radius: 50%;
  background: #e3f7ec; color: #1f9d55; display: grid; place-items: center;
}
.done h2 { font-size: 22px; }
.done .link { color: var(--sea); }

/* small and short phones: tighten everything so the form fits the screen */
@media (max-width: 380px) {
  .options { gap: 6px; }
  .opt { padding: 9px 8px; gap: 6px; }
  .opt .txt b, .opt .price { font-size: 14px; }
  .reg-logos .logo-vaad { height: 34px; }
  .reg-logos .logo-hist { height: 23px; }
}
@media (max-height: 820px) and (max-width: 699px) {
  .reg-head { padding-bottom: 22px; }
  .reg-logos { margin-bottom: 4px; }
  .panel { padding: 10px 12px 10px; margin-bottom: 8px; }
  .panel h2 { margin-bottom: 6px; font-size: 15px; }
  .field { margin-bottom: 6px; }
  .field label { margin-bottom: 2px; }
  .field input { padding: 8px 10px; }
  .opt { padding-top: 7px; padding-bottom: 7px; }
  .opt.infant { margin-top: 6px; }
  .sumbar { padding: 8px 8px 8px 12px; }
  .sumbar .amount { font-size: 22px; }
  .submit { padding: 10px 18px; }
  .note { display: none; }
}

/* very short phones (old 640px screens) */
@media (max-height: 660px) {
  .reg-head { padding-top: 5px; padding-bottom: 18px; }
  .reg-logos { margin-bottom: 2px; }
  .reg-logos .logo-vaad { height: 28px; }
  .reg-logos .logo-hist { height: 19px; }
  .reg-head p { display: none; }   /* the dates are on the landing page; keeps the form on one screen */
  .field input { padding: 6px 10px; }
  .panel h2 { margin-bottom: 4px; }
  .panel { margin-bottom: 6px; }
  .seg span { padding: 7px 4px; }
  .pay { margin-top: 6px; }
  .pay-lbl { margin-bottom: 4px; }
  .opt { padding-top: 6px; padding-bottom: 6px; }
}

@media (min-width: 700px) {
  .reg-head { padding: 16px 24px 38px; }
  .reg-logos { margin-bottom: 10px; }
  .reg-logos .logo-vaad { height: 52px; }
  .reg-logos .logo-hist { height: 36px; }
  .reg-head h1 { font-size: 24px; }
  .form-wrap { margin-top: -26px; }
  .panel { padding: 18px 20px 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
