* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #071a3d;
  --gold: #f9b934;
  --ink: #13203f;
  --field-border: #dfe4ee;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  font-family: 'Heebo', Arial, sans-serif;
  background: var(--navy);
  color: #fff;
}

/* ========================================
   HERO
======================================== */

.bs-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  padding: clamp(110px, 12vh, 150px)
           clamp(20px, 4.5vw, 80px)
           50px;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;

  background: linear-gradient(
    180deg,
    #0a2445 0%,
    #0e2e50 100%
  );
}

/* תמונת רקע */

.bs-bg {
  position: absolute;
  z-index: -1;
  inset: 0;

  background:
    url(/design/images/hero-visual.png?v=5)
    left center / auto 101% no-repeat;

  -webkit-mask-image: linear-gradient(
    90deg,
    #000 0%,
    #000 65%,
    transparent 100%
  );

  mask-image: linear-gradient(
    90deg,
    #000 0%,
    #000 65%,
    transparent 100%
  );
}

/* ========================================
   LOGO
======================================== */

.bs-logo {
  position: absolute;
  top: 24px;
  left: 28px;
  z-index: 5;
  background: none;
  padding: 0;
}

.bs-logo img {
  display: block;
  height: 84px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.45));
}

/* ========================================
   CONTENT - RIGHT SIDE
======================================== */

.bs-content {
  position: relative;
  z-index: 2;

  width: 100%;
  /* max-width: 820px; */
  margin-inline-start: auto;
  margin-inline-end: auto;
  align-self: flex-end;
  text-align: right;
  direction: rtl;
}

.bs-content h1 {
  font-size: clamp(34px, 5.2vw, 78px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.5px;

  text-shadow: 0 4px 20px rgba(0,0,0,.4);
}

.bs-gold {
  color: var(--gold);
  font-weight: 800;
  font-size: clamp(22px, 2.6vw, 38px);

  margin: 22px 0 14px;

  background: linear-gradient(
    180deg,
    #ffd36a,
    #f5a623
  );

  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bs-content p {
  font-size: clamp(17px, 1.75vw, 26px);
  line-height: 1.5;
  font-weight: 500;
  color: #f1f4fb;
}

/* ========================================
   FEATURES
======================================== */

.bs-features {
  list-style: none;

  display: flex;
  flex-wrap: wrap;

  margin: 40px 0 26px;
  gap: 0;
}

.bs-features li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;

  gap: 8px;

  padding: 0 clamp(12px, 1.9vw, 28px);

  border-inline-start: 2px solid rgba(255,255,255,.55);

  text-align: center;
  font-weight: 700;
  font-size: clamp(15px, 1.4vw, 21px);
  line-height: 1.1;
}

.bs-features li:first-child {
  border: 0;
  padding-inline-start: 0;
}

.bs-features svg {
  width: clamp(38px, 3.4vw, 52px);
  height: clamp(38px, 3.4vw, 52px);

  fill: none;
  stroke: var(--gold);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;

  color: var(--gold);

  filter: drop-shadow(
    0 0 8px rgba(249,185,52,.6)
  );
}

/* ========================================
   FORM POSITION
======================================== */

#P198 {
  position: relative !important;
  z-index: 20;

  width: 100% !important;
  max-width: 1100px;

  margin: 55px auto 0 !important;

  direction: rtl;
}

/* ========================================
   FORM CONTAINER
======================================== */

#P198 .lead-form {
  width: 100%;

  border: 0 !important;
  margin: 0;

  padding: 20px 26px;

  background: linear-gradient(
    180deg,
    #fff,
    #eef1f7
  );

  border-radius: 26px;

  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}

#P198 .oneLine {
  width: 100%;
}

#P198 .oneLine h3 {
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
  margin: 0 0 15px;
  text-align: right;
}

/* ========================================
   FORM GRID
======================================== */

#P198 .row {
  display: grid !important;

  grid-template-columns: repeat(4, minmax(0, 1fr));

  gap: 12px;
  width: 100%;

  position: static !important;
  background: transparent !important;

  align-items: center;
}

#P198 .row > .form-group {
  min-width: 0;
  width: 100%;
  margin: 0;
}

/* קבוצת האימייל והכפתור */

#P198 .row > .form-group:last-of-type {
  grid-column: span 2;

  display: grid;

  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);

  align-items: center;
  gap: 12px;
}

/* אימייל */

#P198 .row > .form-group:last-of-type > .mbl_input {
  grid-column: 1;
  grid-row: 1;
}

/* כפתור */

#P198 .row > .form-group:last-of-type > .form-btn {
  grid-column: 2;
  grid-row: 1;

  display: flex !important;
  align-items: center !important;

  width: 100% !important;
  min-width: 0 !important;

  margin: 0 !important;
  padding: 0 !important;
}

#P198 .form-btn > div {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
}

/* ========================================
   INPUT FIELDS
======================================== */

#P198 .mbl_input {
  position: relative;

  display: flex;
  align-items: center;

  width: 100%;
  min-width: 0;
  height: 66px;

  background: #fff;
  border: 1.5px solid var(--field-border);
  border-radius: 16px;

  padding: 0 16px;

  box-shadow:
    inset 0 2px 4px rgba(0,0,0,.04),
    0 3px 8px rgba(10,30,70,.08);
}

/* SVG ICON */

#P198 .placeholder {
  position: absolute;

  right: 16px;
  top: 50%;
  transform: translateY(-50%);

  display: flex;
  align-items: center;
  justify-content: center;

  pointer-events: none;
}

#P198 .placeholder svg {
  position: static;

  width: 25px;
  height: 25px;

  fill: none;
  stroke: #1d2b4f;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* INPUT */

#P198 .form-control {
  display: block;

  width: 100% !important;
  min-width: 0;
  height: 100% !important;

  padding: 0 42px 0 5px !important;

  border: 0 !important;
  outline: none;

  background: transparent !important;

  font: 500 18px 'Heebo', sans-serif;
  color: var(--ink);

  text-align: right !important;
  direction: rtl !important;

  box-shadow: none !important;
}

#P198 .form-control::placeholder {
  color: #1d2b4f;
  opacity: .8;
  text-align: right;
}

/* ========================================
   SUBMIT BUTTON
======================================== */

#P198 #sendbtn {
  display: flex !important;

  align-items: center;
  justify-content: center;

  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;

  height: 66px !important;

  margin: 0 !important;
  padding: 0 12px !important;

  border: 0;
  border-radius: 16px;

  cursor: pointer;

  font: 800 19px 'Heebo', sans-serif;
  white-space: nowrap;

  color: #0b1a3a;

  background: linear-gradient(
    180deg,
    #fbc94d,
    #e49a1c
  );

  box-shadow:
    0 6px 18px rgba(228,154,28,.45),
    inset 0 1px 0 rgba(255,255,255,.5);

  transition: transform .2s, filter .2s;
}

#P198 #sendbtn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

/* ========================================
   FORM NOTE
======================================== */

#P198 small {
  display: block;
  margin-top: 12px;
  text-align: center;
  color: var(--ink);
  font-size: 14px;
}

/* ========================================
   TABLET
======================================== */

@media (max-width: 1100px) {

  .bs-hero {
    padding-top: 110px;
  }

  .bs-content {
    max-width: 700px;
  }

  #P198 {
    max-width: 900px;
  }

  #P198 .lead-form {
    padding: 18px;
  }

  #P198 .row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #P198 .row > .form-group:last-of-type {
    grid-column: span 2;
  }

}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 767px) {

  .bs-hero {
    min-height: 100vh;
    padding: 25px 18px 35px;
    justify-content: flex-start;
  }

  .bs-bg {
    opacity: .35;

    background-position: left top;
    background-size: auto 75%;

    -webkit-mask-image: linear-gradient(
      180deg,
      #000 0%,
      transparent 100%
    );

    mask-image: linear-gradient(
      180deg,
      #000 0%,
      transparent 100%
    );
  }

  .bs-logo {
    position: relative;
    top: auto;
    left: auto;

    align-self: flex-end;
    margin-bottom: 30px;
  }

  .bs-logo img {
    height: 42px;
  }

  .bs-content {
    width: 100%;
    max-width: 100%;
    margin: 0;
    text-align: right;
  }

  .bs-content h1 {
    font-size: clamp(32px, 8vw, 46px);
  }

  .bs-content p {
    font-size: 17px;
  }

  .bs-content p br {
    display: none;
  }

  .bs-features {
    gap: 20px 0;
    justify-content: center;
  }

  .bs-features li {
    width: 33.333%;
    padding: 0 8px;
    border: 0;
  }

  /* הטופס נשאר מתחת לטקסט */

  #P198 {
    width: 100% !important;
    max-width: 100%;
    margin: 35px auto 0 !important;
  }

  #P198 .lead-form {
    padding: 16px;
    border-radius: 20px;
  }

  #P198 .row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  #P198 .row > .form-group:last-of-type {
    grid-column: auto;

    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  #P198 .row > .form-group:last-of-type > .mbl_input,
  #P198 .row > .form-group:last-of-type > .form-btn {
    grid-column: auto;
    grid-row: auto;
    width: 100% !important;
  }

  #P198 .mbl_input {
    height: 58px;
  }

  #P198 #sendbtn {
    height: 58px !important;
    font-size: 18px;
  }

  #P198 .oneLine h3 {
    font-size: 20px;
  }

}

/* ========================================
   REDUCED MOTION
======================================== */

@media (prefers-reduced-motion: reduce) {
  #P198 #sendbtn {
    transition: none;
  }

  #P198 #sendbtn:hover {
    transform: none;
  }
}
svg {
    width: 20px;
    height: 20px;
}


.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-modal-content {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    text-align: right;
    font-family: Arial, Helvetica, sans-serif;
}

.custom-modal-close {
    position: absolute;
    top: 10px;
    left: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #888;
}

.custom-modal-close:hover {
    color: #000;
}
