.dofin-jdg-mortgage {
  --jmg-navy: #091f3a;
  --jmg-blue: #123c72;
  --jmg-blue-soft: #eaf2fb;
  --jmg-line: #d8e2ee;
  --jmg-cloud: #f6f9fc;
  --jmg-gold: #f5b732;
  --jmg-gold-dark: #e1a423;
  --jmg-green: #2aa477;
  --jmg-red: #b65945;
  --jmg-ink: #12253f;
  --jmg-muted: #607187;
  color: var(--jmg-ink);
  background: #fff;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow: clip;
}

.dofin-jdg-mortgage *,
.dofin-jdg-mortgage *::before,
.dofin-jdg-mortgage *::after { box-sizing: border-box; }

.dofin-jdg-mortgage h1,
.dofin-jdg-mortgage h2,
.dofin-jdg-mortgage h3,
.dofin-jdg-mortgage p,
.dofin-jdg-mortgage ul { margin-top: 0; }

.dofin-jdg-mortgage a { color: inherit; }
.jmg-shell { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.jmg-hero { padding: 34px 0 0; background: radial-gradient(circle at 12% 12%, rgba(245, 183, 50, 0.18), transparent 24%), linear-gradient(135deg, #f8fbfe 0%, #fff 56%, #eef4fb 100%); }
.jmg-hero-grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr); gap: 36px; align-items: end; min-height: 690px; }
.jmg-hero-copy { padding: 48px 0 72px; }
.jmg-eyebrow, .jmg-kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--jmg-blue); font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.jmg-eyebrow span, .jmg-kicker::before { width: 28px; height: 3px; border-radius: 99px; content: ""; background: var(--jmg-gold); }
.jmg-kicker::before { display: inline-block; margin-right: 10px; vertical-align: middle; }
.jmg-hero h1 { max-width: 760px; margin-bottom: 18px; color: var(--jmg-navy); font-size: clamp(2.65rem, 5vw, 4.55rem); line-height: 1.03; letter-spacing: -.05em; }
.jmg-hero h2 { max-width: 640px; margin-bottom: 18px; color: var(--jmg-blue); font-size: clamp(1.45rem, 2.5vw, 2rem); line-height: 1.18; letter-spacing: -.03em; }
.jmg-hero-lead { max-width: 660px; margin-bottom: 14px; color: var(--jmg-muted); font-size: 18px; }
.jmg-hero-lead--strong { margin-bottom: 0; }
.jmg-selector { margin: 28px 0 0; padding: 24px; border: 1px solid rgba(18, 60, 114, 0.09); border-radius: 24px; background: rgba(255, 255, 255, 0.88); box-shadow: 0 22px 55px rgba(12, 42, 81, 0.08); backdrop-filter: blur(10px); }
.jmg-selector > p { margin-bottom: 14px; color: var(--jmg-navy); font-size: 15px; font-weight: 800; }
.jmg-selector-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.jmg-selector-button, .jmg-tax-card button { border: 1px solid var(--jmg-line); border-radius: 14px; background: #fff; color: var(--jmg-navy); font: inherit; font-weight: 800; cursor: pointer; transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease; }
.jmg-selector-button { min-height: 54px; padding: 14px 16px; text-align: left; }
.jmg-selector-button:hover, .jmg-selector-button.is-selected, .jmg-tax-card button:hover, .jmg-tax-card.is-selected button { transform: translateY(-1px); border-color: rgba(18, 60, 114, 0.38); box-shadow: 0 14px 28px rgba(18, 60, 114, 0.12); background: var(--jmg-blue-soft); }
.jmg-hero-actions { margin-top: 26px; }
.jmg-button, .jmg-inline-cta a, .jmg-stage-grid a { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 15px 24px; border-radius: 12px; text-decoration: none; font-size: 15px; font-weight: 850; text-align: center; transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease; }
.jmg-button:hover, .jmg-inline-cta a:hover, .jmg-stage-grid a:hover { transform: translateY(-2px); }
.jmg-button:focus-visible, .jmg-inline-cta a:focus-visible, .jmg-stage-grid a:focus-visible, .jmg-selector-button:focus-visible, .jmg-tax-card button:focus-visible { outline: 3px solid rgba(245, 183, 50, 0.45); outline-offset: 3px; }
.jmg-button--primary, .jmg-inline-cta a, .jmg-stage-grid a { background: var(--jmg-gold); color: #182133; box-shadow: 0 18px 36px rgba(223, 160, 30, 0.25); }
.jmg-button--primary:hover, .jmg-inline-cta a:hover, .jmg-stage-grid a:hover { background: var(--jmg-gold-dark); }
.jmg-button--secondary { background: #fff; color: var(--jmg-navy); border: 1px solid var(--jmg-line); box-shadow: 0 14px 28px rgba(9, 31, 58, 0.08); }
.jmg-cta-note { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 18px 0 0; color: #55667b; font-size: 12px; font-weight: 700; }
.jmg-hero-visual { position: relative; min-height: 650px; display: flex; align-items: end; justify-content: center; }
.jmg-hero-visual > img { width: min(100%, 500px); height: 620px; object-fit: cover; object-position: 50% 5%; }
.jmg-expert-label, .jmg-hero-chip { position: absolute; border: 1px solid rgba(18, 60, 114, 0.12); border-radius: 14px; background: rgba(255, 255, 255, 0.94); box-shadow: 0 18px 36px rgba(12, 42, 81, 0.13); backdrop-filter: blur(12px); }
.jmg-expert-label { right: 0; bottom: 48px; min-width: 240px; padding: 18px 20px; }
.jmg-expert-label strong, .jmg-expert-label span, .jmg-hero-chip strong, .jmg-hero-chip span { display: block; }
.jmg-expert-label span, .jmg-hero-chip span { margin-top: 4px; color: var(--jmg-muted); font-size: 12px; }
.jmg-hero-chip { padding: 16px 18px; }
.jmg-hero-chip--top { top: 68px; right: 6%; }
.jmg-hero-chip--bottom { left: 0; bottom: 144px; display: flex; align-items: center; gap: 10px; }
.jmg-chip-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--jmg-green); box-shadow: 0 0 0 5px rgba(42, 164, 119, 0.12); }
.jmg-proof { padding: 22px 0 34px; background: var(--jmg-navy); color: #fff; }
.jmg-proof-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.jmg-proof-grid > div { padding: 12px 22px; border-right: 1px solid rgba(255,255,255,.15); }
.jmg-proof-grid > div:last-child { border-right: 0; }
.jmg-proof-grid strong { display: block; margin-bottom: 6px; color: var(--jmg-gold); font-size: 1.95rem; letter-spacing: -.04em; }
.jmg-proof-grid span { color: #d7dfeb; font-size: .95rem; }
.jmg-disclaimer { margin: 18px 0 0; color: #afbdd0; font-size: 12px; text-align: center; }
.jmg-section { padding: 88px 0; }
.jmg-section-head { max-width: 820px; margin-bottom: 34px; }
.jmg-section-head--split { max-width: none; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px; align-items: end; }
.jmg-section-head h2, .jmg-faq-intro h2 { margin-bottom: 14px; color: var(--jmg-navy); font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.06; letter-spacing: -.045em; }
.jmg-section-head p:last-child, .jmg-faq-intro p { color: var(--jmg-muted); font-size: 1.02rem; }
.jmg-difference-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--jmg-line); border-radius: 24px; overflow: hidden; background: #fff; }
.jmg-difference-grid article { padding: 28px 24px; border-right: 1px solid var(--jmg-line); }
.jmg-difference-grid article:last-child { border-right: 0; }
.jmg-difference-grid article.is-accent { background: linear-gradient(180deg, #fff8e9 0%, #fff 100%); }
.jmg-difference-grid span { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-bottom: 14px; border-radius: 50%; background: var(--jmg-gold); color: var(--jmg-navy); font-size: 12px; font-weight: 900; }
.jmg-difference-grid h3, .jmg-card-grid h3, .jmg-tax-card h3, .jmg-stage-grid h3, .jmg-review-card h3, .jmg-liability-grid h3, .jmg-check-card h3, .jmg-warning-card strong, .jmg-documents-card strong { margin-bottom: 10px; color: var(--jmg-navy); font-size: 1.1rem; }
.jmg-difference-grid p, .jmg-card-grid p, .jmg-tax-card p, .jmg-stage-grid p, .jmg-review-card p, .jmg-liability-grid p, .jmg-documents-card span, .jmg-check-card ul, .jmg-warning-card p { margin-bottom: 0; color: var(--jmg-muted); font-size: .96rem; }
.jmg-inline-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 24px; padding: 24px 28px; border-radius: 20px; background: var(--jmg-cloud); }
.jmg-inline-cta p { margin: 0; max-width: 720px; }
.jmg-analysis { background: var(--jmg-cloud); }
.jmg-card-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.jmg-card-grid article, .jmg-tax-card, .jmg-check-card, .jmg-liability-grid article, .jmg-documents-card, .jmg-stage-grid article, .jmg-review-card { border: 1px solid var(--jmg-line); border-radius: 22px; background: #fff; box-shadow: 0 16px 34px rgba(9, 31, 58, 0.05); }
.jmg-card-grid article, .jmg-liability-grid article, .jmg-review-card, .jmg-stage-grid article { padding: 24px; }
.jmg-tax-grid, .jmg-liability-grid, .jmg-stage-grid, .jmg-review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.jmg-tax-card { padding: 26px; }
.jmg-tax-card button { margin-top: 18px; padding: 12px 16px; width: 100%; min-height: 48px; }
.jmg-tax-note { margin: 22px 0 0; color: var(--jmg-blue); font-size: 15px; font-weight: 800; text-align: center; }
.jmg-two-column, .jmg-documents-grid, .jmg-form-grid, .jmg-faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr); gap: 34px; }
.jmg-check-card { padding: 28px; background: linear-gradient(180deg, #fbfdff 0%, #f4f8fc 100%); }
.jmg-check-card ul { padding-left: 20px; }
.jmg-check-card li { margin-bottom: 10px; }
.jmg-warning-card { margin-top: 22px; padding: 22px 24px; border-left: 4px solid var(--jmg-red); border-radius: 0 18px 18px 0; background: #fff8f4; }
.jmg-documents { background: #fffdf8; }
.jmg-documents-card { display: grid; gap: 14px; padding: 26px; }
.jmg-documents-card div { display: flex; flex-direction: column; gap: 4px; padding-bottom: 14px; border-bottom: 1px solid var(--jmg-line); }
.jmg-documents-card div:last-child { padding-bottom: 0; border-bottom: 0; }
.jmg-property { background: var(--jmg-cloud); }
.jmg-stage-grid article { display: flex; flex-direction: column; }
.jmg-stage-grid a { width: 100%; margin-top: auto; }
.jmg-form-section { background: linear-gradient(180deg, #f7fbff 0%, #fff 100%); }
.jmg-form-intro { padding-top: 10px; }
.jmg-check-list { padding-left: 18px; }
.jmg-check-list li { margin-bottom: 10px; color: var(--jmg-muted); }
.jmg-form-card { padding: 28px; border: 1px solid var(--jmg-line); border-radius: 28px; background: #fff; box-shadow: 0 24px 50px rgba(12, 42, 81, 0.08); }
.jmg-form-heading { margin-bottom: 20px; }
.jmg-form-heading p { margin-bottom: 10px; color: var(--jmg-blue); font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.jmg-form-heading h2 { margin-bottom: 8px; color: var(--jmg-navy); font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.08; letter-spacing: -.04em; }
.jmg-form-heading span { color: var(--jmg-muted); font-size: 14px; }
.jmg-step-label { margin-bottom: 10px; color: var(--jmg-blue); font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.jmg-lead-form h3 { margin-bottom: 12px; color: var(--jmg-navy); font-size: 1.7rem; line-height: 1.15; letter-spacing: -.03em; }
.jmg-step-intro, .jmg-step-note { margin-bottom: 14px; color: var(--jmg-muted); font-size: 14px; }
.jmg-options, .jmg-options--contact { display: grid; gap: 12px; }
.jmg-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.jmg-options--contact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.jmg-option { position: relative; display: flex; gap: 12px; align-items: center; min-height: 58px; padding: 16px 18px; border: 1px solid var(--jmg-line); border-radius: 16px; background: #fff; cursor: pointer; transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease; }
.jmg-option:hover { transform: translateY(-1px); border-color: rgba(18, 60, 114, 0.28); }
.jmg-option input { position: absolute; opacity: 0; pointer-events: none; }
.jmg-option-mark { flex: 0 0 18px; width: 18px; height: 18px; border: 2px solid #bdcad6; border-radius: 50%; background: #fff; }
.jmg-option input:checked + .jmg-option-mark { border-color: var(--jmg-blue); box-shadow: inset 0 0 0 4px var(--jmg-blue); }
.jmg-option:has(input:checked) { border-color: rgba(18, 60, 114, 0.34); background: var(--jmg-blue-soft); box-shadow: 0 14px 28px rgba(18, 60, 114, 0.08); }
.jmg-option--standalone { margin-top: 12px; min-height: 52px; }
.jmg-money-control { position: relative; display: flex; align-items: center; }
.jmg-money-control span { position: absolute; right: 16px; color: var(--jmg-muted); font-size: 14px; font-weight: 700; pointer-events: none; }
.jmg-money-control .dofin-lead-input { padding-right: 48px; }
.jmg-checkbox-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.jmg-check-option { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 14px 16px; border: 1px solid var(--jmg-line); border-radius: 16px; background: #fff; cursor: pointer; }
.jmg-check-option input { width: 18px; height: 18px; accent-color: var(--jmg-blue); }
.jmg-progress { margin-top: 18px; }
.jmg-lead-form .dofin-lead-progress-fill { background: var(--jmg-gold); }
.jmg-form-actions .dofin-lead-button--primary { color: var(--jmg-navy); background: var(--jmg-gold); }
.jmg-form-note { margin: 16px 0 0; color: var(--jmg-muted); font-size: 12px; text-align: center; }
.jmg-reviews { background: var(--jmg-cloud); }
.jmg-review-card div { color: var(--jmg-blue); font-size: 13px; font-weight: 800; }
.jmg-faq-list details { border-bottom: 1px solid var(--jmg-line); }
.jmg-faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 0; color: var(--jmg-navy); cursor: pointer; list-style: none; font-size: 17px; font-weight: 800; }
.jmg-faq-list summary::-webkit-details-marker { display: none; }
.jmg-faq-list summary span { color: var(--jmg-gold); font-size: 25px; transition: transform .2s ease; }
.jmg-faq-list details[open] summary span { transform: rotate(45deg); }
.jmg-faq-list details p { padding: 0 32px 22px 0; color: var(--jmg-muted); font-size: 14px; line-height: 1.68; }
.jmg-final { padding: 92px 0; background: var(--jmg-navy); color: #fff; text-align: center; }
.jmg-final-inner > p:first-child { color: var(--jmg-gold); font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.jmg-final h2 { max-width: 820px; margin: 0 auto 14px; color: #fff; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.04; letter-spacing: -.05em; }
.jmg-final-inner > p:not(:first-child) { max-width: 760px; margin: 0 auto 28px; color: #d4ddeb; font-size: 1.05rem; }
.jmg-final small { display: block; margin-top: 18px; color: #9eb0c6; font-size: 11px; }
.jmg-mobile-cta { position: fixed; left: 12px; right: 12px; bottom: 14px; z-index: 45; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border-radius: 18px; background: rgba(9, 31, 58, 0.96); color: #fff; text-decoration: none; box-shadow: 0 18px 42px rgba(9, 31, 58, 0.35); transform: translateY(150%); transition: transform 180ms ease; }
.jmg-mobile-cta span { color: #c6d3e4; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; }
.jmg-mobile-cta strong { font-size: 14px; }
.jmg-mobile-cta.is-visible { transform: translateY(0); }
@media (max-width: 1100px) {
  .jmg-hero-grid, .jmg-two-column, .jmg-documents-grid, .jmg-form-grid, .jmg-faq-grid, .jmg-section-head--split { grid-template-columns: 1fr; }
  .jmg-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .jmg-difference-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .jmg-difference-grid article:nth-child(3) { border-right: 0; }
  .jmg-difference-grid article:nth-child(n+4) { border-top: 1px solid var(--jmg-line); }
  .jmg-inline-cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 820px) {
  .jmg-shell { width: min(100% - 24px, 1160px); }
  .jmg-section { padding: 72px 0; }
  .jmg-hero-copy { padding: 30px 0 10px; }
  .jmg-hero-grid { min-height: 0; }
  .jmg-hero-visual { min-height: 440px; }
  .jmg-hero-visual > img { width: 390px; height: 440px; }
  .jmg-expert-label { bottom: 22px; right: 6%; }
  .jmg-hero-chip--top { top: 22px; right: 8%; }
  .jmg-hero-chip--bottom { left: 6%; bottom: 122px; }
  .jmg-proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jmg-proof-grid > div:nth-child(2) { border-right: 0; }
  .jmg-proof-grid > div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.15); }
  .jmg-card-grid, .jmg-tax-grid, .jmg-liability-grid, .jmg-stage-grid, .jmg-review-grid { grid-template-columns: 1fr; }
  .jmg-difference-grid { grid-template-columns: 1fr; }
  .jmg-difference-grid article { border-right: 0; border-bottom: 1px solid var(--jmg-line); }
  .jmg-difference-grid article:last-child { border-bottom: 0; }
  .jmg-options, .jmg-options--contact, .jmg-checkbox-grid, .jmg-selector-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .jmg-hero { padding-top: 18px; }
  .jmg-hero h1 { font-size: clamp(2.25rem, 11vw, 3.2rem); }
  .jmg-hero h2 { font-size: 1.35rem; }
  .jmg-hero-lead { font-size: 16px; }
  .jmg-selector { padding: 18px; }
  .jmg-button, .jmg-inline-cta a, .jmg-stage-grid a { width: 100%; }
  .jmg-cta-note { justify-content: center; font-size: 10px; }
  .jmg-hero-visual { min-height: 380px; }
  .jmg-hero-visual > img { width: 330px; height: 378px; }
  .jmg-expert-label { right: 0; min-width: 210px; padding: 15px 16px; }
  .jmg-hero-chip { padding: 12px 14px; }
  .jmg-hero-chip--top { right: 0; }
  .jmg-hero-chip--bottom { left: 0; bottom: 105px; }
  .jmg-form-card { padding: 22px 18px; border-radius: 22px; }
  .jmg-lead-form h3 { font-size: 1.42rem; }
}
@media (min-width: 821px) {
  .jmg-mobile-cta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .dofin-jdg-mortgage *,
  .dofin-jdg-mortgage *::before,
  .dofin-jdg-mortgage *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
