/* ============================================================
   Money Back Hero — Brand Tokens
   ============================================================ */
:root {
  /* ---- Brand colors ---- */
  --mbh-blue: #1E5BFF;
  --mbh-blue-600: #1750E0;
  --mbh-blue-700: #1244BF;
  --mbh-blue-50: #EAF1FF;
  --mbh-blue-100: #D4E2FF;

  --mbh-deep: #0A1F4D;
  --mbh-deep-900: #061338;
  --mbh-deep-700: #142B66;

  --mbh-mint: #1ED7A6;       /* accent: money/success */
  --mbh-mint-600: #14B589;
  --mbh-mint-50: #E5FBF4;

  /* ---- Surfaces ---- */
  --mbh-white: #FFFFFF;
  --mbh-off: #F7F8FB;        /* page background */
  --mbh-cloud: #EEF1F7;      /* subtle dividers */

  /* ---- Neutrals (3-stop ramp + ink) ---- */
  --mbh-ink: #0B1220;        /* body text on white */
  --mbh-ink-2: #2A3550;      /* secondary heading */
  --mbh-muted: #5C6781;      /* muted labels, helper */
  --mbh-line: #D7DCE7;       /* borders */
  --mbh-line-soft: #E8EBF2;

  /* ---- Semantic ---- */
  --mbh-success: #0F9F6E;
  --mbh-success-bg: #E6F7EF;
  --mbh-warning: #C77A00;
  --mbh-warning-bg: #FFF4DC;
  --mbh-error: #D63B3B;
  --mbh-error-bg: #FDECEC;
  --mbh-info: #1E5BFF;
  --mbh-info-bg: #EAF1FF;

  /* ---- Type ---- */
  --mbh-display: 'Bricolage Grotesque', 'Segoe UI', sans-serif;
  --mbh-body: 'Manrope', 'Segoe UI', sans-serif;
  --mbh-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* type scale (px) */
  --t-h1: 56px;     --lh-h1: 1.04;
  --t-h2: 40px;     --lh-h2: 1.08;
  --t-h3: 28px;     --lh-h3: 1.18;
  --t-h4: 22px;     --lh-h4: 1.28;
  --t-h5: 18px;     --lh-h5: 1.36;
  --t-body: 16px;   --lh-body: 1.55;
  --t-small: 14px;  --lh-small: 1.5;
  --t-label: 13px;  --lh-label: 1.3;
  --t-caption: 12px;--lh-caption: 1.45;

  /* ---- Spacing / radius / shadow ---- */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  --sh-xs: 0 1px 2px rgba(11,18,32,.06);
  --sh-sm: 0 2px 6px rgba(11,18,32,.06), 0 1px 2px rgba(11,18,32,.04);
  --sh-md: 0 8px 24px rgba(11,18,32,.08), 0 2px 6px rgba(11,18,32,.05);
  --sh-lg: 0 24px 60px rgba(10,31,77,.18), 0 6px 14px rgba(10,31,77,.08);
  --sh-cta: 0 10px 30px rgba(30,91,255,.32), 0 2px 6px rgba(30,91,255,.18);
  --sh-focus: 0 0 0 4px rgba(30,91,255,.22);
}

/* ============================================================
   Reset-ish baseline
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--mbh-body);
  color: var(--mbh-ink);
  background: var(--mbh-off);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5 {
  font-family: var(--mbh-display);
  color: var(--mbh-deep);
  margin: 0;
  letter-spacing: -0.02em;
  font-weight: 700;
}
h1 { font-size: var(--t-h1); line-height: var(--lh-h1); letter-spacing: -0.035em; }
h2 { font-size: var(--t-h2); line-height: var(--lh-h2); letter-spacing: -0.028em; }
h3 { font-size: var(--t-h3); line-height: var(--lh-h3); letter-spacing: -0.022em; }
h4 { font-size: var(--t-h4); line-height: var(--lh-h4); letter-spacing: -0.018em; }
h5 { font-size: var(--t-h5); line-height: var(--lh-h5); letter-spacing: -0.012em; }
p  { margin: 0; }
button { font-family: inherit; }

/* ============================================================
   Components
   ============================================================ */

/* ---- Buttons ---- */
.mbh-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  font-family: var(--mbh-body);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.005em;
  line-height: 1;
  padding: 18px 26px;
  min-height: 56px;
  border-radius: var(--r-md);
  border: 0;
  cursor: pointer;
  transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.mbh-btn:active { transform: translateY(1px); }
.mbh-btn:focus-visible { outline: none; box-shadow: var(--sh-focus); }

.mbh-btn--primary {
  background: var(--mbh-blue);
  color: #fff;
  box-shadow: var(--sh-cta);
}
.mbh-btn--primary:hover { background: var(--mbh-blue-600); box-shadow: 0 14px 36px rgba(30,91,255,.4); }
.mbh-btn--primary:active { background: var(--mbh-blue-700); }

.mbh-btn--hero {
  background: var(--mbh-mint);
  color: var(--mbh-deep);
  box-shadow: 0 10px 30px rgba(30,215,166,.35), 0 2px 6px rgba(20,181,137,.2);
}
.mbh-btn--hero:hover { background: #16C595; }

.mbh-btn--ghost {
  background: transparent;
  color: var(--mbh-deep);
  border: 1.5px solid var(--mbh-line);
}
.mbh-btn--ghost:hover { background: var(--mbh-cloud); border-color: var(--mbh-ink-2); }

.mbh-btn--text {
  background: transparent;
  color: var(--mbh-blue);
  padding: 10px 6px;
  min-height: auto;
  box-shadow: none;
}
.mbh-btn--text:hover { color: var(--mbh-blue-600); text-decoration: underline; }

.mbh-btn--full { width: 100%; }
.mbh-btn--lg { font-size: 17px; min-height: 60px; padding: 20px 32px; }
.mbh-btn--sm { font-size: 14px; min-height: 40px; padding: 10px 16px; border-radius: var(--r-sm); }

/* ---- Form input ---- */
.mbh-field { display: flex; flex-direction: column; gap: 6px; }
.mbh-field__label {
  font-size: var(--t-label);
  font-weight: 600;
  color: var(--mbh-ink-2);
  letter-spacing: 0.005em;
}
.mbh-field__label .req { color: var(--mbh-blue); margin-left: 2px; }
.mbh-input,
.mbh-select,
.mbh-textarea {
  font-family: var(--mbh-body);
  font-size: 16px;
  color: var(--mbh-ink);
  background: #fff;
  border: 1.5px solid var(--mbh-line);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  width: 100%;
  min-height: 52px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.mbh-input::placeholder { color: var(--mbh-muted); }
.mbh-input:hover,
.mbh-select:hover { border-color: #B6BECF; }
.mbh-input:focus,
.mbh-select:focus,
.mbh-textarea:focus {
  outline: none;
  border-color: var(--mbh-blue);
  box-shadow: var(--sh-focus);
  background: #fff;
}
.mbh-field__help {
  font-size: var(--t-caption);
  color: var(--mbh-muted);
  display: flex; align-items: center; gap: 6px;
}
.mbh-field--error .mbh-input { border-color: var(--mbh-error); background: #FFFBFB; }
.mbh-field--error .mbh-field__help { color: var(--mbh-error); font-weight: 600; }

/* ---- Section card ---- */
.mbh-card {
  background: #fff;
  border-radius: var(--r-lg);
  border: 1px solid var(--mbh-line-soft);
  box-shadow: var(--sh-md);
  padding: 32px;
}
.mbh-card--flat { box-shadow: var(--sh-sm); }
.mbh-card--inset { background: var(--mbh-off); border: 1px solid var(--mbh-line-soft); box-shadow: none; }

/* ---- Stepper ---- */
.mbh-stepper { display: flex; align-items: center; gap: 8px; }
.mbh-step { display: flex; align-items: center; gap: 8px; flex: 1 1 0; min-width: 0; }
.mbh-step__dot {
  width: 28px; height: 28px;
  border-radius: 999px;
  display: grid; place-items: center;
  font-family: var(--mbh-body);
  font-weight: 700; font-size: 13px;
  background: var(--mbh-cloud); color: var(--mbh-muted);
  border: 1.5px solid var(--mbh-line);
  flex: 0 0 auto;
  transition: all .2s ease;
}
.mbh-step__bar {
  flex: 1 1 auto; height: 3px; border-radius: 999px;
  background: var(--mbh-line);
}
.mbh-step--done .mbh-step__dot {
  background: var(--mbh-blue); border-color: var(--mbh-blue); color: #fff;
}
.mbh-step--done .mbh-step__bar { background: var(--mbh-blue); }
.mbh-step--active .mbh-step__dot {
  background: #fff; border-color: var(--mbh-blue); color: var(--mbh-blue);
  box-shadow: 0 0 0 4px var(--mbh-blue-50);
}
.mbh-step__label {
  position: absolute; transform: translateY(36px);
  font-size: 12px; font-weight: 600; color: var(--mbh-muted);
  white-space: nowrap;
}
.mbh-step--active .mbh-step__label,
.mbh-step--done .mbh-step__label { color: var(--mbh-deep); }

/* ---- Trust badges ---- */
.mbh-trust { display: flex; flex-wrap: wrap; gap: 22px 28px; align-items: center; }
.mbh-trust__item {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600;
  color: var(--mbh-ink-2);
  letter-spacing: 0.005em;
}
.mbh-trust__icon {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  color: var(--mbh-blue);
  flex: 0 0 auto;
}

/* ---- Lender card (selectable) ---- */
.mbh-lender {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  background: #fff;
  border: 1.5px solid var(--mbh-line);
  border-radius: var(--r-md);
  padding: 16px 18px;
  cursor: pointer;
  transition: all .15s ease;
  user-select: none;
  text-align: left;
}
.mbh-lender:hover { border-color: var(--mbh-blue); transform: translateY(-1px); box-shadow: var(--sh-sm); }
.mbh-lender__logo {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: grid; place-items: center;
  font-family: var(--mbh-display);
  font-weight: 700; font-size: 18px;
  color: #fff;
  flex: 0 0 auto;
}
.mbh-lender__name { font-weight: 700; font-size: 15px; color: var(--mbh-deep); }
.mbh-lender__type { font-size: 12px; color: var(--mbh-muted); }
.mbh-lender__check {
  width: 22px; height: 22px;
  border-radius: 6px;
  border: 2px solid var(--mbh-line);
  background: #fff;
  margin-left: auto;
  display: grid; place-items: center;
  flex: 0 0 auto;
  transition: all .15s ease;
}
.mbh-lender--selected {
  border-color: var(--mbh-blue);
  background: var(--mbh-blue-50);
  box-shadow: 0 0 0 1px var(--mbh-blue) inset;
}
.mbh-lender--selected .mbh-lender__check {
  background: var(--mbh-blue);
  border-color: var(--mbh-blue);
  color: #fff;
}

/* ---- Toggle card (yes/no questions) ---- */
.mbh-toggle-card {
  display: flex; align-items: center; justify-content: space-between;
  background: #fff;
  border: 1.5px solid var(--mbh-line);
  border-radius: var(--r-md);
  padding: 18px 20px;
  gap: 16px;
}
.mbh-toggle-card__q {
  font-size: 15px; font-weight: 600; color: var(--mbh-deep);
  line-height: 1.4;
}
.mbh-toggle-group { display: flex; gap: 8px; flex: 0 0 auto; }
.mbh-toggle-btn {
  border: 1.5px solid var(--mbh-line);
  background: #fff;
  color: var(--mbh-ink-2);
  border-radius: var(--r-sm);
  padding: 10px 18px;
  font-weight: 700;
  font-size: 14px;
  min-width: 64px;
  min-height: 44px;
  cursor: pointer;
  transition: all .15s ease;
  font-family: inherit;
}
.mbh-toggle-btn:hover { border-color: var(--mbh-blue); color: var(--mbh-blue); }
.mbh-toggle-btn--on {
  background: var(--mbh-blue);
  border-color: var(--mbh-blue);
  color: #fff;
}
.mbh-toggle-btn--no.mbh-toggle-btn--on {
  background: var(--mbh-deep);
  border-color: var(--mbh-deep);
}

/* ---- Alert ---- */
.mbh-alert {
  display: flex; gap: 12px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  font-size: 14px;
  line-height: 1.45;
  border: 1px solid transparent;
}
.mbh-alert__icon { flex: 0 0 auto; width: 20px; height: 20px; }
.mbh-alert__title { font-weight: 700; color: var(--mbh-deep); margin-bottom: 2px; }
.mbh-alert__body { color: var(--mbh-ink-2); }

.mbh-alert--info    { background: var(--mbh-info-bg);    border-color: #C7D8FF; }
.mbh-alert--info    .mbh-alert__icon { color: var(--mbh-info); }
.mbh-alert--success { background: var(--mbh-success-bg); border-color: #B5E5CF; }
.mbh-alert--success .mbh-alert__icon { color: var(--mbh-success); }
.mbh-alert--warning { background: var(--mbh-warning-bg); border-color: #F5DCA0; }
.mbh-alert--warning .mbh-alert__icon { color: var(--mbh-warning); }
.mbh-alert--error   { background: var(--mbh-error-bg);   border-color: #F2C2C2; }
.mbh-alert--error   .mbh-alert__icon { color: var(--mbh-error); }

/* ---- Pill / chip ---- */
.mbh-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--mbh-blue-50);
  color: var(--mbh-blue);
}
.mbh-pill--mint { background: var(--mbh-mint-50); color: var(--mbh-mint-600); }
.mbh-pill--solid { background: var(--mbh-deep); color: #fff; }

/* ---- Star rating ---- */
.mbh-stars { display: inline-flex; gap: 2px; color: #00B67A; } /* Trustpilot green */

/* ---- Encryption strip ---- */
.mbh-encrypt {
  display: flex; align-items: center; gap: 10px;
  background: var(--mbh-deep);
  color: #fff;
  border-radius: var(--r-md);
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
}
.mbh-encrypt svg { color: var(--mbh-mint); }

/* ---- Section card focused step container ---- */
.mbh-step-shell {
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: 36px 40px;
  border: 1px solid var(--mbh-line-soft);
}

/* ---- Misc utility ---- */
.mbh-divider { height: 1px; background: var(--mbh-line-soft); margin: 24px 0; }
.mbh-row { display: flex; gap: 12px; }
.mbh-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mbh-mono { font-family: var(--mbh-mono); }
