/* v1.65.39 Kevin (L2L) landing-page changes. Scoped to the five landing pages that load this file. */

/* No burger menu on the Buyer Cash-Back and Design Your Home Search landing pages.
   visibility (not display) keeps the logo and header layout exactly where they are. */
body.bb-ppc-nomenu .bbh-burger,
body.bb-ppc-nomenu .bbh-g-burger {
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Buyer Cash-Back: hide the hero "Search Homes" button (one call to action up top). */
body.bb-ppc-cashback .bbp-hero__actions a[data-rs-type="all"] { display: none !important; }

/* ---- Lead pop-up ---- */
html.bb-pop-lock { overflow: hidden; }
.bb-pop {
  border: 0;
  padding: 0;
  background: transparent;
  width: 100%;
  max-width: min(640px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: visible;
}
.bb-pop::backdrop { background: rgba(13, 46, 82, .66); }
.bb-pop__card {
  position: relative;
  box-sizing: border-box;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  background: #F2F5FF;
  color: #0D2E52;
  border-radius: 16px;
  padding: 30px 30px 24px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .3);
}
.bb-pop__title {
  margin: 0 64px 20px 0;
  font-family: Poppins, sans-serif;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
  color: #0D2E52;
}
.bb-pop__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #0D2E52;
  border-radius: 50%;
  background: #fff;
  color: #0D2E52;
  font-size: 36px;
  line-height: 1;
  padding: 0 0 4px;
  cursor: pointer;
}
.bb-pop__close:hover,
.bb-pop__close:focus-visible { background: #0D2E52; color: #fff; outline: 3px solid #49A6E9; outline-offset: 2px; }
.bb-pop__form { margin: 0; padding: 0; background: transparent; box-shadow: none; border: 0; max-width: none; }
.bb-pop__form .bbp-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.bb-pop__form .bbp-form__wide { grid-column: 1 / -1; }
.bb-pop__form label { display: flex; flex-direction: column; gap: 6px; font-size: 16px; font-weight: 600; color: #0D2E52; }
.bb-pop__form input,
.bb-pop__form select {
  width: 100%;
  box-sizing: border-box;
  min-height: 52px;
  font-size: 20px;
  padding: 10px 14px;
  border: 1.5px solid #9DB3CF;
  border-radius: 8px;
  background: #fff;
  color: #0D2E52;
}
.bb-pop__form .bb-pop__send {
  width: 100%;
  min-height: 58px;
  margin-top: 18px;
  font-size: 20px;
}
.bb-pop__form .bbh-hs__status { font-size: 16px; margin: 10px 0 0; }
.bb-pop__form .bbh-hs__done h4 { font-size: 26px; margin: 0 0 8px; }
.bb-pop__form .bbh-hs__done p { font-size: 20px; }

@media (max-width: 600px) {
  .bb-pop { max-width: calc(100vw - 20px); max-height: calc(100dvh - 20px); }
  .bb-pop__card { max-height: calc(100dvh - 20px); padding: 22px 16px 18px; }
  .bb-pop__title { font-size: 26px; margin: 0 58px 16px 0; }
  .bb-pop__close { top: 10px; right: 10px; }
  .bb-pop__form .bbp-form__grid { grid-template-columns: 1fr; gap: 12px; }
}

/* Beat page-level form rules so the pop-up keeps John's minimums (20px inputs and button, 16px+ labels). */
#bb-pop .bb-pop__form input:not([type=hidden]),
#bb-pop .bb-pop__form select { font-size: 20px !important; min-height: 52px; }
#bb-pop .bb-pop__form .bb-pop__send { font-size: 20px !important; }
#bb-pop .bb-pop__form label { font-size: max(16px, 1em); }

/* Sell For Less: form now sits right after the $1M+ fee chart; the luxury section follows it. */
body.bb-lp-sfl #bbp-lux { padding-top: 28px !important; scroll-margin-top: 12px; }
@media (max-width: 768px) { body.bb-lp-sfl #bbp-lux { padding-top: 20px !important; } }

/* Buyer Cash-Back hero lead form (v1.65.40). body.bb-ppc-cashback only. */
body.bb-ppc-cashback .bbp-heroform {
  margin: 18px 0 0;
  padding: 22px 24px 20px;
  max-width: none;
  width: 100%;
  box-sizing: border-box;
  background: #F2F5FF;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .28);
  color: #0D2E52;
}
body.bb-ppc-cashback .bbp-heroform .bbp-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
body.bb-ppc-cashback .bbp-heroform label { display: flex; flex-direction: column; gap: 6px; font-size: 16px !important; font-weight: 600; color: #0D2E52; text-shadow: none; }
body.bb-ppc-cashback .bbp-heroform input:not([type=hidden]) {
  width: 100%; box-sizing: border-box; min-height: 52px; font-size: 20px !important; padding: 10px 14px;
  border: 1.5px solid #9DB3CF; border-radius: 8px; background: #fff; color: #0D2E52;
}
body.bb-ppc-cashback .bbp-heroform .bbp-heroform__send {
  width: 100%; min-height: 60px; margin-top: 16px; font-size: 20px !important; font-weight: 700;
  background: #0D2E52; border-color: #0D2E52; color: #fff;
}
body.bb-ppc-cashback .bbp-heroform .bbp-heroform__send:hover,
body.bb-ppc-cashback .bbp-heroform .bbp-heroform__send:focus-visible { background: #1A4E8A; border-color: #1A4E8A; outline: 3px solid #49A6E9; outline-offset: 2px; }
body.bb-ppc-cashback .bbp-heroform .bbh-hs__status { font-size: 16px; margin: 8px 0 0; color: #0D2E52; }
body.bb-ppc-cashback .bbp-heroform .bbh-hs__done h4 { font-size: 26px; margin: 0 0 6px; color: #0D2E52; }
body.bb-ppc-cashback .bbp-heroform .bbh-hs__done p { font-size: 20px; color: #0D2E52; }
@media (max-width: 600px) {
  body.bb-ppc-cashback .bbp-heroform { padding: 18px 14px 16px; }
  body.bb-ppc-cashback .bbp-heroform .bbp-form__grid { grid-template-columns: 1fr; gap: 10px; }
}

/* v1.65.42 What's My Home Worth paid LP (/lp/home-valuation/). body.bb-lp-hv only. */
body.bb-lp-hv #bb-lp-form { scroll-margin-top: 12px; }
/* Form minimums on this LP: 20px fields, 16px+ labels. */
html body.bb-lp-hv #bbw-form label { font-size: max(16px, 1em) !important; }
html body.bb-lp-hv #bbw-form input:not([type=hidden]),
html body.bb-lp-hv #bbw-form select { font-size: 20px !important; min-height: 52px; }
html body.bb-lp-hv #bbw-form button[type=submit] { font-size: 20px !important; min-height: 58px; }

/* Reviews section on the home-valuation LP (copied from the cash-back/design LP rules). */
/* --------------------------------------------------------------------------
 * v1.65.20 RateMyAgent reviews section. Scoped to cash-back + Design LPs only.
 * -------------------------------------------------------------------------- */
body.bb-lp-hv .bb-lp-reviews {
  padding-top: 56px;
  padding-bottom: 56px;
}
body.bb-lp-hv .bb-lp-reviews .bb-lp-sec__inner {
  text-align: center;
}
body.bb-lp-hv .bb-lp-reviews__title {
  margin: 0 0 12px;
  color: #0D2E52;
  font-family: Poppins, sans-serif;
  font-weight: 700;
  line-height: 1.2;
}
body.bb-lp-hv .bb-lp-reviews__stat {
  margin: 0 0 28px;
  color: #0D2E52;
  font-weight: 700;
  line-height: 1.35;
}
body.bb-lp-hv .bb-lp-reviews__stars,
body.bb-lp-hv .bb-lp-reviews__card-stars {
  display: inline-block;
  color: #C69214;
  letter-spacing: 0.12em;
  font-weight: 700;
  line-height: 1;
}
body.bb-lp-hv .bb-lp-reviews__stat .bb-lp-reviews__stars {
  display: block;
  margin: 0 0 8px;
}
body.bb-lp-hv .bb-lp-reviews__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 0 0 28px;
  text-align: left;
}
body.bb-lp-hv .bb-lp-reviews__card {
  margin: 0;
  padding: 24px 22px 22px;
  background: #fff;
  border: 1px solid #d5deea;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(13, 46, 82, 0.06);
  display: flex;
  flex-direction: column;
}
body.bb-lp-hv .bb-lp-reviews__card-stars {
  margin: 0 0 10px;
}
body.bb-lp-hv .bb-lp-reviews__quote-title {
  margin: 0 0 10px;
  color: #0D2E52;
  font-family: Poppins, sans-serif;
  font-weight: 700;
  line-height: 1.3;
}
body.bb-lp-hv .bb-lp-reviews__quote {
  margin: 0 0 16px;
  color: #0D2E52;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
body.bb-lp-hv .bb-lp-reviews__by {
  margin-top: auto;
  color: #0D2E52;
  font-weight: 700;
  line-height: 1.4;
}
body.bb-lp-hv .bb-lp-reviews__cta {
  margin: 0 0 16px;
}
body.bb-lp-hv .bb-lp-reviews__cta .bbh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 28px;
  font-family: Poppins, sans-serif;
  font-weight: 700;
  text-decoration: none;
}
body.bb-lp-hv .bb-lp-reviews__cred {
  margin: 0;
  color: #0D2E52;
  line-height: 1.45;
}

@media (min-width: 1025px) {
  body.bb-lp-hv .bb-lp-reviews__title {
    font-size: 40px !important;
    line-height: 1.2 !important;
  }
  body.bb-lp-hv .bb-lp-reviews__stat {
    font-size: 22px !important;
    line-height: 1.35 !important;
  }
  body.bb-lp-hv .bb-lp-reviews__stars {
    font-size: 28px !important;
  }
  body.bb-lp-hv .bb-lp-reviews__card-stars {
    font-size: 20px !important;
  }
  body.bb-lp-hv .bb-lp-reviews__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }
  body.bb-lp-hv .bb-lp-reviews__quote-title {
    font-size: 20px !important;
    line-height: 1.3 !important;
  }
  body.bb-lp-hv .bb-lp-reviews__quote {
    font-size: 20px !important;
    line-height: 1.55 !important;
  }
  body.bb-lp-hv .bb-lp-reviews__by {
    font-size: 20px !important;
  }
  body.bb-lp-hv .bb-lp-reviews__cta .bbh-btn {
    font-size: 20px !important;
  }
  body.bb-lp-hv .bb-lp-reviews__cred {
    font-size: 16px !important;
  }
}

@media (max-width: 1024px) {
  body.bb-lp-hv .bb-lp-reviews {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  body.bb-lp-hv .bb-lp-reviews__title {
    font-size: 28px !important;
    line-height: 1.25 !important;
  }
  body.bb-lp-hv .bb-lp-reviews__stat {
    font-size: 18px !important;
  }
  body.bb-lp-hv .bb-lp-reviews__stars {
    font-size: 24px !important;
  }
  body.bb-lp-hv .bb-lp-reviews__card-stars {
    font-size: 18px !important;
  }
  body.bb-lp-hv .bb-lp-reviews__quote-title,
  body.bb-lp-hv .bb-lp-reviews__quote,
  body.bb-lp-hv .bb-lp-reviews__by {
    font-size: 18px !important;
    line-height: 1.5 !important;
  }
  body.bb-lp-hv .bb-lp-reviews__cta .bbh-btn {
    font-size: 18px !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
  }
  body.bb-lp-hv .bb-lp-reviews__cred {
    font-size: 17px !important;
  }
}


/* v1.65.20b: beat .bb-lp-sec p typography so the stat stays 22px+ and the credential line stays small. */
@media (min-width: 1025px) {
  body.bb-lp-hv .bb-lp-reviews p.bb-lp-reviews__stat {
    font-size: 22px !important;
    line-height: 1.35 !important;
  }
  body.bb-lp-hv .bb-lp-reviews p.bb-lp-reviews__cred {
    font-size: 16px !important;
    line-height: 1.45 !important;
  }
}


/* v1.65.21 rail: keep Design reviews clear of the left social rail (same as other .bb-lp-sec). */
@media (min-width: 1025px) {
  body.bb-lp-hv.bbp-body .bb-lp-sec.bb-lp-reviews,
  body.bb-lp-hv .bb-lp-sec.bb-lp-reviews {
    padding-left: calc(var(--bbh-rail, 140px) + 18px) !important;
    padding-right: 24px !important;
  }
}



/* Home-valuation LP: full-width dropdowns (no clipped text) and larger offer copy. */
html body.bb-lp-hv #bbw-form label:has(select) { grid-column: 1 / -1; }
html body.bb-lp-hv #bb-lp-form .bbw-inside li strong { font-size: 20px !important; }
html body.bb-lp-hv #bb-lp-form .bbw-inside li span { font-size: 18px !important; line-height: 1.45 !important; }
html body.bb-lp-hv #bb-lp-form .bbp-kicker,
html body.bb-lp-hv #bb-lp-form .bbw-form__fine { font-size: 16px !important; }
html body.bb-lp-hv #bb-lp-form .bbw-form__title { font-size: 24px !important; }

/* Home-valuation LP v2: short hero modeled on Sell For Less (title + underlined jump line). */
body.bb-lp-hv .bb-lp-hero { min-height: 0 !important; padding: 36px 24px 48px !important; }
body.bb-lp-hv .bb-lp-hero__inner--center {
  display: flex !important; flex-direction: column; align-items: stretch; text-align: center;
  grid-template-columns: none; gap: 24px; padding: 0; max-width: 1100px; width: 100%;
  margin-left: auto; margin-right: auto; box-sizing: border-box;
}
html body.bb-lp-hv .bb-lp-hero .bb-lp-hero__title-center {
  margin: 0; width: 100%; color: #fff; font-family: Poppins, sans-serif; font-weight: 800;
  font-size: 58px !important; line-height: 1.1 !important; letter-spacing: .02em; text-align: center;
  text-shadow: 0 2px 4px rgba(0,0,0,.55), 0 0 28px rgba(0,0,0,.45);
}
body.bb-lp-hv .bb-lp-hv-jump {
  display: inline-flex; align-items: center; justify-content: center; align-self: center; gap: 10px;
  max-width: 100%; color: #fff !important; font-family: Poppins, sans-serif; font-weight: 800;
  font-size: 40px; line-height: 1.1; letter-spacing: .02em; text-align: center;
  text-decoration: underline !important; text-decoration-color: rgba(255,255,255,.85);
  text-decoration-thickness: 2px; text-underline-offset: 8px; text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
body.bb-lp-hv .bb-lp-hv-jump::after {
  content: ""; display: inline-block; width: 12px; height: 12px; margin-top: 4px;
  border-right: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(45deg); flex: 0 0 auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.35));
}
body.bb-lp-hv .bb-lp-hv-jump:hover,
body.bb-lp-hv .bb-lp-hv-jump:focus-visible { text-decoration-thickness: 3px; text-decoration-color: #fff; }
@media (max-width: 768px) {
  body.bb-lp-hv .bb-lp-hero { padding: 20px 16px 28px !important; }
  html body.bb-lp-hv .bb-lp-hero .bb-lp-hero__title-center { font-size: 30px !important; }
  body.bb-lp-hv .bb-lp-hv-jump { font-size: 28px; line-height: 1.15; }
  body.bb-lp-hv .bb-lp-hv-jump::after { width: 10px; height: 10px; margin-top: 3px; }
}
/* Short check lines beside the form. */
html body.bb-lp-hv #bb-lp-form .bbw-inside--short { margin-top: 24px; }
html body.bb-lp-hv #bb-lp-form .bbw-inside--short li strong { font-size: 22px !important; }
@media (max-width: 768px) {
  /* Keep the chevron next to the words when the line wraps. */
  body.bb-lp-hv .bb-lp-hv-jump { display: inline-block; }
  body.bb-lp-hv .bb-lp-hv-jump::after { margin: 0 0 6px 10px; vertical-align: middle; }
}

/* Nov 23: Sell For Less jump line on phones: keep the chevron with the last word (both /lp/sell-for-less/ and the interior twin). */
@media (max-width: 768px) {
  html body.bb-lp-sfl .bb-lp-sfl-savebtn { display: inline-block !important; }
  html body.bb-lp-sfl .bb-lp-sfl-savebtn::after { display: inline-block !important; position: static !important; margin: 0 0 6px 10px !important; vertical-align: middle; }
}
