/* ================================================
   B MORTGAGE SERVICES - CUSTOM THEME STYLESHEET
   Brand Colors: Orange #F05B28, Charcoal #2D2D2D
   ================================================ */

/* CSS Custom Properties */
:root {
  /* Brand Colors */
  --brand-orange: #F05B28;
  --brand-orange-light: #FF7A4D;
  --brand-orange-dark: #D14A1A;
  --brand-charcoal: #2D2D2D;
  --brand-charcoal-light: #4A4A4A;
  
  /* Neutral Palette */
  --white: #FFFFFF;
  --off-white: #FDF8F5;
  --cream: #FEF6F0;
  --light-grey: #F8F8F8;
  --medium-grey: #E5E5E5;
  --dark-grey: #666666;
  --text-primary: #2D2D2D;
  --text-secondary: #5A5A5A;
  
  /* Score Colors */
  --score-excellent: #22C55E;
  --score-good: #84CC16;
  --score-fair: #EAB308;
  --score-poor: #F97316;
  --score-critical: #EF4444;
  
  /* Typography - Roboto Flex Variable Font */
  --font-display: 'Roboto Flex', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Roboto Flex', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 40px rgba(0,0,0,0.12);
  --shadow-card: 0 4px 20px rgba(240, 91, 40, 0.08);
  --shadow-orange: 0 8px 30px rgba(240, 91, 40, 0.25);
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ================================================
   RESET & BASE STYLES
   ================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--brand-charcoal);
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 500; }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  color: var(--brand-orange);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--brand-orange-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ================================================
   LAYOUT & CONTAINERS
   ================================================ */

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--narrow {
  max-width: 900px;
}

.container--wide {
  max-width: 1440px;
}

section {
  padding: var(--space-4xl) 0;
}

.section--cream {
  background: var(--cream);
}

.section--off-white {
  background: var(--off-white);
}

.section--charcoal {
  background: var(--brand-charcoal);
  color: var(--white);
}

.section--charcoal h1,
.section--charcoal h2,
.section--charcoal h3,
.section--charcoal h4 {
  color: var(--white);
}

.section--charcoal p {
  color: rgba(255,255,255,0.85);
}

/* ================================================
   NAVIGATION
   ================================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: all var(--transition-base);
}

.header--scrolled {
  box-shadow: var(--shadow-md);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.header__logo img {
  height: 45px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav__list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: var(--space-lg);
}

.nav__link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  padding: var(--space-sm) 0;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-orange);
  transition: width var(--transition-base);
}

.nav__link:hover,
.nav__link--active {
  color: var(--brand-orange);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

/* Dropdown Navigation */
.nav__item--dropdown {
  position: relative;
}

.nav__link--dropdown {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  padding: var(--space-sm) 0;
}

.nav__link--dropdown::after {
  display: none;
}

.nav__chevron {
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.nav__item--open .nav__chevron {
  transform: rotate(180deg);
}

.nav__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  min-width: 220px;
  padding: 0.5rem 0;
  z-index: 100;
  list-style: none;
}

.nav__item--dropdown:hover .nav__dropdown,
.nav__item--open .nav__dropdown {
  display: block;
}

.nav__dropdown-link {
  display: block;
  padding: 0.625rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-primary);
  white-space: nowrap;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.nav__dropdown-link:hover {
  background: var(--cream);
  color: var(--brand-orange);
}

/* Mobile Menu Toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--brand-charcoal);
  margin: 5px 0;
  transition: var(--transition-base);
}

@media (max-width: 968px) {
  .nav__toggle {
    display: block;
  }
  
  .nav__list {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: var(--space-xl);
    gap: var(--space-md);
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
  }
  
  .nav__list--open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__item--dropdown {
    position: static;
  }

  .nav__dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    min-width: 0;
    padding: 0 0 0 1rem;
    border-left: 2px solid var(--brand-orange);
    margin-top: 0.5rem;
  }

  .nav__item--dropdown:hover .nav__dropdown {
    display: none;
  }

  .nav__item--open .nav__dropdown {
    display: block;
  }

  .nav__dropdown-link {
    padding: 0.5rem 0.75rem;
  }
}

/* ================================================
   BUTTONS
   ================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  border: 2px solid transparent;
  text-decoration: none;
}

.btn--primary {
  background: var(--brand-orange);
  color: var(--white);
  box-shadow: var(--shadow-orange);
}

.btn--primary:hover {
  background: var(--brand-orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(240, 91, 40, 0.35);
  color: var(--white);
}

.btn--secondary {
  background: var(--brand-charcoal);
  color: var(--white);
  border-color: var(--brand-charcoal);
}

.btn--secondary:hover {
  background: var(--brand-charcoal-light);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--brand-charcoal);
  border: 2px solid var(--medium-grey);
}

.btn--outline:hover {
  border-color: var(--brand-orange);
  color: var(--brand-orange);
  transform: translateY(-2px);
}

.btn--white {
  background: var(--white);
  color: var(--brand-charcoal);
}

.btn--white:hover {
  background: var(--off-white);
  color: var(--brand-orange);
}

.btn--large {
  padding: 1.125rem 2.25rem;
  font-size: 1.1rem;
}

.btn--small {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

.btn__icon {
  transition: transform var(--transition-fast);
}

.btn:hover .btn__icon {
  transform: translateX(4px);
}

/* ================================================
   HERO SECTIONS
   ================================================ */

.hero {
  min-height: auto;
  display: flex;
  align-items: center;
  padding: calc(80px + var(--space-3xl)) 0 var(--space-3xl);
  position: relative;
  overflow: hidden;
}

.hero--home {
  background: linear-gradient(135deg, var(--cream) 0%, var(--off-white) 100%);
}

/* ================================================
   AMBIENT GLOW HERO EFFECT
   ================================================ */

.hero--ambient {
  background: linear-gradient(135deg, var(--cream) 0%, var(--off-white) 100%);
  position: relative;
  overflow: hidden;
}

.hero__container {
  position: relative;
  z-index: 2;
}

.ambient-glow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

.ambient-glow__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  will-change: transform;
  opacity: 1;
}

/* Blob 1 - Orange, top-left */
.ambient-glow__blob--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(240, 91, 40, 0.3) 0%, transparent 70%);
  top: -10%;
  left: -5%;
  animation: ambientDrift1 25s ease-in-out infinite;
}

/* Blob 2 - Charcoal, bottom-right */
.ambient-glow__blob--2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(45, 45, 45, 0.25) 0%, transparent 70%);
  bottom: -10%;
  right: 0%;
  animation: ambientDrift2 30s ease-in-out infinite;
}

/* Blob 3 - Orange lighter, center-right */
.ambient-glow__blob--3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(240, 91, 40, 0.2) 0%, transparent 70%);
  top: 40%;
  right: 20%;
  animation: ambientDrift3 20s ease-in-out infinite;
}

/* Keyframe Animations - GPU optimized with transform */
@keyframes ambientDrift1 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(40px, 30px) scale(1.05);
  }
  50% {
    transform: translate(20px, -20px) scale(0.95);
  }
  75% {
    transform: translate(-30px, 15px) scale(1.02);
  }
}

@keyframes ambientDrift2 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(-50px, -30px) scale(1.08);
  }
  66% {
    transform: translate(30px, 20px) scale(0.92);
  }
}

@keyframes ambientDrift3 {
  0%, 100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  50% {
    transform: translate(-40px, 40px) scale(1.1) rotate(10deg);
  }
}

/* Ensure text stays crisp above animation */
.hero--ambient .hero__title,
.hero--ambient .hero__subtitle,
.hero--ambient .hero__actions {
  position: relative;
  z-index: 3;
}

@media (max-width: 768px) {
  .ambient-glow__blob--1 {
    width: 350px;
    height: 350px;
  }

  .ambient-glow__blob--2 {
    width: 300px;
    height: 300px;
  }

  .ambient-glow__blob--3 {
    width: 250px;
    height: 250px;
  }
}

/* Homepage Ambient Glow Variation - Warm gold/orange blend */
.ambient-glow--home .ambient-glow__blob--1 {
  background: radial-gradient(circle, rgba(255, 193, 112, 0.3) 0%, transparent 70%);
  top: -15%;
  left: -5%;
  animation: ambientDriftHome1 28s ease-in-out infinite;
}

.ambient-glow--home .ambient-glow__blob--2 {
  background: radial-gradient(circle, rgba(240, 91, 40, 0.22) 0%, transparent 70%);
  bottom: 0%;
  right: -5%;
  animation: ambientDriftHome2 32s ease-in-out infinite;
}

.ambient-glow--home .ambient-glow__blob--3 {
  background: radial-gradient(circle, rgba(45, 45, 45, 0.15) 0%, transparent 70%);
  top: 60%;
  right: 30%;
  left: auto;
  animation: ambientDriftHome3 22s ease-in-out infinite;
}

@keyframes ambientDriftHome1 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, 50px) scale(1.08);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

@keyframes ambientDriftHome2 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-60px, -40px) scale(1.1);
  }
}

@keyframes ambientDriftHome3 {
  0%, 100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  50% {
    transform: translate(50px, -30px) scale(1.05) rotate(-5deg);
  }
}

/* Employers Page Ambient Glow Variation - Purple/Charcoal corporate feel */
.ambient-glow--employers .ambient-glow__blob--1 {
  background: radial-gradient(circle, rgba(103, 58, 183, 0.2) 0%, transparent 70%);
  top: -5%;
  right: 10%;
  left: auto;
  animation: ambientDriftEmp1 30s ease-in-out infinite;
}

.ambient-glow--employers .ambient-glow__blob--2 {
  background: radial-gradient(circle, rgba(45, 45, 45, 0.2) 0%, transparent 70%);
  bottom: -15%;
  left: 5%;
  right: auto;
  animation: ambientDriftEmp2 26s ease-in-out infinite;
}

.ambient-glow--employers .ambient-glow__blob--3 {
  background: radial-gradient(circle, rgba(240, 91, 40, 0.18) 0%, transparent 70%);
  top: 30%;
  left: 60%;
  animation: ambientDriftEmp3 24s ease-in-out infinite;
}

@keyframes ambientDriftEmp1 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  40% {
    transform: translate(-40px, 30px) scale(1.06);
  }
  80% {
    transform: translate(20px, -20px) scale(0.98);
  }
}

@keyframes ambientDriftEmp2 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(50px, 30px) scale(1.12);
  }
}

@keyframes ambientDriftEmp3 {
  0%, 100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  50% {
    transform: translate(-30px, 50px) scale(1.08) rotate(8deg);
  }
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero__grid--image-left {
  grid-template-columns: 0.8fr 1.2fr;
}

.hero__grid--image-left .hero__visual {
  order: 0;
}

.hero__grid--image-left .hero__content {
  order: 1;
}

.hero__content {
  max-width: 600px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-orange);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-lg);
}

.hero__title {
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.8s ease;
}

.hero__subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero__features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero__feature {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.hero__feature-icon {
  width: 20px;
  height: 20px;
  color: var(--brand-orange);
}

.hero__visual {
  position: relative;
  animation: fadeInRight 1s ease 0.3s both;
  display: flex;
  justify-content: center;
}

.hero__image {
  max-width: 320px;
  max-height: 420px;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

/* Decorative Elements */
.hero__decoration {
  position: absolute;
  z-index: -1;
}

.hero__decoration--1 {
  top: 10%;
  right: 5%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(240, 91, 40, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero__decoration--2 {
  bottom: 20%;
  left: 5%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(240, 91, 40, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

@media (max-width: 968px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero__content {
    max-width: none;
  }
  
  .hero__actions,
  .hero__features {
    justify-content: center;
  }
  
  .hero__visual {
    order: -1;
    max-width: 500px;
    margin: 0 auto;
  }
}

/* Tool CTA Banner (Individuals page) */
.tool-cta {
  display: flex;
  align-items: center;
  gap: 3rem;
  background: var(--white);
  border-radius: 16px;
  padding: 2.5rem 3rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.tool-cta__content {
  flex: 1;
}

.tool-cta__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

.tool-cta__desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.tool-cta__features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1.5rem;
}

.tool-cta__features li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.tool-cta__features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: #22c55e;
  font-weight: 700;
}

.tool-cta__visual {
  flex-shrink: 0;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(240, 91, 40, 0.06);
  border-radius: 50%;
}

@media (max-width: 768px) {
  .tool-cta {
    flex-direction: column;
    padding: 2rem 1.5rem;
    text-align: center;
  }

  .tool-cta__features {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .tool-cta__visual {
    display: none;
  }
}

/* ================================================
   CARDS
   ================================================ */

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card--bordered {
  border: 2px solid transparent;
}

.card--bordered:hover {
  border-color: var(--brand-orange);
}

.card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  color: var(--brand-orange);
}

/* Employer/Grey Card Variant */
.card--employer .card__icon {
  background: var(--light-grey);
  color: var(--brand-charcoal);
}

.card__title {
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
}

.card__text {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.card__link {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Buttons inside cards */
.card .btn {
  margin-top: auto;
}

/* Service Cards Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}

/* ================================================
   FINANCIAL WELLNESS SECTION
   ================================================ */

.wellness-section {
  background: linear-gradient(135deg, var(--cream) 0%, var(--off-white) 100%);
  position: relative;
  overflow: hidden;
}

/* Wellness Hero with Background Image */
.wellness-hero {
  position: relative;
  padding-top: calc(80px + var(--space-4xl));
  padding-bottom: var(--space-4xl);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.wellness-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(45, 45, 45, 0.75) 0%, rgba(45, 45, 45, 0.5) 100%);
  z-index: 1;
}

.wellness-hero .container {
  position: relative;
  z-index: 2;
}

.wellness-hero__content {
  max-width: 650px;
}

.wellness-hero__content h1 {
  color: var(--white);
  margin-bottom: var(--space-lg);
}

.wellness-hero__content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  margin-bottom: var(--space-xl);
}

.hero__eyebrow--light {
  color: var(--brand-orange);
}

.wellness-features--light .wellness-feature__text {
  color: rgba(255, 255, 255, 0.85);
}

.wellness-features--light .wellness-feature__icon {
  color: var(--brand-orange);
}

.wellness-cta__note--light {
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
  .wellness-hero {
    min-height: auto;
    padding-top: calc(80px + var(--space-2xl));
    padding-bottom: var(--space-2xl);
  }

  .wellness-hero__content {
    max-width: 100%;
  }
}

.wellness-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.wellness-content h2 {
  margin-bottom: var(--space-lg);
}

.wellness-content p {
  font-size: 1.1rem;
  margin-bottom: var(--space-xl);
}

.wellness-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.wellness-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.wellness-feature__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--brand-orange);
}

.wellness-feature__text {
  color: var(--text-secondary);
}

.wellness-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
}

.wellness-cta__note {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.wellness-cta--stacked {
  flex-direction: column;
  align-items: flex-start;
}

.wellness-cta--stacked .wellness-cta__note {
  color: var(--white);
  margin-top: var(--space-md);
}

.wellness-mockup {
  position: relative;
}

.wellness-mockup__image {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

/* Score Display */
.score-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-xl);
  max-width: 380px;
}

.score-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.score-card__badge {
  width: 24px;
  height: 24px;
  background: var(--brand-orange);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.score-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand-orange);
}

.score-gauge {
  position: relative;
  width: 200px;
  height: 120px;
  margin: 0 auto var(--space-lg);
}

.score-gauge__value {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.score-gauge__number {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--brand-charcoal);
}

.score-gauge__max {
  font-size: 1rem;
  color: var(--text-secondary);
}

.score-gauge__label {
  font-size: 0.875rem;
  color: var(--score-good);
  font-weight: 600;
}

.score-status {
  text-align: center;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--medium-grey);
}

.score-status__title {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.score-status__text {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.score-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.score-detail__title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.score-detail__title--good {
  color: var(--score-good);
}

.score-detail__title--improve {
  color: var(--brand-orange);
}

.score-detail__list {
  list-style: none;
  font-size: 0.85rem;
}

.score-detail__item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.score-detail__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

@media (max-width: 968px) {
  .wellness-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .wellness-features {
    align-items: center;
  }
  
  .wellness-cta {
    justify-content: center;
  }
  
  .wellness-mockup {
    order: -1;
    max-width: 400px;
    margin: 0 auto;
  }
}

/* ================================================
   ENHANCED WELLNESS VISUALIZATIONS (Week 2)
   ================================================ */

/* Chart Grid - Responsive layout for radar and bar charts */
.wellness-charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.wellness-chart-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

@media (max-width: 968px) {
  .wellness-charts-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Runway Callout - Hero Metric */
#runway-callout {
  background: linear-gradient(135deg, var(--brand-orange) 0%, #D94A1F 100%);
  border-radius: var(--radius-md);
  padding: var(--space-2xl);
  text-align: center;
  color: var(--white);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#runway-callout:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15), 0 3px 6px rgba(0, 0, 0, 0.1);
}

#runway-callout h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
  opacity: 0.95;
}

#runway-days {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  display: block;
  margin-bottom: var(--space-sm);
  line-height: 1;
}

#runway-callout p,
#runway-callout span,
#runway-callout div {
  color: var(--white);
}

#runway-callout p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: var(--space-xs);
}

#runway-callout .benchmark {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

/* Perception Gap Visual */
#perception-gap {
  background: var(--white);
  border: 2px solid var(--medium-grey);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

#perception-gap h4 {
  font-size: 1.125rem;
  margin-bottom: var(--space-lg);
  color: var(--brand-charcoal);
  text-align: center;
}

.comparison-bars {
  margin-bottom: var(--space-lg);
}

.estimate-bar,
.actual-bar {
  padding: var(--space-md);
  margin-bottom: var(--space-md);
  border-radius: var(--radius-sm);
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.estimate-bar {
  background: rgba(147, 51, 234, 0.1);
  border-left: 4px solid #9333EA;
  color: #9333EA;
}

.actual-bar {
  background: rgba(59, 130, 246, 0.1);
  border-left: 4px solid #3B82F6;
  color: #3B82F6;
}

#gap-message {
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Waterfall Chart Container */
#waterfall-section {
  background: var(--white);
  border: 2px solid var(--medium-grey);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

#waterfall-section h4 {
  font-size: 1.125rem;
  margin-bottom: var(--space-sm);
  color: var(--brand-charcoal);
  text-align: center;
}

#waterfall-section p {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  font-size: 0.9rem;
}

#waterfall-chart-container {
  position: relative;
  height: 300px;
  margin-top: var(--space-lg);
}

/* Risk Probability Cards */
#risk-probabilities {
  background: var(--white);
  border: 2px solid var(--medium-grey);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

#risk-probabilities h4 {
  font-size: 1.125rem;
  margin-bottom: var(--space-sm);
  color: var(--brand-charcoal);
  text-align: center;
}

#risk-probabilities > p {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  font-size: 0.9rem;
}

.risk-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.risk-stat {
  background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
  border: 1px solid var(--medium-grey);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.risk-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.risk-stat p:first-child {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--brand-orange);
  margin-bottom: var(--space-sm);
  line-height: 1;
}

.risk-stat p:last-child {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.risk-disclaimer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-style: italic;
  padding-top: var(--space-md);
  border-top: 1px solid var(--medium-grey);
}

/* Responsive Design for Enhanced Visualizations */
@media (max-width: 968px) {
  #runway-days {
    font-size: 3rem;
  }

  #runway-callout {
    padding: var(--space-xl);
  }

  #waterfall-chart-container {
    height: 250px;
  }

  .risk-stats {
    grid-template-columns: 1fr;
  }

  .risk-stat p:first-child {
    font-size: 2rem;
  }
}

@media (max-width: 640px) {
  #runway-days {
    font-size: 2.5rem;
  }

  #runway-callout h3 {
    font-size: 1.125rem;
  }

  #runway-callout,
  #perception-gap,
  #waterfall-section,
  #risk-probabilities {
    padding: var(--space-lg);
  }

  #waterfall-chart-container {
    height: 200px;
  }
}

/* ================================================
   PROCESS STEPS
   ================================================ */

.process-section {
  background: var(--white);
}

.process-section h2 {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: var(--medium-grey);
  z-index: 0;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.process-step__number {
  width: 80px;
  height: 80px;
  background: var(--brand-orange);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0 auto var(--space-lg);
  box-shadow: var(--shadow-orange);
}

.process-step__title {
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
}

.process-step__text {
  color: var(--text-secondary);
  max-width: 280px;
  margin: 0 auto;
}

.process-hook {
  text-align: center;
  font-size: 1.35rem;
  color: var(--text-secondary);
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--medium-grey);
}

.process-hook strong {
  color: var(--brand-charcoal);
  font-weight: 700;
}

.process-hook__highlight {
  color: var(--brand-orange);
  font-style: normal;
  font-weight: 600;
}

@media (max-width: 768px) {
  .process-hook {
    font-size: 1.15rem;
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
  }
}

@media (max-width: 768px) {
  .process-steps {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  
  .process-steps::before {
    display: none;
  }
}

/* ================================================
   EMPLOYER SECTION
   ================================================ */

.employer-highlight {
  background: var(--brand-charcoal);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.employer-highlight::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(240, 91, 40, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.employer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.employer-highlight h2 {
  color: var(--white);
}

.employer-content h2 {
  color: var(--white);
  margin-bottom: var(--space-lg);
}

.employer-content > p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  margin-bottom: var(--space-xl);
}

.employer-benefits {
  display: grid;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.employer-benefit {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.employer-benefit__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--brand-orange);
}

.employer-benefit__text {
  color: rgba(255,255,255,0.9);
}

.employer-benefit__text strong {
  color: var(--white);
  font-weight: 600;
}

.employer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
}

.employer-link {
  color: var(--brand-orange);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.employer-link:hover {
  color: var(--brand-orange-light);
}

.employer-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.employer-visual__image {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

@media (max-width: 968px) {
  .employer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .employer-visual {
    order: -1;
    margin-bottom: var(--space-xl);
  }

  .employer-visual__image {
    max-width: 400px;
  }

  .employer-benefits {
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .employer-actions {
    justify-content: center;
  }
}

/* ================================================
   ABOUT SECTION
   ================================================ */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-3xl);
  align-items: center;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-content {
  text-align: left;
}

.about-content h2 {
  margin-bottom: var(--space-xl);
}

.about-content p {
  margin-bottom: var(--space-lg);
  line-height: 1.8;
}

.about-lead {
  font-size: 1.15rem;
}

.about-content strong {
  color: var(--brand-charcoal);
  font-weight: 600;
}

.about-content em {
  font-style: normal;
  font-weight: 500;
  color: var(--brand-charcoal);
}

.text-highlight {
  color: var(--brand-orange);
  font-weight: 600;
}

@media (max-width: 968px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .about-image {
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .about-lead {
    font-size: 1.05rem;
  }
}

/* ================================================
   TESTIMONIALS
   ================================================ */

.testimonials-section {
  background: var(--off-white);
}

.testimonials-section h2 {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-xl);
}

.testimonial {
  background: var(--white);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.testimonial__stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-md);
  color: var(--brand-orange);
}

.testimonial__text {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  font-style: italic;
}

.testimonial__author {
  font-weight: 600;
  color: var(--text-primary);
}

/* ================================================
   REFERRAL SECTION
   ================================================ */

.referral-section {
  background: var(--white);
  border-top: 1px solid var(--medium-grey);
}

.referral-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.referral-content h2 {
  margin-bottom: var(--space-lg);
}

.referral-content > p {
  font-size: 1.1rem;
  margin-bottom: var(--space-2xl);
}

.referral-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
  text-align: left;
}

.referral-step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.referral-step__number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--cream);
  color: var(--brand-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.referral-step__content h4 {
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}

.referral-step__content p {
  font-size: 0.9rem;
  margin: 0;
}

.referral-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

@media (max-width: 768px) {
  .referral-steps {
    grid-template-columns: 1fr;
  }
}

/* ================================================
   FOOTER
   ================================================ */

.footer {
  background: var(--brand-charcoal);
  color: rgba(255,255,255,0.8);
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer__warning-box {
  background: #FFF8E1;
  border: 2px solid #F9A825;
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-xl);
  margin-bottom: var(--space-3xl);
  text-align: center;
}

.footer__warning-box p {
  color: #5D4037;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.5;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__grid--simple {
  grid-template-columns: 1.5fr 1fr 1.2fr;
}

.footer__contact-link {
  color: var(--white);
  font-weight: 600;
  font-size: 1.1rem;
  transition: color var(--transition-fast);
}

.footer__contact-link:hover {
  color: var(--brand-orange);
}

.footer__contact-item--prominent {
  margin-bottom: var(--space-md);
}

.footer__contact-item--prominent .footer__contact-icon {
  color: var(--brand-orange);
}

.footer__brand p {
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--space-lg);
  max-width: 300px;
}

.footer__social {
  display: flex;
  gap: var(--space-md);
}

.footer__social a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all var(--transition-base);
}

.footer__social a:hover {
  background: var(--brand-orange);
  transform: translateY(-2px);
}

.footer__title {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-lg);
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: var(--space-sm);
}

.footer__links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: var(--brand-orange);
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  font-size: 0.95rem;
}

.footer__contact-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--brand-orange);
  margin-top: 2px;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer__copyright {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
}

.footer__legal {
  display: flex;
  gap: var(--space-lg);
}

.footer__legal a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
}

.footer__legal a:hover {
  color: var(--brand-orange);
}

.footer__disclaimer {
  margin-top: var(--space-xl);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

.footer__disclaimer p {
  color: rgba(255,255,255,0.5);
  margin: 0;
}

@media (max-width: 968px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer__brand {
    grid-column: span 2;
  }
}

@media (max-width: 576px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
  
  .footer__brand {
    grid-column: span 1;
  }
  
  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ================================================
   CALCULATOR SECTION
   ================================================ */

.calculator-section {
  background: var(--light-grey);
}

.calculator-section h2 {
  text-align: center;
  margin-bottom: var(--space-md);
}

.calculator-section .mb-4 {
  margin-bottom: var(--space-2xl);
}

.calculator-tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.calculator-tab {
  padding: var(--space-md) var(--space-xl);
  background: var(--white);
  border: 2px solid var(--medium-grey);
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
}

.calculator-tab:hover,
.calculator-tab--active {
  border-color: var(--brand-orange);
  color: var(--brand-orange);
}

.calculator-tab--active {
  background: var(--cream);
}

.calculator-box {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  max-width: 600px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}

.calculator-form {
  display: grid;
  gap: var(--space-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.form-group label {
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input,
.form-group select {
  padding: var(--space-md);
  border: 2px solid var(--medium-grey);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--brand-orange);
}

.calculator-result {
  text-align: center;
  padding: var(--space-xl);
  background: var(--cream);
  border-radius: var(--radius-lg);
  margin-top: var(--space-lg);
}

.calculator-result__label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.calculator-result__value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--brand-orange);
}

.calculator-result__note {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: var(--space-md);
}

/* Affordability Calculator */
.calculator-intro {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.affordability-calculator {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-2xl);
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-lg);
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
}

.calculator-inputs {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form-label {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
  display: block;
}

.form-label__optional {
  font-weight: 400;
  color: var(--text-secondary);
  font-size: 0.9em;
}

.form-label__hint {
  font-weight: 400;
  color: var(--text-secondary);
  font-size: 0.85em;
  display: block;
  margin-top: 2px;
}

.form-label--small {
  font-size: 0.9rem;
  font-weight: 500;
}

.form-select {
  width: 100%;
  padding: var(--space-md);
  border: 2px solid var(--medium-grey);
  border-radius: var(--radius-md);
  font-size: 1rem;
  background: var(--white);
  cursor: pointer;
  transition: border-color var(--transition-fast);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.form-select:focus {
  outline: none;
  border-color: var(--brand-orange);
}

.commitments-section {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--medium-grey);
}

.commitments-section > .form-label {
  margin-bottom: var(--space-md);
}

.commitments-section .form-group {
  margin-bottom: var(--space-md);
}

.commitments-section .form-group:last-child {
  margin-bottom: 0;
}

.toggle-group {
  display: flex;
  gap: 0;
  background: var(--light-grey);
  border-radius: var(--radius-md);
  padding: 4px;
}

.toggle-btn {
  flex: 1;
  padding: var(--space-sm) var(--space-lg);
  border: none;
  background: transparent;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.toggle-btn:hover {
  color: var(--text-primary);
}

.toggle-btn--active {
  background: var(--white);
  color: var(--brand-orange);
  box-shadow: var(--shadow-sm);
}

.input-with-prefix {
  display: flex;
  align-items: stretch;
  border: 2px solid var(--medium-grey);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
  width: 100%;
  box-sizing: border-box;
}

.input-with-prefix:focus-within {
  border-color: var(--brand-orange);
}

.input-prefix {
  display: flex;
  align-items: center;
  padding: 0 var(--space-md);
  background: var(--light-grey);
  color: var(--text-secondary);
  font-weight: 600;
  border-right: 2px solid var(--medium-grey);
}

.input-with-prefix .form-input {
  flex: 1;
  border: none;
  padding: var(--space-md);
  font-size: 1.1rem;
  outline: none;
}

.net-pay-display {
  margin-top: var(--space-xs);
  font-size: 0.8rem;
  color: var(--text-secondary);
  min-height: 1.2em;
}

.net-pay-display strong {
  color: var(--score-good);
  font-weight: 600;
}

.calculator-results {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.results-title {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  text-align: center;
}

.result-tiers {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.result-tier {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  border-left: 4px solid var(--medium-grey);
  transition: all var(--transition-fast);
}

.result-tier:hover {
  transform: translateX(4px);
}

.result-tier--conservative {
  border-left-color: var(--text-secondary);
}

.result-tier--standard {
  border-left-color: var(--brand-orange);
  background: rgba(240, 91, 40, 0.05);
}

.result-tier--maximum {
  border-left-color: var(--brand-charcoal);
}

.result-tier__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xs);
}

.result-tier__label {
  font-weight: 700;
  color: var(--text-primary);
}

.result-tier__multiplier {
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: var(--light-grey);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.result-tier__amount {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--brand-charcoal);
  margin-bottom: var(--space-xs);
}

.result-tier--standard .result-tier__amount {
  color: var(--brand-orange);
  font-size: 2rem;
}

.result-tier__desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
}

.result-tier__repayment {
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px dashed var(--medium-grey);
  font-size: 0.9rem;
  color: var(--text-primary);
}

.result-tier__repayment .repayment-label {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

/* Mortgage Term Slider */
.mortgage-term-slider {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--medium-grey);
}

.term-slider__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}

.term-slider__label {
  font-weight: 600;
  color: var(--text-primary);
}

.term-slider__value {
  font-weight: 700;
  color: var(--brand-orange);
  font-size: 1.1rem;
}

.term-slider__input {
  width: 100%;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--medium-grey);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.term-slider__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-orange);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(240, 91, 40, 0.4);
  transition: transform var(--transition-fast);
}

.term-slider__input::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.term-slider__input::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-orange);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(240, 91, 40, 0.4);
}

.term-slider__range {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-xs);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.term-slider__note {
  margin-top: var(--space-md);
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: center;
  font-style: italic;
}

.calculator-disclaimers {
  max-width: 900px;
  margin: var(--space-xl) auto 0;
}

.repossession-warning {
  background: var(--cream);
  border: 2px solid var(--brand-orange);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  text-align: center;
  margin-bottom: var(--space-md);
}

.repossession-warning strong {
  color: var(--brand-charcoal);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.results-disclaimer {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: center;
  margin: 0;
}

/* Moving Cost Calculator */
.moving-cost-calculator {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-lg);
  max-width: 900px;
  margin: var(--space-2xl) auto 0;
  overflow: hidden;
}

.moving-cost__title {
  text-align: center;
  margin-bottom: var(--space-xl);
  color: var(--brand-charcoal);
}

.moving-cost__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-2xl);
}

.moving-cost__inputs {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.moving-cost__inputs .form-input--small {
  width: 100%;
  padding: var(--space-md);
  border: 2px solid var(--medium-grey);
  border-radius: var(--radius-md);
  font-size: 1rem;
}

.moving-cost__inputs .form-input--small:focus {
  outline: none;
  border-color: var(--brand-orange);
}

.deposit-ltv {
  margin-top: var(--space-xs);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.deposit-ltv strong {
  color: var(--brand-orange);
}

.mortgage-term-slider--moving {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.moving-cost__results {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.moving-result__primary {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.moving-result__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.moving-result__item--highlight {
  background: var(--white);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--brand-orange);
}

.moving-result__label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.moving-result__value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-orange);
}

.moving-result__breakdown {
  border-top: 1px solid var(--medium-grey);
  padding-top: var(--space-lg);
}

.breakdown__title {
  font-size: 1rem;
  color: var(--brand-charcoal);
  margin-bottom: var(--space-md);
}

.breakdown__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--medium-grey);
}

.breakdown__label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.breakdown__note {
  font-size: 0.75rem;
  color: var(--dark-grey);
}

.breakdown__value {
  font-weight: 600;
  color: var(--brand-charcoal);
}

.breakdown__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-md);
  margin-top: var(--space-sm);
  border-top: 2px solid var(--brand-charcoal);
}

.breakdown__total .breakdown__label {
  font-weight: 700;
  color: var(--brand-charcoal);
}

.breakdown__total .breakdown__value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-orange);
}

.calculator-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-top: var(--space-2xl);
}

.calculator-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Quote Modal */
.quote-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.quote-modal--open {
  opacity: 1;
  visibility: visible;
}

.quote-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.quote-modal__container {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  max-width: 560px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-2xl);
  transform: translateY(20px);
  transition: transform var(--transition-base);
}

.quote-modal--open .quote-modal__container {
  transform: translateY(0);
}

.quote-modal__close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  padding: var(--space-xs);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.quote-modal__close:hover {
  color: var(--brand-charcoal);
  background: var(--light-grey);
}

.quote-modal__back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: var(--space-xs) 0;
  margin-bottom: var(--space-lg);
  transition: color var(--transition-fast);
}

.quote-modal__back:hover {
  color: var(--brand-orange);
}

.quote-modal__title {
  font-size: 1.5rem;
  color: var(--brand-charcoal);
  margin-bottom: var(--space-sm);
  text-align: center;
}

.quote-modal__subtitle {
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: var(--space-xl);
}

/* Quote Form */
.quote-modal__form .form-group {
  margin-bottom: var(--space-lg);
}

.quote-modal__form .form-input {
  width: 100%;
  padding: var(--space-md);
  border: 2px solid var(--medium-grey);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.quote-modal__form .form-input:focus {
  outline: none;
  border-color: var(--brand-orange);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--brand-orange);
}

.btn--full {
  width: 100%;
  justify-content: center;
}

.quote-modal__privacy {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: center;
  margin-top: var(--space-lg);
}

/* Success State */
.quote-modal__success {
  text-align: center;
  padding: var(--space-xl) 0;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: var(--score-good);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-xl);
  color: var(--white);
}

.quote-modal__success .quote-modal__title {
  color: var(--score-good);
}

.quote-modal__success .quote-modal__subtitle {
  margin-bottom: var(--space-xl);
}

@media (max-width: 576px) {
  .quote-modal__container {
    padding: var(--space-xl);
    width: 95%;
  }

  .quote-modal__title {
    font-size: 1.25rem;
  }

  .affordability-calculator,
  .moving-cost-calculator {
    padding: var(--space-md);
    margin-left: calc(-1 * var(--space-sm));
    margin-right: calc(-1 * var(--space-sm));
    border-radius: var(--radius-lg);
  }

  .calculator-results,
  .moving-cost__results {
    padding: var(--space-md);
  }

  .result-tiers {
    flex-direction: column;
  }

  .result-tier {
    border-top: none;
    border-left: 4px solid var(--medium-grey);
  }

  .result-tier--conservative {
    border-left-color: var(--text-secondary);
  }

  .result-tier--standard {
    border-left-color: var(--brand-orange);
  }

  .result-tier--maximum {
    border-left-color: var(--brand-charcoal);
  }
}

@media (max-width: 768px) {
  .moving-cost-calculator {
    padding: var(--space-lg);
  }

  .moving-cost__grid {
    grid-template-columns: 1fr;
  }

  .moving-cost__inputs {
    order: 1;
  }

  .moving-cost__results {
    order: 2;
  }

  .moving-cost__inputs .input-with-prefix,
  .moving-cost__inputs .form-input {
    max-width: 100%;
    box-sizing: border-box;
  }

  .moving-result__value {
    font-size: 1.25rem;
  }
}

@media (max-width: 768px) {
  .affordability-calculator {
    grid-template-columns: 1fr;
    padding: var(--space-lg);
  }

  .calculator-inputs {
    order: 1;
  }

  .calculator-results {
    order: 2;
  }

  .input-with-prefix,
  .form-select,
  .form-input {
    max-width: 100%;
    box-sizing: border-box;
  }

  .result-tiers {
    flex-direction: row;
    gap: var(--space-sm);
  }

  .result-tier {
    flex: 1;
    padding: var(--space-md);
    border-left: none;
    border-top: 4px solid var(--medium-grey);
  }

  .result-tier--conservative {
    border-top-color: var(--text-secondary);
  }

  .result-tier--standard {
    border-top-color: var(--brand-orange);
  }

  .result-tier--maximum {
    border-top-color: var(--brand-charcoal);
  }

  .result-tier__header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
  }

  .result-tier__amount {
    font-size: 1.25rem;
  }

  .result-tier--standard .result-tier__amount {
    font-size: 1.5rem;
  }

  .result-tier__repayment {
    font-size: 0.75rem;
  }

  .result-tier__repayment .repayment-label {
    display: block;
    margin-bottom: 2px;
  }

  .mortgage-term-slider {
    margin-top: var(--space-lg);
  }

  .term-slider__value {
    font-size: 1rem;
  }
}

/* ================================================
   FAQ ACCORDION
   ================================================ */

.faq-section {
  background: var(--white);
}

.faq-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.faq-header h2 {
  margin-bottom: var(--space-sm);
}

.faq-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin: 0;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--medium-grey);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg) 0;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--brand-orange);
}

.faq-icon {
  width: 24px;
  height: 24px;
  color: var(--brand-orange);
  transition: transform var(--transition-base);
}

.faq-item--open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}

.faq-item--open .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding-bottom: var(--space-lg);
}

.faq-disclaimer {
  max-width: 800px;
  margin: var(--space-xl) auto 0;
  font-size: 0.875rem;
  color: var(--text-light);
  font-style: italic;
}

/* ================================================
   LENDER LOGOS
   ================================================ */

.lenders-section {
  background: var(--white);
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--medium-grey);
  border-bottom: 1px solid var(--medium-grey);
}

.lenders-content {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
}

.lenders-text {
  flex-shrink: 0;
  font-weight: 600;
  color: var(--text-secondary);
}

.lenders-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  flex: 1;
}

.lender-logo {
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all var(--transition-base);
  max-height: 30px;
}

.lender-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* ================================================
   CTA BANNER
   ================================================ */

.cta-banner {
  background: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-orange-dark) 100%);
  color: var(--white);
  padding: var(--space-3xl) 0;
  text-align: center;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: var(--space-md);
}

.cta-banner p {
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .btn--white:hover {
  background: var(--white);
  color: var(--brand-orange);
}

.cta-banner--warm {
  background: var(--brand-charcoal);
}

.cta-banner__hook {
  font-size: 1.5rem;
  line-height: 1.4;
  margin-bottom: var(--space-xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner__hook strong {
  color: var(--brand-orange);
}

.cta-banner__highlight {
  color: var(--brand-orange);
  font-style: italic;
}

.cta-banner__actions {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ================================================
   COMPARISON TABLE
   ================================================ */

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.comparison-table th,
.comparison-table td {
  padding: var(--space-lg);
  text-align: left;
  border-bottom: 1px solid var(--medium-grey);
}

.comparison-table th {
  background: var(--light-grey);
  font-weight: 600;
  color: var(--text-primary);
}

.comparison-table th:first-child {
  width: 30%;
}

.comparison-table .check {
  color: var(--score-good);
}

.comparison-table .cross {
  color: var(--text-secondary);
}

/* Offer Ready Section */
.offer-ready {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.offer-ready__content h2 {
  color: var(--white);
  margin-bottom: var(--space-lg);
}

.offer-ready__content p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-md);
}

.offer-ready__content strong {
  color: var(--white);
}

.offer-ready__lead {
  font-size: 1.15rem;
  line-height: 1.6;
}

.offer-ready__cta {
  margin-top: var(--space-xl);
}

.checklist-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
  color: var(--text-primary);
}

.checklist-card__title {
  color: var(--brand-charcoal) !important;
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.checklist-card__subtitle {
  color: var(--text-secondary) !important;
  font-size: 0.9rem;
  margin-bottom: var(--space-lg);
}

.checklist-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist-card__list li {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--medium-grey);
  font-size: 0.95rem;
  color: var(--text-primary) !important;
}

.checklist-card__list li strong {
  color: var(--brand-charcoal);
}

.checklist-card__list li:last-child {
  border-bottom: none;
}

.checklist-check {
  color: var(--score-good);
  font-weight: 700;
  flex-shrink: 0;
}

.checklist-card__tip {
  margin-top: var(--space-lg);
  padding: var(--space-md);
  background: var(--cream);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text-primary) !important;
  border-left: 3px solid var(--brand-orange);
}

.checklist-card__tip strong {
  color: var(--brand-orange);
}

@media (max-width: 992px) {
  .offer-ready {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .offer-ready__content {
    text-align: center;
  }

  .offer-ready__cta {
    display: flex;
    justify-content: center;
  }
}

/* Compliance Footer */
.compliance-footer {
  margin-top: var(--space-xl);
  padding: var(--space-lg) var(--space-xl);
  background: var(--light-grey);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--brand-orange);
}

.compliance-footer__warning {
  margin: 0 0 var(--space-sm);
  font-size: 0.9rem;
  color: var(--brand-charcoal);
}

.compliance-footer__fee {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ================================================
   PAGE HEADERS
   ================================================ */

.page-header {
  padding-top: calc(80px + var(--space-4xl));
  padding-bottom: var(--space-3xl);
  background: linear-gradient(135deg, var(--cream) 0%, var(--off-white) 100%);
  text-align: center;
}

.page-header--ambient {
  position: relative;
  overflow: hidden;
}

.page-header--ambient .container {
  position: relative;
  z-index: 2;
}

.page-header--ambient h1,
.page-header--ambient p,
.page-header--ambient .hero__actions {
  position: relative;
  z-index: 3;
}

.page-header__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-orange);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
}

.page-header h1 {
  margin-bottom: var(--space-lg);
}

.page-header__subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

/* ================================================
   ANIMATIONS
   ================================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Scroll animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================
   UTILITY CLASSES
   ================================================ */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-orange { color: var(--brand-orange); }
.text-charcoal { color: var(--brand-charcoal); }
.text-white { color: var(--white); }
.text-muted { color: var(--text-secondary); }

.bg-white { background: var(--white); }
.bg-cream { background: var(--cream); }
.bg-charcoal { background: var(--brand-charcoal); }
.bg-orange { background: var(--brand-orange); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.mb-4 { margin-bottom: var(--space-xl); }
.mb-5 { margin-bottom: var(--space-2xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mt-4 { margin-top: var(--space-xl); }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-1 { gap: var(--space-sm); }
.gap-2 { gap: var(--space-md); }
.gap-3 { gap: var(--space-lg); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ================================================
   RESPONSIVE ADJUSTMENTS
   ================================================ */

@media (max-width: 576px) {
  section {
    padding: var(--space-3xl) 0;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .hero__actions {
    flex-direction: column;
  }
}

/* ================================================
   FINANCIAL WELLNESS SECTION - VIDEO BACKGROUND
   ================================================ */

.wellness-section-new {
  background: var(--white);
  padding-top: var(--space-3xl);
}

.wellness-section-new__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  color: var(--brand-charcoal);
  line-height: 1.2;
  text-align: center;
  margin-bottom: var(--space-2xl);
}

/* Frame Animation Container */
.wellness-video-container {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  margin-bottom: 0;
}

.wellness-frame-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* CTA Banner */
.wellness-cta-banner {
  background: var(--cream);
  padding: var(--space-3xl) 0;
  border-top: 1px solid var(--medium-grey);
}

.wellness-cta-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.wellness-cta-banner__subtitle {
  font-size: 1.2rem;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: var(--space-2xl);
  font-weight: 500;
}

.wellness-cta-banner__features {
  list-style: none;
  margin-bottom: var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.wellness-cta-banner__features li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-size: 1.05rem;
  color: var(--text-primary);
}

.wellness-check-icon {
  width: 22px;
  height: 22px;
  color: var(--brand-orange);
  flex-shrink: 0;
}

.wellness-cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.wellness-cta-banner__note {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .wellness-section-new {
    padding-top: var(--space-2xl);
  }

  .wellness-section-new__title {
    font-size: clamp(1.75rem, 5vw, 2.25rem);
  }

  .wellness-video-container {
    height: 300px;
  }

  .wellness-cta-banner {
    padding: var(--space-2xl) 0;
  }

  .wellness-cta-banner__subtitle {
    font-size: 1.1rem;
  }

  .wellness-cta-banner__features li {
    justify-content: flex-start;
    text-align: left;
  }
}

/* Wellness Showcase (Homepage) */
.wellness-showcase {
  padding: var(--space-4xl) 0;
  background: linear-gradient(135deg, #FFF5F0 0%, #FEF6F0 50%, #FFFFFF 100%);
  overflow: hidden;
}

.wellness-showcase__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.wellness-showcase__content {
  max-width: 520px;
}

.wellness-showcase__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-orange);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
}

.wellness-showcase__title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.2;
  color: var(--brand-charcoal);
  margin-bottom: var(--space-md);
}

.wellness-showcase__subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: var(--space-xl);
}

.wellness-showcase__features {
  list-style: none;
  margin-bottom: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.wellness-showcase__features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  color: var(--text-primary);
}

.wellness-showcase__check {
  width: 22px;
  height: 22px;
  color: #22c55e;
  flex-shrink: 0;
}

.wellness-showcase__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
}

.wellness-showcase__note {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Exploded Infographic */
.wellness-showcase__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.wellness-infographic {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1;
}

/* Centre gauge — image dial */
.wellness-infographic__gauge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  text-align: center;
  z-index: 1;
}

.wellness-infographic__dial-img {
  width: 100%;
  height: auto;
  display: block;
}

.wellness-infographic__score {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wellness-infographic__score-value {
  font-family: var(--font-display);
  font-size: 3.75rem;
  font-weight: 700;
  color: #5B4A6A;
  line-height: 1;
}

.wellness-infographic__score-max {
  font-size: 1rem;
  color: #5B4A6A;
  margin-top: -0.25rem;
}

/* Pillar cards */
.wellness-infographic__pillar {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.04);
  width: 190px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wellness-infographic__pillar:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.wellness-infographic__pillar-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}

.wellness-infographic__pillar-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-charcoal);
}

.wellness-infographic__pillar-detail {
  font-size: 0.7rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Pillar icon colours */
.wellness-infographic__pillar--tl .wellness-infographic__pillar-icon {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.wellness-infographic__pillar--tr .wellness-infographic__pillar-icon {
  background: rgba(240, 91, 40, 0.1);
  color: var(--brand-orange);
}

.wellness-infographic__pillar--bl .wellness-infographic__pillar-icon {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.wellness-infographic__pillar--br .wellness-infographic__pillar-icon {
  background: rgba(168, 85, 247, 0.1);
  color: #a855f7;
}

/* Pillar positions (exploded around gauge) */
.wellness-infographic__pillar--tl {
  top: 2%;
  left: 0;
  transform: rotate(-1.5deg);
}

.wellness-infographic__pillar--tr {
  top: 2%;
  right: 0;
  transform: rotate(1.5deg);
}

.wellness-infographic__pillar--bl {
  bottom: 8%;
  left: 0;
  transform: rotate(1deg);
}

.wellness-infographic__pillar--br {
  bottom: 8%;
  right: 0;
  transform: rotate(-1deg);
}

/* Connecting dots */
.wellness-infographic__pillar::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-orange);
  opacity: 0.3;
}

.wellness-infographic__pillar--tl::after {
  bottom: -16px;
  right: 20px;
}

.wellness-infographic__pillar--tr::after {
  bottom: -16px;
  left: 20px;
}

.wellness-infographic__pillar--bl::after {
  top: -16px;
  right: 20px;
}

.wellness-infographic__pillar--br::after {
  top: -16px;
  left: 20px;
}

/* Mobile */
@media (max-width: 968px) {
  .wellness-showcase__grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-2xl);
  }

  .wellness-showcase__content {
    max-width: none;
  }

  .wellness-showcase__actions {
    align-items: center;
  }

  .wellness-showcase__features {
    display: inline-flex;
    text-align: left;
  }

  .wellness-infographic {
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .wellness-infographic {
    aspect-ratio: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    max-width: 100%;
  }

  .wellness-infographic__gauge {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    grid-column: 1 / -1;
    width: 240px;
    margin: 0 auto var(--space-md);
  }

  .wellness-infographic__pillar {
    position: static;
    transform: none;
    width: auto;
  }

  .wellness-infographic__pillar::after {
    display: none;
  }
}

/* OLD Wellness CTA Overlay Layout (kept for reference) */
.wellness-cta-overlay {
  position: relative;
  min-height: 550px;
  display: flex;
  align-items: center;
}

.wellness-cta-overlay__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.wellness-cta-overlay__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Video replacement - ready for when video is added */
video.wellness-cta-overlay__media {
  object-fit: cover;
}

.wellness-cta-overlay__content {
  position: relative;
  z-index: 2;
  max-width: 500px;
  background: rgba(255, 255, 255, 0.95);
  padding: var(--space-2xl);
  margin: var(--space-2xl);
  margin-right: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.wellness-cta-overlay__content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: var(--space-md);
  color: var(--brand-charcoal);
}

.wellness-cta-overlay__subtitle {
  font-size: 1.1rem;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: var(--space-xl);
}

.wellness-cta-overlay__features {
  list-style: none;
  margin-bottom: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.wellness-cta-overlay__features li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1rem;
  color: var(--text-primary);
}

.wellness-cta-overlay__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
}

.wellness-cta-overlay__note {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .wellness-cta-overlay {
    min-height: 600px;
  }

  .wellness-cta-overlay__content {
    margin: var(--space-lg);
    padding: var(--space-xl);
    max-width: none;
  }

  .wellness-cta-overlay__actions {
    align-items: stretch;
  }

  .wellness-cta-overlay__actions .btn {
    justify-content: center;
  }

  .wellness-cta-overlay__note {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .wellness-cta-overlay {
    min-height: auto;
  }

  .wellness-cta-overlay__content {
    margin: var(--space-md);
    padding: var(--space-lg);
  }

  .wellness-cta-overlay__content h2 {
    font-size: 1.4rem;
  }

  .wellness-cta-overlay__subtitle {
    font-size: 1rem;
  }
}

/* ================================================
   PARTNERS SECTION
   ================================================ */

.partners-section {
  background: var(--white);
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--medium-grey);
  border-bottom: 1px solid var(--medium-grey);
}

.partners-title {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xl);
}

.partners-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-2xl);
}

.partner-logo {
  flex: 0 0 auto;
  opacity: 0.7;
  transition: opacity var(--transition-base);
  filter: grayscale(100%);
}

.partner-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.partner-logo img {
  max-height: 45px;
  max-width: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (max-width: 768px) {
  .partners-logos {
    gap: var(--space-xl);
  }

  .partner-logo img {
    max-height: 35px;
    max-width: 110px;
  }
}

/* ================================================
   TRUST BAR (Lender Logos)
   ================================================ */

.trust-bar {
  background: var(--white);
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--medium-grey);
}

.trust-bar__title {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-lg);
}

.trust-bar__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-xl);
}

.trust-bar__logo {
  flex: 0 0 auto;
  opacity: 0.7;
  transition: opacity var(--transition-base);
  filter: grayscale(100%);
}

.trust-bar__logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.trust-bar__logo img {
  max-height: 32px;
  max-width: 100px;
  height: auto;
  object-fit: contain;
}

.trust-bar__note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: var(--space-md);
  font-style: italic;
}

@media (max-width: 768px) {
  .trust-bar__logos {
    gap: var(--space-lg);
  }

  .trust-bar__logo img {
    max-height: 26px;
    max-width: 80px;
  }
}

/* Print styles */
@media print {
  .header,
  .footer,
  .btn {
    display: none;
  }
  
  body {
    font-size: 12pt;
  }
  
  section {
    padding: 20pt 0;
  }
}

/* ================================================
   BUDGET PLANNER WIZARD
   ================================================ */

.wizard-progress {
  margin-bottom: var(--space-3xl);
}

.wizard-progress__bar {
  height: 4px;
  background: var(--medium-grey);
  border-radius: 2px;
  margin-bottom: var(--space-lg);
  overflow: hidden;
}

.wizard-progress__fill {
  height: 100%;
  background: var(--brand-orange);
  border-radius: 2px;
  transition: width 0.3s ease;
  width: 0;
}

.wizard-progress__steps {
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
}

.wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  flex: 1;
  text-align: center;
}

.wizard-step__number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--medium-grey);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.wizard-step.active .wizard-step__number {
  background: var(--brand-orange);
  color: white;
}

.wizard-step.completed .wizard-step__number {
  background: var(--brand-charcoal);
  color: white;
}

.wizard-step__label {
  font-size: 0.75rem;
  color: var(--text-light);
  transition: color 0.3s ease;
}

.wizard-step.active .wizard-step__label {
  color: var(--brand-orange);
  font-weight: 600;
}

.wizard-step.completed .wizard-step__label {
  color: var(--text-body);
}

/* Wizard Content */
.wizard-content {
  min-height: 400px;
}

.wizard-panel {
  display: none;
}

.wizard-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.wizard-panel__header {
  margin-bottom: var(--space-2xl);
}

.wizard-panel__header h2 {
  font-size: 1.75rem;
  margin-bottom: var(--space-sm);
  color: var(--brand-charcoal);
}

.wizard-panel__header p {
  color: var(--text-light);
  font-size: 1rem;
}

/* Budget Form */
.budget-form {
  background: var(--light-grey);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.budget-row {
  display: grid;
  grid-template-columns: 1fr 140px 100px;
  gap: var(--space-md);
  align-items: center;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--medium-grey);
}

.budget-row:last-child {
  border-bottom: none;
}

.budget-row label {
  font-size: 0.95rem;
  color: var(--text-body);
}

.budget-input {
  position: relative;
  display: flex;
  align-items: center;
}

.budget-input__prefix {
  position: absolute;
  left: 12px;
  color: var(--text-light);
  font-weight: 500;
}

.budget-input input {
  width: 100%;
  padding: var(--space-sm) var(--space-sm) var(--space-sm) 28px;
  border: 1.5px solid var(--medium-grey);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  text-align: right;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.budget-input input:focus {
  outline: none;
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px rgba(240, 91, 40, 0.1);
}

.budget-input input::placeholder {
  color: #ccc;
}

.budget-ons {
  font-size: 0.8rem;
  color: var(--text-light);
  text-align: right;
  background: white;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.budget-ons span {
  font-weight: 600;
  color: var(--brand-charcoal);
}

/* Budget Total */
.budget-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg);
  background: var(--brand-charcoal);
  color: white;
  border-radius: var(--radius-md);
  font-weight: 600;
}

.budget-total--income {
  background: linear-gradient(135deg, #38a169, #48bb78);
}

.budget-total__value {
  font-size: 1.5rem;
}

/* Wizard Navigation */
.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-3xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--medium-grey);
}

/* Info Box */
.info-box {
  display: flex;
  gap: var(--space-md);
  background: #EBF8FF;
  border: 1px solid #90CDF4;
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-top: var(--space-xl);
}

.info-box__icon {
  flex-shrink: 0;
  color: #3182CE;
}

.info-box strong {
  display: block;
  margin-bottom: var(--space-xs);
  color: #2B6CB0;
}

.info-box p {
  font-size: 0.9rem;
  color: #4A5568;
  margin: 0;
}

/* Form Select Large */
.form-select--large {
  width: 100%;
  max-width: 400px;
  padding: var(--space-md) var(--space-lg);
  font-size: 1rem;
  border: 2px solid var(--medium-grey);
  border-radius: var(--radius-md);
  background: white;
  cursor: pointer;
  transition: border-color 0.2s;
}

.form-select--large:focus {
  outline: none;
  border-color: var(--brand-orange);
}

.form-help {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-top: var(--space-sm);
}

/* Results Section */
.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
}

.results-breakdown {
  background: var(--light-grey);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
}

.results-breakdown h3 {
  font-size: 1rem;
  margin-bottom: var(--space-lg);
  color: var(--brand-charcoal);
}

.results-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--medium-grey);
}

.results-row:last-child {
  border-bottom: none;
}

.results-row--total {
  border-top: 2px solid var(--brand-charcoal);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
}

.results-value {
  font-weight: 600;
  color: var(--brand-charcoal);
}

.results-value--outgoings {
  color: var(--brand-orange);
}

/* Results Cards */
.results-card {
  background: var(--light-grey);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.results-card__label {
  font-size: 0.95rem;
  color: var(--text-body);
}

.results-card__value {
  font-size: 1.25rem;
  font-weight: 700;
}

.results-card--income {
  border-left: 4px solid #38a169;
}

.results-card--income .results-card__value {
  color: #38a169;
}

.results-card--outgoings {
  border-left: 4px solid var(--brand-orange);
}

.results-card--outgoings .results-card__value {
  color: var(--brand-orange);
}

.results-card--surplus {
  border-left: 4px solid var(--brand-charcoal);
}

.results-card--positive .results-card__value {
  color: #38a169;
}

.results-card--negative .results-card__value {
  color: #e53e3e;
}

/* Results Mortgage */
.results-mortgage {
  background: linear-gradient(135deg, var(--brand-orange), #ff7043);
  color: white;
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  text-align: center;
  margin-top: var(--space-lg);
}

.results-mortgage h3 {
  font-size: 1rem;
  margin-bottom: var(--space-sm);
  opacity: 0.9;
}

.results-mortgage__amount {
  font-size: 2.5rem;
  font-weight: 700;
}

.results-mortgage__period {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Results Actions */
.results-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--medium-grey);
}

/* Results Disclaimer */
.results-disclaimer {
  margin-top: var(--space-2xl);
  padding: var(--space-lg);
  background: var(--light-grey);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--text-light);
}

.results-disclaimer strong {
  color: var(--text-body);
}

.results-disclaimer__source {
  margin-top: var(--space-sm);
  font-size: 0.8rem;
}

/* Responsive Wizard */
@media (max-width: 768px) {
  .wizard-progress__steps {
    display: none;
  }

  .budget-row {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .budget-row label {
    font-weight: 500;
  }

  .budget-input,
  .budget-ons {
    max-width: 100%;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .results-actions {
    flex-direction: column;
  }

  .results-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .wizard-nav {
    flex-direction: column;
    gap: var(--space-md);
  }

  .wizard-nav .btn {
    width: 100%;
    justify-content: center;
  }
}

@media print {
  .wizard-progress,
  .wizard-nav,
  .results-actions {
    display: none !important;
  }
}

/* ================================================
   WELLNESS MODAL (site-wide)
   ================================================ */

.wellness-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.wellness-modal--open {
  opacity: 1;
  visibility: visible;
}

.wellness-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.wellness-modal__container {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  max-width: 760px;
  width: 92%;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-2xl);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.wellness-modal--open .wellness-modal__container {
  transform: translateY(0);
}

.wellness-modal__close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background 0.2s ease;
  z-index: 1;
  line-height: 1;
}

.wellness-modal__close:hover {
  color: var(--brand-charcoal);
  background: var(--light-grey);
}

.wellness-modal__progress {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

/* Step dots (moved from inline style) */
.step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--medium-grey);
  transition: all 0.3s ease;
}

.step-dot--active {
  background: var(--brand-orange);
  transform: scale(1.2);
}

.wellness-step {
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Pre-fill notice banner */
.wellness-modal__prefill-notice {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--cream);
  border: 1px solid var(--brand-orange);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-xl);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Pre-filled field indicators */
.prefill-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: #22C55E;
  background: rgba(34, 197, 94, 0.1);
  padding: 2px 8px;
  border-radius: 9999px;
  margin-top: var(--space-xs);
}

.form-group--prefilled input,
.form-group--prefilled select {
  border-color: #22C55E;
  background: rgba(34, 197, 94, 0.03);
}

/* Form elements inside modal */
.wellness-modal .form-input,
.wellness-modal .form-select {
  padding: 0.75rem;
  border: 1px solid var(--medium-grey);
  border-radius: var(--radius-md);
  width: 100%;
  font-size: 1rem;
  font-family: inherit;
}

.wellness-modal .form-input:focus,
.wellness-modal .form-select:focus {
  border-color: var(--brand-orange);
  outline: none;
  box-shadow: 0 0 0 3px rgba(240, 91, 40, 0.1);
}

.wellness-modal .form-hint {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

/* Wellness modal responsive */
@media (max-width: 768px) {
  .wellness-modal {
    align-items: flex-end;
  }

  .wellness-modal__container {
    width: 100%;
    max-height: 95vh;
    padding: var(--space-lg);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    margin-top: auto;
  }

  .wellness-modal__close {
    top: var(--space-md);
    right: var(--space-md);
  }
}

/* ================================================
   WELLNESS BANNER (Individuals page CTA)
   ================================================ */

.wellness-banner {
  background: linear-gradient(135deg, var(--brand-charcoal) 0%, #1a1a1a 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
}

.wellness-banner__content {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.wellness-banner__icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  background: rgba(240, 91, 40, 0.15);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-orange);
}

.wellness-banner__text {
  flex: 1;
}

.wellness-banner__title {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.wellness-banner__desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.wellness-banner .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .wellness-banner {
    padding: var(--space-xl);
  }

  .wellness-banner__content {
    flex-direction: column;
    text-align: center;
  }

  .wellness-banner .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ================================================
   RESULTS PAGE - SECTION STRUCTURE
   ================================================ */

.results-section {
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--medium-grey);
}

.results-section__heading {
  text-align: center;
  font-size: 1.25rem;
  color: var(--brand-charcoal);
  margin-bottom: 0.5rem;
}

.results-section__intro {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto 1.5rem;
}

/* Strengths & Improvements Grid */
.results-strengths-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--cream);
  border-radius: var(--radius-lg);
}

.results-strengths-grid__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.results-strengths-grid__label--green { color: #22C55E; }
.results-strengths-grid__label--orange { color: var(--brand-orange); }

.results-strengths-grid__list {
  list-style: none;
  font-size: 0.9rem;
}

/* Runway Callout - BEM classes (supplements #runway-callout ID styles) */
.runway-callout__days {
  margin: 1.5rem 0;
}

.runway-callout__comparison {
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-size: 0.875rem;
  opacity: 0.9;
  flex-wrap: wrap;
}

/* Risk Stat Cards */
.risk-stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.risk-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.risk-stat-card__value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--brand-orange);
  margin: 0;
}

.risk-stat-card__label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

@media (max-width: 600px) {
  .results-strengths-grid {
    grid-template-columns: 1fr;
  }
}

/* ================================================
   MORTGAGE ELIGIBILITY DASHBOARD
   ================================================ */

#mortgage-metrics-dashboard {
  margin: 0;
}

#mortgage-metrics-dashboard .results-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 2rem;
}

.metrics-notice {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--cream);
  border: 1px solid var(--brand-orange);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.metrics-gauges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.metric-gauge-card {
  background: var(--light-grey, #F7F7F7);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  text-align: center;
}

.metric-gauge__title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.metric-gauge__value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.metric-gauge__bar {
  width: 100%;
  height: 8px;
  background: var(--medium-grey, #E0E0E0);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.metric-gauge__fill {
  height: 100%;
  border-radius: 999px;
  transition: width 1s ease-out;
}

.metric-gauge__tier {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.metric-gauge__desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.metric-gauge__legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 3px;
  vertical-align: middle;
}

.metric-gauge__footnote {
  font-size: 0.75rem;
  color: var(--dark-grey, #666);
  margin-top: 0.75rem;
  font-style: italic;
  line-height: 1.4;
}

/* DTI Breakdown Table */
.metrics-breakdown {
  background: var(--light-grey, #F7F7F7);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  margin-top: 1.25rem;
}

.metrics-breakdown h4 {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  color: var(--brand-charcoal);
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--medium-grey, #E0E0E0);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.breakdown-row:last-child {
  border-bottom: none;
}

.breakdown-row--total {
  border-top: 2px solid var(--brand-charcoal);
  border-bottom: none;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  font-weight: 600;
  color: var(--brand-charcoal);
}

.breakdown-row strong {
  color: var(--brand-charcoal);
}

/* Optional field label */
.form-label__optional {
  font-weight: 400;
  font-size: 0.85em;
  color: var(--text-secondary);
}

@media (max-width: 600px) {
  .metrics-gauges {
    grid-template-columns: 1fr;
  }

  .metric-gauge__value {
    font-size: 2rem;
  }

  #mortgage-metrics-dashboard .results-section {
    padding: 1.25rem;
  }
}
