/* ========================================
   YOUR INSURANCE PRO — Design System
   Inspired by modern insurance comparison sites
   ======================================== */

/* ---- Google Fonts ---- */
/* Loaded in HTML header to prevent render-blocking chains */

/* ---- CSS Custom Properties ---- */
:root {
  /* Primary Colors */
  --navy: #0A1128;
  --navy-dark: #050A18;
  --navy-light: #1C2541;
  --teal: #34D399;
  --teal-dark: #059669;
  --teal-light: #A7F3D0;
  --orange: #34D399;
  --orange-dark: #059669;
  --orange-light: #A7F3D0;

  /* Neutrals */
  --white: #FFFFFF;
  --gray-50: #F8FAFB;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;
  --black: #0A0A0A;

  /* Semantic */
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  --info: #3B82F6;

  /* Typography */
  --font-heading: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Font Sizes */
  --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.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* 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: 6rem;
  --space-24: 8rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.2);
  --shadow-card: 6px 6px 18px rgba(163, 177, 198, 0.25), -6px -6px 18px rgba(255, 255, 255, 0.8);
  --shadow-card-hover: 10px 10px 24px rgba(163, 177, 198, 0.35), -10px -10px 24px rgba(255, 255, 255, 0.9);

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-2xl: 36px;
  --radius-full: 9999px;

  /* 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: 400ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --container-max: 1240px;
  --container-narrow: 800px;
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--white);
  overflow-x: hidden;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--teal-dark);
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: var(--text-5xl); margin-bottom: var(--space-6); }
h2 { font-size: var(--text-4xl); margin-bottom: var(--space-5); }
h3 { font-size: var(--text-2xl); margin-bottom: var(--space-4); }
h4 { font-size: var(--text-xl); margin-bottom: var(--space-3); }

p {
  margin-bottom: var(--space-4);
  color: var(--gray-600);
}

ul, ol {
  list-style: none;
}

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* ---- Grid ---- */
.grid {
  display: grid;
  gap: var(--space-8);
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 992px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ---- Section ---- */
.section {
  padding: var(--space-20) 0;
}
.section-sm {
  padding: var(--space-12) 0;
}
.section-lg {
  padding: var(--space-24) 0;
}
.section-gray {
  background: var(--gray-50);
}
.section-navy {
  background: var(--navy);
  color: var(--white);
}
.section-navy h2, .section-navy h3, .section-navy h4 {
  color: var(--white);
}
.section-navy p {
  color: var(--gray-300);
}
.section-gradient {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, var(--teal-dark) 100%);
  color: var(--white);
}
.section-gradient h2, .section-gradient h3 {
  color: var(--white);
}
.section-gradient p {
  color: var(--gray-200);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-12);
}
.section-header .badge {
  display: inline-block;
  background: rgba(52, 211, 153, 0.1);
  color: var(--teal);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-4);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.section-navy .section-header .badge,
.section-gradient .section-header .badge {
  background: rgba(255,255,255,0.1);
  color: var(--teal-light);
}

/* ========================================
   NAVIGATION
   ======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: transform var(--transition-base);
}

/* Top Utility Bar */
.header-topbar {
  height: 40px;
  background: var(--navy-dark);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  transition: all var(--transition-base);
  overflow: hidden;
}
.header-topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.topbar-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.topbar-divider {
  color: rgba(255, 255, 255, 0.15);
}
.topbar-right {
  display: flex;
  align-items: center;
}
.topbar-phone {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  transition: color var(--transition-fast);
}
.topbar-phone:hover {
  color: var(--teal-light);
}
.topbar-phone span {
  color: var(--teal-light);
  font-weight: 700;
}

/* Collapsing scroll header state */
.site-header.scrolled .header-topbar {
  height: 0;
  opacity: 0;
  pointer-events: none;
  border-bottom-color: transparent;
}
.site-header.scrolled .navbar {
  background: rgba(10, 17, 40, 0.96);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(12px);
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

/* Main Navbar */
.navbar {
  height: var(--nav-height);
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: all var(--transition-base);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
}
.nav-logo img {
  height: 36px;
  width: 36px;
  object-fit: contain;
}
.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1;
}

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

/* Nav Dropdown Triggers */
.nav-dropdown {
  position: relative;
}
.nav-dropdown .dropdown-trigger {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--space-1);
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  border: none;
  background: none;
  transition: all var(--transition-fast);
  font-family: var(--font-body);
}
.nav-dropdown .dropdown-trigger:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}
.nav-dropdown .dropdown-trigger svg {
  width: 14px;
  height: 14px;
  opacity: 0.8;
  transition: transform var(--transition-fast);
}
/* Expanded/Mega Dropdown Menus */
.nav-dropdown .dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: var(--space-3);
  min-width: 320px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

@media (min-width: 993px) {
  .nav-dropdown:hover .dropdown-trigger svg {
    transform: rotate(180deg);
  }
  .nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  text-decoration: none;
}
.dropdown-item:hover {
  background: var(--gray-50);
  transform: translateY(-1px);
}

.dropdown-item .item-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dropdown-item .item-icon svg {
  width: 18px;
  height: 18px;
}

/* Icon Colors & Backgrounds */
.icon-red { background: rgba(239, 68, 68, 0.08); color: #EF4444; }
.icon-cyan { background: rgba(6, 182, 212, 0.08); color: #06B6D4; }
.icon-purple { background: rgba(139, 92, 246, 0.08); color: #8B5CF6; }
.icon-blue { background: rgba(59, 130, 246, 0.08); color: #3B82F6; }
.icon-green { background: rgba(16, 185, 129, 0.08); color: #10B981; }
.icon-orange { background: rgba(245, 158, 11, 0.08); color: #F59E0B; }
.icon-teal { background: rgba(52, 211, 153, 0.08); color: var(--teal); }

.dropdown-item .item-text {
  display: flex;
  flex-direction: column;
}
.dropdown-item .item-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 2px;
  transition: color var(--transition-fast);
}
.dropdown-item .item-desc {
  font-size: 0.75rem;
  color: var(--gray-500);
  line-height: 1.2;
}
.dropdown-item:hover .item-title {
  color: var(--teal);
}

/* Navigation Call to Action */
.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-left: var(--space-4);
}
.nav-contact {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}
.nav-contact:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}
.nav-cta .btn-nav {
  background: var(--teal);
  color: var(--white) !important;
  padding: var(--space-2) var(--space-6) !important;
  border-radius: var(--radius-full) !important;
  font-weight: 600 !important;
  font-size: var(--text-sm) !important;
  transition: all var(--transition-fast) !important;
}
.nav-cta .btn-nav:hover {
  background: var(--teal-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(52, 211, 153, 0.4);
}

/* Mobile Toggle Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  border: none;
  background: none;
  padding: var(--space-2);
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition-fast);
}
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Responsive Mobile Navigation */
@media (max-width: 992px) {
  .header-topbar {
    display: none;
  }
  .site-header {
    position: fixed;
    top: 0;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-6);
    gap: var(--space-2);
    transform: translateX(100%);
    transition: transform var(--transition-base);
    overflow-y: auto;
  }
  .nav-menu.active {
    transform: translateX(0);
  }
  .nav-menu a {
    font-size: var(--text-base);
    padding: var(--space-4);
  }

  .nav-dropdown .dropdown-trigger {
    width: 100%;
    justify-content: space-between;
    font-size: var(--text-base);
    padding: var(--space-3) var(--space-4);
  }
  .nav-dropdown .dropdown-menu {
    position: static;
    transform: none;
    background: rgba(255, 255, 255, 0.04);
    border: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    display: none;
    padding: var(--space-2) 0 var(--space-2) var(--space-4);
    min-width: unset;
    transition: none;
    transform: none;
  }
  .nav-dropdown.open .dropdown-menu {
    display: flex;
  }
  .nav-dropdown.open .dropdown-trigger svg {
    transform: rotate(180deg);
  }
  .nav-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-3);
    background: transparent;
    transform: none !important;
  }
  .nav-dropdown .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.04);
  }
  .nav-dropdown .dropdown-item .item-icon {
    width: 28px;
    height: 28px;
  }
  .nav-dropdown .dropdown-item .item-icon svg {
    width: 14px;
    height: 14px;
  }
  .nav-dropdown .dropdown-item .item-title {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--text-sm);
  }
  .nav-dropdown .dropdown-item .item-desc {
    display: none;
  }

  .nav-cta {
    flex-direction: column;
    margin-top: var(--space-4);
    margin-left: 0;
    align-items: stretch;
    gap: var(--space-3);
  }
  .nav-contact {
    color: rgba(255, 255, 255, 0.9);
    justify-content: center;
    padding: var(--space-3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
  }
  .nav-cta .btn-nav {
    text-align: center;
    width: 100%;
    padding: var(--space-3) !important;
  }
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  line-height: 1.5;
  white-space: nowrap;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(52, 211, 153,0.35);
}
.btn-primary:hover {
  background: var(--orange-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(52, 211, 153,0.45);
}

.btn-secondary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(52, 211, 153,0.3);
}
.btn-secondary:hover {
  background: var(--teal-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(52, 211, 153,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--gray-200);
}
.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-md);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--navy);
}

.btn-lg {
  padding: var(--space-4) var(--space-10);
  font-size: var(--text-lg);
}
.btn-sm {
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
}

.btn-block {
  width: 100%;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  min-height: 750px;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + var(--space-16));
  padding-bottom: var(--space-20);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  max-width: none !important;
  max-height: none !important;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 17, 40,0.92) 0%, rgba(10, 17, 40,0.75) 50%, rgba(52, 211, 153,0.6) 100%);
}
.hero .container {
  position: relative;
  z-index: 1;
}
.hero-content {
  max-width: 650px;
}
.hero-content h1 {
  color: var(--white);
  font-size: var(--text-6xl);
  font-weight: 800;
  margin-bottom: var(--space-6);
  line-height: 1.1;
}
.hero-content h1 span {
  color: var(--teal-light);
}
.hero-content p {
  color: rgba(255,255,255,0.85);
  font-size: var(--text-xl);
  margin-bottom: var(--space-8);
  line-height: 1.7;
}
.hero-content .hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-8);
}
.hero-content .hero-badge {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255,255,255,0.9);
  font-size: var(--text-sm);
  font-weight: 500;
}
.hero-content .hero-badge svg {
  color: var(--teal-light);
  flex-shrink: 0;
}

/* Hero with two columns */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

@media (max-width: 992px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .hero-content h1 {
    font-size: var(--text-4xl);
  }
  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + var(--space-8));
    padding-bottom: var(--space-12);
  }
}
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: var(--text-3xl);
  }
  .hero-content p {
    font-size: var(--text-base);
  }
}

/* ========================================
   HERO FORM (ZIP Code / Campaign Selector)
   ======================================== */
.hero-form {
  display: flex;
  align-items: stretch;
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  max-width: 520px;
}
.hero-form input {
  flex: 1;
  border: none;
  outline: none;
  padding: var(--space-5) var(--space-6);
  font-size: var(--text-lg);
  font-family: var(--font-body);
  color: var(--gray-800);
  min-width: 0;
}
.hero-form input::placeholder {
  color: var(--gray-400);
}
.hero-form .btn {
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
  padding-left: var(--space-8);
  padding-right: var(--space-8);
  font-size: var(--text-base);
}

@media (max-width: 480px) {
  .hero-form {
    flex-direction: column;
    border-radius: var(--radius-lg);
  }
  .hero-form .btn {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }
}

/* ========================================
   CARDS
   ======================================== */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  border: 1px solid var(--gray-100);
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--teal);
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  font-size: 28px;
  background: linear-gradient(135deg, rgba(52, 211, 153,0.1), rgba(10, 17, 40,0.05));
  color: var(--teal);
}

.card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}
.card p {
  font-size: var(--text-sm);
  color: var(--gray-500);
  margin-bottom: var(--space-5);
}
.card .card-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: gap var(--transition-fast);
}
.card:hover .card-link {
  gap: var(--space-3);
}

/* Campaign Card */
.campaign-card {
  text-align: center;
  padding: var(--space-10) var(--space-6);
}
.campaign-card .card-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-6);
  font-size: 36px;
  border-radius: var(--radius-lg);
}

/* Feature Card */
.feature-card {
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--teal);
}
.feature-card .card-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  margin-bottom: 0;
  background: rgba(52, 211, 153, 0.1);
  color: var(--teal);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}
.feature-card:hover .card-icon {
  background: var(--teal);
  color: var(--white);
}
.feature-card-content h4 {
  margin-bottom: var(--space-2);
  color: var(--navy);
  font-weight: 700;
}

/* ========================================
   LEAD CAPTURE FORM
   ======================================== */
.lead-form-container {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-6) var(--space-8);
  box-shadow: var(--shadow-2xl);
  border: 1px solid var(--gray-100);
  position: relative;
}
.lead-form-container h3 {
  text-align: center;
  margin-bottom: var(--space-1);
  font-size: var(--text-xl);
}
.lead-form-container .form-subtitle {
  text-align: center;
  color: var(--gray-500);
  margin-bottom: var(--space-5);
  font-size: var(--text-xs);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5) var(--space-4);
}
.form-grid .form-group.full-width {
  grid-column: 1 / -1;
}

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .lead-form-container {
    padding: var(--space-5);
  }
}

.form-group {
  margin-bottom: 0;
}
.form-group label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: var(--space-1);
}
.form-group label .required {
  color: var(--error);
}

.form-control {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--white);
  transition: all var(--transition-fast);
  outline: none;
}
.form-control:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(52, 211, 153,0.15);
}
.form-control::placeholder {
  color: var(--gray-400);
}
.form-control.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}
.error-text {
  color: var(--error);
  font-size: var(--text-xs);
  margin-top: var(--space-1);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748B' d='M6 8.825L.35 3.175l.825-.825L6 7.175 10.825 2.35l.825.825z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}

/* TCPA Checkbox */
.tcpa-consent {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-top: var(--space-5);
  margin-bottom: var(--space-5);
}
.tcpa-consent input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  accent-color: var(--teal);
  cursor: pointer;
}
.tcpa-consent label {
  font-size: 10px;
  color: var(--gray-500);
  line-height: 1.4;
  cursor: pointer;
  font-weight: 400;
}
.tcpa-consent label a {
  color: var(--teal);
  text-decoration: underline;
}

/* Form Success/Error Messages */
.form-message {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-5);
  font-size: var(--text-sm);
  display: none;
}
.form-message.success {
  background: rgba(16,185,129,0.1);
  color: #065F46;
  border: 1px solid rgba(16,185,129,0.2);
  display: block;
}
.form-message.error {
  background: rgba(239,68,68,0.1);
  color: #991B1B;
  border: 1px solid rgba(239,68,68,0.2);
  display: block;
}

/* ========================================
   HOW IT WORKS
   ======================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 45px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--orange));
  z-index: 0;
}
.step {
  text-align: center;
  position: relative;
  z-index: 1;
}
.step-number {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-3xl);
  font-weight: 800;
  margin: 0 auto var(--space-6);
  font-family: var(--font-heading);
  box-shadow: 0 8px 25px rgba(52, 211, 153,0.3);
  position: relative;
}
.step h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}
.step p {
  font-size: var(--text-sm);
  max-width: 280px;
  margin: 0 auto;
}

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

/* ========================================
   STATS COUNTER
   ======================================== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  text-align: center;
}
.stat-item {
  padding: var(--space-6);
}
.stat-number {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: 800;
  color: var(--teal-light);
  margin-bottom: var(--space-2);
  line-height: 1;
}
.stat-label {
  font-size: var(--text-sm);
  color: var(--gray-300);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}
.testimonial {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--gray-100);
  position: relative;
}
.testimonial::before {
  content: '"';
  font-size: 80px;
  font-family: Georgia, serif;
  color: var(--teal);
  opacity: 0.15;
  position: absolute;
  top: 10px;
  left: 20px;
  line-height: 1;
}
.testimonial-stars {
  color: #F59E0B;
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
  letter-spacing: 2px;
}
.testimonial p {
  font-size: var(--text-sm);
  color: var(--gray-600);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: var(--space-5);
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: var(--text-sm);
}
.testimonial-info strong {
  display: block;
  font-size: var(--text-sm);
  color: var(--navy);
}
.testimonial-info span {
  font-size: var(--text-xs);
  color: var(--gray-400);
}

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

/* ========================================
   FAQ ACCORDION
   ======================================== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}
.faq-item:hover {
  border-color: var(--teal);
}
.faq-question {
  width: 100%;
  padding: var(--space-5) var(--space-6);
  background: var(--white);
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  transition: background var(--transition-fast);
}
.faq-question:hover {
  background: var(--gray-50);
}
.faq-question svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--teal);
  transition: transform var(--transition-base);
}
.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}
.faq-answer-inner {
  padding: 0 var(--space-6) var(--space-6);
}
.faq-answer p {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: 1.7;
}
.faq-item.active .faq-answer {
  max-height: 500px;
}

/* ========================================
   CTA BANNER
   ======================================== */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, var(--teal-dark) 100%);
  padding: var(--space-16) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(52, 211, 153,0.1);
  border-radius: 50%;
}
.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 300px;
  height: 300px;
  background: rgba(52, 211, 153,0.08);
  border-radius: 50%;
}
.cta-banner .container {
  position: relative;
  z-index: 1;
}
.cta-banner h2 {
  color: var(--white);
  margin-bottom: var(--space-4);
}
.cta-banner p {
  color: var(--gray-300);
  font-size: var(--text-lg);
  margin-bottom: var(--space-8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.cta-banner .btn-group {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding-top: var(--space-16);
  position: relative;
  border-top: 4px solid transparent;
  border-image: linear-gradient(90deg, var(--teal) 0%, var(--teal-light) 50%, var(--orange) 100%) 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}
.footer-about {
  max-width: 320px;
}
.footer-about img {
  height: 36px;
  margin-bottom: var(--space-5);
}
.footer-about p {
  color: rgba(255,255,255,0.6);
  font-size: var(--text-sm);
  line-height: 1.7;
}
.footer-contact {
  margin-top: var(--space-5);
}
.footer-contact a {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255,255,255,0.7);
  font-size: var(--text-sm);
  margin-bottom: var(--space-2);
  transition: color var(--transition-fast);
}
.footer-contact a:hover {
  color: var(--teal-light);
}

/* Footer Badges */
.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.footer-badges .badge {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}
.footer-badges .badge-icon {
  color: var(--teal);
  flex-shrink: 0;
}

.footer-col h4 {
  color: var(--white);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-6);
  position: relative;
  padding-bottom: var(--space-2);
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--teal);
  border-radius: var(--radius-full);
}
.footer-col ul li {
  margin-bottom: var(--space-3);
}
.footer-col ul li a {
  color: rgba(255,255,255,0.6);
  font-size: var(--text-sm);
  display: inline-block;
  transition: transform var(--transition-base), color var(--transition-base);
}
.footer-col ul li a:hover {
  color: var(--teal-light);
  transform: translateX(6px);
}

.footer-tcpa {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  margin-top: var(--space-10);
  margin-bottom: var(--space-8);
}
.footer-tcpa p {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.8;
  max-width: 100%;
  margin: 0;
}
.footer-tcpa strong {
  color: var(--white);
  font-weight: 600;
}
.footer-tcpa a {
  color: rgba(255, 255, 255, 0.65) !important;
  text-decoration: underline !important;
  transition: color var(--transition-fast) !important;
}
.footer-tcpa a:hover {
  color: var(--teal-light) !important;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: var(--space-6) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.footer-bottom p {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}
.footer-bottom-links {
  display: flex;
  gap: var(--space-6);
}
.footer-bottom-links a {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
  transition: color var(--transition-fast);
}
.footer-bottom-links a:hover {
  color: var(--teal-light);
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ========================================
   LEGAL PAGES
   ======================================== */
.legal-content {
  padding: calc(var(--nav-height) + var(--space-12)) 0 var(--space-16);
}
.legal-content .container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.legal-content h1 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-2);
}
.legal-content .last-updated {
  color: var(--gray-400);
  font-size: var(--text-sm);
  margin-bottom: var(--space-10);
}
.legal-content h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid var(--gray-100);
}
.legal-content h3 {
  font-size: var(--text-xl);
  margin-top: var(--space-6);
}
.legal-content p {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--gray-600);
}
.legal-content ul, .legal-content ol {
  margin: var(--space-4) 0;
  padding-left: var(--space-8);
}
.legal-content ul {
  list-style: disc;
}
.legal-content ol {
  list-style: decimal;
}
.legal-content li {
  font-size: var(--text-base);
  color: var(--gray-600);
  margin-bottom: var(--space-2);
  line-height: 1.7;
}
.legal-content a {
  color: var(--teal);
  text-decoration: underline;
}

/* ========================================
   CAMPAIGN PAGE CONTENT
   ======================================== */
.campaign-hero {
  min-height: 520px;
}
.campaign-hero .hero-content h1 {
  font-size: var(--text-5xl);
}

.campaign-info {
  padding: var(--space-16) 0;
}
.campaign-info-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-12);
  align-items: start;
}

@media (max-width: 992px) {
  .campaign-info-grid {
    grid-template-columns: 1fr;
  }
}

.campaign-content h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-5);
}
.campaign-content p {
  line-height: 1.8;
  margin-bottom: var(--space-5);
}
.campaign-content ul {
  list-style: none;
  margin: var(--space-5) 0;
  padding: 0;
}
.campaign-content ul li {
  padding: var(--space-3) 0;
  padding-left: var(--space-8);
  position: relative;
  color: var(--gray-600);
  font-size: var(--text-base);
  line-height: 1.6;
}
.campaign-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2313A89E'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Coverage Tier Cards */
.tier-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}
.tier-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  border: 2px solid var(--gray-100);
  transition: all var(--transition-base);
}
.tier-card:hover {
  border-color: var(--teal);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.tier-card .tier-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}
.tier-card .tier-coverage {
  font-size: var(--text-sm);
  color: var(--gray-500);
}
.tier-card.bronze .tier-name { color: #CD7F32; }
.tier-card.silver .tier-name { color: #94A3B8; }
.tier-card.gold .tier-name { color: #D4A017; }
.tier-card.platinum .tier-name { color: var(--navy); }

@media (max-width: 768px) {
  .tier-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========================================
   404 PAGE
   ======================================== */
.page-404 {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--nav-height);
}
.page-404 h1 {
  font-size: 120px;
  color: var(--teal);
  line-height: 1;
  margin-bottom: var(--space-4);
}
.page-404 h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}
.page-404 p {
  margin-bottom: var(--space-8);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-teal { color: var(--teal) !important; }
.text-orange { color: var(--orange) !important; }
.text-white { color: var(--white) !important; }
.text-navy { color: var(--navy) !important; }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

/* ========================================
   ANIMATIONS
   ======================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

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

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Loading spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn.loading {
  opacity: 0.8;
  pointer-events: none;
}

/* Sticky form on campaign pages */
@media (min-width: 993px) {
  .sticky-form {
    position: sticky;
    top: calc(var(--nav-height) + var(--space-6));
  }
}

/* Divider */
.divider {
  height: 1px;
  background: var(--gray-200);
  margin: var(--space-8) 0;
}

.icon-list {
  list-style: none;
  padding: 0;
}
.icon-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  color: var(--gray-600);
}
.icon-list li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--teal);
}

/* Partners/Trust Logos */
.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-10);
  flex-wrap: wrap;
  opacity: 0.5;
  filter: grayscale(1);
  padding: var(--space-8) 0;
}
.trust-logos img {
  height: 32px;
  width: auto;
}

/* ========================================
   CAMPAIGN HERO FIXES & IMPROVEMENTS
   ======================================== */
.campaign-hero .hero-left h1 {
  color: var(--white) !important;
  font-size: var(--text-5xl) !important;
  font-weight: 800;
  margin-bottom: var(--space-6);
  line-height: 1.1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.campaign-hero .hero-left p {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: var(--text-lg) !important;
  margin-bottom: var(--space-8);
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Campaign Hero badge (glassmorphic style) */
.campaign-hero .hero-left .badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15) !important;
  color: var(--teal-light) !important;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  padding: var(--space-2) var(--space-5) !important;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-5);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Hero bullets list */
.hero-bullets {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-6);
  margin-bottom: var(--space-8);
}

.hero-bullet {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  color: rgba(255, 255, 255, 0.95);
  font-size: var(--text-base);
  line-height: 1.5;
  text-align: left;
}

.hero-bullet svg {
  color: var(--teal-light);
  flex-shrink: 0;
  margin-top: 3px;
}

.hero-bullet strong {
  color: var(--white);
  font-weight: 700;
}

/* Form container improvements on medium viewports */
@media (max-width: 1200px) {
  .lead-form-container {
    padding: var(--space-6) !important;
  }
}

/* ========================================
   GLASSMORPHISM & NEUMORPHISM EXTENSIONS
   ======================================== */
.hero-right .lead-form-container, 
.sticky-form {
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
  box-shadow: 0 10px 40px -10px rgba(10, 17, 40, 0.12) !important;
}

.hero-right .lead-form-container h3 {
  color: var(--navy);
  font-weight: 800;
}

.hero-right .lead-form-container .form-control {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(10, 17, 40, 0.08);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.hero-right .lead-form-container .form-control:focus {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.15);
}

/* Floating Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--navy);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-base);
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--teal);
  color: var(--navy-dark);
  border-color: var(--teal);
  box-shadow: 0 8px 25px rgba(52, 211, 153, 0.4);
  transform: translateY(-3px);
}
.back-to-top:active {
  transform: translateY(-1px);
}

/* ========================================
   PREMIUM HOMEPAGE REDESIGN WIDGETS
   ======================================== */

/* Hero Left Text Colors */
.hero .hero-left h1 {
  color: var(--white);
  font-size: var(--text-6xl);
  font-weight: 800;
  margin-bottom: var(--space-6);
  line-height: 1.1;
}
.hero .hero-left h1 span {
  color: var(--teal-light);
}
.hero .hero-left p {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-xl);
  margin-bottom: var(--space-8);
  line-height: 1.7;
}

/* Mini Trust Badge */
.trust-badge-mini {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(52, 211, 153, 0.12);
  color: var(--teal-light);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  margin-bottom: var(--space-5);
  border: 1px solid rgba(52, 211, 153, 0.25);
  letter-spacing: 0.02em;
}

/* Hero Bullets list */
.hero-bullets {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-6);
  margin-bottom: var(--space-8);
}
.hero-bullet {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-base);
  line-height: 1.5;
  text-align: left;
}
.hero-bullet svg {
  color: var(--teal);
  flex-shrink: 0;
  margin-top: 3px;
}
.hero-bullet strong {
  color: var(--white);
  font-weight: 700;
}

/* Glassmorphic Quote Card on Hero Right */
.hero-glass-card {
  background: rgba(10, 17, 40, 0.7) !important;
  backdrop-filter: blur(30px) saturate(190%);
  -webkit-backdrop-filter: blur(30px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6);
  max-width: 520px;
  margin: 0 auto;
}
.hero-glass-card .form-control {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  outline: none;
  transition: all var(--transition-fast);
}
.hero-glass-card .form-control:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.2);
}
.hero-glass-card .form-control::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.hero-glass-card select.form-control option {
  background: var(--navy-dark);
  color: var(--white);
}
.hero-card-header {
  margin-bottom: var(--space-6);
  text-align: left;
}
.hero-card-header .header-badge {
  display: inline-block;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-light);
  font-weight: 700;
  background: rgba(52, 211, 153, 0.1);
  padding: 4px var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
  border: 1px solid rgba(52, 211, 153, 0.18);
}
.hero-card-header h3 {
  background: linear-gradient(135deg, var(--white) 30%, #a7f3d0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: var(--text-3xl);
  font-weight: 800;
  margin-bottom: var(--space-1);
}
.hero-card-header p {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-sm);
  margin-bottom: 0;
}

/* Tab selector buttons */
.hero-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 4px;
  margin-bottom: var(--space-6);
  gap: var(--space-1);
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
}
.hero-tabs::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}
.hero-tab-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  padding: var(--space-2) var(--space-1);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  transition: all 0.2s ease;
  min-width: 65px;
  border-radius: var(--radius-md);
}
.hero-tab-btn svg {
  color: rgba(255, 255, 255, 0.35);
  transition: all 0.2s ease;
}
.hero-tab-btn:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
}
.hero-tab-btn:hover svg {
  color: var(--teal-light);
  transform: translateY(-1px);
}
.hero-tab-btn.active {
  color: var(--teal-light);
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.25);
  box-shadow: 0 4px 15px rgba(52, 211, 153, 0.06);
}
.hero-tab-btn.active svg {
  color: var(--teal-light);
  filter: drop-shadow(0 0 4px rgba(52, 211, 153, 0.4));
}
.hero-tab-btn.active::after {
  display: none !important;
}

.hero-tab-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-sm);
  margin-bottom: var(--space-5);
  min-height: 42px; /* Prevent jumping */
  line-height: 1.5;
}

/* ZIP Input inside Hero glass card */
.hero-tab-form {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 4px 4px 4px var(--space-4);
  margin-bottom: var(--space-4);
  transition: all var(--transition-fast);
}
.hero-tab-form:focus-within {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.25), 0 8px 30px rgba(0, 0, 0, 0.2);
}
.hero-tab-form .input-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex: 1;
  min-width: 0;
}
.hero-tab-form .input-icon {
  color: var(--teal-light);
  opacity: 0.65;
  flex-shrink: 0;
}
.hero-tab-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: var(--space-3) 0;
  color: var(--white);
  font-family: var(--font-body);
  font-size: var(--text-base);
  min-width: 0;
}
.hero-tab-form input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}
.hero-tab-form .btn {
  border-radius: var(--radius-md) !important;
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  border: none;
  box-shadow: 0 4px 15px rgba(52, 211, 153, 0.2);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  transition: all var(--transition-fast);
}
.hero-tab-form .btn:hover {
  background: linear-gradient(135deg, var(--teal-light) 0%, var(--teal) 100%);
  box-shadow: 0 6px 20px rgba(52, 211, 153, 0.3);
  transform: translateY(-1px);
}

/* Multi-step progress bar */
.hero-form-progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
  overflow: hidden;
  position: relative;
}
.hero-form-progress-bar {
  height: 100%;
  width: 50%; /* Default step 1 */
  background: linear-gradient(90deg, var(--teal-light), var(--teal));
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.5);
  border-radius: var(--radius-full);
  transition: width var(--transition-normal);
}
.hero-form-progress.step-2 .hero-form-progress-bar {
  width: 100%;
}

.hero-form-badges {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
}

/* ZIP Input Error pulse keyframes */
@keyframes errorPulse {
  0%, 100% { box-shadow: 0 0 0 0px rgba(239, 68, 68, 0); }
  50% { box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.4); }
}
.error-pulse {
  animation: errorPulse 1s ease infinite;
  border-color: var(--error) !important;
}

/* ========================================
   CARRIER LOGO GRIDS
   ======================================== */
.carrier-section {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
  padding: var(--space-8) 0;
}
.carrier-title {
  font-size: var(--text-xs);
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: var(--space-6);
}
.carrier-logos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-6) var(--space-8);
}
.carrier-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: all var(--transition-base);
  cursor: default;
}
.carrier-logo img {
  height: 36px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}
.carrier-logo:hover {
  opacity: 1;
  transform: translateY(-2px) scale(1.05);
}

@media (max-width: 768px) {
  .carrier-logos {
    justify-content: center;
  }
}

/* ========================================
   LIVE SAVINGS ACTIVITY TICKER
   ======================================== */
.ticker-section {
  background: var(--navy-dark);
  padding: var(--space-3) 0;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.05);
}
.ticker-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: 26px;
}
.ticker-badge {
  background: rgba(52, 211, 153, 0.15);
  color: var(--teal);
  border: 1px solid rgba(52, 211, 153, 0.3);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.ticker-container {
  flex-grow: 1;
  position: relative;
  overflow: hidden;
  height: 24px;
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--text-sm);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}
.ticker-item svg {
  color: var(--teal);
  flex-shrink: 0;
}
.ticker-item strong {
  color: var(--white);
}

@keyframes tickerFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in-ticker {
  animation: tickerFadeIn 0.5s forwards;
}

/* ========================================
   INTERACTIVE SAVINGS CALCULATOR
   ======================================== */
.calc-widget-container {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-100);
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}
.calc-tabs {
  display: flex;
  border-bottom: 1px solid var(--gray-100);
}
.calc-tab {
  flex: 1;
  border: none;
  background: var(--gray-50);
  padding: var(--space-5);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.calc-tab:hover {
  color: var(--navy);
  background: var(--white);
}
.calc-tab.active {
  background: var(--white);
  color: var(--teal);
  box-shadow: inset 0 -3px 0 var(--teal);
}

.calc-body {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-8);
  padding: var(--space-10);
}
@media (max-width: 768px) {
  .calc-body {
    grid-template-columns: 1fr;
    padding: var(--space-6);
  }
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.calc-inputs label {
  font-size: var(--text-sm);
  color: var(--gray-700);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}
.calc-inputs label span {
  font-size: var(--text-2xl);
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 800;
}

/* Custom premium slider */
.premium-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--gray-200);
  outline: none;
  margin-bottom: var(--space-8);
}
.premium-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--teal);
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(52, 211, 153, 0.4);
  transition: transform var(--transition-fast);
}
.premium-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.calc-breakdowns {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--gray-50);
}
.breakdown-label {
  font-size: var(--text-sm);
  color: var(--gray-600);
  font-weight: 500;
}
.breakdown-val {
  font-size: var(--text-lg);
  font-weight: 700;
  font-family: var(--font-heading);
}
.breakdown-val.competitor-val {
  color: var(--gray-700);
}
.breakdown-val.pro-val {
  color: var(--teal-dark);
}

.calc-outputs {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--gray-100);
  padding-left: var(--space-8);
}
@media (max-width: 768px) {
  .calc-outputs {
    border-left: none;
    padding-left: 0;
    padding-top: var(--space-6);
    border-top: 1px solid var(--gray-100);
  }
}

.savings-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-light), var(--teal));
  padding: 8px;
  box-shadow: 0 10px 25px rgba(52, 211, 153, 0.3);
  margin-bottom: var(--space-6);
}
.savings-circle-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.savings-circle-inner h4 {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
}
.savings-circle-inner p {
  font-size: 10px;
  color: var(--gray-400);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0;
}

.savings-amount-container {
  display: flex;
  gap: var(--space-4);
  width: 100%;
}
.amount-card {
  flex: 1;
  background: var(--gray-50);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  text-align: center;
}
.amount-card h3 {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0;
}
.amount-card.accent {
  background: rgba(52, 211, 153, 0.1);
  border: 1.5px solid var(--teal-light);
}
.amount-card.accent h3 {
  color: var(--teal-dark);
}
.amount-label {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--gray-500);
  font-weight: 600;
  display: block;
  margin-bottom: var(--space-1);
}

.calc-footer {
  padding: var(--space-6);
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
}

/* ========================================
   INTERACTIVE 30-SECOND QUIZ
   ======================================== */
.quiz-container {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-100);
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  min-height: 400px;
}
.quiz-progress-bar {
  display: block;
  height: 4px;
  background: var(--teal);
  transition: width 0.4s ease;
}
.quiz-step {
  padding: var(--space-10);
  display: none;
}
.quiz-step.active {
  display: block;
}
.quiz-header {
  margin-bottom: var(--space-8);
}
.quiz-step-num {
  font-size: var(--text-xs);
  color: var(--teal);
  font-weight: 700;
  text-transform: uppercase;
  display: block;
  margin-bottom: var(--space-2);
}
.quiz-header h3 {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--navy);
}

.quiz-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}
@media (max-width: 600px) {
  .quiz-options {
    grid-template-columns: 1fr;
  }
}
.quiz-options.two-cols {
  grid-template-columns: repeat(2, 1fr);
}

.quiz-opt-btn {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.quiz-icon-wrapper {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  transition: all var(--transition-base);
}
.quiz-icon-wrapper svg {
  width: 22px;
  height: 22px;
}
.quiz-icon-wrapper.health {
  background: rgba(52, 211, 153, 0.1);
  color: var(--teal-dark);
}
.quiz-icon-wrapper.auto {
  background: rgba(59, 130, 246, 0.1);
  color: var(--info);
}
.quiz-icon-wrapper.home {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}
.quiz-icon-wrapper.life {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
}

.quiz-opt-btn strong {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  color: var(--navy);
  font-weight: 700;
  margin-bottom: var(--space-1.5);
  transition: color var(--transition-fast);
}
.quiz-opt-btn span {
  font-size: var(--text-sm);
  color: var(--gray-500);
  line-height: 1.4;
}

.quiz-opt-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -10px rgba(10, 17, 40, 0.08), 0 4px 12px -5px rgba(10, 17, 40, 0.03);
  border-color: var(--teal);
  background: rgba(52, 211, 153, 0.02);
}

/* Specific theme hover styles */
.quiz-opt-btn.health-opt:hover {
  border-color: var(--teal);
  background: linear-gradient(180deg, var(--white) 0%, rgba(52, 211, 153, 0.015) 100%);
}
.quiz-opt-btn.health-opt:hover .quiz-icon-wrapper.health {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(52, 211, 153, 0.3);
}

.quiz-opt-btn.auto-opt:hover {
  border-color: var(--info);
  background: linear-gradient(180deg, var(--white) 0%, rgba(59, 130, 246, 0.015) 100%);
}
.quiz-opt-btn.auto-opt:hover .quiz-icon-wrapper.auto {
  background: var(--info);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.quiz-opt-btn.home-opt:hover {
  border-color: var(--warning);
  background: linear-gradient(180deg, var(--white) 0%, rgba(245, 158, 11, 0.015) 100%);
}
.quiz-opt-btn.home-opt:hover .quiz-icon-wrapper.home {
  background: var(--warning);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.quiz-opt-btn.life-opt:hover {
  border-color: #6366f1;
  background: linear-gradient(180deg, var(--white) 0%, rgba(99, 102, 241, 0.015) 100%);
}
.quiz-opt-btn.life-opt:hover .quiz-icon-wrapper.life {
  background: #6366f1;
  color: var(--white);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.quiz-back {
  margin-top: var(--space-6);
  text-align: left;
}
.quiz-back button {
  border: none;
  background: transparent;
  color: var(--gray-400);
  cursor: pointer;
  font-size: var(--text-sm);
  font-family: var(--font-body);
  transition: color var(--transition-fast);
}
.quiz-back button:hover {
  color: var(--navy);
}

.quiz-result {
  padding: var(--space-8) 0;
}
.result-badge {
  display: inline-block;
  background: rgba(52, 211, 153, 0.15);
  color: var(--teal-dark);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
}
.quiz-result h3 {
  font-size: var(--text-3xl);
  font-weight: 800;
  margin-bottom: var(--space-3);
}
.quiz-result p {
  max-width: 500px;
  margin: 0 auto var(--space-8);
  font-size: var(--text-base);
  line-height: 1.6;
}
.quiz-reset-btn {
  background: transparent;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  font-size: var(--text-xs);
  text-decoration: underline;
  margin-top: var(--space-6);
}
.quiz-reset-btn:hover {
  color: var(--navy);
}

/* ========================================
   DETAILED COMPARISON TABLE
   ======================================== */
.table-container {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  background: var(--white);
  box-shadow: var(--shadow-md);
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.comparison-table th, 
.comparison-table td {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--gray-200);
  font-size: var(--text-sm);
}
.comparison-table th {
  background: var(--gray-50);
  font-weight: 700;
  color: var(--navy);
}
.comparison-table td strong {
  color: var(--navy);
}
.comparison-table tr:last-child td {
  border-bottom: none;
}
.comparison-table .table-pro {
  background: rgba(52, 211, 153, 0.03);
}
.comparison-table td.table-pro.highlight {
  font-weight: 700;
  color: var(--teal-dark);
}
.comparison-table th.table-pro {
  background: rgba(10, 17, 40, 0.02);
  border-bottom: 2px solid var(--teal);
}

/* ========================================
   LEGAL PAGES STRUCTURED REDESIGN
   ======================================== */
.legal-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  padding: calc(var(--nav-height) + var(--space-12)) 0 var(--space-12);
  text-align: center;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.05);
}
.legal-banner h1 {
  color: var(--white);
  font-size: var(--text-4xl);
  font-weight: 800;
  margin-bottom: var(--space-2);
}
.legal-banner .last-updated {
  color: var(--gray-400);
  font-size: var(--text-sm);
  margin-bottom: 0;
}

/* Main Split Layout */
.legal-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-12);
  align-items: start;
  padding: var(--space-12) 0;
}
@media (max-width: 992px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

/* Sticky TOC Sidebar */
.legal-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 20px);
  max-height: calc(100vh - var(--nav-height) - 40px);
  overflow-y: auto;
  padding-right: var(--space-4);
}
@media (max-width: 992px) {
  .legal-sidebar {
    position: static;
    max-height: none;
    padding-right: 0;
  }
}

.legal-toc-list-wrapper {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}
@media (max-width: 992px) {
  .legal-toc-list-wrapper {
    display: none;
  }
  .legal-toc-list-wrapper.open {
    display: block;
    margin-top: var(--space-2);
  }
}

.legal-toc-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.legal-toc-link {
  font-size: var(--text-sm);
  color: var(--gray-500);
  font-weight: 500;
  padding: var(--space-2) var(--space-3);
  border-left: 2px solid var(--gray-200);
  transition: all var(--transition-fast);
  display: block;
}
.legal-toc-link:hover {
  color: var(--teal);
  border-left-color: var(--teal-light);
  padding-left: var(--space-4);
}
.legal-toc-link.active {
  color: var(--teal-dark);
  border-left-color: var(--teal);
  font-weight: 700;
  padding-left: var(--space-4);
  background: rgba(52, 211, 153, 0.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Mobile Drawer/Toggle Button */
.legal-toc-toggle {
  display: none;
  width: 100%;
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
}
.legal-toc-toggle svg {
  transition: transform var(--transition-base);
}
.legal-toc-toggle.active svg {
  transform: rotate(180deg);
}
@media (max-width: 992px) {
  .legal-toc-toggle {
    display: flex;
  }
}

/* Document Body formatting */
.legal-body {
  background: var(--white);
  padding: var(--space-6) 0;
}
.legal-body h2 {
  font-size: var(--text-2xl);
  color: var(--navy);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--gray-100);
  scroll-margin-top: 100px;
}
.legal-body h2:first-of-type {
  margin-top: 0;
}
.legal-body h3 {
  font-size: var(--text-lg);
  color: var(--navy);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
  scroll-margin-top: 100px;
}
.legal-body p {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--gray-600);
  margin-bottom: var(--space-4);
}
.legal-body ul, .legal-body ol {
  margin: var(--space-4) 0 var(--space-6);
  padding-left: var(--space-6);
}
.legal-body ul {
  list-style: none;
}
.legal-body ul li {
  position: relative;
  padding-left: var(--space-6);
  margin-bottom: var(--space-2);
  color: var(--gray-600);
  font-size: var(--text-sm);
}
.legal-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
}
.legal-body ol {
  list-style: decimal;
}
.legal-body ol li {
  margin-bottom: var(--space-2);
  color: var(--gray-600);
  font-size: var(--text-sm);
}

/* Callout and highlight blocks */
.callout-box {
  background: rgba(52, 211, 153, 0.05);
  border-left: 4px solid var(--teal);
  padding: var(--space-5) var(--space-6);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: var(--space-6) 0;
}
.callout-box p {
  margin-bottom: 0;
  font-size: var(--text-sm);
  color: var(--gray-700);
}
.callout-box p strong {
  color: var(--navy);
}

/* Contact grid and cards */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-6);
}
@media (max-width: 600px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
.contact-card {
  border: 1px solid var(--gray-200);
  background: var(--gray-50);
  padding: var(--space-5);
  border-radius: var(--radius-md);
  text-align: center;
  transition: all var(--transition-base);
}
.contact-card:hover {
  transform: translateY(-2px);
  border-color: var(--teal);
  box-shadow: var(--shadow-sm);
}
.contact-card h4 {
  font-size: var(--text-sm);
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: var(--space-2);
}
.contact-card p {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0;
}
.contact-card a {
  text-decoration: none !important;
  color: var(--teal-dark);
}
.contact-card a:hover {
  color: var(--teal);
}

/* ========================================
   GLOBAL MOBILE RESPONSIVENESS FIXES
   ======================================== */
@media (max-width: 768px) {
  /* Section Spacing Reductions */
  .section { padding: var(--space-12) 0 !important; }
  .section-sm { padding: var(--space-8) 0 !important; }
  .section-lg { padding: var(--space-16) 0 !important; }
  
  /* Grid gaps */
  .grid { gap: var(--space-6) !important; }
  
  /* Container padding */
  .container { padding: 0 var(--space-4) !important; }
  
  /* Hero Section */
  .hero { min-height: auto; padding-top: calc(var(--nav-height) + var(--space-6)); padding-bottom: var(--space-10); }
  .hero-split { gap: var(--space-6); }
  .hero-glass-card { padding: var(--space-5); max-width: 100%; margin: 0; }
  .hero-tab-form { flex-direction: column; gap: var(--space-3); background: transparent; border: none; padding: 0; }
  .hero-tab-form .input-wrapper { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-lg); padding: var(--space-2) var(--space-4); width: 100%; }
  .hero-tab-form .btn { border-radius: var(--radius-lg) !important; width: 100%; justify-content: center; margin-top: var(--space-2); }
  
  .hero .hero-left h1 { font-size: var(--text-4xl) !important; margin-bottom: var(--space-4) !important; }
  .hero .hero-left p { font-size: var(--text-base) !important; margin-bottom: var(--space-6) !important; }
  
  /* Carrier Logos */
  .carrier-logos { gap: var(--space-4); justify-content: center; }
  .carrier-logo img { height: 28px !important; }
  
  /* Cards */
  .card { padding: var(--space-5); }
  .feature-card { padding: var(--space-5); gap: var(--space-3); flex-direction: column; text-align: center; align-items: center; }
  .campaign-card { padding: var(--space-6) var(--space-4); }
  
  /* Footer */
  .footer-grid { gap: var(--space-6); }
  
  /* Stats */
  .stats-row { gap: var(--space-4); }
  .stat-item { padding: var(--space-3); }
  
  /* How It Works */
  .steps { gap: var(--space-8); }
  
  /* Testimonials */
  .testimonial { padding: var(--space-6); }
  
  /* Quiz */
  .quiz-step { padding: var(--space-5); }
  .quiz-options { gap: var(--space-4); }
  .quiz-opt-btn { padding: var(--space-5); }
  
  /* Calculator */
  .calc-body { padding: var(--space-5); gap: var(--space-6); }
  
  /* Table */
  .comparison-table th, .comparison-table td { padding: var(--space-3); font-size: var(--text-xs); }
}

@media (max-width: 480px) {
  /* Ultra small screens */
  .grid { gap: var(--space-4) !important; }
  h2 { font-size: var(--text-2xl) !important; }
  .hero .hero-left h1 { font-size: var(--text-3xl) !important; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
  .calc-body { padding: var(--space-4); gap: var(--space-4); }
  .comparison-table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* ---- Success Overlay Animations ---- */
@keyframes fadeScaleIn {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 8px 32px rgba(52, 211, 153, 0.35);
  }
  50% {
    box-shadow: 0 8px 48px rgba(52, 211, 153, 0.55), 0 0 0 12px rgba(52, 211, 153, 0.08);
  }
}

.success-overlay {
  opacity: 0;
}
