/* =========================================================
   BB Booking — פופאפ הזמנת הופעות | benaiabarabi.com
   Prefix: .bbk | RTL | black · white · #00FFE9
   ========================================================= */

.bbk{
  --bbk-black:#000;
  --bbk-panel:#070707;
  --bbk-ink:#06121f;
  --bbk-white:#fff;
  --bbk-accent:#00FFE9;
  --bbk-dim:rgba(255,255,255,.46);
  --bbk-muted:rgba(255,255,255,.7);
  --bbk-line:rgba(255,255,255,.16);
  --bbk-line-soft:rgba(255,255,255,.1);
  --bbk-err:#ff6b6b;
  --bbk-font:'Hammer Pro GX','hammerprogx',Heebo,sans-serif;
  --bbk-ease:cubic-bezier(.16,1,.3,1);

  position:fixed;
  inset:0;
  z-index:99999;
  display:grid;
  place-items:center;
  padding:clamp(12px,3vw,40px);
  direction:rtl;
  font-family:var(--bbk-font);
  -webkit-font-smoothing:antialiased;
}
.bbk[hidden]{display:none}
.bbk *,.bbk *::before,.bbk *::after{box-sizing:border-box}

/* רקע */
.bbk-backdrop{
  position:absolute;inset:0;
  background:rgba(0,0,0,.78);
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
  opacity:0;
  transition:opacity .45s var(--bbk-ease);
}
.bbk.is-open .bbk-backdrop{opacity:1}

/* המודאל */
.bbk-modal{
  position:relative;
  width:min(1060px,100%);
  max-height:calc(100dvh - clamp(24px,6vw,80px));
  overflow:auto;
  overscroll-behavior:contain;
  display:grid;
  grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);
  background:var(--bbk-panel);
  border:1px solid var(--bbk-line);
  border-radius:22px;
  color:var(--bbk-white);
  opacity:0;
  transform:translateY(22px) scale(.985);
  transition:opacity .5s var(--bbk-ease),transform .55s var(--bbk-ease);
}
.bbk.is-open .bbk-modal{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  .bbk-backdrop,.bbk-modal{transition:none}
  .bbk-modal{transform:none}
}

/* כפתור סגירה */
.bbk-x{
  position:absolute;top:14px;left:14px;z-index:4;
  width:40px;height:40px;
  display:grid;place-items:center;
  background:rgba(0,0,0,.45);
  border:1px solid var(--bbk-line);
  border-radius:50%;
  color:var(--bbk-white);
  cursor:pointer;
  transition:background .3s var(--bbk-ease),color .3s var(--bbk-ease),border-color .3s var(--bbk-ease);
}
.bbk-x svg{width:19px;height:19px}
.bbk-x:hover,.bbk-x:focus-visible{background:var(--bbk-accent);border-color:var(--bbk-accent);color:var(--bbk-ink)}

/* תמונה */
.bbk-visual{
  position:relative;
  background-size:cover;
  background-position:center 18%;
  min-height:100%;
}
.bbk-visual-veil{
  position:absolute;inset:0;
  background:
    linear-gradient(270deg,rgba(7,7,7,1) 0%,rgba(7,7,7,.55) 34%,rgba(7,7,7,.06) 72%,rgba(7,7,7,0) 100%),
    linear-gradient(180deg,rgba(0,0,0,.35) 0%,rgba(0,0,0,0) 32%,rgba(0,0,0,.62) 100%);
}
.bbk-visual-foot{
  position:absolute;inset-inline-start:0;inset-inline-end:0;bottom:0;
  padding:24px 26px;
  text-align:right;
}
.bbk-visual-label{
  display:block;
  color:var(--bbk-dim);
  font-size:.72rem;font-weight:600;letter-spacing:.22em;
  margin-bottom:6px;
}
.bbk-visual-phone{
  color:var(--bbk-accent) !important;
  font-size:1.28rem;font-weight:800;
  text-decoration:none !important;
  direction:ltr;unicode-bidi:isolate;display:inline-block;
}

/* פאנל הטופס */
.bbk-panel{padding:clamp(26px,3.4vw,46px) clamp(22px,3vw,44px) clamp(24px,3vw,38px)}

.bbk-head{margin-bottom:clamp(20px,2.4vw,30px)}
.bbk-logo{
  display:block;width:46px;height:auto;margin:0 0 14px;
  filter:brightness(0) invert(1);
  opacity:.9;
}
.bbk-kicker{
  display:block;
  color:var(--bbk-accent);
  font-size:.74rem;font-weight:700;letter-spacing:.24em;
  margin-bottom:10px;
}
.bbk .bbk-title{
  font-family:var(--bbk-font) !important;
  color:var(--bbk-white) !important;
  font-size:clamp(1.6rem,3vw,2.35rem) !important;
  font-weight:800 !important;
  line-height:1.12 !important;
  margin:0 !important;padding:0 !important;
}
.bbk-intro{
  color:var(--bbk-muted) !important;
  font-size:.96rem;line-height:1.7;
  margin:12px 0 0 !important;
  max-width:46ch;
}

/* שדות */
.bbk-grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(14px,1.8vw,22px)}
.bbk-field{display:block;min-width:0}
.bbk-field--wide{grid-column:1 / -1}
.bbk-label{
  display:block;
  color:var(--bbk-dim);
  font-size:.76rem;font-weight:600;letter-spacing:.12em;
  margin-bottom:7px;
}
.bbk-field input,
.bbk-field select,
.bbk-field textarea{
  width:100%;
  background:transparent !important;
  border:0 !important;
  border-bottom:1px solid var(--bbk-line) !important;
  border-radius:0 !important;
  box-shadow:none !important;
  color:var(--bbk-white) !important;
  font-family:var(--bbk-font) !important;
  font-size:1rem !important;
  font-weight:600 !important;
  padding:10px 2px !important;
  transition:border-color .3s var(--bbk-ease);
  -webkit-appearance:none;appearance:none;
}
.bbk-field textarea{resize:vertical;line-height:1.6;min-height:64px}
.bbk-field select{
  background-image:linear-gradient(45deg,transparent 50%,rgba(255,255,255,.55) 50%),linear-gradient(135deg,rgba(255,255,255,.55) 50%,transparent 50%) !important;
  background-position:left 12px top 22px,left 6px top 22px !important;
  background-size:6px 6px,6px 6px !important;
  background-repeat:no-repeat !important;
  cursor:pointer;
}
.bbk-field select option{background:#0b0b0b;color:#fff}
.bbk-field input:focus,
.bbk-field select:focus,
.bbk-field textarea:focus{
  outline:none !important;
  border-bottom-color:var(--bbk-accent) !important;
}
.bbk-field input:focus-visible,
.bbk-field select:focus-visible,
.bbk-field textarea:focus-visible{outline:none !important}
.bbk-field.has-error input,
.bbk-field.has-error select,
.bbk-field.has-error textarea{border-bottom-color:var(--bbk-err) !important}
/* תיקון אייקון התאריך בדפדפני Webkit על רקע כהה */
.bbk-field input[type="date"]::-webkit-calendar-picker-indicator{filter:invert(1);opacity:.5;cursor:pointer}

/* מלכודת ספאם */
.bbk-hp{position:absolute !important;left:-9999px !important;width:1px;height:1px;overflow:hidden}

/* שגיאה */
.bbk-error{
  color:var(--bbk-err) !important;
  font-size:.9rem;font-weight:600;
  margin:16px 0 0 !important;
}

/* שליחה */
.bbk-submit{
  display:inline-flex;align-items:center;justify-content:center;gap:12px;
  width:100%;
  margin-top:clamp(20px,2.4vw,28px);
  background:var(--bbk-accent);
  border:1px solid var(--bbk-accent);
  border-radius:999px;
  color:var(--bbk-ink);
  font-family:var(--bbk-font);
  font-size:1.02rem;font-weight:800;line-height:1;
  padding:18px 30px;
  cursor:pointer;
  transition:background .3s var(--bbk-ease),color .3s var(--bbk-ease);
}
.bbk-submit:hover,.bbk-submit:focus-visible{background:transparent;color:var(--bbk-accent)}
.bbk-submit:focus-visible{outline:2px solid var(--bbk-accent);outline-offset:3px}
.bbk-submit.is-loading{opacity:.55;pointer-events:none}
.bbk-arr{width:18px;height:18px;flex:none;transition:transform .3s var(--bbk-ease)}
.bbk-submit:hover .bbk-arr{transform:translateX(-5px)}

.bbk-note{
  color:var(--bbk-dim) !important;
  font-size:.8rem;line-height:1.6;
  margin:14px 0 0 !important;
}

/* מסך תודה */
.bbk-done{padding:clamp(20px,4vw,40px) 0;text-align:center}
.bbk-done[hidden]{display:none}
.bbk-done-mark{
  display:grid;place-items:center;
  width:64px;height:64px;margin:0 auto 20px;
  border:1px solid var(--bbk-accent);
  border-radius:50%;
  color:var(--bbk-accent);
}
.bbk-done-mark svg{width:28px;height:28px}
.bbk .bbk-done-title{
  font-family:var(--bbk-font) !important;
  color:var(--bbk-white) !important;
  font-size:1.9rem !important;font-weight:800 !important;
  margin:0 0 10px !important;
}
.bbk-done-txt{color:var(--bbk-muted) !important;font-size:1rem;line-height:1.7;margin:0 auto 26px !important;max-width:38ch}
.bbk-done-btn{
  background:transparent;
  border:1px solid var(--bbk-line);
  border-radius:999px;
  color:var(--bbk-white);
  font-family:var(--bbk-font);font-size:.95rem;font-weight:700;
  padding:14px 34px;cursor:pointer;
  transition:border-color .3s var(--bbk-ease),color .3s var(--bbk-ease);
}
.bbk-done-btn:hover{border-color:var(--bbk-accent);color:var(--bbk-accent)}

/* כפתור הפתיחה (שורטקוד) */
.bbk-open{
  display:inline-flex;align-items:center;justify-content:center;
  background:#00FFE9;
  border:1px solid #00FFE9;
  border-radius:999px;
  color:#06121f;
  font-family:'Hammer Pro GX','hammerprogx',Heebo,sans-serif;
  font-size:1rem;font-weight:800;line-height:1;
  padding:16px 34px;
  cursor:pointer;
  transition:background .3s cubic-bezier(.16,1,.3,1),color .3s cubic-bezier(.16,1,.3,1);
}
.bbk-open:hover{background:transparent;color:#00FFE9}
.bbk-open--outline{background:transparent;border-color:#fff;color:#fff}
.bbk-open--outline:hover{background:#00FFE9;border-color:#00FFE9;color:#06121f}

/* נעילת גלילה ברקע */
html.bbk-lock,body.bbk-lock{overflow:hidden !important}

/* ---------- מובייל ---------- */
@media (max-width:860px){
  .bbk{padding:0;place-items:stretch}
  .bbk-modal{
    grid-template-columns:1fr;
    width:100%;
    max-height:100dvh;
    border-radius:0;
    border:0;
  }
  .bbk-visual{min-height:190px;background-position:center 22%}
  .bbk-visual-veil{
    background:linear-gradient(180deg,rgba(0,0,0,.3) 0%,rgba(7,7,7,.15) 40%,rgba(7,7,7,.92) 88%,rgba(7,7,7,1) 100%);
  }
  .bbk-visual-foot{padding:16px 20px}
  .bbk-visual-phone{font-size:1.12rem}
  .bbk-panel{padding:22px 20px 34px}
  .bbk-logo{width:40px;margin-bottom:12px}
  .bbk-grid{grid-template-columns:1fr;gap:16px}
  .bbk-x{top:12px;left:12px;width:38px;height:38px}
}


/* =========================================================
   תיקוני יציבות — הפופאפ תמיד ממורכז ומעל כל שאר האתר
   ========================================================= */
.bbk:not([hidden]){
  display:grid !important;
  place-items:center !important;
  position:fixed !important;
  inset:0 !important;
  z-index:2147483000 !important;
}
.bbk-backdrop{z-index:0}
.bbk-modal{
  position:relative;
  z-index:1;
  margin:auto;
  width:min(1060px,100%) !important;
  max-width:1060px !important;
  max-height:calc(100dvh - clamp(24px,6vw,80px)) !important;
}
@media (max-width:860px){
  .bbk-modal{
    width:100% !important;
    max-width:100% !important;
    max-height:100dvh !important;
  }
}


/* =========================================================
   דריסת עיצוב הכפתורים הגלובלי של האתר + צמצום גובה הטופס
   ========================================================= */
.bbk .bbk-submit,
.bbk .bbk-submit:hover,
.bbk .bbk-submit:focus,
.bbk .bbk-submit:active,
.bbk .bbk-submit:focus-visible{
  box-shadow:none !important;
  text-shadow:none !important;
  border-radius:999px !important;
}
.bbk .bbk-submit{
  background:var(--bbk-accent) !important;
  border:1px solid var(--bbk-accent) !important;
  color:var(--bbk-ink) !important;
}
.bbk .bbk-submit:hover,
.bbk .bbk-submit:focus,
.bbk .bbk-submit:focus-visible{
  background:transparent !important;
  border-color:var(--bbk-accent) !important;
  color:var(--bbk-accent) !important;
}
.bbk .bbk-done-btn{
  background:transparent !important;
  border:1px solid var(--bbk-line) !important;
  color:var(--bbk-white) !important;
  box-shadow:none !important;border-radius:999px !important;
}
.bbk .bbk-done-btn:hover,
.bbk .bbk-done-btn:focus,
.bbk .bbk-done-btn:focus-visible{
  background:transparent !important;
  border-color:var(--bbk-accent) !important;
  color:var(--bbk-accent) !important;
}
.bbk .bbk-x{background:rgba(0,0,0,.45) !important;color:var(--bbk-white) !important;box-shadow:none !important}
.bbk .bbk-x:hover,
.bbk .bbk-x:focus,
.bbk .bbk-x:focus-visible{
  background:var(--bbk-accent) !important;
  color:var(--bbk-ink) !important;
}

/* צמצום: הטופס וכפתור השליחה נכנסים למסך בלי גלילה */
.bbk-panel{padding:clamp(20px,2.4vw,32px) clamp(20px,2.6vw,38px) clamp(18px,2.2vw,28px) !important}
.bbk-head{margin-bottom:clamp(12px,1.5vw,18px)}
.bbk-logo{width:38px;margin-bottom:10px}
.bbk-kicker{font-size:.7rem;margin-bottom:7px}
.bbk .bbk-title{font-size:clamp(1.35rem,2.3vw,1.85rem) !important}
.bbk-intro{font-size:.88rem;line-height:1.55;margin:8px 0 0 !important}
.bbk-grid{gap:clamp(9px,1.1vw,15px)}
.bbk-label{font-size:.72rem;margin-bottom:4px}
.bbk-field input,
.bbk-field select,
.bbk-field textarea{padding:7px 2px !important;font-size:.96rem !important}
.bbk-field textarea{min-height:46px;line-height:1.45}
.bbk-field select{background-position:left 12px top 18px,left 6px top 18px !important}
.bbk-submit{margin-top:clamp(14px,1.6vw,20px);padding:15px 28px}
.bbk-note{font-size:.74rem;margin:9px 0 0 !important}
.bbk-error{margin:10px 0 0 !important;font-size:.85rem}

/* מסכים נמוכים — מוותרים על משפט הפתיחה ועל הערת הפרטיות */
@media (max-height:820px) and (min-width:861px){
  .bbk-intro,.bbk-note{display:none}
  .bbk-logo{width:34px;margin-bottom:8px}
}


/* =========================================================
   תיקוני מובייל: בלי בריחה לצדדים, ותמונת קהל למטה
   ========================================================= */
/* מלכודת הספאם — הסתרה בלי למתוח את הרוחב */
.bbk .bbk-hp{
  position:absolute !important;
  left:auto !important;right:auto !important;
  width:1px !important;height:1px !important;
  margin:-1px !important;padding:0 !important;
  overflow:hidden !important;
  clip:rect(0 0 0 0) !important;
  clip-path:inset(50%) !important;
  white-space:nowrap !important;
  border:0 !important;
}
.bbk-modal{overflow-x:hidden !important}
.bbk-panel,.bbk-grid,.bbk-field{min-width:0}
.bbk-field input,
.bbk-field select,
.bbk-field textarea{max-width:100%}

@media (max-width:860px){
  /* התמונה של בניה יורדת במובייל — במקומה תמונת הקהל בתחתית */
  .bbk-modal{grid-template-rows:1fr auto}
  .bbk-panel{order:1}
  .bbk-visual{
    order:2;
    min-height:0;
    height:clamp(120px,18vh,170px);
    background-image:url('https://benaiabarabi.com/wp-content/uploads/2026/06/crowd.png') !important;
    background-position:center bottom !important;
    background-size:cover !important;
  }
  .bbk-visual-veil{
    background:linear-gradient(180deg,#070707 0%,rgba(7,7,7,.72) 26%,rgba(7,7,7,.3) 56%,rgba(7,7,7,0) 100%) !important;
  }
  .bbk-visual-foot{display:none}
}


/* =========================================================
   הסכמות — אישור מדיניות ודיוור
   ========================================================= */
.bbk-consent{display:grid;gap:9px;margin-top:clamp(12px,1.5vw,18px)}
.bbk-check{
  display:flex;align-items:flex-start;gap:10px;
  cursor:pointer;
  color:var(--bbk-dim);
  font-size:.8rem;line-height:1.5;
  margin:0;
}
.bbk-check input[type="checkbox"]{
  appearance:none;-webkit-appearance:none;
  flex:none;position:relative;
  width:18px;height:18px;margin:1px 0 0 !important;padding:0 !important;
  background:transparent !important;
  border:1px solid rgba(255,255,255,.4) !important;
  border-radius:5px !important;
  cursor:pointer;
  transition:background .2s ease,border-color .2s ease;
}
.bbk-check input[type="checkbox"]:checked{
  background:var(--bbk-accent) !important;
  border-color:var(--bbk-accent) !important;
}
.bbk-check input[type="checkbox"]:checked::after{
  content:"";position:absolute;
  inset-inline-start:5px;top:1px;
  width:5px;height:10px;
  border:solid var(--bbk-ink);
  border-width:0 2px 2px 0;
  transform:rotate(45deg);
}
.bbk-check input[type="checkbox"]:focus-visible{outline:2px solid var(--bbk-accent);outline-offset:2px}
.bbk-check a{color:var(--bbk-white) !important;text-decoration:underline !important}
.bbk-check a:hover{color:var(--bbk-accent) !important}
.bbk-consent.has-error input[type="checkbox"]{border-color:var(--bbk-err) !important}
@media (max-height:820px) and (min-width:861px){
  .bbk-consent{margin-top:10px;gap:7px}
  .bbk-check{font-size:.76rem}
}
