:root {
  --bh-navy: #0b1030;
  --bh-navy-dark: #070a1f;
  --bh-teal: #4753bf;
  --bh-teal-light: #e8e9fe;
  --bh-orange: #ffa800;
  --bh-orange-hover: #e69700;
  --bh-light: #f4f5f9;
  --bh-header: #4958c4;
  --bh-lavender: #eef0ff;
  --bh-text: #556171;
}

html, body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  color: var(--bh-text);
  /* Belt-and-suspenders: never allow sideways scrolling on small screens. */
  overflow-x: hidden;
  max-width: 100%;
}
.lead-card .wpcf7 input[type="submit"] { box-sizing: border-box; }

/* On phones, trim the large hero gutter so the row's negative margins never
   exceed the container padding and push content past the viewport edge. */
@media (max-width: 575.98px) {
  .hero .row.g-5 { --bs-gutter-x: 1.5rem; --bs-gutter-y: 2rem; }
  .container { overflow-x: clip; }
}

h1, h2, h3, h4, h5, .fw-head {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.text-navy { color: var(--bh-navy) !important; }
.text-teal { color: var(--bh-teal) !important; }
.bg-navy { background-color: var(--bh-navy) !important; }
.bg-teal { background-color: var(--bh-teal) !important; }
.bg-teal-light { background-color: var(--bh-teal-light) !important; }
.bg-light-grey { background-color: var(--bh-light) !important; }
.bg-lavender { background-color: var(--bh-lavender) !important; }

/* Navbar */
.site-header { background-color: var(--bh-header); }
.brand-logo { width: 120px; height: 60px; object-fit: contain; display: block; }

/* Keep logo and call button on one row, spaced apart, with no overflow. */
.site-header .container {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}
.site-header .navbar-brand { flex: 0 1 auto; min-width: 0; }
.site-header .btn-call {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* Phones: shrink the logo and tighten the call button so the number always
   stays fully visible on narrow screens. */
@media (max-width: 575.98px) {
  .brand-logo { width: 96px; height: 48px; }
  .site-header .btn-call {
    padding: .4rem .7rem !important;
    font-size: .85rem;
  }
}
@media (max-width: 360px) {
  .brand-logo { width: 84px; height: 42px; }
  .site-header .btn-call {
    padding: .35rem .55rem !important;
    font-size: .8rem;
  }
}

/* Reference-site skewed sweep hover effect (applied to every button) */
.btn-call, .btn-orange, .btn-outline-navy, .btn-white {
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: color 0.4s ease-in-out, border-color 0.4s ease-in-out;
}
.btn-call::before, .btn-call::after,
.btn-orange::before, .btn-orange::after,
.btn-outline-navy::before, .btn-outline-navy::after,
.btn-white::before, .btn-white::after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  height: 100%;
  transform: skew(15deg);
  transition: width 0.4s ease-in-out;
  z-index: -1;
}
.btn-call::before,
.btn-orange::before, .btn-outline-navy::before, .btn-white::before { left: -10px; }
.btn-call::after,
.btn-orange::after, .btn-outline-navy::after, .btn-white::after { right: -10px; }
.btn-call:hover::before, .btn-call:hover::after,
.btn-orange:hover::before, .btn-orange:hover::after,
.btn-outline-navy:hover::before, .btn-outline-navy:hover::after,
.btn-white:hover::before, .btn-white:hover::after {
  width: 60%;
}

/* Unified button colors: #e8e9fe base, sweeps to #0b1030 on hover */
.btn-call, .btn-orange, .btn-outline-navy, .btn-white {
  background-color: #e8e9fe;
  border: 1px solid #e8e9fe;
  color: #0b1030;
  font-weight: 600;
  border-radius: 10px;
}
.btn-call::before, .btn-call::after,
.btn-orange::before, .btn-orange::after,
.btn-outline-navy::before, .btn-outline-navy::after,
.btn-white::before, .btn-white::after {
  background: #0b1030;
}
.btn-call:hover, .btn-orange:hover,
.btn-outline-navy:hover, .btn-white:hover {
  color: #e8e9fe;
  border-color: #0b1030;
}

/* Hero */
.hero {
  background-color: var(--bh-navy);
  color: #fff;
}
.hero h1 { font-weight: 800; font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.12; }

/* Thank You page confirmation check */
.ty-check {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(63,183,163,.15);
  border: 2px solid #3fb7a3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ty-check i {
  color: #3fb7a3;
  font-size: 2.6rem;
  line-height: 1;
}
.badge-pill-open {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  font-weight: 600;
  letter-spacing: .04em;
  font-size: .72rem;
  padding: .5rem 1rem;
  border-radius: 999px;
}

/* Front-page hero copy */
.hero:has(.hero-copy) {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(60% 70% at 0% 0%, rgba(73, 88, 196, .35) 0, transparent 60%),
    radial-gradient(45% 60% at 100% 100%, rgba(71, 83, 191, .25) 0, transparent 65%),
    var(--bh-navy);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .03em;
  padding: .45rem 1rem .45rem .8rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.hero-badge-dot {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--bh-orange);
}
.hero-badge-dot::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  background: var(--bh-orange);
  animation: bh-pulse 1.8s ease-out infinite;
}
@keyframes bh-pulse {
  0%   { transform: scale(1); opacity: .7; }
  100% { transform: scale(2.8); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-badge-dot::after { animation: none; }
}

.hero .hero-title {
  font-weight: 800;
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}
.hero-title-accent {
  display: block;
  margin-top: .35rem;
  font-weight: 700;
  font-size: .72em;
  line-height: 1.2;
  letter-spacing: -0.015em;
  background: linear-gradient(90deg, #c7ccff 0%, #8f9bff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  color: rgba(255,255,255,.75);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 540px;
  margin-bottom: 1.75rem;
  text-wrap: pretty;
}

.hero-trust {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  max-width: 560px;
}
.hero-trust li {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .75rem .9rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  color: rgba(255,255,255,.92);
  font-size: .92rem;
  font-weight: 500;
  line-height: 1.3;
}
.hero-trust-icon {
  flex: 0 0 auto;
  width: 1.75rem; height: 1.75rem;
  border-radius: 50%;
  background: rgba(63,183,163,.18);
  color: #4fd1b9;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1rem;
}

/* Lead form card */
.lead-card {
  background: #fff;
  border-radius: 16px;
  color: var(--bh-text);
  box-shadow: 0 30px 60px rgba(0,0,0,.25);
}
.lead-card label { font-size: .82rem; font-weight: 500; color: #46556a; margin-bottom: .3rem; }
.lead-card .form-control, .lead-card .form-select {
  border-radius: 10px;
  border: 1px solid #d8dde3;
  padding: .62rem .8rem;
}
.lead-card .form-control:focus, .lead-card .form-select:focus {
  border-color: var(--bh-teal);
  box-shadow: 0 0 0 .18rem rgba(15,107,102,.15);
}
.lead-fineprint { font-size: .72rem; color: #8a96a3; }

/* Shared section header: eyebrow + title + lead, centered */
.section-head { text-align: center; max-width: 680px; margin: 0 auto 2.75rem; }
.section-head .section-title { margin-bottom: .75rem; text-wrap: balance; }
.section-eyebrow {
  display: inline-block;
  background: var(--bh-teal-light);
  color: var(--bh-teal);
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .4rem .9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.section-lead { color: var(--bh-text); font-size: 1.02rem; line-height: 1.65; margin: 0 auto; text-wrap: pretty; }

/* ---------- Who We Help ---------- */
.whohelp-section { background: linear-gradient(180deg, var(--bh-lavender) 0%, #f7f8ff 100%); }
.whohelp-section .section-eyebrow { background: #fff; }
.help-card {
  position: relative;
  height: 100%;
  background: #fff;
  border: 1px solid #e3e6f0;
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.help-card::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--bh-teal), #8f9bff);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.help-card:hover {
  transform: translateY(-4px);
  border-color: #d3d7f5;
  box-shadow: 0 18px 36px -20px rgba(11, 16, 48, .28);
}
.help-card:hover::before { transform: scaleX(1); }
.help-card-icon {
  width: 3.25rem; height: 3.25rem;
  border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.15rem;
}
.help-card-icon.tone-0 { background: #e8e9fe; color: #4753bf; }
.help-card-icon.tone-1 { background: #ffeceb; color: #e0524a; }
.help-card-icon.tone-2 { background: #fff3dc; color: #c97f00; }
.help-card-icon.tone-3 { background: #e1f6f1; color: #23917c; }
.help-card h3 { color: var(--bh-navy); font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.help-card p { color: #5a6775; font-size: .93rem; line-height: 1.6; margin-bottom: 0; }

/* Why-us panel */
.why-panel {
  margin-top: 2rem;
  padding: 2.25rem 2rem;
  border-radius: 20px;
  color: rgba(255,255,255,.72);
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(143,155,255,.22) 0, transparent 60%),
    var(--bh-navy);
}
.why-panel-title { color: #fff; font-size: 1.2rem; font-weight: 700; margin-bottom: 1.75rem; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}
.why-item {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  padding-left: 1.5rem;
  border-left: 1px solid rgba(255,255,255,.12);
}
.why-item:first-child { padding-left: 0; border-left: 0; }
.why-icon {
  width: 2.75rem; height: 2.75rem;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: #aab3ff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.why-item h4 { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: .3rem; }
.why-item p { font-size: .9rem; line-height: 1.55; margin-bottom: 0; }
@media (max-width: 991.98px) {
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.75rem; }
  .why-item:nth-child(odd) { padding-left: 0; border-left: 0; }
}

/* ---------- How It Works ---------- */
.how-section { background: #fff; }
.how-steps {
  display: grid;
  grid-template-columns: repeat(var(--how-count, 3), minmax(0, 1fr));
  gap: 2rem;
  margin: 0;
}
.how-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
/* Dashed connector from this marker to the next one. */
.how-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 38px;
  left: calc(50% + 38px + 10px);
  width: calc(100% + 2rem - 76px - 20px);
  border-top: 2px dashed #c9cdf3;
}
.how-marker {
  position: relative;
  flex: 0 0 auto;
  width: 76px; height: 76px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--bh-teal-light);
  box-shadow: 0 0 0 6px #f5f6ff, 0 14px 28px -14px rgba(71, 83, 191, .55);
  color: var(--bh-teal);
  font-size: 1.75rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
  transition: background-color .3s, color .3s, border-color .3s;
}
.how-num {
  position: absolute;
  top: -4px; right: -4px;
  width: 1.65rem; height: 1.65rem;
  border-radius: 50%;
  background: var(--bh-navy);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}
.how-step:hover .how-marker { background: var(--bh-teal); border-color: var(--bh-teal); color: #fff; }
.how-body {
  width: 100%;
  max-width: 320px;
  flex: 1 1 auto;
  background: #f7f8fd;
  border: 1px solid #eceefa;
  border-radius: 16px;
  padding: 1.35rem 1.25rem;
}
.how-label {
  display: block;
  color: var(--bh-teal);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .35rem;
}
.how-body h3 { color: var(--bh-navy); font-size: 1.1rem; font-weight: 700; margin-bottom: .4rem; }
.how-body p { color: #5a6775; font-size: .93rem; line-height: 1.6; margin-bottom: 0; }

/* Phones & small tablets: vertical timeline */
@media (max-width: 767.98px) {
  .how-steps { grid-template-columns: 1fr; gap: 0; max-width: 520px; margin: 0 auto; }
  .how-step { flex-direction: row; align-items: flex-start; text-align: left; gap: 1rem; padding-bottom: 1.25rem; }
  .how-step:last-child { padding-bottom: 0; }
  .how-step:not(:last-child)::after {
    top: 62px; bottom: 6px; left: 27px;
    width: 0;
    border-top: 0;
    border-left: 2px dashed #c9cdf3;
  }
  .how-marker { width: 56px; height: 56px; font-size: 1.3rem; margin-bottom: 0; box-shadow: 0 0 0 4px #f5f6ff; }
  .how-num { width: 1.4rem; height: 1.4rem; font-size: .7rem; }
  .how-body { max-width: none; padding: 1rem 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .help-card, .help-card::before, .how-marker { transition: none; }
  .help-card:hover { transform: none; }
}

/* Testimonials */
.testimonial-card {
  background: #fff;
  border: 1px solid #e7eaee;
  border-radius: 12px;
  height: 100%;
}
.testimonial-card .quote { color: #41505f; font-style: italic; }
.testimonial-card .who { color: var(--bh-navy); font-weight: 600; font-size: .9rem; }
.stars i { color: #e8a500; font-size: .85rem; }

/* Testimonial slider: CSS scroll-snap track, driven by theme.js (which clones
   the cards so it loops endlessly). 1 card on phones, 2 on tablets, 3 on desktop. */
.t-slider { --t-gap: 1.5rem; }
.t-track {
  display: flex;
  gap: var(--t-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 2px; /* keep card borders/focus ring from being clipped */
}
.t-track::-webkit-scrollbar { display: none; }
.t-track:focus-visible { outline: 2px solid var(--bh-teal); outline-offset: 4px; border-radius: 12px; }
.t-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
@media (min-width: 768px) {
  .t-slide { flex-basis: calc((100% - var(--t-gap)) / 2); }
}
@media (min-width: 992px) {
  .t-slide { flex-basis: calc((100% - 2 * var(--t-gap)) / 3); }
}
@media (prefers-reduced-motion: reduce) {
  .t-track { scroll-behavior: auto; }
}
.t-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.75rem;
}
.t-slider.is-static .t-controls { display: none; }
.t-btn {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid #d8dde3;
  background: #fff;
  color: var(--bh-navy);
  transition: background-color .2s, color .2s, border-color .2s;
}
.t-btn:hover, .t-btn:focus-visible { background: var(--bh-navy); border-color: var(--bh-navy); color: #fff; }
.t-dots { display: flex; gap: .5rem; }
.t-dot {
  width: 10px; height: 10px; padding: 0;
  border: 0; border-radius: 999px;
  background: #c9cfe0;
  transition: width .25s, background-color .25s;
}
.t-dot[aria-current="true"] { width: 26px; background: var(--bh-teal); }

/* Enrollment banner */
.enroll-banner { background: var(--bh-teal); color: #fff; }
.enroll-banner h2 { font-weight: 800; }

/* FAQ — split layout: intro + help card on the left (sticky on desktop),
   numbered question cards on the right. Stacks intro → questions → help on phones. */
.faq-section {
  background:
    radial-gradient(circle at 0% 0%, var(--bh-lavender) 0, transparent 45%),
    #fff;
}
.faq-layout {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "intro" "list" "help";
  gap: 1.75rem;
}
.faq-intro { grid-area: intro; }
.faq-list  { grid-area: list; }
.faq-help  { grid-area: help; }
@media (min-width: 992px) {
  .faq-layout {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas: "intro list" "help list";
    grid-template-rows: auto 1fr;
    column-gap: 4rem;
    row-gap: 2rem;
  }
  .faq-help { align-self: start; }
}

.faq-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--bh-teal-light);
  color: var(--bh-teal);
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .4rem .85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.faq-lead { color: var(--bh-text); font-size: 1rem; max-width: 460px; }

/* Question cards */
.faq-list .faq-item {
  background: #fff;
  border: 1px solid #e3e6f0;
  border-radius: 14px !important;
  margin-bottom: .85rem;
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s;
}
.faq-list .faq-item:last-child { margin-bottom: 0; }
.faq-list .faq-item:hover { border-color: #c9cdf3; }
.faq-list .faq-item:has(.accordion-button:not(.collapsed)) {
  border-color: var(--bh-teal);
  box-shadow: 0 14px 30px -18px rgba(71, 83, 191, .45);
}
.faq-list .accordion-button {
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.35;
  color: var(--bh-navy);
  background: transparent;
  box-shadow: none;
}
.faq-list .accordion-button::after { display: none; } /* replaced by .faq-toggle */
.faq-list .accordion-button:not(.collapsed) { color: var(--bh-navy); background: transparent; box-shadow: none; }
.faq-list .accordion-button:focus { box-shadow: none; }
.faq-list .accordion-button:focus-visible { outline: 2px solid var(--bh-teal); outline-offset: -2px; border-radius: 14px; }
.faq-num {
  flex: 0 0 auto;
  font-size: .8rem;
  font-weight: 700;
  color: var(--bh-teal);
  background: var(--bh-teal-light);
  width: 2.1rem; height: 2.1rem;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color .25s, color .25s;
}
.faq-list .accordion-button:not(.collapsed) .faq-num { background: var(--bh-teal); color: #fff; }
.faq-q { flex: 1 1 auto; min-width: 0; }
.faq-toggle {
  position: relative;
  flex: 0 0 auto;
  width: 2rem; height: 2rem;
  border-radius: 50%;
  border: 1px solid #d8dcef;
  transition: background-color .25s, border-color .25s, transform .3s;
}
.faq-toggle::before, .faq-toggle::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 11px; height: 2px;
  background: var(--bh-navy);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform .3s, background-color .25s;
}
.faq-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-list .accordion-button:not(.collapsed) .faq-toggle { background: var(--bh-navy); border-color: var(--bh-navy); transform: rotate(180deg); }
.faq-list .accordion-button:not(.collapsed) .faq-toggle::before,
.faq-list .accordion-button:not(.collapsed) .faq-toggle::after { background: #fff; }
.faq-list .accordion-button:not(.collapsed) .faq-toggle::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-list .accordion-body {
  color: #5a6775;
  font-size: .95rem;
  line-height: 1.65;
  padding: 0 1.35rem 1.25rem calc(1.35rem + 2.1rem + 1rem); /* align with question text */
}

/* "Still have questions?" card */
.faq-help {
  display: flex;
  gap: 1rem;
  background: var(--bh-teal);
  color: rgba(255,255,255,.85);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 20px 40px -24px rgba(11, 16, 48, .6);
}
.faq-help h3 { color: #fff; font-weight: 700; }
.faq-help p { font-size: .93rem; }
.faq-help-icon {
  flex: 0 0 auto;
  width: 3rem; height: 3rem;
  border-radius: 12px;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size: 1.35rem;
  display: flex; align-items: center; justify-content: center;
}
.faq-help-link { color: #fff; font-weight: 600; font-size: .9rem; text-decoration: none; }
.faq-help-link i { transition: transform .2s; display: inline-block; }
.faq-help-link:hover { color: #fff; text-decoration: underline; }
.faq-help-link:hover i { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
  .faq-toggle, .faq-toggle::before, .faq-toggle::after { transition: none; }
}

/* Footer */
footer.site-footer {
  background: var(--bh-navy-dark);
  color: rgba(255,255,255,.6);
  font-size: .78rem;
}
footer.site-footer a { color: rgba(255,255,255,.8); }

.section-title { color: var(--bh-navy); font-weight: 800; }

/* ---- Contact Form 7 styling to match the original lead form ---- */
.lead-card .wpcf7 label {
  font-size: .82rem;
  font-weight: 500;
  color: #46556a;
  margin-bottom: .3rem;
  display: block;
  width: 100%;
}
.lead-card .wpcf7-form-control-wrap { display: block; width: 100%; }
.lead-card .wpcf7 input[type="text"],
.lead-card .wpcf7 input[type="tel"],
.lead-card .wpcf7 input[type="email"],
.lead-card .wpcf7 select {
  /* CF7 outputs size="40" on text inputs, which gives them an intrinsic width
     wide enough to blow out the column on small screens. Force them to track
     the container width instead. */
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid #d8dde3;
  padding: .62rem .8rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--bh-text);
  background-color: #fff;
}
.lead-card .wpcf7 input:focus,
.lead-card .wpcf7 select:focus {
  outline: 0;
  border-color: var(--bh-teal);
  box-shadow: 0 0 0 .18rem rgba(15,107,102,.15);
}
.lead-card .wpcf7 .bh-field { margin-bottom: 1rem; }
.lead-card .wpcf7 input[type="submit"] {
  width: 100%;
  background-color: #e8e9fe;
  border: 1px solid #e8e9fe;
  color: #0b1030;
  font-weight: 600;
  border-radius: 10px;
  padding: .5rem 1rem;
  transition: color .3s, background-color .3s, border-color .3s;
}
.lead-card .wpcf7 input[type="submit"]:hover {
  background-color: #0b1030;
  border-color: #0b1030;
  color: #e8e9fe;
}
.lead-card .wpcf7-not-valid-tip {
  display: block;
  font-size: .78rem;
  color: #d63638;
  margin-top: .25rem;
}
.lead-card .bh-error {
  display: block;
  font-size: .78rem;
  color: #d63638;
  margin-top: .25rem;
}
/* Our client-side message replaces CF7's own tip for the same field. */
.lead-card .bh-has-error .wpcf7-not-valid-tip { display: none; }
.lead-card .wpcf7 .bh-invalid,
.lead-card .wpcf7 .bh-invalid:focus,
.lead-card .wpcf7 .wpcf7-not-valid,
.lead-card .wpcf7 .wpcf7-not-valid:focus {
  border-color: #d63638;
  box-shadow: 0 0 0 .18rem rgba(214,54,56,.12);
}
.lead-card .wpcf7 .wpcf7-spinner { margin: .5rem auto 0; display: block; }
.lead-card .wpcf7-response-output {
  font-size: .85rem;
  border-radius: 8px;
  margin: 1rem 0 0;
  padding: .6rem .8rem;
}
/* Leave room for the native arrow so long placeholder options don't run under it. */
.lead-card .wpcf7 select {
  padding-right: 2.25rem;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

/* ================= Responsive refinements ================= */

/* In-page links (#leadForm etc.) must clear the sticky header. */
html { scroll-padding-top: 96px; }
#leadForm { scroll-margin-top: 96px; }

.section-title { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); }
.enroll-banner h2 { font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.25rem); }

/* Small desktops: 4-up cards get cramped, tighten their padding. */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .help-card { padding: 1.4rem 1.2rem; }
  .help-card h3 { font-size: 1.02rem; }
}

/* Phones */
@media (max-width: 575.98px) {
  html { scroll-padding-top: 80px; }
  #leadForm { scroll-margin-top: 80px; }

  section.py-5 { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
  .section-title.mb-5 { margin-bottom: 1.75rem !important; }

  .hero h1, .hero .hero-title { font-size: clamp(1.75rem, 7.6vw, 2.1rem); }
  .hero-title-accent { font-size: .78em; }
  .badge-pill-open { margin-bottom: 1rem !important; }
  .hero-badge { margin-bottom: 1.1rem; font-size: .74rem; }
  .hero-sub { font-size: 1rem; margin-bottom: 1.4rem; }
  .hero-trust { grid-template-columns: 1fr; gap: .5rem; }
  .hero-trust li { padding: .6rem .8rem; }

  .lead-card { padding: 1.25rem !important; border-radius: 14px; }
  .lead-card h4 { font-size: 1.25rem; margin-bottom: 1rem !important; }
  .lead-card .wpcf7 .bh-field { margin-bottom: .85rem; }

  .section-head { margin-bottom: 1.75rem; }
  .section-lead { font-size: .97rem; }
  .help-card { padding: 1.25rem; display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: start; }
  .help-card-icon { grid-row: 1 / span 2; width: 2.75rem; height: 2.75rem; font-size: 1.2rem; margin-bottom: 0; }
  .help-card h3 { margin-bottom: .3rem; font-size: 1.05rem; }
  .why-panel { padding: 1.5rem 1.25rem; border-radius: 16px; margin-top: 1.5rem; }
  .why-panel-title { font-size: 1.1rem; margin-bottom: 1.25rem; }
  .why-grid { grid-template-columns: 1fr; row-gap: 1.1rem; }
  .why-item { flex-direction: row; align-items: flex-start; padding-left: 0; border-left: 0; }
  .why-item + .why-item { padding-top: 1.1rem; border-top: 1px solid rgba(255,255,255,.1); }
  .why-icon { flex: 0 0 auto; width: 2.4rem; height: 2.4rem; font-size: 1.05rem; }

  .faq-layout { gap: 1.5rem; }
  .faq-list .accordion-button { font-size: .95rem; padding: 1rem; gap: .75rem; }
  .faq-num { width: 1.9rem; height: 1.9rem; font-size: .75rem; }
  .faq-toggle { width: 1.75rem; height: 1.75rem; }
  .faq-list .accordion-body { padding: 0 1rem 1.1rem; font-size: .92rem; }
  .faq-help { flex-direction: column; padding: 1.25rem; }

  .testimonial-card { padding: 1.25rem !important; }
  .t-controls { gap: .6rem; margin-top: 1.25rem; }
  .t-btn { width: 38px; height: 38px; }

  .ty-check { width: 72px; height: 72px; }
  .ty-check i { font-size: 2.1rem; }
  .hero .fs-5 { font-size: 1.05rem !important; }
}

/* Very narrow phones (≤360px) */
@media (max-width: 360px) {
  .container { padding-left: .85rem; padding-right: .85rem; }
  .lead-card { padding: 1rem !important; }
  .lead-card .wpcf7 input[type="text"],
  .lead-card .wpcf7 input[type="tel"],
  .lead-card .wpcf7 input[type="email"],
  .lead-card .wpcf7 select { padding-left: .7rem; font-size: 16px; }
}
