/* remove unneeded */
#top-bar,
#site-header,
.page-header,
.site-footer,
#site-header-sticky-wrapper {
  display: none;
}

/* overwrite wordpress */
h1,
h2,
h3,
h4,
h5,
h6,
.theme-heading,
.widget-title,
.oceanwp-widget-recent-posts-title,
.comment-reply-title,
.entry-title,
.sidebar-box .widget-title {
  font-family: 'AlmoniNeue', Arial;
}

/* custom css */
.page-template.page-template {
  font-family: 'AlmoniNeue', Arial;
}

:root {
  --f-color-primary: #062443;
  --f-color-secondary: #5AB26B;
  --f-color-text: var(--f-color-primary);

  --f-text-size: 16px;
  --f-content-max-width: 1200px;
  --f-hero-avatar-width: 459px;
  --f-hero-avatar-width-mobile: 220px;
}

html {
  font-size: var(--f-text-size);
}
.bth-landing__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1420px;
  margin: 0 auto;
  padding: 22px 16px 0;
}

.bth-landing__logo-main {
  height: 49px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.bth-landing__logo-main img {
  height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
}

.bth-landing__logo-badge {
  height: 54px;
  display: flex;
  align-items: center;
}

.bth-landing__logo-badge img {
  height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
}

@media (max-width: 800px) {
  .bth-landing__header {
    padding-top: 16px;
  }

  .bth-landing__logo-main {
    height: 32px;
  }

  .bth-landing__logo-badge {
    height: 38px;
  }

  .bth-landing__logo-main img {
    max-width: 150px;
  }
}

/* שלב 2 – hero (כותרות + פס ירוק) */
.bth-landing__hero {
  text-align: center;
  max-width: 1420px;
  margin: 22px auto 0;
  padding: 0 16px;
  line-height: 1.12;
}

.bth-landing__hero-top,
.bth-landing__hero-bottom {
  font-size: clamp(17px, 2vw, 23px);
  font-weight: 500;
  color: var(--f-color-primary);
}

.bth-landing__hero-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 36px);
  margin: 4px 0;
  width: 100vw;
  max-width: 100vw;
  margin-inline: calc(50% - 50vw);
}

.bth-landing__hero-bar {
  flex: 1;
  min-width: 0;
  height: 8px;
  border-radius: 4px;
  background: var(--f-color-secondary);
}

/* RTL: פינה מרובעת בצד קצה המסך, מעוגלת ליד הכותרת */
.bth-landing__hero-title-row .bth-landing__hero-bar:first-child {
  border-start-start-radius: 0;
  border-end-start-radius: 0;
}

.bth-landing__hero-title-row .bth-landing__hero-bar:last-child {
  border-start-end-radius: 0;
  border-end-end-radius: 0;
}

.bth-landing__hero-title {
  margin: 0;
  font-size: clamp(26px, 5vw, 50px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--f-color-primary);
}

@media (max-width: 800px) {
  .bth-landing__hero {
    margin-top: 20px;
  }

  .bth-landing__hero-title-row {
    gap: 12px;
  }
}

/* שלב 3 – תמונה + טופס */
.bth-landing__main {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  max-width: 1420px;
  margin: 46px auto 0;
  padding: 0 16px;
}

.bth-landing__illustration {
  flex: 0 0 40%;
  max-width: 500px;
  min-width: 300px;
  aspect-ratio: 582 / 695;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
}

.bth-landing__illustration img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.bth-landing__form-card {
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
  overflow: visible;
  border: 1px solid var(--f-color-primary);
  border-radius: 10px;
  padding: clamp(20px, 2.4vw, 38px);
  padding-top: 38px;
  background: #fff;
}

.bth-landing__form-pencil {
  position: absolute;
  top: -26px;
  right: 16px;
  z-index: 2;
  background: #fff;
  padding: 7px 11px;
  border-radius: 6px;
  line-height: 0;
}

.bth-landing__form-pencil svg {
  display: block;
  width: 90px;
  height: auto;
}

.bth-landing__form-title {
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 700;
  text-align: right;
  line-height: 1.1;
  color: var(--f-color-primary);
}

.bth-landing__form-subtitle {
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 500;
  text-align: right;
  margin-top: 4px;
  line-height: 1.35;
  color: var(--f-color-primary);
}

.bth-landing__form-content {
  margin-top: 16px;
}

@media (max-width: 800px) {
  .bth-landing__main {
    flex-direction: column;
    align-items: stretch;
    margin-top: 24px;
    gap: 20px;
  }

  .bth-landing__illustration {
    flex: 0 0 auto;
    width: 100%;
    max-width: 270px;
    min-width: 0;
    margin: 0 auto;
  }
}

/* שלב 4 – footer */
.bth-landing__footer {
  max-width: 1420px;
  margin: 32px auto 0;
  padding: 0 16px 36px;
}

.bth-landing__footer-badge {
  display: flex;
  justify-content: center;
}

.bth-landing__footer-badge img {
  width: 172px;
  height: auto;
  object-fit: contain;
  display: block;
}

.bth-landing__footer-info {
  text-align: center;
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--f-color-primary);
}

.bth-landing__footer-info p {
  margin: 0 0 8px;
}

.bth-landing__footer-info p:last-child {
  margin-bottom: 0;
}

.bth-landing__footer-info a {
  color: var(--f-color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 800px) {
  .bth-landing__footer {
    margin-top: 24px;
    padding-bottom: 28px;
  }

  .bth-landing__footer-badge img {
    width: 150px;
  }
}

/* שלב 5 – טופס CF7 (form.txt) */
.bth-landing__form-card .wpcf7-form {
  direction: rtl;
}

/* CF7 autop: ה-JS של הטופס נכנס ל-<p> — מסתירים את התג, הסקרiptים עדיין רצים */
.bth-landing__form-card .wpcf7-form > p:has(script) {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.bth-landing__form-card .wpcf7-form > ul {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.bth-landing__form-card .wpcf7-form > ul > li {
  margin: 0;
  padding: 0;
  min-width: 0;
  list-style: none;
}

.bth-landing__form-card .wpcf7-form > ul > li::marker {
  content: none;
}

.bth-landing__form-card .wpcf7-form ul,
.bth-landing__form-card .wpcf7-form li {
  list-style: none;
}

.bth-landing__form-card li.formText {
  display: none;
}

/* שורה 1: שם פרטי | שם משפחה | טלפון */
.bth-landing__form-card .wpcf7-form > ul > li.formField:has(input[name="firstName"]),
.bth-landing__form-card .wpcf7-form > ul > li.formField:has(input[name="lastName"]),
.bth-landing__form-card .wpcf7-form > ul > li.formField:has(input[name="phone"]) {
  grid-column: span 2;
}

/* מייל — מוסתר (נשאר ב-CF7 לשליחה/לוגיקה, לא מוצג בעיצוב) */
.bth-landing__form-card .wpcf7-form > ul > li.formField:has(input[name="email"]) {
  display: none !important;
}

/* שורה 2: סוג ביטוח | תאריך חידוש */
.bth-landing__form-card .wpcf7-form > ul > li.formField:has(select[name="producttype"]),
.bth-landing__form-card .wpcf7-form > ul > li.formField:has(select[name="renewdate"]) {
  grid-column: span 3;
}

.bth-landing__form-card .wpcf7-form > ul > li#info,
.bth-landing__form-card .wpcf7-form > ul > li.formApprove,
.bth-landing__form-card .wpcf7-form > ul > li.formSubmit {
  grid-column: 1 / -1;
}

.bth-landing__form-card .wpcf7-form > ul > li.formField:has(select[name="producttype"][style*="display: none"]),
.bth-landing__form-card .wpcf7-form > ul > li.formField:has(select[name="renewdate"][style*="display: none"]) {
  display: none;
}

/* Floating label fields */
.bth-landing__form-card .bth-field {
  position: relative;
  min-width: 0;
  isolation: isolate;
}

.bth-landing__form-card .bth-field .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.bth-landing__form-card .bth-field__control,
.bth-landing__form-card .bth-field .wpcf7-form-control {
  width: 100%;
  height: 56px;
  line-height: 54px;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 0 18px;
  font-family: 'AlmoniNeue', Arial, sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--f-color-primary);
  text-align: right;
  background: #fff;
  box-sizing: border-box;
  margin: 0;
}

.bth-landing__form-card .bth-field__control::placeholder {
  color: transparent;
}

.bth-landing__form-card .bth-field--select .bth-field__control,
.bth-landing__form-card .bth-field--select select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  padding-left: 44px;
  background: #fff !important;
  border: 1px solid #ccc !important;
  border-radius: 10px !important;
  color: var(--f-color-primary) !important;
}

.bth-landing__form-card .bth-field__label {
  position: absolute;
  right: 14px;
  top: 28px;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--f-color-primary);
  font-size: 18px;
  font-weight: 500;
  background: #fff;
  padding: 0 5px;
  line-height: 1.2;
  transition: top 0.15s ease, font-size 0.15s ease, transform 0.15s ease;
  z-index: 2;
}

.bth-landing__form-card .bth-field:focus-within .bth-field__label,
.bth-landing__form-card .bth-field.has-value .bth-field__label {
  top: 0;
  transform: translateY(-50%);
  font-size: 13px;
  font-weight: 500;
}

.bth-landing__form-card .bth-field--select:focus-within,
.bth-landing__form-card .bth-field--select.has-value {
  z-index: 3;
}

.bth-landing__form-card .bth-field__chev {
  position: absolute;
  left: 16px;
  top: 28px;
  transform: translateY(-50%);
  pointer-events: none;
  display: inline-flex;
  line-height: 0;
  z-index: 1;
}

.bth-landing__form-card .bth-field__control:focus,
.bth-landing__form-card .bth-field select:focus {
  outline: none;
  border-color: var(--f-color-primary) !important;
}

.bth-landing__form-card .inps2,
.bth-landing__form-card .wpcf7-select,
.bth-landing__form-card select.wpcf7-form-control {
  width: 100%;
  height: 56px;
  line-height: 54px;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 0 18px;
  font-family: 'AlmoniNeue', Arial, sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--f-color-primary);
  text-align: right;
  background: #fff;
  box-sizing: border-box;
  margin: 0;
}

.bth-landing__form-card .wpcf7-select,
.bth-landing__form-card select.wpcf7-form-control {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background: #fff !important;
  border: 1px solid #ccc !important;
  border-radius: 10px !important;
  color: var(--f-color-primary) !important;
  min-height: 56px;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.bth-landing__form-card .inps2:focus,
.bth-landing__form-card .wpcf7-select:focus,
.bth-landing__form-card select.wpcf7-form-control:focus {
  outline: none;
  border-color: var(--f-color-primary);
}

.bth-landing__form-card .wpcf7-form > ul > li#info {
  width: 100%;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--f-color-primary);
  text-align: right;
}

.bth-landing__form-card .wpcf7-form > ul > li.formApprove {
  margin-top: 2px;
}

.bth-landing__form-card .wpcf7-form > ul > li.formApprove .wpcf7-list-item {
  float: none !important;
  margin: 0 0 10px !important;
  display: flex !important;
  flex-direction: row !important;
  direction: rtl;
  align-items: flex-start !important;
  gap: 7px;
  width: 100%;
  color: var(--f-color-primary) !important;
}

.bth-landing__form-card .wpcf7-form > ul > li.formApprove label {
  display: flex !important;
  flex-direction: row !important;
  direction: rtl;
  align-items: flex-start !important;
  gap: 7px;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 400 !important;
  color: var(--f-color-primary) !important;
  text-align: right;
  cursor: pointer;
  width: 100%;
}

.bth-landing__form-card .wpcf7-form .wpcf7-list-item-label {
  display: block !important;
  flex: 1 1 auto;
  min-width: 0;
  text-align: right;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 400;
  color: var(--f-color-primary) !important;
}

.bth-landing__form-card .wpcf7-form .wpcf7-list-item-label a {
  color: var(--f-color-primary) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bth-landing__form-card .wpcf7-form input[type='checkbox'] {
  margin: 2px 0 0 0 !important;
  width: 15px !important;
  height: 15px !important;
  min-width: 15px !important;
  max-width: 15px !important;
  min-height: 15px !important;
  max-height: 15px !important;
  flex: 0 0 auto !important;
  float: none !important;
  position: static !important;
  display: inline-block !important;
  vertical-align: top !important;
  accent-color: var(--f-color-primary) !important;
  -webkit-appearance: checkbox !important;
  appearance: checkbox !important;
  overflow: hidden;
  color: transparent;
  font-size: 0;
  cursor: pointer !important;
}

.bth-landing__form-card .wpcf7-form input[type='checkbox']::before,
.bth-landing__form-card .wpcf7-form input[type='checkbox']:checked::before {
  content: none !important;
  display: none !important;
}

.bth-landing__form-card .wpcf7-form > ul > li.formSubmit {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.bth-landing__form-card .wpcf7-form > ul > li.formSubmit > p {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin: 0;
}

.bth-landing__form-card .wpcf7-form > ul > li.formSubmit > p > .bth-submit-inner {
  flex: 0 0 auto !important;
  width: fit-content !important;
  max-width: 100%;
}

.bth-landing__form-card .bth-submit-inner {
  position: relative;
  display: inline-grid !important;
  place-items: center;
  margin-inline-start: auto;
  width: fit-content !important;
  max-width: 100%;
  min-width: 200px;
  height: 46px;
  padding: 0 26px;
  border: none;
  border-radius: 10px;
  background: var(--f-color-primary);
  cursor: pointer;
  transition: background-color 0.15s ease;
  box-sizing: border-box;
}

.bth-landing__form-card .bth-submit-inner:hover {
  background: #041a30;
}

.bth-landing__form-card .bth-submit__content {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  direction: rtl;
  pointer-events: none;
  z-index: 1;
}

.bth-landing__form-card .bth-submit__text {
  font-family: 'AlmoniNeue', Arial, sans-serif !important;
  font-size: 19px;
  font-weight: 700;
  font-synthesis: none;
  color: #fff;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}

.bth-landing__form-card .bth-submit__arrow {
  display: inline-flex;
  flex: 0 0 auto;
  line-height: 0;
  pointer-events: none;
}

.bth-landing__form-card .bth-submit-inner .bth-submit__input,
.bth-landing__form-card .bth-submit-inner .inps2_btn,
.bth-landing__form-card .bth-submit-inner #form-submit2,
.bth-landing__form-card .bth-submit-inner .wpcf7-submit {
  grid-area: 1 / 1;
  align-self: stretch;
  justify-self: stretch;
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 2 !important;
  border: none !important;
  border-radius: 10px !important;
  background: transparent !important;
  background-image: none !important;
  opacity: 0 !important;
  color: transparent !important;
  cursor: pointer !important;
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
}

.bth-landing__form-card .bth-submit-inner .wpcf7-spinner {
  grid-area: 1 / 1;
  place-self: center;
  position: relative !important;
  inset: auto !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  z-index: 3 !important;
}

/* fallback — אם JS לא רץ */
.bth-landing__form-card .inps2_btn:not(.bth-submit__input),
.bth-landing__form-card #form-submit2:not(.bth-submit__input) {
  display: inline-block !important;
  width: auto !important;
  min-width: 200px !important;
  height: 46px !important;
  line-height: 46px !important;
  padding: 0 26px 0 44px !important;
  margin: 0 !important;
  margin-inline-start: auto !important;
  border: none !important;
  border-radius: 10px !important;
  background-color: var(--f-color-primary) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M20 12H4M4 12L10 6M4 12L10 18' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: 18px center !important;
  color: #fff !important;
  font-family: 'AlmoniNeue', Arial, sans-serif !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  box-shadow: none !important;
  direction: rtl;
  text-align: center;
}

.bth-landing__form-card .inps2_btn:not(.bth-submit__input):hover,
.bth-landing__form-card #form-submit2:not(.bth-submit__input):hover {
  background-color: #041a30 !important;
}

.bth-landing__form-card .wpcf7-not-valid-tip {
  color: #d23b3b;
  font-size: 13px;
  margin-top: 5px;
}

.bth-landing__form-card .wpcf7-response-output {
  margin: 12px 0 0;
  border-radius: 8px;
  font-size: 14px;
}

@media (max-width: 800px) {
  .bth-landing__form-card .wpcf7-form > ul {
    grid-template-columns: 1fr;
  }

  .bth-landing__form-card .wpcf7-form > ul > li.formField:has(input[name="firstName"]),
  .bth-landing__form-card .wpcf7-form > ul > li.formField:has(input[name="lastName"]),
  .bth-landing__form-card .wpcf7-form > ul > li.formField:has(input[name="phone"]),
  .bth-landing__form-card .wpcf7-form > ul > li.formField:has(select[name="producttype"]),
  .bth-landing__form-card .wpcf7-form > ul > li.formField:has(select[name="renewdate"]) {
    grid-column: auto;
  }

  .bth-landing__form-card .wpcf7-form > ul > li.formSubmit {
    justify-content: stretch;
  }

  .bth-landing__form-card .wpcf7-form > ul > li.formSubmit > p {
    display: block;
    width: 100%;
  }

  .bth-landing__form-card .wpcf7-form > ul > li.formSubmit > p > .bth-submit-inner,
  .bth-landing__form-card .bth-submit-inner,
  .bth-landing__form-card .inps2_btn:not(.bth-submit__input),
  .bth-landing__form-card #form-submit2:not(.bth-submit__input) {
    display: grid !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-inline-start: 0 !important;
  }
}
