.banner-with-form,
.banner-with-form * {
  box-sizing: border-box;
}

.banner-with-form {
  position: relative;
  overflow: hidden;
}


.banner-with-form__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
}
.banner-with-form__bg .banner-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.banner-with-form__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(8, 16, 16, 0.82) 0%,
    rgba(8, 16, 16, 0.58) 42%,
    rgba(8, 16, 16, 0.22) 72%,
    rgba(8, 16, 16, 0.12) 100%
  );
}

.banner-with-form__inner {
  position: relative;
  z-index: 2;
  min-height: 700px;
  display: grid;
  grid-template-columns: 1fr 551px;
  gap: 40px;
  align-items: center;
  padding: 56px 25px;
  width: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}


.banner-with-form__content {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.banner-with-form__title {
  margin: 0;
  font-size: 52px;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.5px;
  color: #ffffff;
}

.banner-with-form__sub-label {
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.banner-with-form__sub-label p {
  margin: 0;
}

/* Testimonial quote card */
.banner-with-form__quote {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 540px;
  background: rgba(255, 255, 255, 0.2);
  padding: 20px 24px;
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}
.banner-with-form__quote-icon {
  flex-shrink: 0;
}
.banner-with-form__quote-text {
  margin: 0;
  color: #ffffff;
  font-size: 17px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
}
.banner-with-form__quote-author {
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.banner-with-form__quote-author:hover {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

/* Phone row */
.banner-with-form__phone-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
}
.banner-with-form__phone-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #00ad94;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.banner-with-form__phone-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.banner-with-form__phone-label {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.banner-with-form__phone-number {
  color: #ffffff;
  font-size: 27px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}
.banner-with-form__phone-number:hover {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}


/* ── Right column — white form card */
.banner-with-form__form-card {
  background: #ffffff;
  padding: 29px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: stretch;
  justify-content: center;
}

.banner-with-form__form-heading {
  margin: 0;
  color: #000000;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.15;
}

.banner-with-form__form-subtext {
  margin: 0;
  color: #00ad94;
  font-size: 15px;
  font-weight: 400;
}

/* ── Form field styles (plugin-agnostic)  */
.banner-with-form__form-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Inputs and textareas */
.banner-with-form__form-body input[type="text"],
.banner-with-form__form-body input[type="email"],
.banner-with-form__form-body input[type="tel"],
.banner-with-form__form-body input[type="number"],
.banner-with-form__form-body input[type="url"],
.banner-with-form__form-body select,
.banner-with-form__form-body textarea {
  width: 100%;
  height: 46px;
  box-sizing: border-box;
  padding: 0 12px;
  border: 1px solid rgba(0, 173, 148, 0.6);
  border-radius: 5px;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.75);
  background: #ffffff;
  font-family: inherit;
  outline: none;
  appearance: none;
}
.banner-with-form__form-body textarea {
  height: auto;
  min-height: 84px;
  padding: 12px;
  resize: none;
  line-height: 1.5;
}
.banner-with-form__form-body input:focus,
.banner-with-form__form-body textarea:focus,
.banner-with-form__form-body select:focus {
  border-color: #00ad94;
  box-shadow: 0 0 0 2px rgba(0, 173, 148, 0.15);
}
.banner-with-form__form-body ::placeholder {
  color: #8a9290;
  opacity: 1;
}

/* Submit button — green pill with white circle arrow */
.banner-with-form__form-body button[type="submit"],
.banner-with-form__form-body input[type="submit"] {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #00ad94;
  color: #ffffff;
  font-weight: 400;
  font-size: 16px;
  font-family: inherit;
  padding: 8px 5px 8px 18px;
  border: none;
  border-radius: 48px;
  cursor: pointer;
}
.banner-with-form__form-body button[type="submit"]:hover,
.banner-with-form__form-body input[type="submit"]:hover {
  background: #009980;
}
/* White circle with teal arrow — appended to <button> via ::after */
.banner-with-form__form-body button[type="submit"]::after {
  content: '';
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 30 30' fill='none'%3E%3Cpath d='M10.333 15H19.666M15 19.667L19.667 15L15 10.333' stroke='%2300AD94' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 20px 20px;
  background-repeat: no-repeat;
  background-position: center;
  display: block;
}

/* 2-column field rows (opt-in: wrap two inputs in .wf-cols-2) */
.banner-with-form__form-body .wf-cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ── Rating badge ─────────────────────────────────────────── */
.banner-with-form .rating-badge .rating-meta {
  display: flex;
  flex-direction: row;
  gap: 5px;
  align-items: center;
}

/* Golden stars — overrides the shared brightness(0) invert(1) white rule */
.banner-with-form .rating-badge .star {
  filter: brightness(0) saturate(100%) invert(60%) sepia(68%) saturate(700%) hue-rotate(8deg);
}

/* ── Tablet (768–1199px) ──────────────────────────────────── */
@media (min-width: 768px) and (max-width: 1199px) {
  .banner-with-form__inner {
    grid-template-columns: 1fr 380px;
    gap: 28px;
    padding: 48px 48px;
    min-height: 600px;
  }
  .banner-with-form__title {
    font-size: clamp(36px, 4vw, 48px);
  }
  .banner-with-form__form-card {
    padding: 24px;
  }
  .banner-with-form__form-heading {
    font-size: 26px;
  }
}

/* ── Mobile (≤767px) ──────────────────────────────────────── */
@media (max-width: 767px) {
  /* Vertical gradient — slightly heavier opacity than no-form variant */
  .banner-with-form__gradient {
    background: linear-gradient(
      180deg,
      rgba(8, 16, 16, 0.55) 0%,
      rgba(8, 16, 16, 0.75) 55%,
      rgba(8, 16, 16, 0.88) 100%
    );
  }

  /* Stack: dark hero content → white form card */
  .banner-with-form__inner {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0;
    gap: 0;
    align-items: stretch;
  }

  /* Hero (dark overlay) portion */
  .banner-with-form__content {
    gap: 16px;
    padding: 28px 20px 32px;
    position: relative;
    z-index: 2;
  }

  .banner-with-form__title {
    font-size: 32px;
    line-height: 1.12;
    letter-spacing: -0.3px;
  }

  .banner-with-form__sub-label {
    font-size: 13px;
    letter-spacing: 0.6px;
  }

  .banner-with-form__quote {
    max-width: 100%;
    padding: 16px;
    box-shadow: none;
  }
  .banner-with-form__quote-icon {
    width: 20px;
    height: 15px;
  }
  .banner-with-form__quote-text {
    font-size: 15px;
  }
  .banner-with-form__quote-author {
    font-size: 12px;
  }

  .banner-with-form__phone-row {
    gap: 12px;
    margin-top: 0;
  }
  .banner-with-form__phone-icon {
    width: 40px;
    height: 40px;
  }
  .banner-with-form__phone-label {
    font-size: 12px;
    letter-spacing: 0.4px;
  }
  .banner-with-form__phone-number {
    font-size: 22px;
  }

  /* Form card — white block, sits on top of bg/gradient via z-index */
  .banner-with-form__form-card {
    position: relative;
    z-index: 3;
    background: #ffffff;
    padding: 28px 20px;
    gap: 12px;
    align-self: auto;
    justify-content: flex-start;
  }

  .banner-with-form__form-heading {
    font-size: 24px;
    line-height: 1.2;
  }

  .banner-with-form__form-subtext {
    font-size: 14px;
  }

  .banner-with-form__form-body textarea {
    min-height: 100px;
  }

  /* Submit full-width on mobile */
  .banner-with-form__form-body button[type="submit"],
  .banner-with-form__form-body input[type="submit"] {
    align-self: stretch;
    justify-content: center;
    padding: 13px 18px;
  }

  /* Collapse 2-col to 1-col on mobile */
  .banner-with-form__form-body .wf-cols-2 {
    grid-template-columns: 1fr;
  }
}
