/* Kesharim: signup page (apply.html). Builds on kesharim.css tokens. */
.form-page { padding: clamp(110px, 14vh, 150px) 0 clamp(80px, 10vw, 140px); }
.form-head { display: grid; gap: 1.2rem; max-width: 980px; }
.form-head .back { font-weight: 600; color: var(--ink-2); text-decoration: none; display: inline-flex; gap: .5em; align-items: center; width: fit-content; }
.form-head .back svg { width: 1.1em; height: 1.1em; transform: scaleX(-1); }
.form-head .back:hover { color: var(--ink); }
.form-head h1 { font-size: clamp(2.8rem, 1.4rem + 5vw, 7rem); font-weight: 700; line-height: .92; }
.form-head p { margin: 0; color: var(--ink-2); max-width: 46ch; font-size: var(--t-lead); line-height: 1.45; }

/* cross-link strip */
.xlink { margin-top: clamp(28px, 4vw, 48px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; background: var(--ink); color: var(--paper); border-radius: var(--r); padding: 18px clamp(20px, 3vw, 32px); }
.xlink p { margin: 0; }
.xlink b { color: var(--gold); font-family: var(--display); font-weight: 700; font-size: 1.3rem; }
.xlink .btn { padding: .8em 1.3em; }

.kform { margin-top: clamp(40px, 5vw, 72px); display: grid; gap: clamp(36px, 4vw, 60px); }
.fsec { display: grid; gap: clamp(16px, 1.8vw, 24px); border: 0; margin: 0; padding: 0; min-width: 0; }
.fsec > legend, .fsec > h2 { padding: 0; font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 1.3rem + 2.4vw, 3.6rem); line-height: 1; margin: 0 0 clamp(14px, 1.6vw, 22px); }
.fsec .hint { margin: -10px 0 0; color: var(--ink-2); font-size: var(--t-lead); line-height: 1.4; }

/* domain tiles */
.domains { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.tile { position: relative; display: block; cursor: pointer; }
.tile input { position: absolute; opacity: 0; pointer-events: none; }
.tile .box {
  height: 100%; display: flex; flex-direction: column; gap: 14px; padding: clamp(18px, 1.8vw, 26px);
  background: var(--white); border: 1.5px solid rgba(28, 27, 25, .45); border-radius: var(--r);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .35s, border-color .35s;
}
.tile:hover .box { transform: translateY(-4px); box-shadow: 0 22px 40px -26px rgba(28, 27, 25, .45); border-color: rgba(28, 27, 25, .3); }
.tile .ic { width: 52px; height: 52px; border-radius: 50%; background: rgba(238, 185, 29, .2); display: grid; place-items: center; color: var(--ink); transition: background .35s, color .35s, transform .6s var(--ease); }
.tile .ic svg { width: 27px; height: 27px; fill: currentColor; }
.tile:hover .ic { transform: rotate(-8deg) scale(1.06); }
.tile .ttl { font-family: var(--display); font-weight: 700; font-size: clamp(1.3rem, 1rem + .7vw, 1.65rem); line-height: 1.05; }
.tile .specs { font-size: var(--t-small); color: var(--ink-2); line-height: 1.45; }
.tile .check { position: absolute; top: 16px; left: 16px; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid rgba(28, 27, 25, .25); display: grid; place-items: center; color: transparent; transition: all .35s var(--ease); }
.tile .check svg { width: 17px; height: 17px; fill: currentColor; }
.tile input:checked + .box { background: var(--gold); border-color: var(--ink); }
.tile input:checked + .box .ic { background: var(--ink); color: var(--gold); }
.tile input:checked + .box .specs { color: var(--ink); }
.tile input:checked + .box .check { background: var(--ink); border-color: var(--ink); color: var(--gold); transform: scale(1.08); }
.tile input:focus-visible + .box { outline: 3px solid var(--ink); outline-offset: 3px; }
.tile.is-meetup .box::after { content: "המפגש הקרוב"; position: absolute; bottom: 16px; left: 16px; font-size: .75rem; font-weight: 600; background: var(--ink); color: var(--gold); border-radius: 999px; padding: .2em .8em; }

.other-row { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.other-row .tile .box { flex-direction: row; align-items: center; padding: 14px 22px; }
.other-row .tile .ttl { font-size: 1.2rem; }
.other-row .field { flex: 1 1 280px; }

/* chips */
.specs-pick { display: none; gap: 14px; }
.specs-pick.is-open { display: grid; }
.specs-pick > span { font-weight: 600; font-size: var(--t-lead); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip > span { display: inline-block; padding: .55em 1.15em; border-radius: 999px; border: 1.5px solid rgba(28, 27, 25, .25); background: var(--white); font-weight: 500; transition: all .3s var(--ease); }
.chip:hover > span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); color: var(--gold); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

/* text fields: label above, error below */
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px clamp(18px, 2.4vw, 32px); }
.field { display: grid; gap: 8px; align-content: start; }
.field.full { grid-column: 1 / -1; }
.field label, .field .lbl { font-weight: 600; }
.field label small, .field .lbl small { font-weight: 400; color: var(--ink-2); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field input[type="url"] {
  font: inherit; color: var(--ink); background: var(--white); border: 1.5px solid rgba(28, 27, 25, .45); border-radius: 14px;
  padding: .85em 1em; width: 100%; transition: border-color .3s, box-shadow .3s;
}
.field input::placeholder { color: #6f6b62; }
.field input:hover { border-color: rgba(28, 27, 25, .45); }
.field input:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); box-shadow: 0 0 0 5px rgba(238, 185, 29, .55); }
.field input[dir="ltr"] { text-align: right; }
.field .err { color: #a3261b; font-size: .92rem; font-weight: 500; min-height: 0; }
.field .err:empty { display: none; }
.field.invalid input { border-color: #a3261b; }
.warn { background: rgba(238, 185, 29, .25); border-radius: 12px; padding: .7em 1em; font-weight: 500; }
.warn[hidden] { display: none; }

/* choice cards (what she is signing up for) */
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.6vw, 22px); }
.choice { position: relative; cursor: pointer; display: block; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .box { height: 100%; display: grid; gap: 6px; padding: clamp(22px, 2.6vw, 34px); background: var(--white); border: 1.5px solid rgba(28, 27, 25, .45); border-radius: var(--r); transition: all .4s var(--ease); }
.choice:hover .box { transform: translateY(-3px); border-color: rgba(28, 27, 25, .35); }
.choice .ttl { font-family: var(--display); font-weight: 700; font-size: clamp(1.4rem, 1.1rem + .8vw, 1.9rem); }
.choice .amt { font-family: var(--display); font-weight: 700; font-size: clamp(2.4rem, 1.8rem + 2vw, 3.6rem); line-height: 1; }
.choice .cnote { color: var(--ink-2); font-size: var(--t-body); line-height: 1.4; }
.choice input:checked + .box { background: var(--gold); border-color: var(--ink); }
.choice input:checked + .box .cnote { color: var(--ink); }
.choice input:focus-visible + .box { outline: 3px solid var(--ink); outline-offset: 3px; }
/* the intent cards read as buttons: a radio ring in the corner, a "select" pill, and lift on hover */
.choice .box { position: relative; box-shadow: 0 10px 24px -18px rgba(28, 27, 25, .45); }
.choice .box::before {
  content: ""; position: absolute; top: clamp(18px, 2.2vw, 28px); left: clamp(18px, 2.2vw, 28px); width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--ink); background: var(--white); transition: all .3s var(--ease);
}
.choice input:checked + .box::before { background: var(--ink); box-shadow: inset 0 0 0 5px var(--gold); }
.choice:hover .box { box-shadow: 0 22px 40px -22px rgba(28, 27, 25, .55); }
.choice .ttl { padding-left: 40px; }
.choice .go { justify-self: start; margin-top: 14px; display: inline-flex; align-items: center; padding: .6em 1.2em; border-radius: 999px; background: var(--ink); color: var(--gold); font-weight: 600; font-size: 1rem; line-height: 1; transition: background .3s, color .3s; }
.choice .go .arr { width: 1.05em; height: 1.05em; margin-inline-start: .5em; transition: transform .4s var(--ease); }
.choice:hover .go .arr { transform: translateX(-4px); }
.choice .go .picked, .choice input:checked + .box .go .pick { display: none; }
.choice input:checked + .box .go .picked { display: inline; }
.choice input:checked + .box .go { background: var(--white); color: var(--ink); }
.choice .amt--field { font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.8rem); line-height: 1; margin: 6px 0 4px; }
.chip span b { font-weight: 700; }

/* plain text pages: privacy, accessibility */
.doc-page .form-head .updated { font-size: var(--t-small); color: var(--ink-2); }
.doc { max-width: 70ch; margin-top: clamp(32px, 4vw, 56px); display: grid; gap: 1.1rem; }
.doc h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.6rem); line-height: 1.05; margin: 1.6rem 0 0; }
.doc p, .doc li { color: var(--ink-2); line-height: 1.6; margin: 0; }
.doc b { color: var(--ink); }
.doc ul { margin: 0; padding-inline-start: 1.2em; display: grid; gap: .5rem; }
.doc a { color: var(--ink); text-underline-offset: 4px; }

/* consent */
.consent { display: grid; gap: 14px; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--ink); flex: none; }
.check.invalid span { color: #a3261b; }

.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; }
.submit-row .btn { font-size: 1.15rem; padding: 1.1em 2em 1.1em 1.6em; }
.submit-row .btn[disabled] { opacity: .5; cursor: progress; }
.submit-row p { margin: 0; color: var(--ink-2); max-width: 52ch; font-size: var(--t-small); }
.form-error { color: #a3261b; font-weight: 600; }
.form-error:empty { display: none; }
.group-err { color: #a3261b; font-weight: 600; margin: 0; }
.group-err:empty { display: none; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; }


/* success */
.done { display: none; text-align: center; padding: clamp(40px, 8vw, 110px) 0; }
.done.is-on { display: grid; justify-items: center; gap: 18px; }
.done svg { width: 120px; height: 114px; color: var(--gold); animation: pop 1s var(--ease) both; }
.done h2 { font-size: clamp(3rem, 2rem + 4vw, 6rem); font-weight: 700; }
.done p { max-width: 44ch; margin: 0; color: var(--ink-2); font-size: var(--t-lead); line-height: 1.45; }
.done .links { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 12px; }
@keyframes pop { from { transform: scale(.3) rotate(-120deg); opacity: 0; } }

@media (max-width: 1100px) { .domains { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .domains { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fields, .choices { grid-template-columns: 1fr; }
  .tile .specs { display: none; }
}
@media (prefers-reduced-motion: reduce) { .done svg { animation: none; } }
.chip .nis { font-size: .92em; margin-inline-start: .32em; }
