/* Academy of Bankruptcy — franchise readability & alignment polish v5.19
   Scoped to the franchise page. Shared header, footer, logo and other page styles are untouched. */
:root {
  --fx519-ink: #142f43;
  --fx519-body: #4f6675;
  --fx519-label: #445c6d;
  --fx519-placeholder: #607789;
  --fx519-white: #ffffff;
  --fx519-gold: #ffda7e;
  --fx519-green: #08743c;
  --fx519-line: #c7d4dd;
}

/* Consistent rendering and predictable sizing across the entire franchise page. */
main.fx-page {
  color: var(--fx519-ink);
  font-family: Manrope, "Segoe UI", Arial, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
main.fx-page :where(h1,h2,h3,h4,p,li,label,small,a,button,input,summary,output) {
  font-family: Manrope, "Segoe UI", Arial, sans-serif !important;
  overflow-wrap: break-word;
}
main.fx-page :where(h1,h2,h3,h4) {
  text-wrap: balance;
  word-break: normal;
}

/* Light sections: firm heading color and enough contrast for supporting copy. */
main.fx-page .fx-section:not(.fx-section-calculator) :is(h2) {
  color: var(--fx519-ink) !important;
  -webkit-text-fill-color: var(--fx519-ink) !important;
  font-weight: 850 !important;
}
main.fx-page .fx-section:not(.fx-section-calculator) :is(p,li,dd,summary) {
  color: var(--fx519-body) !important;
}
main.fx-page .fx-section-heading.fx-heading-center {
  width: min(100%, 900px);
  margin-inline: auto !important;
  text-align: center !important;
}
main.fx-page .fx-section-heading.fx-heading-center > :is(.fx-eyebrow,h2,p) {
  margin-inline: auto !important;
  text-align: center !important;
}
main.fx-page .fx-section-heading p {
  max-width: 780px;
  color: #526a79 !important;
  font-size: 15px !important;
  line-height: 1.62 !important;
}
main.fx-page .fx-why-card p,
main.fx-page .fx-fit-card p,
main.fx-page .fx-market-points p,
main.fx-page .fx-process-grid p,
main.fx-page .fx-support-lead,
main.fx-page .fx-check-list li,
main.fx-page .fx-transparency-copy > p,
main.fx-page .fx-steps-grid p,
main.fx-page .fx-faq-list details p {
  color: #4f6675 !important;
  font-size: 14px !important;
  line-height: 1.62 !important;
}
main.fx-page .fx-why-card h3,
main.fx-page .fx-fit-card h3,
main.fx-page .fx-market-points h3,
main.fx-page .fx-process-grid h3,
main.fx-page .fx-support-columns h3,
main.fx-page .fx-steps-grid h3,
main.fx-page .fx-faq-list summary {
  color: #18364a !important;
  -webkit-text-fill-color: #18364a !important;
}
main.fx-page .fx-faq-list summary {
  font-size: 15px !important;
  line-height: 1.5 !important;
}
main.fx-page .fx-note-line {
  color: #405d50 !important;
}

/* Quick form: labels, helper text and fields are deliberately darker/larger. */
main.fx-page .fx-quick-form label > span,
main.fx-page .fx-final-form > label:not(.fx-consent) > span {
  color: var(--fx519-label) !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
  font-weight: 800 !important;
}
main.fx-page .fx-quick-form input:not([type=checkbox]),
main.fx-page .fx-final-form input:not([type=checkbox]) {
  min-height: 52px !important;
  height: 52px !important;
  padding: 0 15px !important;
  border: 1px solid var(--fx519-line) !important;
  border-radius: 11px !important;
  background: #fff !important;
  color: #173247 !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  box-shadow: inset 0 1px 2px rgba(12,35,51,.025);
}
main.fx-page .fx-quick-form input::placeholder,
main.fx-page .fx-final-form input::placeholder {
  color: var(--fx519-placeholder) !important;
  opacity: 1 !important;
  font-weight: 500 !important;
}
main.fx-page .fx-quick-form input:focus-visible,
main.fx-page .fx-final-form input:focus-visible {
  outline: 3px solid rgba(8,116,60,.2) !important;
  outline-offset: 1px !important;
  border-color: #087b43 !important;
}
main.fx-page .fx-consent {
  align-items: flex-start !important;
  gap: 10px !important;
  color: #445c6d !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
}
main.fx-page .fx-consent input {
  width: 19px !important;
  height: 19px !important;
  flex: 0 0 19px !important;
  margin-top: 1px !important;
}
main.fx-page .fx-consent a {
  color: #08743c !important;
  font-weight: 800 !important;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
main.fx-page .fx-quick-form > .fx-button,
main.fx-page .fx-final-form .fx-button {
  min-height: 54px !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg,#0a9850 0%,#08743c 100%) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: 15px !important;
  font-weight: 850 !important;
  box-shadow: 0 10px 24px rgba(8,116,60,.2) !important;
}
main.fx-page .fx-quick-form > .fx-button:hover,
main.fx-page .fx-final-form .fx-button:hover {
  background: linear-gradient(180deg,#0aa858 0%,#066b38 100%) !important;
}
main.fx-page .fx-form-status {
  color: #075f36 !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}

/* Calculator: keep both halves legible and balance the title over the calculator. */
main.fx-page .fx-section-calculator .fx-heading-light .fx-eyebrow {
  color: #ffda7e !important;
  -webkit-text-fill-color: #ffda7e !important;
}
main.fx-page .fx-section-calculator .fx-heading-light h2 {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  text-shadow: 0 2px 12px rgba(0,0,0,.24) !important;
}
main.fx-page .fx-section-calculator .fx-heading-light h2 em {
  color: #ffda7e !important;
  -webkit-text-fill-color: #ffda7e !important;
}
main.fx-page .fx-section-calculator .fx-heading-light p,
main.fx-page .fx-calc-overline,
main.fx-page .fx-calc-result .subresult span,
main.fx-page .fx-calc-callout p,
main.fx-page .fx-model-example span,
main.fx-page .fx-model-example > p {
  color: #dce8ed !important;
  -webkit-text-fill-color: #dce8ed !important;
}
main.fx-page .fx-calc-input label { color: #344d5e !important; }
main.fx-page .fx-calc-input output { color: #087b43 !important; }
main.fx-page .fx-calc-result .subresult b { color: #83e8ae !important; }

/* Final CTA: fix the dark-on-dark heading bug and center the complete composition. */
main.fx-page .fx-final {
  padding-block: clamp(58px,6vw,88px) !important;
  background-color: #062438 !important;
  color: #fff !important;
}
main.fx-page .fx-final-grid {
  width: min(1600px, calc(100% - 64px)) !important;
  max-width: 1600px !important;
  margin-inline: auto !important;
  grid-template-columns: minmax(0,1fr) minmax(400px,.9fr) !important;
  gap: clamp(34px,4.2vw,68px) !important;
  align-items: center !important;
}
main.fx-page .fx-final-copy {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 700px !important;
  margin-inline: auto !important;
  text-align: center !important;
}
main.fx-page .fx-final-copy > .fx-eyebrow {
  justify-content: center !important;
  color: #ffda7e !important;
  -webkit-text-fill-color: #ffda7e !important;
}
main.fx-page .fx-final-copy h2,
main.fx-page .fx-final-copy h2 > [data-promo-heading] {
  display: block !important;
  width: 100% !important;
  max-width: 680px !important;
  margin: 16px auto 15px !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: clamp(34px,3.1vw,48px) !important;
  font-weight: 900 !important;
  line-height: 1.12 !important;
  letter-spacing: -.04em !important;
  text-align: center !important;
  text-shadow: 0 2px 18px rgba(0,0,0,.24) !important;
}
main.fx-page .fx-final-copy h2 em {
  color: #ffda7e !important;
  -webkit-text-fill-color: #ffda7e !important;
  font-style: normal !important;
}
main.fx-page .fx-final-copy > p:not(.fx-promo-expired) {
  width: 100% !important;
  max-width: 650px !important;
  margin: 0 auto 13px !important;
  color: #dce8ed !important;
  -webkit-text-fill-color: #dce8ed !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
  text-align: center !important;
}
main.fx-page .fx-final-price {
  justify-content: center !important;
  align-items: baseline !important;
  gap: 15px !important;
  margin: 22px auto 20px !important;
}
main.fx-page .fx-final-price strong {
  color: #ffda7e !important;
  -webkit-text-fill-color: #ffda7e !important;
  font-size: clamp(42px,4vw,54px) !important;
  line-height: 1 !important;
  font-weight: 900 !important;
}
main.fx-page .fx-final-price span {
  color: #d7e3e9 !important;
  -webkit-text-fill-color: #d7e3e9 !important;
  font-size: 14px !important;
}
main.fx-page .fx-final-countdown-label {
  justify-content: center !important;
  margin: 4px auto 12px !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  text-align: center !important;
}
main.fx-page .fx-countdown-final {
  width: min(100%,520px) !important;
  max-width: 520px !important;
  margin-inline: auto !important;
  gap: 8px !important;
}
main.fx-page .fx-countdown-final > div {
  min-height: 78px !important;
  padding: 10px 5px 8px !important;
  border: 1px solid rgba(255,255,255,.58) !important;
  border-radius: 12px !important;
  background: rgba(255,255,255,.075) !important;
}
main.fx-page .fx-countdown-final strong {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: 30px !important;
  line-height: 1 !important;
}
main.fx-page .fx-countdown-final span {
  color: #dce8ed !important;
  -webkit-text-fill-color: #dce8ed !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
}
main.fx-page .fx-countdown-final > i { color: #ffda7e !important; }
main.fx-page .fx-final-copy .fx-deadline-copy {
  margin: 12px auto 0 !important;
  color: #c7d6de !important;
  -webkit-text-fill-color: #c7d6de !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  text-align: center !important;
}
main.fx-page .fx-final-copy .fx-promo-expired {
  max-width: 600px !important;
  margin: 14px auto 0 !important;
  color: #ffdf95 !important;
  -webkit-text-fill-color: #ffdf95 !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  text-align: center !important;
}

/* The white form card has its own dark, high-contrast text system. */
main.fx-page .fx-final-form-wrap {
  width: 100% !important;
  max-width: 700px !important;
  margin-inline: auto !important;
  padding: clamp(26px,2.8vw,38px) !important;
  border: 1px solid rgba(246,207,118,.85) !important;
  border-radius: 22px !important;
  background: linear-gradient(145deg,#fff 0%,#f6faf8 100%) !important;
  color: #173247 !important;
  box-shadow: 0 24px 66px rgba(0,0,0,.26), 0 2px 0 rgba(255,255,255,.6) inset !important;
}
main.fx-page .fx-final-form-head { text-align: left !important; }
main.fx-page .fx-final-form-head > span {
  display: inline-block !important;
  color: #087b43 !important;
  -webkit-text-fill-color: #087b43 !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
  font-weight: 900 !important;
  letter-spacing: .12em !important;
}
main.fx-page .fx-final-form-head h3 {
  margin: 10px 0 9px !important;
  color: #142f43 !important;
  -webkit-text-fill-color: #142f43 !important;
  font-size: clamp(24px,2vw,29px) !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  letter-spacing: -.025em !important;
}
main.fx-page .fx-final-form-head p {
  margin: 0 0 20px !important;
  color: #536a79 !important;
  -webkit-text-fill-color: #536a79 !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
}
main.fx-page .fx-final-form { gap: 13px !important; }
main.fx-page .fx-final-form > label:not(.fx-consent) { gap: 7px !important; }
main.fx-page .fx-final-form > small {
  color: #536a79 !important;
  -webkit-text-fill-color: #536a79 !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
}
main.fx-page .fx-final-form .status:not(:empty) {
  padding: 11px 13px !important;
  border: 1px solid #cfe8d8 !important;
  border-radius: 10px !important;
  background: #edf8f1 !important;
  color: #075f36 !important;
}

/* Keep legal notes readable without competing with the main CTA. */
main.fx-page .fx-disclaimer p {
  color: #566b79 !important;
  font-size: 12px !important;
  line-height: 1.62 !important;
}
main.fx-page :where(a,button,input) { -webkit-tap-highlight-color: transparent; }
main.fx-page :where(a,button,input):focus-visible {
  outline: 3px solid #e5b84d !important;
  outline-offset: 3px !important;
}

@media (max-width: 1100px) {
  main.fx-page .fx-final-grid {
    width: min(100% - 48px, 900px) !important;
    grid-template-columns: minmax(0,1fr) minmax(360px,.95fr) !important;
    gap: 30px !important;
  }
  main.fx-page .fx-final-copy h2 { font-size: clamp(32px,3.5vw,40px) !important; }
}
@media (max-width: 980px) {
  main.fx-page .fx-final { padding-block: 54px !important; }
  main.fx-page .fx-final-grid {
    width: min(100% - 40px, 760px) !important;
    grid-template-columns: minmax(0,1fr) !important;
    gap: 32px !important;
  }
  main.fx-page .fx-final-copy,
  main.fx-page .fx-final-form-wrap { max-width: 700px !important; }
  main.fx-page .fx-final-form-wrap { justify-self: center !important; }
}
@media (max-width: 600px) {
  main.fx-page .fx-final { padding-block: 42px !important; }
  main.fx-page .fx-final-grid {
    width: calc(100% - 32px) !important;
    gap: 25px !important;
  }
  main.fx-page .fx-final-copy h2 {
    margin: 12px auto 11px !important;
    font-size: clamp(29px,7.5vw,35px) !important;
    line-height: 1.12 !important;
  }
  main.fx-page .fx-final-copy > p:not(.fx-promo-expired) {
    font-size: 14px !important;
    line-height: 1.58 !important;
  }
  main.fx-page .fx-final-price { margin: 16px auto 16px !important; gap: 10px !important; }
  main.fx-page .fx-final-price strong { font-size: 40px !important; }
  main.fx-page .fx-final-price span { font-size: 12px !important; }
  main.fx-page .fx-final-countdown-label { font-size: 12px !important; gap: 7px !important; }
  main.fx-page .fx-countdown-final { gap: 4px !important; }
  main.fx-page .fx-countdown-final > div { min-height: 66px !important; padding: 8px 2px 7px !important; border-radius: 9px !important; }
  main.fx-page .fx-countdown-final strong { font-size: 24px !important; }
  main.fx-page .fx-countdown-final span { font-size: 9px !important; }
  main.fx-page .fx-countdown-final > i { font-size: 14px !important; }
  main.fx-page .fx-final-copy .fx-deadline-copy { font-size: 11px !important; }
  main.fx-page .fx-final-form-wrap { padding: 23px 18px !important; border-radius: 17px !important; }
  main.fx-page .fx-final-form-head h3 { font-size: 23px !important; }
  main.fx-page .fx-final-form-head p { font-size: 14px !important; margin-bottom: 16px !important; }
  main.fx-page .fx-final-form > label:not(.fx-consent) > span { font-size: 12px !important; }
  main.fx-page .fx-final-form input:not([type=checkbox]) { min-height: 51px !important; height: 51px !important; font-size: 16px !important; }
  main.fx-page .fx-final-form .fx-button { min-height: 54px !important; font-size: 14px !important; }
  main.fx-page .fx-final-form .fx-consent { font-size: 11.5px !important; }
  main.fx-page .fx-final-form > small { font-size: 11px !important; }
  main.fx-page .fx-disclaimer p { font-size: 11px !important; }
}
@media (max-width: 360px) {
  main.fx-page .fx-final-grid { width: calc(100% - 28px) !important; }
  main.fx-page .fx-final-form-wrap { padding: 20px 15px !important; }
  main.fx-page .fx-final-copy h2 { font-size: 29px !important; }
  main.fx-page .fx-countdown-final > div { min-height: 62px !important; }
  main.fx-page .fx-countdown-final strong { font-size: 22px !important; }
}
@media (prefers-reduced-motion: reduce) {
  main.fx-page *, main.fx-page *::before, main.fx-page *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
