/* ===========================================================
   join.css — bottom "vote" section (2026 redesign, Figma 2202:142)
   Sky background + poll card (כן/לא) + share + footer.
   Replaces the old הצטרפות/טופס/הצבעה/footer block.
   Scaled-stage pattern (1920 canvas, exact Figma px).
   =========================================================== */
.pjvote {
  position: relative;
  width: 100vw; max-width: 100%;
  height: calc(100vw * 680 / 1920);   /* 640→680 (2026-07-02) — card grew to 452, share moved below it */
  overflow: hidden;
  background: var(--white);
}
.pjvote__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(to bottom, #ffffff 0%, rgba(255,255,255,0.55) 26%, rgba(255,255,255,0.12) 52%, rgba(255,255,255,0.35) 100%),
    url('../images/vote-sky-bg.jpg') center / cover no-repeat;
}
.pjvote__stage {
  position: absolute; top: 0; left: 0; z-index: 1;
  width: 1920px; height: 680px;
  transform: scale(calc(100vw / 1920px));
  transform-origin: top left;
}
.pjvote__stage > * { position: absolute; }

/* ---- poll card ---- */
.pjvote__card {
  left: 381px; top: 104px; width: 1162px; height: 452px;   /* +100 (2026-07-02) for the התפקדות כן/לא row in step-2 */
  border-radius: 6px; overflow: hidden;
  box-shadow: 0 0 90px rgba(3,12,32,0.2);
  background: url('../images/vote-card-sky.png') center / cover no-repeat, var(--white);
}
.pjvote__card > * { position: absolute; }
.pjvote__tab        { left: 0; top: 0; width: 1162px; height: 6px; background: var(--blue-100); }
.pjvote__tab-active { left: 856px; top: 0; width: 306px; height: 6px; background: var(--navy); }
.pjvote__hl {
  left: 67px; top: 77px; width: 1036px; height: 88px;
  background: var(--lime);
}
.pjvote__q {
  left: 40px; top: 79px; width: 1082px; height: 88px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: var(--font-display); font-weight: var(--w-bold);
  color: var(--navy); font-size: 86px; line-height: 86px;
}
.pjvote__opt {
  top: 214px; width: 246px; height: 72px;
  display: flex; align-items: center; justify-content: center;
  border: 3px solid #aad3e6; border-radius: 6px;
  background: rgba(255,255,255,0.55);
  font-family: var(--font-display); font-weight: var(--w-regular);
  color: var(--navy); font-size: 48px; line-height: 1; letter-spacing: -0.23px;
  cursor: pointer; transition: background .2s ease, border-color .2s ease;
}
.pjvote__opt--yes { left: 591px; }   /* right */
.pjvote__opt--no  { left: 322px; }   /* left */
.pjvote__opt:hover,
.pjvote__opt.is-picked { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* ---- below the card ---- */
.pjvote__now {
  left: 379px; top: 505px; width: 1162px; text-align: center;
  font-family: var(--font-display); font-weight: var(--w-regular);
  color: var(--navy); font-size: 44px; line-height: 54px;
}
.pjvote__closing {
  left: 378px; top: 564px; width: 1164px; text-align: center;
  font-family: var(--font-body); color: var(--navy);
  font-size: 22px; line-height: 30px;
}
.pjvote__closing strong { font-weight: var(--w-bold); }
.pjvote__thanks {
  left: 379px; top: 576px; width: 1162px; text-align: center;   /* moved below the card (bottom 556) so it never overlaps — 2026-07-02 */
  font-family: var(--font-display); font-weight: var(--w-regular);
  color: var(--navy); font-size: 44px; line-height: 54px; display: none;
}
.pjvote.is-voted .pjvote__thanks { display: block; }
.pjvote.is-voted .pjvote__now { display: none; }

/* share sits below the card (card bottom = 104+452 = 556) so it never overlaps the form — 2026-07-02.
   Moved from top:500 (which sat ON the enlarged card) to top:576. */
.pjvote__share {
  left: 50%; transform: translateX(-50%); top: 576px;
  height: 56px; padding: 0 30px; border-radius: 60px;
  background: #32d851; color: var(--white);
  display: inline-flex; align-items: center; gap: 10px; flex-direction: row-reverse;
  font-family: var(--font-display); font-weight: var(--w-bold);
  font-size: 34px; line-height: 1; white-space: nowrap; text-decoration: none;
}
.pjvote.is-voted .pjvote__share { top: 648px; }   /* if the thanks line above ever shows, drop below it */
.pjvote__share img { width: 30px; height: 30px; }

.pjvote__copyright {
  left: 0; top: 722px; width: 1920px; text-align: center;
  font-family: var(--font-body); color: var(--navy); font-size: 15px; line-height: 20px;
}
.pjvote__copyright b { font-family: "Gilroy", "Heebo", sans-serif; font-weight: 800; color: var(--blk, #030a11); }

/* ---- poll step machine (step1 question → step2 lead form / thanks) ---- */
.pjvote__step { position: absolute; inset: 0; }
.pjvote__step > * { position: absolute; }
.pjvote__step--2, .pjvote__step--thanks { display: none; }
.pjvote__card.show-form  .pjvote__step--1 { display: none; }
.pjvote__card.show-form  .pjvote__step--2 { display: block; }
.pjvote__card.show-thanks .pjvote__step--1 { display: none; }
.pjvote__card.show-thanks .pjvote__step--thanks { display: flex; align-items: center; justify-content: center; }
.pjvote__step--thanks p { position: static; font-family: var(--font-display); font-weight: var(--w-regular); color: var(--navy); font-size: 64px; }

/* ---- step 2: lead form (Figma 2202:563) ---- */
.pjvote__q2 {
  left: 41px; top: 44px; width: 1080px; text-align: center;
  font-family: var(--font-display); font-weight: var(--w-bold);
  color: var(--navy); font-size: 46px; line-height: 54px;   /* smaller so the 2-line title fits above the fields (no overlap) */
}
.pjvote__field {
  top: 306px; width: 258px; height: 72px;   /* 3 fields + submit share one row — pushed down 2026-07-02 for the התפקדות row */
  background: #f6f6f6; border: 0; border-bottom: 2px solid var(--navy); border-radius: 6px;
  padding: 0 20px; text-align: right;
  font-family: var(--font-body); color: #1d365c; font-size: 24px;
}
.pjvote__field::placeholder { color: #1d365c; opacity: 1; }
.pjvote__field--name  { left: 862px; }   /* rightmost */
.pjvote__field--phone { left: 584px; }
.pjvote__field--city  { left: 306px; }
.pjvote__field.is-invalid { border-bottom-color: #d23; background: #fff4f4; }
/* "האם אתה מתפקד ליכוד?" — question + כן/לא pills (2026-07-02) */
.pjvote__likud-q {
  left: 0; top: 170px; width: 1162px; text-align: center;
  font-family: var(--font-display); font-weight: var(--w-bold);
  color: var(--navy); font-size: 34px; line-height: 40px;
}
.pjvote__likud-opts { left: 40px; top: 220px; width: 1082px; display: flex; justify-content: center; gap: 18px; }
.pjvote__likud-opt {
  width: 180px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border: 3px solid #aad3e6; border-radius: 6px; background: rgba(255,255,255,0.55);
  font-family: var(--font-display); font-weight: var(--w-regular);
  color: var(--navy); font-size: 30px; line-height: 1; letter-spacing: -0.23px;
  cursor: pointer; transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.pjvote__likud-opt:hover,
.pjvote__likud-opt.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.pjvote__submit {
  left: 40px; top: 306px; width: 246px; height: 72px;
  background: var(--navy); border: 2px solid var(--navy); border-radius: 6px;
  color: #fff; font-family: var(--font-display); font-weight: var(--w-bold);
  font-size: 48px; line-height: 1; letter-spacing: -0.23px; cursor: pointer;
}
.pjvote__submit.is-sent { background: #2e9e4f; border-color: #2e9e4f; font-size: 26px; }
.pjvote__disclaimer {
  left: 0; top: 410px; width: 1162px; text-align: center;
  font-family: var(--font-body); color: #1d365c; font-size: 18px; line-height: 20px;
}
.join__field-err { position: absolute; z-index: 9; background: #d23; color: #fff; font-family: var(--font-body); font-size: 16px; padding: 2px 8px; border-radius: 4px; white-space: nowrap; }

/* ===== TOP vote card (Figma 2239:10184) — duplicate כן/לא poll, placed above ABOUT ===== */
.pjvote-top {
  position: relative; width: 100vw; max-width: 100%;
  height: calc(100vw * 500 / 1920); overflow: hidden; background: var(--white);
}
.pjvote-top__inner {
  position: absolute; top: 0; left: 0; width: 1920px; height: 500px;
  transform: scale(calc(100vw / 1920px)); transform-origin: top left;
}
.pjvote-top .pjvote__card { position: absolute; left: 379px; top: 74px; }
@media (max-width: 768px) { .pjvote-top { display: none !important; } }

/* mobile top card wrapper (inside .m — hidden on desktop) */
.m-pjvote-top { position: relative; overflow: hidden; padding: 30px 16px 20px; background: var(--navy-deep); }
