/* ============================================================
   CONSTRUCTION COST ESTIMATOR — Global Design System
   Font: Manrope (headings) + Inter (body)
   Theme: Premium Light/Dark SaaS (swimmingregimen.com Inspired)
   ============================================================ */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body { 
  font-family: 'Inter', system-ui, -apple-system, sans-serif; 
  background: var(--color-bg); 
  color: var(--color-text); 
  line-height: 1.6; 
  min-height: 100vh; 
  overflow-x: hidden; 
  transition: background-color var(--transition-base), color var(--transition-base);
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
button { cursor: pointer; font-family: inherit; border: none; background: none; outline: none; }
input, select, textarea { font-family: inherit; outline: none; }
ul, ol { list-style: none; }

/* ── TOKENS & THEMING ── */
:root {
  /* LIGHT MODE (Default) */
  --color-bg:            #F8FAFC; 
  --color-bg-alt:        #F1F5F9; 
  --color-surface:       #FFFFFF; 
  --color-border:        #E2E8F0; 
  --color-border-light:  #F1F5F9;
  --color-text:          #0F172A; 
  --color-text-muted:    #475569; 
  --color-text-light:    #94A3B8; 
  --color-navy:          #0F172A;
  --color-header-bg:     rgba(255, 255, 255, 0.8);
  --color-card-shadow:   rgba(15, 23, 42, 0.04);
  --color-glow-shadow:   rgba(37, 99, 235, 0.1);
  
  /* Brand colors */
  --color-brand:         #2563EB; 
  --color-brand-hover:   #1D4ED8;
  --color-brand-subtle:  rgba(37, 99, 235, 0.05);
  
  --color-cyan:          #0891B2;
  --color-cyan-hover:    #0E7490;
  --color-cyan-subtle:   rgba(8, 145, 178, 0.05);

  --color-accent:        #F97316; 
  --color-accent-subtle: rgba(249, 115, 22, 0.08);
  
  --color-teal:          #10B981; 
  --color-teal-subtle:   rgba(16, 185, 129, 0.08);
  
  --color-purple:        #8B5CF6; 
  --color-purple-subtle: rgba(139, 92, 246, 0.08);
  
  --color-success:       #10B981; 
  --color-warning:       #F59E0B;
  --color-error:         #EF4444;

  /* Typography */
  --font-display: 'Manrope', sans-serif;
  --font-body:    'Inter', sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.5rem;
  --text-5xl:  3.25rem;

  --weight-normal:   400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;
  --weight-extrabold:800;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Radius */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 2px 8px var(--color-card-shadow);
  --shadow-md:  0 8px 24px var(--color-card-shadow);
  --shadow-lg:  0 16px 40px var(--color-card-shadow);
  --shadow-brand: 0 4px 20px var(--color-glow-shadow);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 450ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* DARK MODE OVERRIDES */
html.dark {
  --color-bg:            #09090B; 
  --color-bg-alt:        #18181B; 
  --color-surface:       #18181B; 
  --color-border:        #27272A; 
  --color-border-light:  #27272A;
  --color-text:          #FAFAFA; 
  --color-text-muted:    #A1A1AA; 
  --color-text-light:    #52525B; 
  --color-navy:          #FAFAFA;
  --color-header-bg:     rgba(9, 9, 11, 0.85);
  --color-card-shadow:   rgba(0, 0, 0, 0.3);
  --color-glow-shadow:   rgba(37, 99, 235, 0.2);
  
  --color-brand-subtle:  rgba(37, 99, 235, 0.15);
  --color-cyan-subtle:   rgba(8, 145, 178, 0.15);
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  line-height: 1.2;
  color: var(--color-navy);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.5rem, 5vw, var(--text-5xl)); font-weight: var(--weight-extrabold); }
h2 { font-size: clamp(1.75rem, 3.5vw, var(--text-3xl)); font-weight: var(--weight-bold); }
h3 { font-size: clamp(1.25rem, 2vw, var(--text-2xl)); }
h4 { font-size: 1.15rem; font-weight: var(--weight-semibold); }
p { color: var(--color-text-muted); }
.text-lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--color-text-muted); line-height: 1.7; max-width: 680px; }
.text-label { font-size: var(--text-xs); font-weight: var(--weight-bold); text-transform: uppercase; letter-spacing: 0.12em; color: var(--color-cyan); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── LAYOUT ── */
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--space-6); }
.section { padding-block: var(--space-20); }
.section--sm { padding-block: var(--space-12); }
.section--lg { padding-block: var(--space-24); }

.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.section-header { text-align: center; margin-bottom: var(--space-12); max-width: 720px; margin-inline: auto; }
.section-header p { color: var(--color-text-muted); font-size: var(--text-base); margin-top: var(--space-3); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: 0.75rem 1.5rem; border-radius: var(--radius-md);
  font-size: var(--text-sm); font-weight: var(--weight-semibold);
  transition: all var(--transition-base); white-space: nowrap;
  border: 1px solid transparent;
}
.btn--primary {
  background: var(--color-brand); color: #FFFFFF;
  box-shadow: var(--shadow-brand);
}
.btn--primary:hover { 
  background: var(--color-brand-hover); 
  transform: scale(1.02); 
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3); 
}
.btn--secondary {
  background: var(--color-surface); color: var(--color-navy);
  border-color: var(--color-border);
}
.btn--secondary:hover { 
  background: var(--color-bg-alt); 
  border-color: var(--color-text-muted); 
  transform: scale(1.01);
}
.btn--accent {
  background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-brand) 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.25);
}
.btn--accent:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(6, 182, 212, 0.4);
}
.btn--ghost { background: transparent; color: var(--color-text-muted); border-color: var(--color-border); }
.btn--ghost:hover { background: var(--color-bg-alt); color: var(--color-navy); }
.btn--sm { padding: 0.5rem 1rem; font-size: var(--text-xs); border-radius: var(--radius-sm); }
.btn--lg { padding: 1rem 2.25rem; font-size: var(--text-base); border-radius: var(--radius-lg); }

/* ── CARDS ── */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
  box-shadow: var(--shadow-sm);
}
.card:hover { 
  border-color: var(--color-cyan); 
  box-shadow: var(--shadow-md); 
  transform: translateY(-4px); 
}
.card--brand { border-color: rgba(37, 99, 235, 0.15); background: var(--color-brand-subtle); }

/* ── TOP INFO BAR ── */
.top-bar {
  background: #09090B;
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--text-xs);
  padding-block: var(--space-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.top-bar__inner {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-3);
}
.top-bar__info { display: flex; gap: var(--space-5); align-items: center; }
.top-bar__item { display: flex; align-items: center; gap: var(--space-2); }
.top-bar__item i { color: var(--color-accent); }
.top-bar__social { display: flex; gap: var(--space-3); align-items: center; }
.top-bar__social a { color: rgba(255, 255, 255, 0.6); }
.top-bar__social a:hover { color: #FFFFFF; }
.top-bar__user { display: flex; align-items: center; gap: var(--space-1); cursor: pointer; color: rgba(255, 255, 255, 0.8); }
.top-bar__user:hover { color: #FFFFFF; }

/* ── NAVIGATION (Glassmorphism) ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--color-header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition-base);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav__logo {
  display: flex; align-items: center; gap: var(--space-2);
  text-decoration: none; flex-shrink: 0;
}
.nav__logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-cyan) 100%);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: #FFFFFF; font-size: 1.1rem;
  box-shadow: var(--shadow-brand);
}
.nav__logo-text {
  font-family: var(--font-display);
  font-weight: var(--weight-extrabold);
  font-size: 1.35rem;
  background: linear-gradient(to right, var(--color-brand) 30%, var(--color-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  letter-spacing: -0.03em;
}
.nav__links { display: flex; align-items: center; gap: var(--space-1); }
.nav__link {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm); font-weight: var(--weight-semibold);
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; gap: var(--space-1);
}
.nav__link:hover, .nav__link.active { color: var(--color-brand); background: var(--color-bg-alt); }

/* Theme Toggle */
.theme-toggle-btn {
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
  border-radius: 50%;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all var(--transition-fast);
  font-size: 1.05rem;
}
.theme-toggle-btn:hover {
  background: var(--color-border);
  color: var(--color-navy);
  transform: rotate(20deg);
}

/* Nav Mockup Search Bar (swimmingregimen.com style) */
.nav-search-mockup {
  display: flex; align-items: center; gap: var(--space-2);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 6px 12px;
  font-size: var(--text-sm);
  color: var(--color-text-light);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.nav-search-mockup:hover {
  border-color: var(--color-text-muted);
  background: var(--color-border);
}
.nav-search-mockup kbd {
  font-family: monospace;
  font-size: 10px;
  border: 1px solid var(--color-text-light);
  padding: 1px 4px; border-radius: 3px;
}

/* Dropdown Mega Menu */
.nav__dropdown { position: relative; }
.nav__dropdown-menu {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(-10px);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  min-width: 480px;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden;
  transition: all var(--transition-base);
  z-index: 200;
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2);
}
.nav__dropdown:hover .nav__dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav__dropdown-item {
  display: flex; align-items: flex-start; gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}
.nav__dropdown-item:hover { background: var(--color-bg-alt); }
.nav__dropdown-item i { 
  color: var(--color-brand); 
  background: var(--color-brand-subtle);
  width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 0.875rem;
}
.nav__dropdown-content { display: flex; flex-direction: column; }
.nav__dropdown-title { font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--color-navy); margin-bottom: 2px; }
.nav__dropdown-desc { font-size: var(--text-xs); color: var(--color-text-muted); line-height: 1.3; }

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

/* Hamburger Menu button */
.nav__hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 36px; height: 36px; justify-content: center; align-items: center;
  border-radius: var(--radius-sm); background: var(--color-bg-alt);
}
.nav__hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--color-navy); border-radius: 2px;
  transition: all var(--transition-base);
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu container */
.nav__mobile {
  display: none; flex-direction: column;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-4);
  gap: var(--space-1);
}
.nav__mobile.open { display: flex; }
.nav__mobile-link {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm); font-weight: var(--weight-semibold);
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
}
.nav__mobile-link:hover { background: var(--color-bg-alt); color: var(--color-brand); }

/* ── BREADCRUMB ── */
.breadcrumb { display: flex; align-items: center; gap: var(--space-2); padding-block: var(--space-4); font-size: var(--text-sm); }
.breadcrumb__item a { color: var(--color-text-muted); font-weight: var(--weight-medium); }
.breadcrumb__item a:hover { color: var(--color-brand); }
.breadcrumb__item--current { color: var(--color-navy); font-weight: var(--weight-semibold); }
.breadcrumb__separator { color: var(--color-text-light); font-size: 0.65rem; }

/* ── TRUST BAR ── */
.trust-bar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding-block: var(--space-4);
}
.trust-bar__inner {
  display: flex; flex-wrap: wrap; gap: var(--space-10);
  align-items: center; justify-content: center;
}
.trust-badge {
  display: flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-sm); font-weight: var(--weight-medium);
  color: var(--color-text-muted);
}
.trust-badge i { color: var(--color-cyan); }

/* ── HERO SECTION OVERHAUL (Futuristic Gradient + Ambient Shapes) ── */
.calc-hero { 
  position: relative; overflow: hidden; 
  padding-top: var(--space-16);
  padding-bottom: clamp(140px, 15vw, 200px);
  background: #09090B;
  color: #FFFFFF;
}

/* Background Glowing Elements */
.calc-hero::before {
  content: ''; position: absolute; top: -10%; left: -10%; width: 50%; height: 60%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none; z-index: 1;
}
.calc-hero::after {
  content: ''; position: absolute; bottom: 10%; right: -10%; width: 50%; height: 60%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none; z-index: 1;
}

.calc-hero__inner {
  position: relative; z-index: 5;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--space-12); align-items: center;
}
.calc-hero__content { display: flex; flex-direction: column; align-items: flex-start; }
.calc-hero__content p { color: #A1A1AA; }
.calc-hero__heading { margin-bottom: var(--space-4); line-height: 1.1; color: #FFFFFF; }
.calc-hero__heading span {
  display: inline-block;
  background: rgba(6, 182, 212, 0.15);
  color: var(--color-cyan);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-md);
  transform: rotate(-1.5deg);
  border: 1px dashed rgba(6, 182, 212, 0.3);
  font-weight: var(--weight-extrabold);
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  padding: 6px 16px; font-size: var(--text-xs); font-weight: var(--weight-semibold);
  margin-bottom: var(--space-5);
  color: #E4E4E7;
}
.hero__eyebrow i { color: #EAB308; }

.calc-hero__actions { display: flex; gap: var(--space-4); margin-top: var(--space-8); flex-wrap: wrap; }
.calc-hero__trust { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-10); }
.calc-hero__trust .trust-badge { 
  background: rgba(255, 255, 255, 0.03); 
  border: 1px solid rgba(255, 255, 255, 0.08); 
  border-radius: var(--radius-full); 
  padding: var(--space-2) var(--space-4); 
  font-size: var(--text-xs);
  box-shadow: var(--shadow-sm);
  color: #E4E4E7;
  font-weight: var(--weight-medium);
}
.calc-hero__trust .trust-badge i { color: var(--color-success); }

/* Circle Graphic Mockup */
.calc-hero__graphic {
  position: relative; display: flex; justify-content: center; align-items: center;
  z-index: 5;
}
.hero-circle-graphic {
  position: relative; width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  display: flex; justify-content: center; align-items: center;
}
.hero-circle-graphic__outer {
  position: absolute; width: 320px; height: 320px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  animation: rotateClockwise 30s linear infinite;
}
.hero-circle-graphic__inner {
  position: relative; width: 220px; height: 220px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-cyan) 100%);
  padding: 8px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-circle-graphic__image {
  width: 100%; height: 100%; border-radius: 50%;
  background-color: #09090B;
  display: flex; align-items: center; justify-content: center;
  border: 4px solid rgba(255, 255, 255, 0.2);
}

.floating-card {
  position: absolute; background: rgba(24, 24, 27, 0.9);
  backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg); padding: var(--space-3) var(--space-4);
  box-shadow: var(--shadow-md); display: flex; align-items: center; gap: var(--space-3);
  z-index: 10;
  animation: floatBounce 4s ease-in-out infinite;
}
.floating-card--1 { top: 10%; left: -5%; }
.floating-card--2 { bottom: 15%; right: -5%; animation-delay: 2s; }
.floating-card--3 { bottom: 8%; left: 0%; animation-delay: 1s; }
.floating-card__icon {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #FFFFFF; font-size: 0.9rem;
}
.floating-card__icon--orange { background: var(--color-accent); box-shadow: 0 4px 10px rgba(249, 115, 22, 0.3); }
.floating-card__icon--blue { background: var(--color-brand); box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3); }
.floating-card__icon--teal { background: var(--color-cyan); box-shadow: 0 4px 10px rgba(6, 182, 212, 0.3); }
.floating-card__content { display: flex; flex-direction: column; }
.floating-card__title { font-size: var(--text-xs); color: #A1A1AA; font-weight: var(--weight-medium); }
.floating-card__val { font-size: var(--text-sm); color: #FFFFFF; font-weight: var(--weight-bold); }

/* Embedded Wave SVG Separators */
.hero-waves-divider {
  position: absolute; bottom: -1px; left: 0; width: 100%; overflow: hidden; line-height: 0; z-index: 8;
}
.hero-waves-divider svg {
  position: relative; display: block; width: 100%; height: 100px;
}
@media (min-width: 768px) { .hero-waves-divider svg { height: 140px; } }

/* Wave SVG Gradient Fills */
.wave-path-1 { fill: var(--color-bg); fill-opacity: 0.4; }
.wave-path-2 { fill: var(--color-bg); fill-opacity: 0.7; }
.wave-path-3 { fill: var(--color-bg); }

/* Animations */
@keyframes rotateClockwise { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes floatBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ── CALCULATOR LAYOUT ── */
.calculator {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-8);
  align-items: start;
}
@media (max-width: 991px) {
  .calculator { grid-template-columns: 1fr; }
}

.calculator__panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}
.calculator__panel-title { font-size: var(--text-2xl); font-weight: var(--weight-bold); margin-bottom: var(--space-1); }
.calculator__section { margin-bottom: var(--space-8); padding-bottom: var(--space-6); border-bottom: 1px solid var(--color-border); }
.calculator__section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.calculator__section-title {
  font-size: var(--text-xs); font-weight: var(--weight-bold);
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--color-text-muted); margin-bottom: var(--space-5);
  display: flex; align-items: center; gap: var(--space-2);
}
.calculator__section-title::after { content: ''; flex: 1; height: 1px; background: var(--color-border); }
.calculator__fields { display: flex; flex-direction: column; gap: var(--space-5); }
.calculator__fields--2col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
@media (max-width: 576px) {
  .calculator__fields--2col { grid-template-columns: 1fr; }
}

/* ── PREMIUM FORM CONTROLS ── */
.form-group { display: flex; flex-direction: column; gap: var(--space-2); position: relative; }
.form-label {
  font-size: var(--text-sm); font-weight: var(--weight-semibold);
  color: var(--color-navy); display: flex; align-items: center; gap: var(--space-2);
}
.form-input, .form-select {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: var(--text-sm);
  padding: 0.8rem 1rem;
  width: 100%;
  transition: all var(--transition-fast);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
  appearance: none;
}
.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--color-brand);
  background: var(--color-surface);
  box-shadow: 0 0 0 4px var(--color-brand-subtle), inset 0 1px 2px rgba(0,0,0,0.02);
}
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748B' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 2.75rem;
}
html.dark .form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A1A1AA' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

.input-wrapper { position: relative; display: flex; align-items: center; }
.input-wrapper--suffix .form-input { padding-right: 4.5rem; }
.input-suffix {
  position: absolute; right: 8px;
  font-size: var(--text-xs); color: var(--color-text-muted); font-weight: var(--weight-semibold);
  pointer-events: none;
  background: var(--color-border);
  padding: 4px 8px; border-radius: var(--radius-sm);
}

/* Range Slider Redesign */
.form-range {
  width: 100%; margin-top: var(--space-3);
  -webkit-appearance: none; appearance: none;
  height: 6px; background: var(--color-border); border-radius: var(--radius-full);
  outline: none;
}
.form-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px;
  background: var(--color-brand); border-radius: 50%;
  cursor: pointer; transition: transform var(--transition-fast);
  box-shadow: 0 0 0 4px var(--color-brand-subtle);
  border: 3px solid var(--color-surface);
}
.form-range::-webkit-slider-thumb:hover { transform: scale(1.2); }
.form-range::-moz-range-thumb {
  width: 18px; height: 18px;
  background: var(--color-brand); border-radius: 50%;
  cursor: pointer; border: 3px solid var(--color-surface);
  box-shadow: 0 0 0 4px var(--color-brand-subtle);
}

/* Custom Checkbox Switch */
.toggle { display: flex; align-items: center; gap: var(--space-3); cursor: pointer; }
.toggle input { display: none; }
.toggle__track {
  width: 46px; height: 26px;
  background: var(--color-border);
  border-radius: var(--radius-full);
  position: relative; flex-shrink: 0;
  transition: background var(--transition-base);
}
.toggle input:checked + .toggle__track { background: var(--color-cyan); }
.toggle__thumb {
  position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px;
  background: white; border-radius: 50%;
  transition: transform var(--transition-base);
  box-shadow: var(--shadow-sm);
}
.toggle input:checked + .toggle__track .toggle__thumb { transform: translateX(20px); }
.toggle__label { font-size: var(--text-sm); color: var(--color-text-muted); font-weight: var(--weight-medium); }

/* Material Info Info Card */
.material-info-card {
  background: var(--color-bg-alt); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: var(--space-4) var(--space-5);
}
.material-info-card__row { display:grid; grid-template-columns:repeat(3,1fr); gap:var(--space-4); }
.material-stat { display: flex; flex-direction: column; }
.material-stat__label { display:block; font-size:10px; color:var(--color-text-muted); text-transform:uppercase; letter-spacing:0.06em; margin-bottom:2px; font-weight: var(--weight-bold); }
.material-stat__value { font-size:var(--text-sm); font-weight:var(--weight-bold); color:var(--color-navy); }

/* Tooltip */
.tooltip-icon { color: var(--color-text-light); font-size: 0.8rem; cursor: help; margin-left: 2px; display: inline-flex; align-items: center; }
.tooltip-icon:hover { color: var(--color-brand); }

/* Scope Description Card */
.scope-desc-card {
  display: flex; align-items: flex-start; gap: var(--space-3);
  background: var(--color-brand-subtle); border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: var(--radius-md); padding: var(--space-4); margin-top: var(--space-3);
  font-size: var(--text-sm); color: var(--color-text);
}
.scope-desc-card i { color: var(--color-brand); margin-top: 2px; }

/* ── STICKY RESULT DASHBOARD OVERHAUL (Glow & High Contrast) ── */
.result-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: sticky; top: 100px;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
}
.result-card__header {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  padding: var(--space-8);
  text-align: center;
  color: #FFFFFF;
}
.result-card__label {
  font-size: var(--text-xs); font-weight: var(--weight-bold);
  text-transform: uppercase; letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.6); margin-bottom: var(--space-2);
}
.result-card__total {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: var(--weight-extrabold);
  color: #FFFFFF;
  line-height: 1.1;
  margin-bottom: var(--space-2);
}
.result-card__total span.currency { font-size: 55%; vertical-align: super; font-weight: var(--weight-bold); margin-right: 4px; }
.result-card__range { font-size: var(--text-sm); color: rgba(255, 255, 255, 0.7); }
.result-card__range strong { color: #FFFFFF; font-weight: var(--weight-bold); }

/* Stat Gradient Bubbles */
.stat-bubble-group {
  display: flex; justify-content: center; gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-alt);
}
.stat-bubble {
  width: 96px; height: 96px; border-radius: 50%;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; color: #FFFFFF;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast);
}
.stat-bubble:hover { transform: scale(1.05); }
.stat-bubble--teal { background: linear-gradient(135deg, var(--color-cyan) 0%, #0891B2 100%); }
.stat-bubble--orange { background: linear-gradient(135deg, var(--color-accent) 0%, #EA580C 100%); }
.stat-bubble--purple { background: linear-gradient(135deg, var(--color-purple) 0%, #7C3AED 100%); }

.stat-bubble__label { font-size: 9px; text-transform: uppercase; font-weight: var(--weight-bold); opacity: 0.85; margin-bottom: 2px; }
.stat-bubble__val { font-size: var(--text-xs); font-weight: var(--weight-extrabold); }

/* Breakdown Rows */
.result-breakdown { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-2); }
.breakdown-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.7rem 0.875rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
  transition: all var(--transition-fast);
}
.breakdown-item:hover { border-color: var(--color-cyan); background: var(--color-surface); }
.breakdown-item__name { display: flex; align-items: center; gap: var(--space-3); font-size: var(--text-xs); font-weight: var(--weight-medium); color: var(--color-text-muted); }
.breakdown-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.breakdown-item__value { font-size: var(--text-xs); font-weight: var(--weight-bold); color: var(--color-navy); }

/* Actions */
.result-card__actions { padding: 0 var(--space-6) var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); }

/* Disclaimer */
.result-disclaimer {
  margin: 0 var(--space-6) var(--space-6);
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  font-size: 11px; color: var(--color-text-muted);
  display: flex; gap: var(--space-2); align-items: flex-start;
  line-height: 1.4;
}
.result-disclaimer i { color: var(--color-brand); flex-shrink: 0; margin-top: 2px; }

/* Donut Chart Layout */
.chart-container {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.chart-header { margin-bottom: var(--space-5); }
.chart-title { font-size: 1.15rem; font-weight: var(--weight-bold); color: var(--color-navy); }
.donut-chart { width: 130px; height: 130px; flex-shrink: 0; }
.donut-chart svg { width: 100%; height: 100%; }

/* ── BAR CHART ── */
.bar-chart { display: flex; flex-direction: column; gap: var(--space-5); }
.bar-chart__header { display: flex; justify-content: space-between; margin-bottom: var(--space-2); }
.bar-chart__label { font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--color-text-muted); }
.bar-chart__value { font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--color-navy); }
.bar-chart__track { background: var(--color-bg-alt); border-radius: var(--radius-full); height: 8px; overflow: hidden; }
.bar-chart__fill { height: 100%; border-radius: var(--radius-full); width: 0; transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1); }

/* ── DATA TABLE ── */
.table-wrapper { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); }
.data-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); background: var(--color-surface); }
.data-table th {
  background: #0F172A;
  padding: 1rem 1.25rem;
  text-align: left; font-weight: var(--weight-semibold);
  color: #FFFFFF; font-size: var(--text-xs);
  text-transform: uppercase; letter-spacing: 0.08em;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}
.data-table td {
  padding: 1rem 1.25rem;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--color-bg-alt); }
.data-table td strong { color: var(--color-navy); }

/* ── BADGE ── */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: var(--radius-full);
  font-size: 0.65rem; font-weight: var(--weight-bold); text-transform: uppercase; letter-spacing: 0.08em;
}
.badge--brand { background: var(--color-brand-subtle); color: var(--color-brand); border: 1px solid rgba(37, 99, 235, 0.15); }
.badge--success { background: rgba(16, 185, 129, 0.1); color: var(--color-success); border: 1px solid rgba(16, 185, 129, 0.15); }
.badge--info { background: rgba(6, 182, 212, 0.1); color: var(--color-cyan); border: 1px solid rgba(6, 182, 212, 0.15); }

/* ── FAQ ── */
.faq { display: flex; flex-direction: column; gap: var(--space-4); max-width: 840px; margin-inline: auto; }
.faq__item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}
.faq__item.open { border-color: var(--color-cyan); box-shadow: var(--shadow-md); }
.faq__question {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: var(--space-5) var(--space-6);
  font-size: var(--text-base); font-weight: var(--weight-bold);
  color: var(--color-navy); text-align: left;
  background: none; border: none; cursor: pointer;
}
.faq__question:hover { color: var(--color-cyan); }
.faq__icon { flex-shrink: 0; margin-left: var(--space-4); color: var(--color-text-muted); transition: transform var(--transition-base); }
.faq__item.open .faq__icon { transform: rotate(45deg); color: var(--color-cyan); }
.faq__answer { max-height: 0; overflow: hidden; transition: max-height var(--transition-slow) ease; }
.faq__answer-inner { padding: 0 var(--space-6) var(--space-5); }
.faq__answer-inner p { color: var(--color-text-muted); font-size: var(--text-sm); line-height: 1.7; margin-bottom: var(--space-3); }
.faq__answer-inner p:last-child { margin-bottom: 0; }

/* ── NEWSLETTER ── */
.newsletter-card {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-12) var(--space-16);
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-12); align-items: center;
  color: #FFFFFF;
  box-shadow: var(--shadow-lg);
}
@media (max-width: 768px) {
  .newsletter-card { grid-template-columns: 1fr; padding: var(--space-8); }
}
.newsletter-card h2 { color: #FFFFFF; }
.newsletter-card p { color: rgba(255,255,255,0.7); }
.newsletter-form { display: flex; gap: var(--space-3); }
@media (max-width: 480px) {
  .newsletter-form { flex-direction: column; }
}
.newsletter-form .form-input { flex: 1; border: 1px solid rgba(255, 255, 255, 0.15); background: rgba(255, 255, 255, 0.08); color: #FFFFFF; }
.newsletter-form .form-input::placeholder { color: rgba(255, 255, 255, 0.4); }
.newsletter-form .form-input:focus { border-color: var(--color-brand); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2); background: transparent; }

/* ── WHY TRUST US GRID ── */
.why-trust-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-6);
}
.why-trust-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: var(--space-6);
  display: flex; gap: var(--space-4); align-items: flex-start;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}
.why-trust-card:hover { transform: translateY(-4px); border-color: var(--color-cyan); box-shadow: var(--shadow-md); }
.why-trust-icon-container {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.why-trust-icon-container--blue { background: var(--color-brand-subtle); color: var(--color-brand); }
.why-trust-icon-container--orange { background: var(--color-accent-subtle); color: var(--color-accent); }
.why-trust-icon-container--teal { background: var(--color-cyan-subtle); color: var(--color-cyan); }
.why-trust-icon-container--purple { background: var(--color-purple-subtle); color: var(--color-purple); }

.why-trust-card h3 { font-size: 1.1rem; font-weight: var(--weight-bold); color: var(--color-navy); margin-bottom: var(--space-2); }
.why-trust-card p { font-size: var(--text-sm); line-height: 1.5; color: var(--color-text-muted); }

/* ── TOAST REDESIGN ── */
.toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index: 1000;
  display: flex; flex-direction: column; gap: var(--space-3);
  pointer-events: none;
}
.toast {
  background: rgba(24, 24, 27, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: auto;
}
.toast--success i { color: var(--color-success); }
.toast--info i { color: var(--color-cyan); }
.toast--error i { color: var(--color-error); }
.toast.out {
  animation: toastOut 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(20px); } }

/* ── FOOTER OVERHAUL (Futuristic Deep Zinc) ── */
.footer {
  background: #09090B;
  color: #A1A1AA;
  padding-top: var(--space-20);
  padding-bottom: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-12); margin-bottom: var(--space-16); }
@media (max-width: 991px) {
  .footer__grid { grid-template-columns: 1.5fr 1fr 1fr; gap: var(--space-8); }
}
@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr; gap: var(--space-8); }
}

.footer__brand p { font-size: var(--text-sm); color: #71717A; margin-top: var(--space-4); max-width: 300px; line-height: 1.7; }
.footer__brand .nav__logo-text {
  background: linear-gradient(to right, #FFFFFF 40%, #A1A1AA 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.footer__col h4 { font-size: var(--text-sm); font-weight: var(--weight-bold); color: #FFFFFF; margin-bottom: var(--space-5); text-transform: uppercase; letter-spacing: 0.08em; }
.footer__links { display: flex; flex-direction: column; gap: var(--space-3.5); }
.footer__link { font-size: var(--text-sm); color: #A1A1AA; transition: color var(--transition-fast); }
.footer__link:hover { color: #FFFFFF; }
.footer__social { display: flex; gap: var(--space-3); margin-top: var(--space-6); }
.footer__social-link {
  width: 38px; height: 38px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #A1A1AA; font-size: var(--text-sm);
  transition: all var(--transition-fast);
}
.footer__social-link:hover {
  background: #FFFFFF; color: #09090B;
  transform: translateY(-2px);
}