/* ============================================================
   קליטת פרטי מוטבים - עיצוב לפי פיגמה (דסקטופ: עמוד 7, מובייל: 38:46).
   גרסה 5.1.0 - לפי ההדמיה שאושרה, עם תיקוני המעצבת (מובייל: 76:23; דסקטופ: יישור למרכז, hover).

   כל הכללים תחומים תחת .bi-root, ולכל המחלקות יש קידומת bi-, כדי שהעיצוב של
   התבנית באתר לא ישפיע על הטופס, והטופס לא ישפיע על שאר האתר.
   הפריסה מתחלפת בין מובייל לדסקטופ לפי הרוחב של הטופס עצמו (container query),
   ולא לפי רוחב החלון.
   ============================================================ */

.bi-root {
  --bi-brand: #0173c1;
  --bi-navy: #101a43;
  --bi-mist: #f1f5ff;
  --bi-white: #ffffff;
  --bi-muted: rgba(0, 0, 0, 0.6);
  --bi-error: #c4122f;
  --bi-font: "Heebo", "Fb Absoluti Heb", "Arial Hebrew", Arial, sans-serif;
  color-scheme: light;
  direction: rtl;
  background: var(--bi-mist);
  color: var(--bi-navy);
  font-family: var(--bi-font);
  font-size: 16px;
  line-height: 1.4;
  text-align: right;
}
.bi-root, .bi-root *, .bi-root *::before, .bi-root *::after { box-sizing: border-box; }

/* איפוס עדין מול סגנונות התבנית */
.bi-root h1, .bi-root h2, .bi-root h3, .bi-root p, .bi-root ul, .bi-root li {
  margin: 0; padding: 0; font-family: inherit; letter-spacing: normal; text-transform: none; border: 0;
}
.bi-root a { color: inherit; }
.bi-root img { max-width: none; border: 0; box-shadow: none; }
.bi-root button, .bi-root input { font-family: inherit; letter-spacing: normal; text-transform: none; box-shadow: none; min-height: 0; }
.bi-root :focus-visible { outline: 3px solid var(--bi-navy); outline-offset: 2px; }

.bi-page {
  container-type: inline-size; container-name: bipage;
  width: 100%; background: var(--bi-mist); overflow: hidden; position: relative;
}
.bi-page .bi-only-desktop { display: none; }

/* ===== מובייל (ברירת מחדל) ===== */
.bi-hero {
  position: relative;
  background: radial-gradient(120% 90% at 80% 25%, #32aaf3 0%, #1a8fda 45%, #0d81ce 70%, #0173c1 100%);
  color: var(--bi-white);
  padding: 0;
  text-align: center;
}
.bi-hero-copy { padding: 39px 16px 58px; }
.bi-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("img/bg-mobile.png") center top / 100% auto no-repeat;
}
.bi-hero > * { position: relative; }
.bi-logo { display: inline-block; line-height: 0; }
.bi-logo img { display: block; }
.bi-logo .bi-logo-m { width: 139px; height: auto; margin-inline: auto; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.15)); }
.bi-logo .bi-logo-d { display: none; }

.bi-root .bi-headline { margin: 33px 0 0; font-weight: 700; text-shadow: 0 4px 4px rgba(0, 0, 0, 0.15); text-wrap: balance; }
.bi-headline .bi-l1, .bi-headline .bi-l2 { display: block; color: var(--bi-mist); font-size: 30px; line-height: 1.09; }
.bi-root .bi-lede { margin: 16px auto 0; color: var(--bi-white); font-size: 18px; line-height: 1.26; font-weight: 400; text-shadow: 0 4px 4px rgba(0, 0, 0, 0.1); }
.bi-lede b { font-weight: 700; }

.bi-intro { margin: 37px auto 0; max-width: 300px; text-align: center; text-shadow: 0 4px 4px rgba(0, 0, 0, 0.1); }
.bi-root .bi-intro h3 { margin: 0; color: var(--bi-white); font-size: 18px; font-weight: 700; line-height: 1.26; }
.bi-root .bi-intro p { margin: 6px 0 0; color: var(--bi-white); font-size: 18px; font-weight: 400; line-height: 1.26; }
.bi-root .bi-intro a { color: inherit; text-decoration: underline; text-underline-offset: 3px; transition: color .15s; }
.bi-root .bi-intro a:hover, .bi-root .bi-intro a:focus-visible { color: var(--bi-navy); }

.bi-panel { position: relative; background: var(--bi-mist); box-shadow: 0 2px 6px rgba(0,0,0,.25), 0 4px 4px rgba(0,0,0,.25); margin-top: -26px; padding: 17px 16px 8px; }
.bi-disclaimer-wrap { position: relative; background: var(--bi-mist); padding: 9px 16px 0; }
.bi-panel::before {
  content: ""; position: absolute; top: -4px; left: -5px; right: -5px; height: 16px; filter: blur(2px);
  background: url("img/strip-mobile.png") center / 100% 100% no-repeat;
}

.bi-form-card { position: relative; max-width: 273px; margin-inline: auto; text-align: center; }
.bi-root .bi-form-title { margin: 0; color: var(--bi-brand); font-size: 20px; font-weight: 700; line-height: 30px; }
.bi-root .bi-form-sub { margin: 0 0 10px; color: var(--bi-brand); font-size: 14px; line-height: 17px; }
.bi-form-sub u { text-underline-offset: 2px; }

.bi-root .bi-form { display: grid; gap: 4px; margin: 0; padding: 0; background: none; border: 0; }
.bi-field { display: grid; gap: 0; text-align: right; width: 100%; max-width: 246px; justify-self: center; }
.bi-root .bi-field label { display: block; margin: 0; font-size: 12px; font-weight: 400; line-height: 25px; color: var(--bi-muted); padding-inline-start: 10px; }
.bi-root .bi-field input {
  display: block; width: 100%; height: 28px; margin: 0; border: 1px solid var(--bi-brand); border-radius: 20px; background: transparent;
  font-size: 14px; line-height: normal; color: var(--bi-navy); padding: 0 14px; direction: rtl; text-align: right;
}
.bi-root .bi-field input[type="tel"], .bi-root .bi-field input[type="email"] { direction: ltr; text-align: right; }
.bi-root .bi-field input:focus { outline: 2px solid var(--bi-brand); outline-offset: 1px; }
.bi-root .bi-field input[aria-invalid="true"] { border-color: var(--bi-error); }
.bi-err { min-height: 0; font-size: 11px; line-height: 14px; color: var(--bi-error); padding-inline-start: 12px; text-align: right; }
.bi-err:empty { display: none; }
.bi-form-error { font-size: 13px; line-height: 1.35; color: var(--bi-error); text-align: center; margin-top: 8px; }
.bi-form-error:empty { display: none; }

.bi-consent { display: grid; grid-template-columns: auto 1fr; gap: 6px; align-items: start; text-align: right; margin-top: 12px; }
.bi-root .bi-consent input { width: 13px; height: 13px; margin: 2px 0 0; padding: 0; accent-color: var(--bi-brand); }
.bi-root .bi-consent label { font-size: 12px; font-weight: 300; color: var(--bi-navy); line-height: 1.25; }
.bi-consent label a { text-decoration: underline; text-underline-offset: 2px; }

.bi-turnstile { display: flex; justify-content: center; }
.bi-turnstile:empty { display: none; }

.bi-root .bi-cta {
  display: block; margin: 15px auto 0; padding: 0; width: 100%; max-width: 246px; height: 28px; border: 0; border-radius: 20px;
  background: var(--bi-brand); color: var(--bi-white); font-size: 16px; font-weight: 700; line-height: 1; cursor: pointer;
}
.bi-root .bi-cta:hover { background: #0166ac; color: var(--bi-white); }
.bi-root .bi-cta:active { transform: translateY(1px); }
.bi-root .bi-cta[disabled] { opacity: .7; cursor: wait; }

.bi-disclaimer { display: grid; grid-template-columns: auto 1fr; gap: 4px; max-width: 210px; margin: 8px auto 0; text-align: right; color: #000; }
.bi-disclaimer .bi-star { font-size: 16px; font-weight: 300; line-height: 1; }
.bi-disclaimer .bi-txt { font-size: 12px; font-weight: 300; line-height: 1.25; }
.bi-root .bi-disclaimer .bi-txt p { margin: 0; color: inherit; font-size: inherit; line-height: inherit; }
.bi-disclaimer .bi-more-part.bi-collapsed { display: none; }
.bi-root .bi-more-btn { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; padding: 0; border: 0; background: none; font-size: 10px; font-weight: 300; color: #000; cursor: pointer; }
.bi-root .bi-more-btn:hover { background: none; color: #000; }
.bi-more-btn img { width: 10px; height: 8px; transition: transform .2s; }
.bi-more-btn[aria-expanded="true"] img { transform: rotate(180deg); }

.bi-about { background: var(--bi-mist); color: var(--bi-navy); text-align: center; padding: 24px 16px 24px; }
.bi-root .bi-footer-links { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 12px; }
.bi-root .bi-footer-links li { list-style: none; margin: 0; }
.bi-root .bi-footer-links a { font-size: 12px; font-weight: 400; text-decoration: none; color: var(--bi-navy); white-space: nowrap; }
.bi-root .bi-footer-links a:hover { text-decoration: underline; }

/* ===== דסקטופ ===== */
@container bipage (min-width: 900px) {
  .bi-page .bi-only-desktop { display: revert; }
  .bi-page .bi-disclaimer.bi-foot { display: grid; }
  .bi-page .bi-only-mobile { display: none !important; }

  .bi-hero {
    background: radial-gradient(130% 130% at 28% 0%, #0173c1 0%, #0d81ce 25%, #1a8fda 50%, #32aaf3 100%);
    padding: clamp(110px, 7.6cqw, 146px) clamp(24px, 4cqw, 80px) 24px; text-align: right;
  }
  .bi-hero-copy { padding: 0; }
  /* הלוגו בפינה הימנית העליונה של העמוד, מחוץ לגוש הטקסט, כדי שהטקסט והטופס יתמרכזו יחד */
  /* (המיקום יחסי לרשת, שמתחילה אחרי הריפוד העליון והימני של האזור הכחול - לכן מקזזים אותו) */
  .bi-logo {
    position: absolute;
    top: calc(clamp(24px, 1.9cqw, 36px) - clamp(110px, 7.6cqw, 146px));
    right: calc(clamp(24px, 3.6cqw, 70px) - clamp(24px, 4cqw, 80px));
  }
  .bi-hero::before { background-image: url("img/bg-desktop.png"); background-position: center top; }
  /* הטקסט והטופס כגוש אחד במרכז העמוד */
  .bi-hero-grid {
    display: grid; grid-template-columns: minmax(0, 700px) minmax(0, 525px); justify-content: center;
    column-gap: clamp(40px, 6cqw, 140px); margin-inline: auto; align-items: center;
  }
  .bi-logo .bi-logo-m { display: none; }
  .bi-logo .bi-logo-d { display: block; width: clamp(170px, 12.6cqw, 243px); height: auto; }
  .bi-hero-copy { display: grid; justify-items: center; text-align: center; }
  .bi-root .bi-headline { margin-top: 0; }
  .bi-headline .bi-l1, .bi-headline .bi-l2 { color: var(--bi-white); font-size: clamp(40px, 3.65cqw, 70px); font-weight: 700; line-height: 1.04; }
  .bi-root .bi-lede { max-width: none; color: var(--bi-mist); margin-top: clamp(20px, 2.4cqw, 46px); font-size: clamp(19px, 1.46cqw, 28px); line-height: 1.36; }
  .bi-intro { margin-top: clamp(28px, 3.1cqw, 60px); max-width: none; text-shadow: none; }
  .bi-root .bi-intro h3 { margin: 0; color: var(--bi-mist); font-size: clamp(21px, 1.56cqw, 30px); font-weight: 700; line-height: 1.27; }
  .bi-root .bi-intro p { margin: 10px 0 0; color: var(--bi-white); font-size: clamp(18px, 1.3cqw, 25px); line-height: 1.52; }

  .bi-panel { background: transparent; box-shadow: none; margin: 0; padding: 0; }
  .bi-panel::before { display: none; }
  .bi-form-card {
    max-width: 525px; margin-top: 0; padding: 45px clamp(32px, 4.6cqw, 88px) 40px; border-radius: 20px;
    background: rgba(255, 255, 255, 0.8); box-shadow: 0 4px 4px rgba(0, 0, 0, 0.2);
  }
  .bi-root .bi-form-title { color: var(--bi-navy); font-size: clamp(25px, 1.56cqw, 30px); white-space: nowrap; }
  .bi-root .bi-form-sub { color: var(--bi-navy); font-size: 18px; line-height: 23px; margin-bottom: 8px; }
  .bi-field { max-width: none; }
  .bi-root .bi-form { gap: 6px; }
  .bi-root .bi-field label { font-size: 16px; line-height: 30px; }
  .bi-root .bi-field input { height: 40px; border-color: var(--bi-brand); font-size: 16px; padding: 0 18px; }
  .bi-err { font-size: 13px; line-height: 16px; }
  .bi-consent { margin-top: 14px; }
  .bi-root .bi-consent label { font-size: 14px; }
  .bi-root .bi-cta { max-width: 348px; height: 40px; font-size: 25px; color: var(--bi-mist); margin-top: 24px; }

  .bi-hero { padding-bottom: clamp(40px, 5cqw, 90px); }
  .bi-disclaimer-wrap { display: none; }
  .bi-disclaimer.bi-foot { max-width: 1491px; margin: 0 auto; color: var(--bi-navy); }
  .bi-disclaimer.bi-foot .bi-star { font-size: 16px; }
  .bi-disclaimer.bi-foot .bi-txt { font-size: clamp(13px, 0.84cqw, 16px); font-weight: 400; line-height: 1.15; }
  .bi-root .bi-disclaimer.bi-foot .bi-txt p { max-width: none; font-weight: 400; line-height: 1.15; }

  .bi-about { background: var(--bi-mist); color: var(--bi-navy); padding: 28px 24px 26px; box-shadow: 4px 0 4px rgba(0,0,0,.25); }
  .bi-root .bi-footer-links { margin-top: 28px; gap: 12px 55px; }
  .bi-root .bi-footer-links a { color: var(--bi-navy); font-size: 16px; }
}

/* ---------- חלון "מעולה, קיבלנו!" ---------- */
.bi-root .bi-modal { position: fixed; inset: 0; display: grid; place-items: center; padding: 16px; background: rgba(16, 26, 67, 0.55); z-index: 99999; direction: rtl; }
.bi-root .bi-modal[hidden] { display: none !important; }
.bi-modal-card {
  position: relative; width: min(301px, 100%); background: var(--bi-mist); border-radius: 20px; color: var(--bi-navy);
  text-align: center; padding: 50px 14px 17px;
}
.bi-root .bi-modal-close { position: absolute; top: 18px; left: 22px; width: 24px; height: 24px; display: grid; place-items: center; padding: 0; border: 0; background: none; cursor: pointer; }
.bi-root .bi-modal-close:hover { background: none; }
.bi-modal-close img { width: 11px; height: 11px; }
.bi-root .bi-modal h2 { margin: 0; color: var(--bi-navy); font-size: 22px; font-weight: 700; line-height: 1.2; }
.bi-root .bi-modal .bi-m1 { margin: 16px auto 0; max-width: 242px; font-size: 16px; line-height: 1.25; color: var(--bi-navy); }
.bi-root .bi-modal .bi-m2 { margin: 26px auto 0; max-width: 274px; font-size: 13px; line-height: 1.35; color: var(--bi-navy); }
.bi-modal .bi-m2 a { text-decoration: underline; text-underline-offset: 2px; }
.bi-modal .bi-m2 .bi-email { direction: ltr; unicode-bidi: isolate; }
.bi-root .bi-modal-logo { display: block; width: 113px; height: auto; margin: 36px auto 0; }
@media (min-width: 700px) {
  .bi-modal-card { width: min(507px, 100%); padding: 82px 47px 39px; }
  .bi-root .bi-modal-close { top: 30px; left: 40px; }
  .bi-modal-close img { width: 15px; height: 15px; }
  .bi-root .bi-modal h2 { font-size: 33px; }
  .bi-root .bi-modal .bi-m1 { margin-top: 24px; max-width: 414px; font-size: 25px; }
  .bi-root .bi-modal .bi-m2 { margin-top: 38px; max-width: 414px; font-size: 20px; }
  .bi-root .bi-modal-logo { width: 147px; margin-top: 56px; }
}
@media (prefers-reduced-motion: reduce) { .bi-root * { transition: none !important; } }

.bi-root.bi-modal-root { background: none; }
