/* ===========================================================
   popup.css — 30-second join popup (Figma 2067:473 desktop / 2297:7 mobile)
   Desktop: 2 columns (form panel + info panel). Mobile: form card + info below.
   =========================================================== */
.pjmodal { position: fixed; inset: 0; z-index: 100000; display: none; }
.pjmodal.is-open { display: block; }
.pjmodal__backdrop { position: absolute; inset: 0; background: rgba(3, 12, 32, 0.6); }
.pjmodal__box {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  direction: rtl; display: flex;
  width: min(1120px, 94vw); max-height: 92vh;
  border-radius: 8px; overflow: hidden;
  box-shadow: 0 0 90px rgba(3, 12, 32, 0.35); background: #fff;
}
.pjmodal__close {
  position: absolute; top: 16px; left: 16px; z-index: 5;
  width: 44px; height: 44px; padding: 0; border: none; background: transparent; cursor: pointer;
}
.pjmodal__close img { width: 100%; height: 100%; display: block; }

/* ---- form panel (visual right) ---- */
.pjmodal__form {
  flex: 1 1 50%; box-sizing: border-box; padding: 46px 40px 36px;
  background: linear-gradient(rgba(255,255,255,0.86), rgba(255,255,255,0.93)), url('../images/sky-bg-full.jpg') center / cover no-repeat;
  display: flex; flex-direction: column; gap: 14px;
}
.pjmodal__form-title {
  font-family: var(--font-display); font-weight: 700; color: var(--navy);
  font-size: 42px; line-height: 1.05; text-align: center; margin-bottom: 6px;
}
.pjmodal__field {
  width: 100%; height: 54px; box-sizing: border-box;
  background: #f6f6f6; border: none; border-bottom: 2px solid var(--navy); border-radius: 6px;
  padding: 0 18px; font-family: var(--font-body); font-size: 20px; color: var(--navy); text-align: right;
}
.pjmodal__field::placeholder { color: #6a7890; }
.pjmodal__field.is-invalid { border-bottom-color: #d63a3a; background: #fff4f4; }
.pjmodal__row { display: flex; gap: 14px; }
.pjmodal__row .pjmodal__field { flex: 1 1 50%; min-width: 0; }
.pjmodal__q { font-family: var(--font-display); font-weight: 700; color: var(--navy); font-size: 22px; text-align: center; margin-top: 6px; }
.pjmodal__opts { display: flex; gap: 12px; }
.pjmodal__opt {
  flex: 1; height: 52px; border: none; border-radius: 6px; cursor: pointer;
  background: var(--blue-100); color: var(--navy);
  font-family: var(--font-display); font-weight: 700; font-size: 20px;
  transition: background .15s ease, color .15s ease;
}
.pjmodal__opt.is-active { background: var(--navy); color: #fff; }
.pjmodal__consent {
  display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 8px;
  font-family: var(--font-body); font-size: 17px; color: var(--navy); cursor: pointer; margin-top: 2px;
}
.pjmodal__check-box { position: relative; width: 25px; height: 25px; flex: 0 0 auto; border: 2px solid var(--navy); border-radius: 4px; background: #fff; }
.pjmodal__consent.is-checked .pjmodal__check-box { background: var(--navy); }
.pjmodal__consent.is-checked .pjmodal__check-box::after {
  content: ""; position: absolute; left: 8px; top: 3px; width: 6px; height: 12px;
  border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.pjmodal__cta {
  margin-top: 8px; height: 66px; border: none; border-radius: 6px; cursor: pointer;
  background: var(--navy); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--font-display); font-weight: 700; font-size: 30px;
}
.pjmodal__cta img { width: 22px; height: 22px; }
.pjmodal__cta.is-sent { background: #2fae57; }

/* ---- info panel (visual left) ---- */
.pjmodal__info { flex: 1 1 50%; box-sizing: border-box; background: #f6f6f6; padding: 56px 40px 40px; direction: rtl; }
.pjmodal__eyebrow { display: inline-block; background: var(--blue-100); color: var(--navy); font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: 1px; padding: 5px 16px; }
.pjmodal__head { margin-top: 20px; }
.pjmodal__head::after { content: ""; display: block; clear: both; }
.pjmodal__portrait { float: right; width: 116px; height: 116px; border-radius: 50%; overflow: hidden; margin: 4px 0 6px 18px; }
.pjmodal__portrait img { width: 100%; height: 100%; object-fit: cover; }
.pjmodal__title { font-family: var(--font-display); font-weight: 700; color: var(--navy); font-size: 52px; line-height: 1.06; text-align: right; }
.pjmodal__intro { font-family: var(--font-body); color: var(--navy); font-size: 20px; line-height: 1.4; margin-top: 24px; text-align: right; }
.pjmodal__lead { font-family: var(--font-body); font-weight: 700; color: var(--navy); font-size: 20px; line-height: 1.4; margin-top: 14px; text-align: right; }
.pjmodal__bullets { margin-top: 22px; display: flex; flex-direction: column; gap: 15px; }
.pjmodal__bullets li { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; font-family: var(--font-body); color: var(--navy); font-size: 20px; text-align: right; }
.pjmodal__ck { width: 26px; height: 26px; border-radius: 50%; background: var(--navy); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.pjmodal__ck img { width: 14px; height: 14px; display: block; }

/* ---- mobile: form card on top, info (lead + bullets) below ---- */
@media (max-width: 768px) {
  .pjmodal__box { flex-direction: column; width: 92vw; max-height: 90vh; overflow-y: auto; background: transparent; box-shadow: none; border-radius: 0; }
  .pjmodal__form { border-radius: 12px; box-shadow: 0 12px 44px rgba(3, 12, 32, 0.35); padding: 42px 20px 26px; }
  .pjmodal__form-title { font-size: 30px; }
  .pjmodal__row { flex-direction: column; gap: 14px; }   /* Figma 2297:7 — all fields full-width */
  .pjmodal__field { height: 50px; font-size: 18px; }
  .pjmodal__opt { font-size: 18px; height: 48px; }
  .pjmodal__cta { font-size: 24px; height: 60px; }
  .pjmodal__info { background: transparent; padding: 22px 4px 6px; }
  .pjmodal__eyebrow, .pjmodal__head, .pjmodal__intro { display: none; }   /* mobile shows only lead + bullets */
  .pjmodal__lead, .pjmodal__bullets li { color: #fff; }
  .pjmodal__close { top: 6px; left: 6px; width: 40px; height: 40px; }
}
