/* ---- 28.10.2026: "רוצה להצטרף?" — השארת פרטים (שם + טלפון → נשמר בשרת ונשלח למייל של נוי). טיפוגרפיה פתוחה בלי קופסה,
   כפתור ורוד כמו "הצטרפי אלינו!", ומילת רפאים ענקית מאחורי הכותרת כמו המספרים במסע התזונה ---- */
.join-section { position: relative; isolation: isolate; overflow: hidden; padding-block: 176px 120px; border-top: 1px solid var(--line); font-family: Rubik, Assistant, Arial, sans-serif; background: radial-gradient(55% 75% at 50% 105%, rgb(238 31 113 / 17%), transparent 72%), radial-gradient(38% 55% at 8% 0%, rgb(238 31 113 / 7%), transparent 70%); }
.join-stage { position: relative; max-width: 1040px; margin-inline: auto; text-align: center; }
.join-ghost { position: absolute; top: -.62em; left: 50%; z-index: -1; transform: translateX(-50%); direction: ltr; font-size: clamp(150px, 22vw, 360px); font-weight: 600; line-height: 1; letter-spacing: -.05em; white-space: nowrap; color: rgb(238 31 113 / 46%); -webkit-mask-image: linear-gradient(180deg, #000 4%, transparent 76%); mask-image: linear-gradient(180deg, #000 4%, transparent 76%); pointer-events: none; user-select: none; }
.join-section h2 { margin: 0; font-size: clamp(34px, 3.6vw, 56px); font-weight: 500; line-height: 1.25; letter-spacing: -.025em; text-wrap: balance; }
.join-section h2 span { color: var(--pink); }
.join-section h2 bdi { white-space: nowrap; }
.join-sub { margin: 16px 0 0; color: #e3dce0; font-size: clamp(20px, 1.7vw, 24px); line-height: 1.6; }

.join-form { margin-top: 64px; text-align: start; }
.join-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: start; column-gap: 32px; }
.join-field { position: relative; min-width: 0; }
/* תווית שיושבת על הקו כשהשדה ריק ועולה למעלה בפוקוס או כשיש תוכן (כמו בקופה של אפל) — בלי פער ריק בין התווית לקו */
.join-field label { transform-origin: right top; }
@media (prefers-reduced-motion: no-preference) { .join-field label { transition: transform .2s, color .2s; } }
.join-field:not(:focus-within):has(input:placeholder-shown) label { transform: translateY(38px) scale(1.25); color: #9d9d9d; }
.join-field label { display: block; height: 28px; color: #c9c9c9; font-size: 17px; line-height: 28px; }
.join-field:focus-within label { color: var(--pink); }
.join-field input { display: block; width: 100%; height: 60px; margin: 0; padding: 0 2px; border: 0; border-bottom: 1px solid #727272; border-radius: 0; background: transparent; color: #fff; font: 400 22px/1.2 Rubik, Assistant, Arial, sans-serif; caret-color: var(--pink); -webkit-appearance: none; appearance: none; transition: border-color .2s, box-shadow .2s; }
.join-field input[dir="ltr"] { text-align: right; }
.join-field input:hover { border-bottom-color: #a5a5a5; }
.join-field input:focus-visible { outline: 2px solid transparent; outline-offset: 2px; border-bottom-color: var(--pink); box-shadow: 0 2px 0 var(--pink); }   /* המסגרת השקופה נראית רק ב-Windows High Contrast */
.join-field input[aria-invalid="true"] { border-bottom-color: #ff8fb6; }
/* מילוי אוטומטי: ספארי צובע את הרקע צהוב בהיר בלי גרסה כהה. העיכוב ב-transition חייב לגבור גם על "עצירת תנועה" (שמבטלת transitions),
   והצל הפנימי מכסה את הצהוב גם בלעדיו — אחרת הטקסט הלבן נעלם על צהוב */
.join-field input:-webkit-autofill { -webkit-text-fill-color: #fff; caret-color: var(--pink); box-shadow: inset 0 0 0 100px #0b0b0b; transition: background-color 100000s, color 100000s !important; }
.join-field input:-webkit-autofill:focus-visible { box-shadow: inset 0 0 0 100px #0b0b0b, 0 2px 0 var(--pink); }
.join-error { margin: 10px 0 0; color: #ff8fb6; font-size: 16px; line-height: 1.45; }
.join-error:empty { display: none; }
.join-submit { display: inline-flex; align-items: center; justify-content: center; gap: 32px; min-width: 300px; height: 60px; margin-top: 28px; padding: 0 30px; border: 2px solid transparent; border-radius: 0; background: var(--pink); color: #080808; font: 700 22px/1.3 Assistant, Arial, sans-serif; white-space: nowrap; }
.join-submit svg { flex: none; width: 22px; height: 22px; }
.join-submit:hover { background: #ff438c; }
.join-submit:focus-visible { outline: 2px solid #fff; outline-offset: 6px; }
.join-submit[aria-disabled="true"] { cursor: progress; opacity: .8; }
.join-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.join-note { max-width: 760px; margin: 28px auto 0; color: #a9a9a9; font-size: 15px; line-height: 1.65; text-align: center; text-wrap: pretty; }
.join-note p { margin: 0; }
.join-note .join-owner { margin-top: 8px; color: #8f8f8f; font-size: 14px; }
.join-note a { color: #d8d8d8; text-decoration: underline; text-decoration-color: #5a5a5a; text-underline-offset: 3px; }
.join-note a:hover, .join-note a:focus-visible { color: var(--pink); text-decoration-color: currentColor; }
.join-note a:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.join-status { margin: 0; color: #ff8fb6; font-size: 17px; line-height: 1.6; text-align: center; }
.join-status:not(:empty) { margin-top: 16px; }
.join-status a { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.join-status a:hover, .join-status a:focus-visible { color: var(--pink); }
.join-done { margin-top: 56px; }
/* אחרי שליחה: המקטע שומר על הגובה (בטלפון הוא היה מתכווץ ב-300px והעמוד קופץ), והתודה ממורכזת במקום של הטופס */
.join-stage:has(> .join-done:not([hidden])) { display: flex; flex-direction: column; }
.join-stage:has(> .join-done:not([hidden])) > .join-done { margin-block: auto; }
.join-done-title:focus { outline: none; }
.join-done-title { margin: 0; color: #fff; font-size: clamp(30px, 3vw, 44px); font-weight: 500; line-height: 1.3; letter-spacing: -.02em; }
.join-done-title span { color: var(--pink); }
.join-done-text { margin: 12px 0 0; color: #e3dce0; font-size: 21px; line-height: 1.6; }
@media (prefers-reduced-motion: no-preference) {
  .join-done:not([hidden]) { animation: join-in .6s cubic-bezier(.16, 1, .3, 1) both; }
  @keyframes join-in { from { opacity: 0; transform: translate3d(0, 16px, 0); } }
}

@media (max-width: 1000px) {
  .join-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 8px; }
  .join-submit { grid-column: 1 / -1; justify-self: center; }
}
@media (max-width: 700px) {
  .join-section { padding-block: 88px 80px; }
  .join-ghost { top: -.3em; font-size: 31vw; }
  .join-section h2 { font-size: clamp(30px, 8vw, 40px); }
  .join-sub { margin-top: 12px; font-size: 19px; }
  .join-form { margin-top: 40px; }
  .join-fields { grid-template-columns: minmax(0, 1fr); row-gap: 22px; }
  .join-field input { height: 52px; font-size: 20px; }
  .join-field:not(:focus-within):has(input:placeholder-shown) label { transform: translateY(34px) scale(1.15); }
  .join-submit { width: 100%; min-width: 0; height: 58px; margin-top: 10px; font-size: 21px; }
  .join-note { font-size: 14px; }
  .join-done { margin-top: 40px; }
  .join-done-text { font-size: 19px; }
}

/* "פני אלינו בווטסאפ" מתחת לטופס, במקום פסקת ההסבר (דור 18.11.2026). מסגרת לבנה כמו "התחבר": הוורוד נשאר ל"שלחי" */
.join-note .join-wa { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-width: 300px; height: 60px; padding: 0 30px; border: 1px solid #f8f8f8; color: #fff; font: 700 22px/1 Rubik, Assistant, Arial, sans-serif; text-decoration: none; }
.join-note .join-wa svg { flex: none; width: 24px; height: 24px; fill: currentColor; }
.join-note .join-wa:hover { background: #f8f8f8; color: #080808; }
.join-note .join-wa:focus-visible { outline: 2px solid var(--pink); outline-offset: 6px; }
.join-note .join-wa + .join-owner { margin-top: 22px; }
@media (max-width: 700px) { .join-note .join-wa { width: 100%; min-width: 0; height: 58px; font-size: 21px; } }
