.hero {
  position: relative;
  background: #eaf2ff;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.9fr 0.85fr;
  min-height: 560px;
  height: auto;
}

/* LEFT */
.hero-left {
  position: relative;
  overflow: hidden;
  background: url("../images/hero-city.webp") center / cover no-repeat;
}

.hero-left::after {
  content: "";
  position: absolute;
  inset: 0;
}

.hero-left-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 50px 24px 40px;
}

/* Mobile-only location pill (hidden on desktop) */
.hero-loc {
  display: none;
  justify-content: center;
  margin-bottom: 16px;
}

.hero-loc-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 12px;
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  text-transform: uppercase;
}

.hero-loc-icon {
  width: 14px;
  height: 14px;
  display: block;
  filter: brightness(0) invert(1);
}

.hero-copy {
  width: 100%;
  max-width: 640px;
  text-align: left;
  color: #fff;
}

.hero-kicker {
  font-size: 21px;
  font-weight: 700;
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.95;
  margin-bottom: 10px;
}

.hero-title {
  margin: 0 0 18px;
  font-weight: 900;
  line-height: 1.05;
  font-size: 42px;
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
}

/* =========================
   HERO ICON LIST (under title)
========================= */
.hero-points {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  gap: 10px;
  max-width: 720px;
}

.hero-point {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.25;
  color: #fff;
}

.hero-point img {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: block;
  filter: brightness(0) invert(1);
}

.hero-call {
  display: inline-block;
  text-decoration: none;
  background: #e51b27;
  color: #fff;
  border-radius: 10px;
  padding: 18px 26px;
  box-shadow: 0 5px 15px rgba(229, 27, 39, .45);
}

.hero-call-top {
  display: block;
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 16px;
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  text-transform: uppercase;
  margin-bottom: 4px;
  text-align: center;
}

.hero-call-main {
  display: block;
  font-weight: 900;
  font-size: 32px;
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  line-height: 1;
}

/* RIGHT */
.hero-right {
  background: url("../images/hero-family.webp") center/cover no-repeat;
}

/* =========================
   Floating Form (desktop)
========================= */
.hero-form-wrap {
  position: absolute;
  left: 50%;
  bottom: -200px;
  transform: translateX(-50%);
  width: min(1420px, calc(100% - 48px));
  z-index: 5;
}

.hero-form-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  padding: 26px 28px 18px;
}

.hero-form-head {
  text-align: center;
  margin-bottom: 18px;
}

.hero-form-title {
  font-weight: 900;
  font-size: 44px;
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  letter-spacing: 1px;
  color: #0b2a47;
  line-height: 1.05;
}

/* subtitle like your 2nd reference (not spaced-out) */
.hero-form-sub {
  letter-spacing: 0 !important;
  text-transform: none !important;
  font-weight: 600;
  color: #4b5563;
  margin-top: 10px;
  font-size: 16px;
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================
   FORM FIELDS BASE
========================= */
.field {
  min-width: 0;
}

.field label {
  display: block;
  font-size: 14px;
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  letter-spacing: 1px;
  color: #1b1b1b;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.field input,
.field select {
  width: 100%;
  height: 54px;
  border: 0;
  outline: 0;
  background: #f3f3f3;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 15px;
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  color: #1b1b1b;
  box-sizing: border-box;
}

/* bootstrap floating select support */
.hero-form-card .form-floating {
  width: 100%;
}

.hero-form-card .form-select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 0;
  background: #f3f3f3;
  border-radius: 8px;
  height: 54px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.hero-form-card .form-floating>label {
  padding: 10px 14px;
  font-size: 13px;
  opacity: 0.7;
}

/* ==========================================================
   ✅ 3-STEP WIZARD LAYOUT (DESKTOP) — SINGLE ROW LIKE IMAGE 2
   IMPORTANT: .hero-step-controls is NOT inside .hero-step,
   so we make .hero-steps the grid container.
========================================================== */

/* grid container: left = fields, right = button */
.hero-steps {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: end;
}

/* steps hidden by default */
.hero-step {
  display: none;
}

/* active step goes to LEFT column */
.hero-step.is-active {
  display: block;
  grid-column: 1;
  grid-row: 1;
}

/* controls go to RIGHT column (same row) */
.hero-step-controls {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
}

/* fields grid (Step 1 + Step 2) */
.hero-fields--step {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
}

/* ✅ STEP 3: service + recaptcha in ONE ROW (like reference) */
.hero-step[data-step="3"] .hero-fields--step {
  grid-template-columns: 1fr auto;
  /* service | recaptcha */
  gap: 16px;
  align-items: end;
}

/* keep dropdown flexible */
.hero-step[data-step="3"] .service-field {
  min-width: 0;
}

/* recaptcha sits to the right side of dropdown */
.hero-recaptcha {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

/* desktop: slightly scale down so it fits the row cleanly */
.hero-recaptcha .g-recaptcha {
  transform: scale(0.92);
  transform-origin: right bottom;
}

/* Buttons */
.hero-step-btn {
  height: 64px;
  min-width: 240px;
  padding: 0 26px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
  background: #e51b27;
  color: #fff;
  font-size: 18px;
  box-shadow: 0 5px 15px rgba(229, 27, 39, .45);
}

/* ✅ remove/hide any "back" button */
.hero-step-btn.is-ghost,
.hero-step-btn.back-btn,
#heroBackBtn {
  display: none !important;
}

#heroSubmitBtn {
  display: none;
  /* JS shows on step 3 */
}

/* Note text */
.hero-form-note {
  text-align: center;
  font-size: 12px;
  color: #7a7a7a;
  margin-top: 8px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1200px) {
  .hero {
    margin-bottom: 0;
    /* remove reserved space when form is not floating */
  }

  .hero-form-wrap {
    position: static;
    left: auto;
    bottom: auto;
    transform: none;
    width: 100%;
  }

  .hero-form-card {
    width: 100%;
    box-sizing: border-box;
    border-radius: 0;
    box-shadow: none;
    padding: 22px 16px 18px;
  }

  .hero-steps {
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: stretch;
  }

  .hero-step.is-active {
    grid-column: 1;
    grid-row: auto;
  }

  .hero-step-controls {
    grid-column: 1;
    grid-row: auto;
    justify-content: center;
  }

  .hero-fields--step {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hero-step[data-step="3"] .hero-fields--step {
    grid-template-columns: 1fr;
  }

  .hero-step-btn {
    width: 100%;
    min-width: 0;
  }

  .hero-recaptcha {
    justify-content: center;
  }

  .hero-recaptcha .g-recaptcha {
    transform: scale(0.88);
    transform-origin: center;
  }
}

/* =========================================
   FIX: Browser Zoom (133%–150%) floating bug
   Trigger when viewport height is short
========================================= */
@media (max-height: 820px) {
  .hero {
    margin-bottom: 0;
  }

  .hero-form-wrap {
    position: static;
    left: auto;
    bottom: auto;
    transform: none;
    width: 100%;
  }

  .hero-form-card {
    border-radius: 0;
    box-shadow: none;
    padding: 22px 16px 18px;
  }
}


@media (max-width: 768px) {
  .hero {
    padding-bottom: 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-left-inner {
    padding: 42px 8px 42px;
    display: block;
  }

  .hero-loc {
    display: flex;
  }

  .hero-copy {
    text-align: center;
    max-width: 520px;
    margin: 0 auto;
  }

  .hero-kicker {
    font-size: 22px;
    letter-spacing: 3px;
    margin-bottom: 10px;
    font-weight: 800;
  }

  .hero-title {
    font-size: 26px;
    line-height: 1.1;
    margin-bottom: 16px;
  }

  .hero-points {
    justify-items: center;
    background: rgba(0,0,0,.42);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 14px;
    padding: 14px 14px;
    gap: 12px;
  }

  .hero-point{
    align-items: flex-start;     
    gap: 10px;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 600;
  }

  .hero-point img{
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin-top: 2px;            
  }

  .hero-call {
    width: min(92%, 420px);
    padding: 16px 18px;
    border-radius: 10px;
  }

  .hero-call-top {
    font-size: 17px;
  }

  .hero-call-main {
    font-size: 24px;
  }

  .hero-form-title {
    font-size: 26px;
  }

  .hero-form-sub {
    font-size: 14px;
  }

  .field label {
    font-size: 12px;
    letter-spacing: 1.6px;
    margin-bottom: 8px;
  }

  .field input,
  .field select {
    height: 56px;
    border-radius: 6px;
    background: #f2f2f2;
    padding: 0 14px;
    font-size: 15px;
  }

  .hero-right {
    display: none;
  }

  .hero::after {
    content: "";
    display: block;
    height: 260px;
    margin-top: 4px;
    background: url("../images/hero-family.webp") center / cover no-repeat;
  }
  .hero-coach{
    width: 100%;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;

    justify-content: center;
    flex-wrap: wrap;           /* allow wrap */
    gap: 6px 10px;
    padding: 10px 14px;
    text-align: center;
  }

  .hero-coach-label{
    width: 100%;
    display: block;
  }

  .hero-coach-sep{
    display: none;             /* cleaner on mobile */
  }

  .hero-coach-name{
    width: 100%;
    display: block;
    font-size: 15px;
    letter-spacing: 1.4px;
  }
}


/* Coach pill (above the UL) */
.hero-coach{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin: 0 0 14px;
  border-radius: 999px;
  background: #e51b27;
  border: 1px solid rgba(255,255,255,.16);

  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #fff;
}

.hero-coach-name{
  font-weight: 900;
  letter-spacing: 1px;
}

.hero-coach-sep{
  opacity: .7;
}


