/* MBH Seller Engine: offer funnel + calculator. Uses the site's navy / gold / white tokens. */

.mbh-offer,
.mbh-calc {
  --mbh-navy: #1B2A4A;
  --mbh-gold: #C9A84C;
  --mbh-gold-dark: #b8943e;
  --mbh-line: #D9DCE3;
  --mbh-ink: #1F2937;
  --mbh-muted: #5B6472;
  --mbh-error: #B42318;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--mbh-ink);
  text-align: left;
}
.mbh-offer *,
.mbh-calc * { box-sizing: border-box; }

.mbh-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* =====================================================
   OFFER FUNNEL
   ===================================================== */
.mbh-offer { scroll-margin-top: 110px; }
.mbh-offer--card {
  background: #fff;
  border-radius: 16px;
  padding: 30px 32px;
  box-shadow: 0 10px 50px rgba(27,42,74,0.13);
  border: 1px solid rgba(27,42,74,0.07);
  max-width: 560px;
  margin: 0 auto;
}

.mbh-offer-progress { margin-bottom: 18px; }
.mbh-offer-progress-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mbh-muted);
  margin-bottom: 8px;
}
.mbh-offer-progress-bar {
  display: block;
  height: 4px;
  border-radius: 4px;
  background: #ECEEF2;
  overflow: hidden;
}
.mbh-offer-progress-bar span {
  display: block;
  height: 100%;
  width: 50%;
  background: var(--mbh-gold);
  transition: width 0.25s ease;
}

.mbh-offer-step { margin: 0; }
.mbh-offer-step[hidden],
.mbh-offer [hidden],
.mbh-calc [hidden] { display: none !important; }

.mbh-offer .mbh-field,
.mbh-calc .mbh-field { margin: 0 0 16px; min-width: 0; }
.mbh-offer .mbh-field label,
.mbh-calc .mbh-field > label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #374151;
  margin: 0 0 6px;
}

/* Three classes deep so these win over the older hero form rules in the Customizer. */
.mbh-offer .mbh-field input.mbh-input,
.mbh-offer .mbh-field select.mbh-input,
.mbh-calc .mbh-field input.mbh-input {
  display: block;
  width: 100% !important;
  min-height: 50px;
  margin: 0;
  padding: 12px 14px !important;
  border: 1.5px solid var(--mbh-line) !important;
  border-radius: 8px !important;
  background: #fff;
  color: var(--mbh-ink);
  font-family: inherit !important;
  font-size: 16px !important; /* 16px stops iOS from zooming the page on focus */
  line-height: 1.3;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.mbh-offer .mbh-field select.mbh-input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231B2A4A' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.mbh-offer .mbh-field .mbh-input:focus,
.mbh-calc .mbh-field .mbh-input:focus {
  border-color: var(--mbh-navy) !important;
  outline: 2px solid transparent !important;
  box-shadow: 0 0 0 3px rgba(27,42,74,0.22) !important;
}
.mbh-offer .mbh-field .mbh-input[aria-invalid="true"],
.mbh-calc .mbh-field .mbh-input[aria-invalid="true"] { border-color: var(--mbh-error) !important; }

.mbh-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}

.mbh-field-error,
.mbh-form-error {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--mbh-error);
}
.mbh-form-error {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #FEF3F2;
  border: 1px solid #FECDCA;
}
.mbh-field-hint {
  margin: 6px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--mbh-muted);
}

.mbh-offer .mbh-btn,
.mbh-calc .mbh-btn {
  display: block;
  width: 100%;
  min-height: 54px;
  margin: 4px 0 0;
  padding: 15px 24px;
  border: 0;
  border-radius: 8px;
  background: var(--mbh-gold);
  color: var(--mbh-navy);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.mbh-offer .mbh-btn:hover,
.mbh-calc .mbh-btn:hover { background: var(--mbh-gold-dark); color: var(--mbh-navy); }
.mbh-offer .mbh-btn:active,
.mbh-calc .mbh-btn:active { transform: translateY(1px); }
.mbh-offer .mbh-btn:focus-visible,
.mbh-calc .mbh-btn:focus-visible,
.mbh-link-btn:focus-visible {
  outline: 3px solid var(--mbh-navy);
  outline-offset: 2px;
}
.mbh-offer .mbh-btn[disabled],
.mbh-calc .mbh-btn[disabled] { opacity: 0.65; cursor: default; }

.mbh-offer-trust {
  margin: 14px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--mbh-muted);
  text-align: center;
}
.mbh-offer-fine {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--mbh-muted);
}
.mbh-offer-fine a { color: var(--mbh-navy); text-decoration: underline; }

.mbh-offer-address {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 18px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #F4F3EF;
  font-size: 14px;
  font-weight: 600;
  color: var(--mbh-navy);
}
.mbh-offer-address-text { min-width: 0; overflow-wrap: anywhere; }
.mbh-offer .mbh-link-btn {
  flex-shrink: 0;
  min-height: 44px;
  padding: 0 6px;
  border: 0;
  background: none;
  color: var(--mbh-navy);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
.mbh-offer .mbh-link-btn:hover { background: none; color: var(--mbh-gold-dark); }

.mbh-hp {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.mbh-consent-label {
  display: flex !important;
  gap: 10px;
  align-items: flex-start;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 400 !important;
  font-size: 13px !important;
  line-height: 1.5;
}
.mbh-consent-label input { width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; }

/* Success */
.mbh-offer-success { outline: none; }
.mbh-offer-success-check {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(201,168,76,0.18);
  color: var(--mbh-navy);
  font-size: 24px;
  font-weight: 700;
  line-height: 48px;
  text-align: center;
  margin-bottom: 14px;
}
.mbh-offer .mbh-offer-success-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--mbh-navy);
  margin: 0 0 8px;
}
.mbh-offer-success-lead { margin: 0 0 16px; font-size: 15px; color: var(--mbh-muted); }
.mbh-offer .mbh-offer-next {
  list-style: none;
  counter-reset: mbh-next;
  margin: 0 0 18px;
  padding: 0;
}
.mbh-offer .mbh-offer-next li {
  counter-increment: mbh-next;
  position: relative;
  margin: 0 0 12px;
  padding-left: 40px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--mbh-muted);
}
.mbh-offer .mbh-offer-next li::before {
  content: counter(mbh-next);
  position: absolute;
  left: 0; top: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--mbh-navy);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 28px;
  text-align: center;
}
.mbh-offer .mbh-offer-next strong { color: var(--mbh-ink); }
.mbh-offer-success-contact { margin: 0; font-size: 14px; color: var(--mbh-muted); }
.mbh-offer-success-contact a { color: var(--mbh-navy); font-weight: 700; }

/* =====================================================
   CALCULATOR
   ===================================================== */
.mbh-calc {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 28px 80px;
}
.mbh-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  font-size: 13px;
  color: var(--mbh-muted);
}
.mbh-crumbs a { color: var(--mbh-navy); text-decoration: underline; }
.mbh-calc-intro {
  max-width: 720px;
  margin: 0 0 30px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--mbh-muted);
}

.mbh-calc .mbh-calc-card {
  min-width: 0;
  margin: 0 0 22px;
  padding: 26px 28px 12px;
  border: 1px solid rgba(27,42,74,0.08);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0,0,0,0.05);
}
.mbh-calc .mbh-calc-card legend {
  float: left;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  padding: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--mbh-navy);
}
.mbh-calc-num {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--mbh-navy);
  color: var(--mbh-gold);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 30px;
  text-align: center;
}
.mbh-calc-card-note {
  clear: both;
  margin: -8px 0 18px;
  font-size: 14px;
  color: var(--mbh-muted);
}
.mbh-calc-grid {
  clear: both;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px 20px;
}
.mbh-calc-grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.mbh-affix { position: relative; }
.mbh-affix-pre,
.mbh-affix-post {
  position: absolute;
  top: 0; bottom: 0;
  display: flex;
  align-items: center;
  font-size: 15px;
  color: var(--mbh-muted);
  pointer-events: none;
}
.mbh-affix-pre { left: 14px; }
.mbh-affix-post { right: 14px; }
.mbh-calc .mbh-field .mbh-affix-pre + input.mbh-input { padding-left: 28px !important; }

.mbh-flex-input { display: flex; gap: 8px; }
.mbh-flex-input .mbh-input { flex: 1; min-width: 0; }
.mbh-seg {
  display: flex;
  flex-shrink: 0;
  border: 1.5px solid var(--mbh-line);
  border-radius: 8px;
  overflow: hidden;
}
.mbh-calc .mbh-seg label { display: block; margin: 0; cursor: pointer; }
.mbh-seg input { position: absolute; opacity: 0; pointer-events: none; }
.mbh-seg label > span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 100%;
  min-height: 47px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--mbh-muted);
  background: #fff;
}
.mbh-seg input:checked + span { background: var(--mbh-navy); color: #fff; }
.mbh-seg input:focus-visible + span { outline: 3px solid var(--mbh-gold); outline-offset: -3px; }

.mbh-calc .mbh-btn--wide { max-width: 420px; margin: 8px auto 0; }

/* Results */
.mbh-calc-results { margin-top: 56px; outline: none; scroll-margin-top: 100px; }
.mbh-calc .mbh-calc-h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--mbh-navy);
  margin: 0 0 22px;
  text-align: center;
}
.mbh-calc-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
/* Both options get the same card, on purpose. */
.mbh-calc-option {
  padding: 28px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(27,42,74,0.08);
  border-top: 4px solid var(--mbh-navy);
  box-shadow: 0 4px 24px rgba(0,0,0,0.05);
}
.mbh-calc .mbh-calc-option h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--mbh-navy);
  margin: 0 0 14px;
}
.mbh-calc-label {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mbh-muted);
}
.mbh-calc-net {
  margin: 4px 0 6px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--mbh-navy);
  font-variant-numeric: tabular-nums;
}
.mbh-calc-time { margin: 0 0 18px; font-size: 14px; color: var(--mbh-muted); }
.mbh-calc-time strong { color: var(--mbh-ink); }
.mbh-calc .mbh-calc-breakdown { margin: 0 0 18px; border-top: 1px solid #ECEEF2; }
.mbh-calc-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid #ECEEF2;
  font-size: 14px;
}
.mbh-calc .mbh-calc-row dt { margin: 0; font-weight: 400; color: var(--mbh-muted); }
.mbh-calc .mbh-calc-row dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mbh-calc-consider-title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #374151;
}
.mbh-calc .mbh-calc-consider { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.7; color: var(--mbh-muted); }

.mbh-calc-diff {
  margin: 22px 0 0;
  padding: 30px 28px;
  border-radius: 16px;
  background: var(--mbh-navy);
  text-align: center;
}
.mbh-calc-diff-lead { margin: 0; font-size: 15px; color: rgba(255,255,255,0.75); }
.mbh-calc-diff-amount {
  margin: 6px 0 12px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--mbh-gold);
  font-variant-numeric: tabular-nums;
}
.mbh-calc-diff-context {
  max-width: 640px;
  margin: 0 auto;
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(255,255,255,0.8);
}
.mbh-calc-disclaimer {
  max-width: 720px;
  margin: 18px auto 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--mbh-muted);
  text-align: center;
}

.mbh-calc-priority,
.mbh-calc-cta { margin-top: 56px; text-align: center; }
.mbh-calc-priority-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.mbh-calc .mbh-chip { display: block; margin: 0; cursor: pointer; }
.mbh-chip input { position: absolute; opacity: 0; pointer-events: none; }
.mbh-chip span {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1.5px solid var(--mbh-line);
  border-radius: 50px;
  background: #fff;
  font-size: 15px;
  font-weight: 600;
  color: var(--mbh-navy);
  transition: border-color 0.15s, background 0.15s;
}
.mbh-chip:hover span { border-color: var(--mbh-navy); }
.mbh-chip input:checked + span { background: var(--mbh-navy); border-color: var(--mbh-navy); color: #fff; }
.mbh-chip input:focus-visible + span { outline: 3px solid var(--mbh-gold); outline-offset: 2px; }
.mbh-calc-priority-note {
  max-width: 640px;
  margin: 18px auto 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--mbh-muted);
}

.mbh-calc-cta > p { max-width: 560px; margin: -8px auto 20px; font-size: 15px; line-height: 1.6; color: var(--mbh-muted); }
.mbh-calc .mbh-calc-cta .mbh-btn { max-width: 340px; margin: 0 auto; }
.mbh-calc .mbh-calc-cta .mbh-calc-cta-status {
  margin: 0 auto;
  padding: 16px 18px;
  border-radius: 12px;
  background: #F4F3EF;
  color: var(--mbh-ink);
}
.mbh-calc-offer { margin-top: 28px; }

/* The longer headline needs a smaller size so the address field stays near the top of the screen. */
body .mbh-hero-v2 { min-height: 0 !important; padding-top: 48px !important; }
@media (max-width: 900px) {
  body .mbh-hero-v2 { padding-top: 24px !important; }
  .mbh-hero-v2 .mbh-hero-p { font-size: 16px; margin-bottom: 18px; }
  body .mbh-hero-v2 .mbh-hero-form-wrap { padding: 20px 18px !important; }
}
.mbh-hero-v2 .mbh-hero-h1 { font-size: clamp(1.9rem, 2.9vw, 2.75rem) !important; line-height: 1.14; margin-bottom: 16px; }
.mbh-hero-v2 .mbh-hero-eyebrow { margin-bottom: 16px; }
.mbh-hero-v2 .mbh-hero-p { margin-bottom: 26px; }

/* =====================================================
   HOMEPAGE "UNDERSTAND YOUR OPTIONS" BAND
   ===================================================== */
.mbh-options-band {
  background: #fff;
  padding: 80px 28px;
  text-align: center;
  border-top: 1px solid #ECEEF2;
}
.mbh-options-inner { max-width: 720px; margin: 0 auto; }
.mbh-options-lead {
  margin: 0 0 26px;
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: #5B6472;
}
a.mbh-options-link {
  display: inline-block;
  min-height: 48px;
  padding: 13px 26px;
  border: 2px solid #1B2A4A;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #1B2A4A;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
a.mbh-options-link:hover,
a.mbh-options-link:focus-visible { background: #1B2A4A; color: #fff; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 960px) {
  .mbh-calc-grid,
  .mbh-calc-grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .mbh-calc { padding: 20px 16px 60px; }
  .mbh-calc .mbh-calc-card { padding: 22px 18px 8px; }
  .mbh-calc-grid,
  .mbh-calc-grid--5,
  .mbh-calc-compare,
  .mbh-field-row { grid-template-columns: minmax(0, 1fr); }
  .mbh-calc-option { padding: 22px 18px; }
  .mbh-calc-diff { padding: 26px 18px; }
  .mbh-offer--card { padding: 24px 18px; }
  .mbh-calc-priority-options { flex-direction: column; }
  .mbh-chip span { justify-content: center; }
  .mbh-calc .mbh-btn--wide,
  .mbh-calc .mbh-calc-cta .mbh-btn { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .mbh-offer *,
  .mbh-calc * { transition: none !important; }
}

.mbh-calc .mbh-input::placeholder { color: #9AA3B2; font-weight: 400; opacity: 1; }
