
/* ========================================
   1. משתנים גלובליים
======================================== */

:root {
  --navy: oklch(0.22 0.07 262);
  --gold: oklch(0.82 0.15 80);
  --snow: oklch(0.99 0 0);
  --ink: oklch(0.15 0.01 260);

  --veil-start: oklch(0.2 0.07 262 / 0.85);
  --veil-mid: oklch(0.2 0.07 262 / 0.55);

  --form-bg: oklch(0.98 0.005 260 / 0.95);
  --form-shadow: oklch(0.1 0.05 262 / 0.45);

  --field-bg: oklch(1 0 0);
  --field-border: oklch(0.85 0.01 260);

  --button-top: oklch(0.86 0.14 85);
  --button-bottom: oklch(0.72 0.15 70);
  --button-shadow: oklch(0.75 0.15 75 / 0.4);
}


/* ========================================
   2. הגדרות בסיס
======================================== */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

#root {
  position: relative;
}

body {
  font-family: 'Heebo', system-ui, sans-serif;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

h1,
h2,
p {
  margin: 0;
}

[hidden] {
  display: none !important;
}


/* ========================================
   3. אזור תמונת הרקע
======================================== */

.landing {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--navy);
  color: var(--snow);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 80% center;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    var(--veil-start) 0%,
    var(--veil-mid) 40%,
    transparent 65%
  );
}

.logo {
  position: absolute;
  left: 24px;
  top: 24px;
  z-index: 10;
  height: 96px;
  width: auto;
}


/* ========================================
   4. תוכן וכותרות
======================================== */

.content {
  position: relative;
  z-index: 10;
  margin: 0 auto;
  display: flex;
  min-height: 100vh;
  max-width: 1500px;
  flex-direction: column;
  justify-content: space-between;
  padding: 144px 20px 32px;
}

.headlines {
  text-align: center;
}

h1 {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.05;
}

h2 {
  margin-top: 24px;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--gold);
}

.intro {
  margin: 24px auto 0;
  max-width: 576px;
  font-size: 18px;
  line-height: 1.375;
}


/* ========================================
   5. כפתורים כלליים
======================================== */

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .9rem 2.2rem;
  border: 0;
  border-radius: 1rem;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--ink);
  background: linear-gradient(
    180deg,
    var(--button-top),
    var(--button-bottom)
  );
  box-shadow: 0 8px 24px var(--button-shadow);
  transition: transform .2s, filter .2s;
  cursor: pointer;
}

.btn-gold:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.btn-gold .icon {
  stroke-width: 2.5;
}


/* ========================================
   6. הודעת תודה
======================================== */

.thanks {
  width: 100%;
  padding: 12px 0;
  text-align: center;
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  color: var(--ink);
}


/* ========================================
   7. מיקום הטופס על התמונה
======================================== */

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

  bottom: 4% !important;
  left: 10% !important;
  right: 10% !important;

  width: 80% !important;
  margin: 0 auto !important;

  direction: rtl;
}


/* ========================================
   8. מעטפת הטופס
======================================== */

#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;
}


/* ========================================
   9. מבנה ארבעת האלמנטים
   שלושה שדות + כפתור
======================================== */

#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;
}

/* קבוצת האימייל והכפתור:
   שניהם נמצאים כרגע באותו form-group ב-HTML */

#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;
}


/* ========================================
   10. עיצוב שדות הקלט
======================================== */

#P198 .mbl_input {
  position: relative;
  display: flex;
  align-items: center;

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

  background: #fff;
  border: 1.5px solid #dfe4ee;
  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 */

#P198 .placeholder {
  position: relative;

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

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

  pointer-events: none;
}

#P198 .placeholder svg {
  width: 25px;
  height: 25px;
  position:absolute;
  bottom:18px;
  fill: none;
  stroke: #1d2b4f;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* שדות הקלט עצמם */

#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: #13203f;

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

  box-shadow: none !important;
}

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


/* ========================================
   11. עיצוב הכפתור
======================================== */

#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);
}


/* ========================================
   12. הערה מתחת לטופס
======================================== */

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


/* ========================================
   13. התאמות לטאבלט
======================================== */

@media (min-width: 768px) {
  .logo {
    left: 40px;
    top: 32px;
    height: 90px;
  }

  .content {
    padding-left: 40px;
    padding-right: 40px;
  }

  h1 {
    font-size: 72px;
  }

  h2 {
    font-size: 48px;
  }

  .intro {
    font-size: 24px;
  }
}

@media (max-width: 1023px) {
  .hero-image {
    opacity: .4;
  }
}


/* ========================================
   14. התאמות לדסקטופ
======================================== */

@media (min-width: 1024px) {
  .content {
    padding-top: 16vh;
  }

  .headlines {
    margin-right: auto;
    width: 44%;
    padding-left: 16px;
    text-align: right;
  }

  .intro {
    margin-left: 0;
    margin-right: 0;
    text-align: center;
  }
}

@media (min-width: 1280px) {
  h1 {
    font-size: 80px;
  }

  h2 {
    font-size: 57.6px;
  }
}

@media (min-width: 1536px) {
  .content {
    max-width: 1860px;
  }

  .headlines {
    width: 660px;
  }
}


/* ========================================
   15. מובייל
======================================== */

@media (max-width: 767px) {

  /* מיקום הטופס */

  #P198 {
    left: 5% !important;
    right: 5% !important;
    width: 90% !important;
    bottom: 20px !important;
  }

  /* מעטפת */

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

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

  /* כל שדה בשורה נפרדת */

  #P198 .row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

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

    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

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

  #P198 .mbl_input {
    height: 54px;
  }

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

  #P198 .form-control {
    font-size: 17px;
  }
}


/* ========================================
   16. נגישות – הפחתת אנימציות
======================================== */

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

  .btn-gold:hover,
  #P198 #sendbtn:hover {
    transform: none;
  }
}
.LV_validation_message {
    margin: 0 0px 0 0px;
    color: #c02130;
    position: absolute;
    bottom: 40px!important; 
    left: auto!important; 
    padding: 0px 5px;
    height: 25px;
    display: block;
    background: #fff;
    width: 100px;
}


/* ========================================
   מניעת חפיפה בין הטופס לטקסט
======================================== */

/* מסכים נמוכים בדסקטופ */
@media (min-width: 768px) and (max-height: 850px) {

  .content {
    padding-top: 110px;
    padding-bottom: 300px;
  }

  #P198 {
    bottom: 20px !important;
  }

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

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

  #P198 .mbl_input,
  #P198 #sendbtn {
    height: 54px !important;
  }

  #P198 small {
    margin-top: 6px;
  }
}

/* מסכים נמוכים במיוחד */
@media (min-width: 768px) and (max-height: 650px) {

  #P198 {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 90% !important;
    margin: 30px auto 20px !important;
  }

  .landing {
    overflow: visible;
  }

  .content {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 20px;
  }
}

/* מובייל */
@media (max-width: 767px) {

  .landing {
    display: flex;
    flex-direction: column;
    overflow: visible;
    min-height: 100vh;
  }

  .content {
    min-height: 0;
    flex: 1;
    padding: 125px 20px 30px;
  }

  #P198 {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    margin: 20px auto 25px !important;
  }

  .headlines {
    padding-bottom: 10px;
  }

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

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;
}
