/* Academy of Bankruptcy — 5.10 homepage panoramic photographic hero.
   The photo is a full-bleed background layer. Copy and the lead form sit above it. */
.home-page .home-firstscreen {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 0 18px !important;
  overflow: visible !important;
  background: linear-gradient(180deg,#08263b 0%,#f4f8fa 100%) !important;
  color: #f7fbfd !important;
}
.home-page .home-firstscreen > section.home-hero-v46 {
  position: relative !important;
  display: block !important;
  grid-area: auto !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #071d30 !important;
  box-shadow: none !important;
  isolation: isolate !important;
}
.home-page .home-firstscreen > section.home-hero-v46 > .hero-container {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: clamp(520px, 38vw, 630px) !important;
  min-height: 520px !important;
  margin: 0 !important;
  padding: clamp(42px,4.6vw,72px) clamp(34px,4.5vw,88px) 42px !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #071d30 !important;
  box-shadow: none !important;
}
/* Full-width picture layer. No separate photo card at desktop sizes. */
.home-page .home-firstscreen > section.home-hero-v46 .hero-visual {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  grid-column: auto !important;
  grid-row: auto !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #071d30 !important;
  box-shadow: none !important;
  pointer-events: none !important;
}
.home-page .home-firstscreen > section.home-hero-v46 .hero-visual picture,
.home-page .home-firstscreen > section.home-hero-v46 .hero-visual picture img,
.home-page .home-firstscreen > section.home-hero-v46 .hero-visual > img {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: 54% 48% !important;
  filter: brightness(1.03) saturate(1.06) contrast(1.02) !important;
  transform: none !important;
}
/* Keep the copy on the open dark left part of the photograph. */
.home-page .home-firstscreen > section.home-hero-v46 .hero-copy {
  position: relative !important;
  z-index: 2 !important;
  display: block !important;
  width: min(43%, 610px) !important;
  max-width: 610px !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  align-self: center !important;
}
.home-page .home-firstscreen > section.home-hero-v46 .hero-visual::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  background: linear-gradient(90deg,
    rgba(4,20,34,.38) 0%,
    rgba(4,20,34,.30) 23%,
    rgba(4,20,34,.12) 40%,
    rgba(4,20,34,.02) 58%,
    rgba(4,20,34,.12) 100%) !important;
  pointer-events: none !important;
}
.home-page .home-firstscreen > section.home-hero-v46 .hero-visual::after {
  content: "" !important;
  position: absolute !important;
  inset: auto 0 0 !important;
  z-index: 1 !important;
  height: 18% !important;
  background: linear-gradient(0deg,rgba(4,20,34,.27),transparent) !important;
  pointer-events: none !important;
}
.home-page .home-firstscreen > section.home-hero-v46 .visual-note { display: none !important; }
.home-page .home-firstscreen > section.home-hero-v46 .kicker {
  max-width: 100% !important;
  font-size: clamp(10px,.78vw,12px) !important;
  line-height: 1.45 !important;
}
.home-page .home-firstscreen > section.home-hero-v46 h1 {
  max-width: 600px !important;
  margin: 18px 0 16px !important;
  font-size: clamp(38px,3.35vw,58px) !important;
  line-height: 1.045 !important;
  letter-spacing: -.045em !important;
  text-wrap: balance !important;
  overflow-wrap: normal !important;
}
.home-page .home-firstscreen > section.home-hero-v46 .leadtext {
  max-width: 540px !important;
  font-size: clamp(16px,1.12vw,18px) !important;
  line-height: 1.55 !important;
}
.home-page .home-firstscreen > section.home-hero-v46 .hero-assurances { gap: 11px !important; margin: 20px 0 22px !important; }
.home-page .home-firstscreen > section.home-hero-v46 .hero-assurances li { font-size: clamp(14px,.95vw,16px) !important; line-height: 1.45 !important; }
.home-page .home-firstscreen > section.home-hero-v46 .heroactions { gap: 12px 18px !important; }
.home-page .home-firstscreen > section.home-hero-v46 .heroactions .btn { min-height: 52px !important; font-size: 15px !important; }
.home-page .home-firstscreen > section.home-hero-v46 .hero-link { font-size: 14px !important; }
.home-page .home-firstscreen > section.home-hero-v46 .hero-trust-note { font-size: 12px !important; line-height: 1.5 !important; }
/* The form floats above the right part of the same hero background. */
.home-page .home-firstscreen > .hero-lead-card {
  display: block !important;
  position: absolute !important;
  top: 16px !important;
  right: clamp(28px,4vw,76px) !important;
  z-index: 5 !important;
  width: clamp(320px,23.5vw,365px) !important;
  max-width: 365px !important;
  min-width: 0 !important;
  height: auto !important;
  margin: 0 !important;
  transform: none !important;
  padding: 23px 22px 20px !important;
  border: 1px solid rgba(214,229,235,.98) !important;
  border-top: 5px solid #12b95b !important;
  border-radius: 19px !important;
  background: #fff !important;
  color: #142b3d !important;
  box-shadow: 0 20px 44px rgba(0,0,0,.24) !important;
}
.home-page .home-firstscreen > section.proof-premium {
  position: relative !important;
  z-index: 6 !important;
  width: min(1440px,calc(100% - 72px)) !important;
  max-width: 1440px !important;
  margin: -22px auto 0 !important;
}
.home-page .home-firstscreen > .home-legal-warning {
  position: relative !important;
  z-index: 2 !important;
  width: min(1440px,calc(100% - 72px)) !important;
  margin: 18px auto 0 !important;
}

/* Tablet: keep the photo as a background; place the form below to protect the copy. */
@media (min-width:761px) and (max-width:1100px) {
  .home-page .home-firstscreen { display: grid !important; grid-template-columns: minmax(0,1fr) !important; grid-template-areas: "hero" "form" "proof" "warning" !important; gap: 14px !important; padding: 0 0 18px !important; }
  .home-page .home-firstscreen > section.home-hero-v46 { grid-area: hero !important; }
  .home-page .home-firstscreen > section.home-hero-v46 > .hero-container { height: auto !important; min-height: 540px !important; padding: 42px 34px !important; }
  .home-page .home-firstscreen > section.home-hero-v46 .hero-copy { width: min(61%,650px) !important; }
  .home-page .home-firstscreen > section.home-hero-v46 .hero-visual picture img { object-position: 59% center !important; }
  .home-page .home-firstscreen > .hero-lead-card { grid-area: form !important; position: relative !important; top: auto !important; right: auto !important; justify-self: center !important; width: min(100% - 40px,660px) !important; max-width: 660px !important; margin: 0 auto !important; }
  .home-page .home-firstscreen > section.proof-premium { grid-area: proof !important; width: calc(100% - 40px) !important; margin: 0 auto !important; }
  .home-page .home-firstscreen > .home-legal-warning { grid-area: warning !important; width: calc(100% - 40px) !important; margin: 0 auto !important; }
}

/* Mobile: keep the image behind the text, with a stronger readable overlay; form follows hero. */
@media (max-width:760px) {
  .home-page .home-firstscreen { display: grid !important; grid-template-columns: minmax(0,1fr) !important; grid-template-areas: "hero" "form" "proof" "warning" !important; gap: 14px !important; padding: 0 0 18px !important; }
  .home-page .home-firstscreen > section.home-hero-v46 { grid-area: hero !important; }
  .home-page .home-firstscreen > section.home-hero-v46 > .hero-container { height: auto !important; min-height: 0 !important; padding: 32px 22px 34px !important; }
  .home-page .home-firstscreen > section.home-hero-v46 .hero-visual { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; min-height: 0 !important; }
  .home-page .home-firstscreen > section.home-hero-v46 .hero-visual picture img { object-position: 59% center !important; }
  .home-page .home-firstscreen > section.home-hero-v46 .hero-visual::before { background: linear-gradient(90deg,rgba(4,20,34,.82),rgba(4,20,34,.66) 58%,rgba(4,20,34,.48)) !important; }
  .home-page .home-firstscreen > section.home-hero-v46 .hero-visual::after { height: 26% !important; background: linear-gradient(0deg,rgba(4,20,34,.28),transparent) !important; }
  .home-page .home-firstscreen > section.home-hero-v46 .hero-copy { width: 100% !important; max-width: 100% !important; }
  .home-page .home-firstscreen > section.home-hero-v46 .kicker { font-size: 10px !important; }
  .home-page .home-firstscreen > section.home-hero-v46 h1 { max-width: 600px !important; font-size: clamp(35px,8.4vw,46px) !important; line-height: 1.08 !important; }
  .home-page .home-firstscreen > section.home-hero-v46 .leadtext { max-width: 560px !important; font-size: 16px !important; line-height: 1.55 !important; }
  .home-page .home-firstscreen > section.home-hero-v46 .hero-assurances li { font-size: 14px !important; }
  .home-page .home-firstscreen > section.home-hero-v46 .heroactions .btn { width: auto !important; max-width: 100% !important; font-size: 14px !important; }
  .home-page .home-firstscreen > section.home-hero-v46 .hero-trust-note { font-size: 11px !important; }
  .home-page .home-firstscreen > .hero-lead-card { grid-area: form !important; position: relative !important; top: auto !important; right: auto !important; width: calc(100% - 32px) !important; max-width: 560px !important; margin: 0 auto !important; }
  .home-page .home-firstscreen > section.proof-premium { grid-area: proof !important; width: calc(100% - 30px) !important; margin: 0 auto !important; }
  .home-page .home-firstscreen > .home-legal-warning { grid-area: warning !important; width: calc(100% - 30px) !important; margin: 0 auto !important; }
}
@media (max-width:390px) {
  .home-page .home-firstscreen > section.home-hero-v46 > .hero-container { padding: 26px 18px 30px !important; }
  .home-page .home-firstscreen > section.home-hero-v46 h1 { font-size: clamp(32px,8.5vw,36px) !important; }
  .home-page .home-firstscreen > section.home-hero-v46 .heroactions .btn { width: 100% !important; }
}

/* 5.9.1 cascade correction: older hero rules capped the image at 610px and
   aligned it to the second grid column. Explicitly clear those legacy limits. */
.home-page .home-firstscreen > section.home-hero-v46 > .hero-container > .hero-visual {
  left: 0 !important;
  right: 0 !important;
  max-width: none !important;
  width: 100% !important;
  justify-self: stretch !important;
  align-self: stretch !important;
  margin: 0 !important;
}
.home-page .home-firstscreen > section.home-hero-v46 > .hero-container > .hero-visual picture {
  max-width: none !important;
  width: 100% !important;
}
.home-page .home-firstscreen > section.home-hero-v46 > .hero-container > .hero-copy > h1#hero-title {
  font-size: clamp(42px,3.35vw,58px) !important;
  line-height: 1.045 !important;
}
.home-page .home-firstscreen > .hero-lead-card {
  bottom: auto !important;
  height: auto !important;
  padding: 19px 20px 17px !important;
}
.home-page .home-firstscreen > .hero-lead-card h2 { font-size: 22px !important; margin: 10px 0 7px !important; }
.home-page .home-firstscreen > .hero-lead-card > p { font-size: 13px !important; line-height: 1.42 !important; margin-bottom: 10px !important; }
.home-page .home-firstscreen > .hero-lead-card .hero-lead-form { gap: 8px !important; }
.home-page .home-firstscreen > .hero-lead-card .hero-lead-form label:not(.consent) { font-size: 12px !important; gap: 4px !important; }
.home-page .home-firstscreen > .hero-lead-card .hero-lead-form input:not([type=checkbox]),
.home-page .home-firstscreen > .hero-lead-card .hero-lead-form select { min-height: 42px !important; padding: 8px 11px !important; font-size: 14px !important; }
.home-page .home-firstscreen > .hero-lead-card .hero-lead-form .consent { font-size: 11px !important; line-height: 1.4 !important; }
.home-page .home-firstscreen > .hero-lead-card .hero-lead-form .btn { min-height: 46px !important; font-size: 14px !important; }
.home-page .home-firstscreen > .hero-lead-card .hero-lead-form .form-privacy { font-size: 9.5px !important; }
@media (min-width:761px) and (max-width:1100px) {
 .home-page .home-firstscreen > section.home-hero-v46 > .hero-container > .hero-visual { left:0!important;right:0!important;max-width:none!important;width:100%!important;justify-self:stretch!important; }
 .home-page .home-firstscreen > section.home-hero-v46 > .hero-container > .hero-copy > h1#hero-title {font-size:clamp(38px,4.2vw,48px)!important}
}
@media (max-width:760px) {
 .home-page .home-firstscreen > section.home-hero-v46 > .hero-container > .hero-visual {left:0!important;right:0!important;max-width:none!important;width:100%!important;justify-self:stretch!important}
 .home-page .home-firstscreen > section.home-hero-v46 .hero-visual picture img {object-position:50% center!important}
 .home-page .home-firstscreen > section.home-hero-v46 > .hero-container > .hero-copy > h1#hero-title {font-size:clamp(34px,8.4vw,44px)!important}
}

/* Final fit: keep headline and form fully inside the photo hero above the stats rail. */
@media (min-width:1101px) {
 .home-page .home-firstscreen > section.home-hero-v46 > .hero-container {
   height: clamp(555px,38vw,650px) !important;
   min-height: 555px !important;
   padding-top: clamp(24px,2.2vw,42px) !important;
   padding-bottom: 28px !important;
 }
 .home-page .home-firstscreen > section.home-hero-v46 .hero-trust-note {display:none!important}
 .home-page .home-firstscreen > .hero-lead-card .optional {display:none!important}
 .home-page .home-firstscreen > .hero-lead-card .hero-lead-form {gap:6px!important}
 .home-page .home-firstscreen > .hero-lead-card .hero-lead-form input:not([type=checkbox]),
 .home-page .home-firstscreen > .hero-lead-card .hero-lead-form select {min-height:38px!important;padding-block:6px!important}
 .home-page .home-firstscreen > .hero-lead-card .hero-lead-form .form-privacy {display:none!important}
 .home-page .home-firstscreen > .proof-premium {margin-top:-12px!important}
}
@media (min-width:1101px) and (max-width:1360px) {
 .home-page .home-firstscreen {display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"hero" "form" "proof" "warning"!important;gap:14px!important}
 .home-page .home-firstscreen > .hero-lead-card {position:relative!important;top:auto!important;right:auto!important;justify-self:center!important;width:min(100% - 48px,660px)!important;max-width:660px!important;margin:0 auto!important}
 .home-page .home-firstscreen > .proof-premium {margin:0 auto!important;width:calc(100% - 48px)!important}
 .home-page .home-firstscreen > .home-legal-warning {margin:0 auto!important;width:calc(100% - 48px)!important}
 .home-page .home-firstscreen > section.home-hero-v46 > .hero-container {height:560px!important;min-height:560px!important}
 .home-page .home-firstscreen > section.home-hero-v46 .hero-copy {width:min(52%,660px)!important}
}
.home-page .home-firstscreen > .home-legal-warning {
 color:#40596a!important;
 background:#fff7e8!important;
 border:1px solid #f0d49a!important;
}
@media (max-width:760px) {
 .home-page .home-firstscreen > section.home-hero-v46 .hero-visual picture img {object-position:54% center!important}
}
