/* ============================================================
   MONTHLY PAYMENT REALITY CHECK — Mortgage Calculator
   The Mother Daughter Team™ | motherdaughterteam.ca
   ============================================================ */

/* ============================================================
   BRAND VARIABLES
   ── Update these to customise the entire calculator's look ──
   ============================================================ */
:root {
  /* ── Primary brand colour (buttons, accents, highlights) ── */
  --brand-primary:      #E8B4C4;   /* Pink — update to your primary */
  --brand-primary-dark: #d9a0b4;   /* Hover/active state of primary */
  --brand-primary-light:#f5dde6;   /* Light tint for backgrounds */

  /* ── Secondary / sage accent ── */
  --brand-secondary:    #7A8C74;   /* Sage green */
  --brand-secondary-light: #b8cdb3;

  /* ── CTA button (main action buttons) ── */
  --brand-cta-bg:       #1C1C1C;   /* Update: CTA button background */
  --brand-cta-text:     #F8F4EE;   /* Update: CTA button text colour */
  --brand-cta-hover:    #333333;   /* Update: CTA button hover background */

  /* ── Neutral palette (matches site) ── */
  --ivory:     #F8F4EE;
  --cream:     #EDE8DF;
  --charcoal:  #1C1C1C;
  --deep:      #111111;
  --warm-grey: #8A8278;
  --text:      #2A2A2A;
  --border:    rgba(28, 28, 28, 0.12);
  --border-focus: #E8B4C4;  /* Input focus ring colour — matches brand primary */

  /* ── Typography ──
     Update font families here to match your brand fonts      */
  --font-serif: 'Open Sans', sans-serif;
  --font-sans:  'Jost', sans-serif;

  /* ── Breakdown bar colours ── */
  --bar-mortgage:    #1C1C1C;
  --bar-tax:         #7A8C74;
  --bar-condo:       #A8B89E;
  --bar-heating:     #C4B8A8;
  --bar-insurance:   #E8B4C4;
  --bar-maintenance: #8A8278;

  /* ── Spacing & UI ── */
  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     20px;
  --radius-pill:   999px;
  --shadow-card:   0 2px 24px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lift:   0 8px 40px rgba(0,0,0,0.12);
  --transition:    all 0.24s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   BASE RESET & BODY
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--ivory);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--charcoal); }

/* ============================================================
   NAVIGATION — matches site nav
   ============================================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 22px 48px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  transition: var(--transition);
}

nav.scrolled {
  background: rgba(248, 244, 238, 0.97);
  backdrop-filter: blur(20px);
  padding: 14px 48px;
  box-shadow: 0 1px 0 rgba(28, 28, 28, 0.15);
}

.nav-logo { margin: 0 48px; }
.nav-logo-img { height: 70px; width: auto; transition: var(--transition); display: block; }
nav.scrolled .nav-logo-img,
.nav-solid .nav-logo-img { filter: brightness(0); }

.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links-left  { justify-content: flex-end; }
.nav-right { display: flex; align-items: center; justify-content: flex-start; gap: 36px; }

.nav-links a {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(248, 244, 238, 0.8);
  transition: var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--brand-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.nav-links a:hover::after { transform: scaleX(1); }
nav.scrolled .nav-links a,
.nav-solid .nav-links a { color: var(--warm-grey); }
nav.scrolled .nav-links a:hover,
.nav-solid .nav-links a:hover { color: var(--charcoal); }

.nav-cta-btn {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 11px 24px;
  margin-left: auto;
  border: 1px solid rgba(248, 244, 238, 0.5);
  color: var(--ivory);
  transition: var(--transition);
}
.nav-cta-btn:hover { background: var(--brand-primary); border-color: var(--brand-primary); color: var(--charcoal) !important; }
nav.scrolled .nav-cta-btn,
.nav-solid .nav-cta-btn { border-color: var(--charcoal); color: var(--charcoal) !important; }

.nav-solid {
  background: rgba(248, 244, 238, 0.97) !important;
  padding: 14px 48px !important;
  box-shadow: 0 1px 0 rgba(28, 28, 28, 0.15);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  z-index: 1001;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--charcoal); transition: var(--transition); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--ivory);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-menu.open { opacity: 1; }
.mobile-menu a {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--charcoal);
  padding: 18px 0;
  border-bottom: 1px solid var(--cream);
  width: 260px;
  text-align: center;
  transition: color 0.3s;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--warm-grey); }
.mobile-menu-cta { margin-top: 28px; padding: 15px 44px !important; border: 1px solid var(--charcoal) !important; border-bottom: 1px solid var(--charcoal) !important; }

/* ============================================================
   SHARED SECTION ELEMENTS
   ============================================================ */
.section-eyebrow {
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--warm-grey);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.section-eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--warm-grey);
  flex-shrink: 0;
}
.section-eyebrow.light { color: rgba(248,244,238,0.5); }
.section-eyebrow.light::before { background: rgba(248,244,238,0.3); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.calc-hero {
  background: var(--deep);
  padding: 160px 60px 80px;
  position: relative;
  overflow: hidden;
}

.calc-hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(232,180,196,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.calc-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: rgba(255,255,255,0.06);
}

.calc-hero-inner { max-width: 700px; }

.calc-hero-eyebrow {
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brand-primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.calc-hero-eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--brand-primary);
}

.calc-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 300;
  color: var(--ivory);
  line-height: 1.08;
  margin-bottom: 20px;
}
.calc-hero-title em {
  font-style: italic;
  color: var(--brand-primary);
  display: block;
}

.calc-hero-sub {
  font-size: 16px;
  font-weight: 300;
  color: rgba(248,244,238,0.7);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 28px;
}

.calc-hero-markets {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(248,244,238,0.7);
  line-height: 1.6;
}

.calc-hero-legal {
  margin-top: 14px;
  font-size: 11px;
  font-weight: 300;
  color: rgba(248,244,238,0.6);
  letter-spacing: 0.04em;
  font-style: italic;
}

/* ============================================================
   MAIN CALCULATOR SECTION
   ============================================================ */
.calc-section {
  padding: 60px 40px 80px;
  background: var(--ivory);
}

.calc-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 32px;
  align-items: start;
}

/* ── Form Card ── */
.calc-form-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 48px 44px;
  border: 1px solid var(--border);
}

/* Form group header */
.form-group-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 36px 0 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--cream);
}
.form-group-header:first-child { margin-top: 0; }

.form-group-number {
  font-family: var(--font-serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--brand-primary);
  background: var(--brand-primary-light);
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.form-group-title {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--charcoal);
  text-transform: uppercase;
}

/* Field group */
.field-group {
  margin-bottom: 20px;
}

.field-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Labels */
.field-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.field-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  background: var(--brand-primary-light);
  color: var(--charcoal);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  margin-left: auto;
}

.field-optional {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--warm-grey);
  text-transform: none;
  margin-left: auto;
}

.field-hint-inline {
  font-size: 10px;
  font-weight: 400;
  color: var(--warm-grey);
  letter-spacing: 0.02em;
  text-transform: none;
}

/* Inputs */
.input-prefix-wrap,
.input-suffix-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-prefix,
.input-suffix {
  position: absolute;
  font-size: 14px;
  font-weight: 400;
  color: var(--warm-grey);
  pointer-events: none;
  z-index: 1;
}
.input-prefix { left: 14px; }
.input-suffix { right: 14px; }

.field-input {
  width: 100%;
  height: 48px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  color: var(--charcoal);
  background: var(--ivory);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 14px;
  transition: var(--transition);
  appearance: none;
  -webkit-appearance: none;
  outline: none;
}

.field-input:focus {
  border-color: var(--border-focus);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(232,180,196,0.18);
}

.input-prefix-wrap .field-input { padding-left: 30px; }
.input-suffix-wrap .field-input { padding-right: 36px; }

/* Remove number input spinners */
.field-input[type="number"]::-webkit-inner-spin-button,
.field-input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; }
.field-input[type="number"] { -moz-appearance: textfield; }

/* Select */
.select-wrap { position: relative; }
.field-select {
  width: 100%;
  height: 48px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--charcoal);
  background: var(--ivory);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 36px 0 14px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  transition: var(--transition);
}
.field-select:focus {
  border-color: var(--border-focus);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(232,180,196,0.18);
}
.select-wrap::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--warm-grey);
  pointer-events: none;
}

/* Field hint */
.field-hint {
  font-size: 11px;
  font-weight: 300;
  color: var(--warm-grey);
  line-height: 1.5;
  margin-top: 6px;
}

/* Toggle switches */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--cream);
}
.toggle-row:last-child { border-bottom: none; }

.toggle-info { flex: 1; }

.toggle-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 2px;
}

.toggle-desc {
  display: block;
  font-size: 11px;
  font-weight: 300;
  color: var(--warm-grey);
  line-height: 1.5;
}

.toggle-switch {
  position: relative;
  flex-shrink: 0;
  width: 48px;
  height: 26px;
  cursor: pointer;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; position: absolute; }

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--cream);
  border-radius: var(--radius-pill);
  transition: var(--transition);
  border: 1.5px solid var(--border);
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 50%;
  transform: translateY(-50%);
  background: #ffffff;
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}
.toggle-switch input:checked + .toggle-slider {
  background: var(--brand-primary);
  border-color: var(--brand-primary-dark);
}
.toggle-switch input:checked + .toggle-slider::before {
  transform: translateY(-50%) translateX(22px);
}

/* ── Results Card ── */
.calc-results-card {
  background: var(--charcoal);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  padding: 40px 36px;
  position: sticky;
  top: 100px;
  color: var(--ivory);
}

/* Payment hero */
.results-payment-hero {
  text-align: center;
  padding: 28px 24px 24px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-md);
  margin-bottom: 28px;
  border: 1px solid rgba(255,255,255,0.08);
}

.results-payment-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(248,244,238,0.5);
  margin-bottom: 10px;
}

.results-payment-amount {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 300;
  color: var(--ivory);
  line-height: 1;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.results-payment-note {
  font-size: 11px;
  color: var(--brand-primary);
  letter-spacing: 0.04em;
}

/* Section title */
.results-section-title {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(248,244,238,0.4);
  margin-bottom: 14px;
}

/* Total row */
.results-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.results-total-label {
  font-size: 13px;
  font-weight: 300;
  color: rgba(248,244,238,0.7);
}

.results-total-amount {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 300;
  color: var(--brand-primary);
  transition: all 0.3s ease;
}

/* Line items */
.results-line-items {
  margin-bottom: 20px;
}

.results-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.results-line:last-child { border-bottom: none; }

.results-line-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.results-line-label {
  font-size: 12px;
  font-weight: 300;
  color: rgba(248,244,238,0.65);
  flex: 1;
}

.results-line-amount {
  font-size: 13px;
  font-weight: 500;
  color: var(--ivory);
  text-align: right;
  transition: all 0.3s ease;
}

.results-line-note {
  font-size: 11px;
  color: rgba(248,244,238,0.5);
}

.results-line-positive {
  color: #a8d5a2 !important;
}

/* Divider */
.results-divider {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 24px 0;
}

/* Upfront total */
.results-upfront-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-md);
  margin: 16px 0 24px;
  border: 1px solid rgba(255,255,255,0.08);
}

.results-upfront-total span {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(248,244,238,0.5);
}

.results-upfront-total strong {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 300;
  color: var(--ivory);
}

/* Comfort note */
.comfort-note {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  border-left: 3px solid transparent;
  transition: var(--transition);
}

.comfort-comfortable {
  background: rgba(122,140,116,0.18);
  border-left-color: #7A8C74;
}
.comfort-workable {
  background: rgba(196,184,168,0.15);
  border-left-color: #C4B8A8;
}
.comfort-stretch {
  background: rgba(232,180,196,0.15);
  border-left-color: var(--brand-primary);
}

.comfort-note-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.comfort-note-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--ivory);
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.comfort-note-msg {
  font-size: 11px;
  font-weight: 300;
  color: rgba(248,244,238,0.65);
  line-height: 1.6;
}

/* Disclaimer */
.results-disclaimer {
  font-size: 10px;
  font-weight: 300;
  color: rgba(248,244,238,0.3);
  line-height: 1.6;
  text-align: center;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ============================================================
   BREAKDOWN SECTION
   ============================================================ */
.breakdown-section {
  background: var(--cream);
  padding: 80px 60px;
  border-top: 1px solid rgba(28,28,28,0.06);
}

.breakdown-inner { max-width: 900px; margin: 0 auto; }

.breakdown-header { margin-bottom: 48px; }

.breakdown-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 300;
  color: var(--charcoal);
  line-height: 1.15;
}
.breakdown-title em {
  font-style: italic;
  color: var(--warm-grey);
}

/* Bars */
.breakdown-bars { display: flex; flex-direction: column; gap: 18px; }

.bar-row {}

.bar-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 7px;
}

.bar-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal);
}

.bar-amount {
  font-size: 14px;
  font-weight: 500;
  color: var(--charcoal);
  transition: all 0.4s ease;
}

.bar-track {
  height: 8px;
  background: rgba(28,28,28,0.08);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
}

.bar-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0 0;
  margin-top: 8px;
  border-top: 2px solid rgba(28,28,28,0.12);
}

.bar-total-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal);
}

.bar-total-amount {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 300;
  color: var(--charcoal);
  transition: all 0.4s ease;
}

/* ============================================================
   FORGOTTEN COSTS SECTION
   ============================================================ */
.forgotten-section {
  background: var(--cream);
  padding: 80px 60px;
}

.forgotten-inner { max-width: 1100px; margin: 0 auto; }

.forgotten-header { margin-bottom: 52px; }

.forgotten-title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.2vw, 42px);
  font-weight: 300;
  color: var(--charcoal);
  line-height: 1.2;
}
.forgotten-title em {
  font-style: italic;
  color: var(--warm-grey);
}

.forgotten-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.forgotten-card {
  background: #ffffff;
  border: none;
  border-bottom: 3px solid var(--charcoal);
  border-radius: 0;
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.forgotten-card:hover { box-shadow: var(--shadow-card); }

.forgotten-card-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 12px;
}

.forgotten-card-text {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 300;
  color: var(--text, #2A2A2A);
  line-height: 1.7;
}

/* ============================================================
   LEAD CAPTURE SECTION
   ============================================================ */
.lead-section {
  background: var(--charcoal);
  padding: 80px 60px;
  position: relative;
  overflow: hidden;
}

.lead-section::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(232,180,196,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.lead-inner { max-width: 680px; margin: 0 auto; position: relative; }

.lead-title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 300;
  color: var(--ivory);
  line-height: 1.2;
  margin-bottom: 16px;
}

.lead-sub {
  font-size: 15px;
  font-weight: 300;
  color: rgba(248,244,238,0.6);
  line-height: 1.75;
  margin-bottom: 40px;
}

/* Lead form */
.lead-form {}

.lead-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.lead-fields .lead-field:last-child {
  grid-column: 1 / -1;
}

.lead-field {}

.lead-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(248,244,238,0.5);
  margin-bottom: 8px;
  font-weight: 500;
}

.lead-optional {
  font-size: 10px;
  font-weight: 300;
  color: rgba(248,244,238,0.3);
  text-transform: none;
  letter-spacing: 0.02em;
}

.lead-input {
  width: 100%;
  height: 50px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--ivory);
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 0 16px;
  outline: none;
  transition: var(--transition);
}
.lead-input::placeholder { color: rgba(248,244,238,0.25); }
.lead-input:focus {
  border-color: var(--brand-primary);
  background: rgba(255,255,255,0.09);
  box-shadow: 0 0 0 3px rgba(232,180,196,0.15);
}

/* Lead form error */
.lead-form-error {
  font-size: 12px;
  color: #f4a0a0;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: rgba(244,160,160,0.1);
  border-radius: var(--radius-sm);
  border-left: 3px solid #f4a0a0;
}

/* Buttons */
.lead-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

/* ── Primary CTA button ──
   Update background, hover, text colour here for brand match  */
.lead-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 32px;
  background: var(--brand-primary);           /* ← Update: primary button bg */
  color: var(--charcoal);                      /* ← Update: primary button text */
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.lead-btn-primary:hover {
  background: var(--brand-primary-dark);      /* ← Update: primary button hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232,180,196,0.35);
  color: var(--charcoal);
}

/* ── Secondary CTA button ── */
.lead-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 28px;
  background: transparent;
  color: var(--ivory);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.lead-btn-secondary:hover {
  border-color: var(--ivory);
  transform: translateY(-2px);
  color: var(--ivory);
}

.lead-privacy {
  font-size: 11px;
  color: rgba(248,244,238,0.25);
  line-height: 1.5;
}

/* Lead success state */
.lead-success {
  text-align: center;
  padding: 52px 40px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.1);
}

.lead-success-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(168,213,162,0.2);
  border: 2px solid #a8d5a2;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: #a8d5a2;
  margin: 0 auto 20px;
}

.lead-success-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 300;
  color: var(--ivory);
  margin-bottom: 12px;
}

.lead-success-msg {
  font-size: 14px;
  font-weight: 300;
  color: rgba(248,244,238,0.6);
  line-height: 1.75;
  max-width: 440px;
  margin: 0 auto;
}

/* ============================================================
   FOOTER — matches site
   ============================================================ */
footer {
  background: var(--deep);
  color: var(--ivory);
  padding: 44px 60px 24px;
  position: relative;
  overflow: hidden;
}
footer::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1600210492486-724fe5c67fb0?w=1800&q=80');
  background-size: cover; background-position: center;
  opacity: 0.25; z-index: 0; pointer-events: none;
}
footer > * { position: relative; z-index: 1; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 52px;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-brand { margin-bottom: 10px; }
.footer-tagline { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: #ffffff; margin-bottom: 20px; }
.footer-about { font-size: 13px; font-weight: 300; line-height: 1.8; color: #ffffff; margin-bottom: 28px; }
.footer-col h4, footer h4 { font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase; color: #ffffff; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.07); }

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 13px; font-weight: 300; color: #ffffff; transition: var(--transition); }
.footer-links a:hover { color: var(--brand-primary); }

.footer-contact-row { display: flex; gap: 10px; margin-bottom: 16px; font-size: 13px; font-weight: 300; color: #ffffff; align-items: flex-start; }
.footer-contact-icon { flex-shrink: 0; margin-top: 1px; }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: #ffffff; flex-wrap: wrap; gap: 12px; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: #ffffff; transition: color 0.3s; }
.footer-bottom-links a:hover { color: var(--brand-primary); }

.social-row { display: flex; gap: 10px; }
.social-btn { width: 38px; height: 38px; border: 1.5px solid #ffffff; display: flex; align-items: center; justify-content: center; font-size: 13px; color: #ffffff; transition: var(--transition); }
.social-btn:hover { border-color: var(--brand-primary); color: var(--brand-primary); }

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 1100px) {
  .calc-grid { grid-template-columns: 1fr; }
  .calc-results-card { position: static; }
  .forgotten-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  /* Nav — collapse to hamburger at 820px tablet portrait */
  .hamburger { display: flex; }
  .mobile-menu.open { display: flex; opacity: 1; }
  .nav-links, .nav-cta-btn, .nav-right { display: none; }
  nav { padding: 18px 24px; }
  nav.scrolled, .nav-solid { padding: 12px 24px !important; }

  /* Layout */
  .calc-hero { padding: 130px 32px 60px; }
  .calc-section { padding: 40px 24px 60px; }
  .calc-form-card { padding: 32px 24px; }
  .breakdown-section { padding: 60px 32px; }
  .forgotten-section { padding: 60px 32px; }
  .lead-section { padding: 60px 32px; }
  footer { padding: 36px 32px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* 820px tablet portrait — calc grid intermediate */
@media (max-width: 820px) {
  .calc-hero { padding: 120px 28px 52px; }
  .calc-hero-title { font-size: clamp(32px, 6vw, 52px); }
  .calc-section { padding: 36px 20px 56px; }
  .breakdown-section { padding: 56px 28px; }
  .forgotten-section { padding: 56px 28px; }
  .forgotten-grid { grid-template-columns: 1fr 1fr; }
  .lead-section { padding: 56px 28px; }
  footer { padding: 36px 28px 20px; }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 768px) {
  /* Nav (already handled at 900px; these are kept as safe fallbacks) */
  .hamburger { display: flex; }
  .mobile-menu.open { display: flex; opacity: 1; }
  .nav-links, .nav-cta-btn, .nav-right { display: none; }
  nav { padding: 18px 20px; }
  nav.scrolled, .nav-solid { padding: 12px 20px !important; }

  /* iOS input zoom prevention */
  input, select, textarea { font-size: 16px !important; }

  /* Tap targets */
  .lead-btn-primary,
  .lead-btn-secondary { min-height: 48px; }

  /* Hero */
  .calc-hero { padding: 108px 20px 48px; }
  .calc-hero-title { font-size: 36px; }

  /* Form */
  .calc-section { padding: 32px 16px 48px; }
  .calc-form-card { padding: 28px 20px; border-radius: var(--radius-md); }
  .field-row-2 { grid-template-columns: 1fr; }
  .form-group-header { margin: 28px 0 18px; }

  /* Results */
  .calc-results-card { padding: 28px 20px; border-radius: var(--radius-md); }
  .results-payment-amount { font-size: 40px; }

  /* Breakdown */
  .breakdown-section { padding: 48px 20px; }

  /* Forgotten */
  .forgotten-section { padding: 48px 20px; }
  .forgotten-grid { grid-template-columns: 1fr; }

  /* Lead */
  .lead-section { padding: 52px 20px; }
  .lead-fields { grid-template-columns: 1fr; }
  .lead-fields .lead-field:last-child { grid-column: auto; }
  .lead-buttons { flex-direction: column; }
  .lead-btn-primary, .lead-btn-secondary { width: 100%; justify-content: center; }

  /* Footer */
  footer { padding: 36px 20px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
