/* Amitid intake form — brand palette, mobile-first RTL */
:root {
  --cream: #F2EAE0; --cream-2: #FBF6EE;
  --lav: #BDA6CE; --lav-soft: #E4DAEC; --lav-deep: #8A6BA6;
  --ink: #292233; --muted: #6A5A78;
  --line: rgba(41,34,51,.15);
  --danger: #C0392B;
  --font-display: "Secular One", "Arial Hebrew", sans-serif;
  --font-body: "Assistant", "Arial Hebrew", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--font-body); font-size: 16.5px; line-height: 1.6;
  min-height: 100dvh;
}
h1, h2 { font-family: var(--font-display); font-weight: 400; margin: 0; }
.logo { font-family: var(--font-display); font-size: 26px; color: var(--lav-deep); }
.muted { color: var(--muted); }
.err { color: var(--danger); font-weight: 700; }
[hidden] { display: none !important; }

input, textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; margin-top: 8px;
}
input:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 2px solid var(--lav-deep); outline-offset: 2px;
}
textarea { resize: vertical; }

.btn {
  font: inherit; font-weight: 800; cursor: pointer;
  border: 0; border-radius: 14px; padding: 13px 22px;
  background: #fff; color: var(--ink); transition: transform .12s;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--ink); color: #fff; }
.btn--big { width: 100%; font-size: 19px; padding: 16px; }
.btn:disabled { opacity: .5; cursor: wait; }

/* gate + thanks */
.gate {
  min-height: 100dvh; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(900px 500px at 70% -10%, var(--lav-soft), var(--cream));
}
.gate__card {
  width: min(420px, 100%); text-align: center;
  background: var(--cream-2); border: 1px solid var(--line); border-radius: 22px;
  padding: 36px 28px; display: grid; gap: 12px;
  box-shadow: 0 8px 30px -12px rgba(41,34,51,.2);
}
.gate__card h1 { font-size: 28px; }
.gate__card form { display: grid; gap: 10px; }
.gate__card input { text-align: center; font-size: 20px; letter-spacing: 4px; margin: 0; }
.big-emoji { font-size: 52px; }

/* form */
.wrap { max-width: 680px; margin-inline: auto; padding: 28px 18px 60px; }
.head { text-align: center; display: grid; gap: 8px; margin-bottom: 26px; }
.head h1 { font-size: clamp(24px, 6vw, 32px); }
.progress {
  position: sticky; top: 0; z-index: 10; height: 6px; border-radius: 3px;
  background: var(--lav-soft); overflow: hidden; margin-top: 10px;
}
#progress-bar { height: 100%; width: 0; background: var(--lav-deep); transition: width .3s; }

.q {
  background: var(--cream-2); border: 1px solid var(--line); border-radius: 18px;
  padding: 20px 18px; margin-bottom: 14px;
}
.q h2 { font-size: 19px; display: flex; align-items: center; gap: 10px; }
.qn {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: 50%; background: var(--lav-soft); color: var(--lav-deep);
  font-size: 15px; font-family: var(--font-body); font-weight: 800;
}
.ex { color: var(--muted); font-size: 14px; margin: 6px 0 2px; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chips button {
  font: inherit; font-weight: 700; font-size: 14.5px; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 16px;
  background: #fff; color: var(--muted); transition: all .15s;
}
.chips button.on {
  background: var(--ink); border-color: var(--ink); color: #fff;
}

/* style picker */
.styles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.style-card {
  position: relative; display: grid; gap: 6px; cursor: pointer;
  border: 2.5px solid var(--line); border-radius: 16px; padding: 8px;
  background: #fff; transition: border-color .15s;
}
.style-card input { position: absolute; opacity: 0; pointer-events: none; }
.style-card img { width: 100%; border-radius: 10px; aspect-ratio: 39/70; object-fit: cover; display: block; }
.style-card__name { font-weight: 800; text-align: center; }
.style-card a { font-size: 13px; text-align: center; color: var(--lav-deep); font-weight: 700; text-decoration: none; }
.style-card:has(input:checked) { border-color: var(--lav-deep); background: var(--lav-soft); }
.style-card:has(input:checked)::after {
  content: "✓"; position: absolute; top: 14px; inset-inline-start: 14px;
  width: 26px; height: 26px; display: grid; place-items: center;
  background: var(--lav-deep); color: #fff; border-radius: 50%; font-weight: 900;
}

/* upload */
.upload {
  display: grid; place-items: center; margin-top: 10px; padding: 22px;
  border: 2px dashed var(--lav); border-radius: 14px; cursor: pointer;
  color: var(--lav-deep); font-weight: 800; background: #fff;
}
.previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; margin-top: 10px; }
.previews img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }

.submit-row { margin-top: 22px; display: grid; gap: 10px; text-align: center; }

@media (min-width: 620px) {
  .styles { grid-template-columns: repeat(3, 1fr); }
}

/* ─── טופס 2.0 ─── */
.tier-head { text-align: center; margin: 34px 0 18px; padding: 20px 16px; border-radius: 18px; background: var(--lav-soft); }
.tier-head--gold { background: linear-gradient(135deg, var(--lav-soft), #f3e8d3); border: 1.5px solid var(--lav-deep); }
.tier-head__badge { display: inline-block; background: var(--ink); color: #fff; font-weight: 800; font-size: 12.5px; border-radius: 999px; padding: 4px 14px; }
.tier-head h2 { font-family: var(--font-display); font-weight: 400; font-size: 26px; margin: 8px 0 4px; }
.tier-head p { margin: 0; color: var(--muted); font-size: 14.5px; }
.tier-head__voice { margin-top: 10px !important; font-weight: 600; color: var(--ink) !important; }
.tier-head__voice a { color: var(--lav-deep); font-weight: 800; }

.q--story { border-color: var(--lav); }
.opt { font-size: 12.5px; color: var(--muted); font-weight: 600; }

.sample { margin-top: 8px; background: #fff; border: 1px dashed var(--lav); border-radius: 12px; padding: 0 14px; }
.sample summary { padding: 10px 0; font-weight: 700; font-size: 13.5px; color: var(--lav-deep); cursor: pointer; list-style: none; }
.sample summary::before { content: "💡 "; }
.sample p { margin: 0 0 12px; font-size: 14px; color: var(--muted); line-height: 1.65; }

.svc-row { display: grid; gap: 6px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.svc-row input { margin-top: 0; }
.svc-tail { display: flex; gap: 6px; }
.svc-tail .svc-price { flex: 1; }
.svc-del { flex: none; width: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--danger); font-weight: 800; cursor: pointer; }
.btn--add { border: 1.5px dashed var(--lav-deep); color: var(--lav-deep); background: transparent; width: 100%; }

/* שעות פתיחה: גריד ימים */
.hours-grid { display: grid; gap: 8px; margin-top: 12px; }
.hours-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hours-day { display: flex; align-items: center; gap: 8px; min-width: 96px; font-weight: 700; font-size: 14.5px; cursor: pointer; }
.hours-day input { width: 18px; height: 18px; margin: 0; accent-color: var(--lav-deep); }
.hours-row select { font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.hours-row select:disabled { opacity: .4; }
.hours-sep { font-size: 13px; color: var(--muted); font-weight: 600; }
.hours-row--closed .hours-sep { opacity: .4; }

.rec { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.rec-btn { font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; border: 1.5px solid var(--ink); border-radius: 999px; padding: 8px 16px; background: #fff; }
.rec-btn:active { transform: scale(.97); }
.rec-status { font-size: 13px; font-weight: 700; color: var(--lav-deep); }
.rec-player { height: 38px; max-width: 100%; }
.rec-del { border: none; background: transparent; color: var(--danger); font-weight: 800; font-size: 16px; cursor: pointer; }
