/*
 * מרכז שירות — בסיס: הטוקנים (צבעים, גופן, רדיוסים), רקע גריד הנקודות, הראש,
 * השדות, תיבות הסימון, הכפתור והתחתית המשפטית. הועתק מדף ההצטרפות של המועדון
 * (club-fincat public/join/join.css) — אותה שפה, בלי ההנפשות והרכיבים של הדף
 * ההוא. help.css = הפריסה של מרכז השירות.
 */
:root {
  --gold-500: #F7B500;
  --plum-900: #02132A;
  --plum-600: #55617A;
  --grey-300: #C4C5D4;
  --grey-200: #DCDCE6;
  --grey-100: #F2F2F7;
  --beige-100: #F7EFD9;
  --cream: #FFF8E9;
  --white: #FFFFFF;
  --green-500: #34AE6C;
  --wa-700: #1F7A47; /* ירוק ווטסאפ כהה — לבן עליו עובר ניגודיות AA */
  --pink-600: #B83A63;
  --pink-100: #FBE6EE;
  --gold-100: #FFF3D6;
  /* גוונים לכרטיסי ההטבות — מהפלטה של FINcat */
  --sky: #E9EEFB;
  --lavender: #EFEEF7;
  --mint: #E4F6EC;

  --font: "Heebo", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --focus-ring: 0 0 0 3px rgba(247, 181, 0, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--plum-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* גריד נקודות אפור עדין */
  background-color: var(--white);
  background-image: radial-gradient(var(--grey-200) 1px, transparent 1.2px);
  background-size: 22px 22px;
  min-height: 100vh;
}

/* ── ראש ─────────────────────────────────────────────────────────────── */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--grey-200);
  margin-bottom: 28px;
}
.logo { height: 26px; width: auto; display: block; }

h1 {
  font-weight: 900;
  font-size: clamp(2rem, 7vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.lede { font-size: 1.0625rem; color: var(--plum-600); max-width: 40ch; }

/* ── טופס ────────────────────────────────────────────────────────────── */
form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; } /* בלי זה ה-fieldset נמתח לרוחב התוכן שלו במסכים צרים */
.consent {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  cursor: pointer;
}
.consent input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; }
.consent .box {
  width: 22px; height: 22px;
  border: 1.5px solid var(--grey-300);
  border-radius: 6px;
  background: var(--white);
  display: grid; place-items: center;
  margin-top: 1px;
  transition: background 150ms var(--ease), border-color 150ms var(--ease);
}
.consent .box svg { width: 14px; height: 14px; fill: none; stroke: var(--plum-900); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.consent input:checked + .box { background: var(--gold-500); border-color: var(--gold-500); }
.consent input:checked + .box svg { opacity: 1; }
.consent input:focus-visible + .box { box-shadow: var(--focus-ring); }
.consent input[aria-invalid="true"] + .box { border-color: var(--pink-600); }
.consent-text { font-size: 14px; line-height: 1.55; color: var(--plum-600); }
.fields { display: grid; gap: 12px; }
@media (min-width: 520px) { .fields { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 700; }
.field .hint { font-weight: 400; color: var(--plum-600); }
.field input {
  font: inherit;
  font-size: 16px; /* פחות מ-16 = זום אוטומטי באייפון */
  color: var(--plum-900);
  background: var(--white);
  border: 1.5px solid var(--grey-300);
  border-radius: 17px;
  padding: 12px 16px;
  min-height: 48px;
  width: 100%;
  transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease);
}
.field input[dir="ltr"] { text-align: right; }
.field input::placeholder { color: var(--grey-300); }
.field input:focus { outline: none; border-color: var(--plum-900); box-shadow: var(--focus-ring); }
.field input[aria-invalid="true"],
.field input[aria-invalid="true"]:focus { border-color: var(--pink-600); }

.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.error {
  font-size: 14px;
  font-weight: 500;
  color: var(--pink-600);
  background: var(--pink-100);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

/* כפתור — אותו כפתור של דף הכרטיס */
.cta {
  display: flex;
  width: 100%;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.cta > span {
  border: 1.5px solid var(--plum-900);
  border-radius: 17px;
  background: var(--plum-900);
  color: var(--white);
  transition: background 420ms var(--ease), color 420ms var(--ease), border-color 420ms var(--ease);
}
.cta .t {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: 700 1.0625rem/1.2 var(--font);
  padding: 18px 20px;
  text-align: center;
  text-wrap: balance;
}
@media (max-width: 420px) { .cta .t { padding-inline: 12px; gap: 8px; } .cta .a { width: 52px; } }
.cta .wa-ico { flex: none; width: 20px; height: 20px; color: var(--green-500); transition: color 420ms var(--ease); }
.cta .a {
  width: 58px;
  flex: none;
  display: grid;
  place-items: center;
  transition: transform 1400ms var(--ease), color 1400ms var(--ease), background 420ms var(--ease), border-color 420ms var(--ease);
}
@media (hover: hover) {
  .cta:hover { gap: 0; }
  .cta:hover > span { background: transparent; color: var(--plum-900); border-color: transparent; }
  .cta:hover .a { transform: translateX(-14px); color: var(--gold-500); }
}
.cta:focus-visible { outline: none; }
.cta:focus-visible .t { box-shadow: var(--focus-ring); }
.cta[aria-busy="true"] { cursor: progress; }
.cta[aria-busy="true"] .a { animation: nudge 900ms var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateX(-8px); } }

/* ── משפטי ───────────────────────────────────────────────────────────── */
.legal {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--grey-200);
  font-size: 12px;
  line-height: 1.6;
  color: var(--plum-600);
  display: grid;
  gap: 8px;
}
.legal nav { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 4px; }
.legal a { color: var(--plum-900); text-underline-offset: 3px; }
.legal a:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
