/* ==========================================================================
   InsuranceWhen - Modern Luxury Theme & Design System
   Palette: Deep Midnight Plum (#0F0C1B), Royal Violet (#7C3AED), 
            Radiant Rose (#F43F5E), Soft Opal Canvas (#FAF8FF), 
            Velvet Charcoal (#181428), Crisp White (#FFFFFF)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  /* Brand Plum, Violet & Rose */
  --plum: #0F0C1B;
  --plum-dark: #080610;
  --plum-surface: #1B152E;
  --plum-light: #2A2147;

  --violet: #7C3AED;
  --violet-dark: #6D28D9;
  --violet-hover: #5B21B6;
  --violet-light: #F5F3FF;
  --violet-subtle: rgba(124, 58, 237, 0.08);
  --violet-glow: rgba(124, 58, 237, 0.32);

  --rose: #F43F5E;
  --rose-bright: #FB7185;
  --rose-dark: #E11D48;
  --rose-light: #FFF1F2;
  --rose-glow: rgba(244, 63, 94, 0.28);

  /* Canvas & Soft Opal Surfaces */
  --canvas: #FAF8FF;
  --canvas-subtle: #F3EFFE;
  --sand: #F4EFFD;
  --sand-light: #FAF7FF;
  --sand-border: #E5DCF8;
  --white: #FFFFFF;

  /* Neutrals & Typography */
  --charcoal: #181428;
  --gray-muted: #5E5873;
  --gray-light: #9B94B0;
  --border: #E8E2F7;
  --border-light: #F4F0FD;
  --border-glass: rgba(232, 226, 247, 0.85);

  /* Validation */
  --error: #DC2626;
  --error-bg: #FEF2F2;
  --error-border: #FECACA;

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(15, 12, 27, 0.05);
  --shadow-sm: 0 4px 12px -2px rgba(15, 12, 27, 0.06);
  --shadow-md: 0 10px 25px -3px rgba(15, 12, 27, 0.08), 0 4px 10px -2px rgba(15, 12, 27, 0.04);
  --shadow-lg: 0 20px 35px -5px rgba(15, 12, 27, 0.10), 0 10px 15px -3px rgba(15, 12, 27, 0.05);
  --shadow-xl: 0 25px 50px -12px rgba(15, 12, 27, 0.16);
  --shadow-violet-glow: 0 8px 25px -4px rgba(124, 58, 237, 0.38);
  --shadow-rose-glow: 0 8px 25px -4px rgba(244, 63, 94, 0.35);

  /* Transitions */
  --transition-fast: 160ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 280ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & Global Standards
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--charcoal);
  background-color: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--violet);
  text-decoration: none;
  transition: all var(--transition-fast);
}

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

ul, ol {
  list-style: none;
}

fieldset {
  border: none;
}

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -70px;
  left: 24px;
  background: var(--plum);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  z-index: 99999;
  font-weight: 700;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 16px;
}

/* --------------------------------------------------------------------------
   3. Layout Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section {
  padding: 104px 0;
  position: relative;
}

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

.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mt-5 { margin-top: 32px; }

.section-header {
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--violet-dark);
  background-color: var(--violet-light);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.18);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.375rem;
  font-weight: 800;
  line-height: 1.22;
  color: var(--plum);
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-muted);
  line-height: 1.6;
}

.section-subtitle-left {
  font-size: 1.0625rem;
  color: var(--gray-muted);
  line-height: 1.6;
  margin-bottom: 32px;
}

.placeholder-tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--gray-muted);
  font-style: italic;
}

/* --------------------------------------------------------------------------
   4. Buttons & Interactive Controls
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  transition: all var(--transition-normal);
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #8B5CF6 0%, var(--violet) 60%, var(--violet-dark) 100%);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--violet) 0%, var(--violet-dark) 60%, #4C1D95 100%);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-violet-glow);
}

.btn-glow {
  box-shadow: var(--shadow-violet-glow);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--plum);
  border-color: var(--border);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background-color: var(--canvas-subtle);
  border-color: var(--gray-light);
  color: var(--plum);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-outline {
  background-color: transparent;
  color: var(--charcoal);
  border-color: var(--border);
}

.btn-outline:hover {
  background-color: var(--canvas-subtle);
  border-color: var(--gray-light);
  color: var(--plum);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.125rem;
}

.btn-block {
  width: 100%;
}

.btn-header-cta {
  background: linear-gradient(135deg, var(--plum) 0%, var(--plum-light) 100%);
  color: var(--white);
  padding: 10px 22px;
  font-size: 0.875rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-xs);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.btn-header-cta:hover {
  background: linear-gradient(135deg, var(--violet) 0%, var(--violet-dark) 100%);
  color: var(--white);
  box-shadow: var(--shadow-violet-glow);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   5. Top Trust Badge Bar (4 Key Trust Indicators)
   -------------------------------------------------------------------------- */
.top-trust-bar {
  background-color: var(--plum);
  color: #E8E2F7;
  font-size: 0.8125rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-bar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.trust-bar-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
}

.trust-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  color: #E8E2F7;
  white-space: nowrap;
}

.trust-bar-icon {
  color: var(--rose-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-bar-item:hover {
  color: var(--white);
}

.trust-bar-item:hover .trust-bar-icon {
  color: #F43F5E;
}

/* --------------------------------------------------------------------------
   6. Modern Floating Pill Navbar
   -------------------------------------------------------------------------- */
.nav-wrapper {
  position: sticky;
  top: 14px;
  z-index: 1000;
  padding: 0 24px;
}

.site-header {
  max-width: 1180px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-lg);
  border-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
}

/* Brand Logo */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  transition: transform var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo:hover .logo-mark {
  transform: scale(1.06) rotate(-2deg);
}

.brand-svg {
  width: 100%;
  height: 100%;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.4375rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
}

.logo-plum {
  color: var(--plum);
}

.logo-violet {
  color: var(--violet);
}

.logo-dot {
  color: var(--rose);
}

.logo-white {
  color: var(--white);
}

.logo-violet-bright {
  color: #A78BFA;
}

/* Desktop Navigation */
.desktop-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--charcoal);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  position: relative;
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--violet);
  background-color: var(--violet-light);
}

.nav-link.active {
  color: var(--plum);
  background-color: var(--canvas-subtle);
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: var(--radius-full);
  background-color: var(--canvas-subtle);
  border: 1px solid var(--border);
}

.hamburger-bar {
  display: block;
  width: 100%;
  height: 2.5px;
  background-color: var(--plum);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

/* Mobile Drawer */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
}

.mobile-nav-drawer.open {
  display: block;
}

.mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(15, 12, 27, 0.65);
  backdrop-filter: blur(6px);
}

.mobile-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 86%;
  max-width: 380px;
  height: 100%;
  background-color: var(--white);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  overflow-y: auto;
}

.mobile-nav-drawer.open .mobile-nav-panel {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.mobile-close-btn {
  padding: 8px;
  color: var(--charcoal);
  border-radius: var(--radius-sm);
  background-color: var(--canvas-subtle);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 0;
}

.mobile-nav-link {
  display: block;
  padding: 12px 18px;
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--charcoal);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.mobile-nav-link:hover {
  background-color: var(--violet-light);
  color: var(--violet);
}

.mobile-nav-footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.mobile-drawer-cta {
  margin-bottom: 16px;
}

.mobile-contact-note {
  font-size: 0.8125rem;
  color: var(--gray-muted);
  text-align: center;
}

.mobile-contact-note a {
  color: var(--violet);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   7. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  background-color: var(--canvas);
  padding: 12px 0 70px;
  overflow: hidden;
}

.hero-ambient-glow {
  position: absolute;
  top: -120px;
  left: 20%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.14) 0%, rgba(244, 63, 94, 0.08) 45%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(232, 226, 247, 0.6) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(232, 226, 247, 0.6) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.7;
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 48px;
  align-items: start;
}

/* Hero Left Column */
.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--violet-dark);
  background-color: var(--violet-light);
  border: 1px solid rgba(124, 58, 237, 0.22);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  box-shadow: var(--shadow-xs);
}

.badge-icon {
  color: var(--violet);
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.14;
  color: var(--plum);
  letter-spacing: -0.035em;
  margin-bottom: 20px;
}

.hero-gradient-text {
  background: linear-gradient(135deg, var(--violet-dark) 0%, var(--violet) 50%, var(--rose) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subheadline {
  font-size: 1.1875rem;
  color: var(--gray-muted);
  line-height: 1.62;
  margin-bottom: 28px;
  max-width: 540px;
}

.hero-trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 36px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--charcoal);
}

.check-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background-color: var(--violet-light);
  color: var(--violet);
  border: 1px solid rgba(124, 58, 237, 0.3);
  flex-shrink: 0;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

/* Floating Lifestyle Preview Card */
.hero-lifestyle-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: var(--white);
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  max-width: 500px;
  transition: transform var(--transition-normal);
}

.hero-lifestyle-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.lifestyle-thumb {
  width: 86px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.lifestyle-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lifestyle-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--violet);
  margin-bottom: 2px;
}

.lifestyle-title {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--plum);
  line-height: 1.3;
}

.lifestyle-desc {
  font-size: 0.75rem;
  color: var(--gray-muted);
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   8. Multi-Step Form Card
   -------------------------------------------------------------------------- */
.hero-form-wrapper {
  width: 100%;
}

.form-card {
  background-color: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
  padding: 34px 30px;
  position: relative;
}

.form-header-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--violet);
  background-color: var(--violet-light);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.form-card-title {
  font-family: var(--font-heading);
  font-size: 1.4375rem;
  font-weight: 800;
  color: var(--plum);
  letter-spacing: -0.015em;
  margin-bottom: 4px;
}

.form-card-subtitle {
  font-size: 0.875rem;
  color: var(--gray-muted);
  margin-bottom: 20px;
}

/* Progress Track */
.form-progress-wrapper {
  margin-bottom: 24px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  margin-bottom: 8px;
}

.progress-step-text {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--violet);
}

.progress-step-label {
  color: var(--gray-muted);
  font-weight: 600;
}

.progress-bar-track {
  width: 100%;
  height: 6px;
  background-color: var(--canvas-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--violet) 0%, var(--rose) 100%);
  border-radius: var(--radius-full);
  transition: width var(--transition-normal);
}

/* Step Transitions */
.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: stepSlideIn 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

.form-legend, .form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--plum);
  margin-bottom: 10px;
}

.required-star {
  color: var(--error);
}

/* Category Grid */
.category-radio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.category-radio-card {
  position: relative;
  cursor: pointer;
}

.category-radio-card.full-span {
  grid-column: span 2;
}

.category-radio-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-card-body {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background-color: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.radio-icon-box {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-xs);
  background-color: var(--violet-light);
  color: var(--violet);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.radio-card-icon {
  width: 16px;
  height: 16px;
}

.radio-card-text {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--charcoal);
}

.category-radio-card:hover .radio-card-body {
  border-color: var(--violet);
  background-color: var(--violet-light);
}

.category-radio-card input:checked + .radio-card-body {
  border-color: var(--violet);
  background-color: var(--violet-light);
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.22);
}

.category-radio-card input:checked + .radio-card-body .radio-icon-box {
  background-color: var(--violet);
  color: var(--white);
}

.category-radio-card input:checked + .radio-card-body .radio-card-text {
  color: var(--plum);
}

/* Inputs & Controls */
.form-group {
  margin-bottom: 16px;
}

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

.input-with-icon {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--gray-light);
  pointer-events: none;
  transition: color var(--transition-fast);
}

.form-input, .form-select {
  width: 100%;
  padding: 13px 16px;
  font-size: 0.9375rem;
  color: var(--charcoal);
  background-color: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.input-with-icon .form-input {
  padding-left: 42px;
}

.form-input:focus, .form-select:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
  outline: none;
}

.input-with-icon .form-input:focus ~ .input-icon {
  color: var(--violet);
}

.form-input.is-invalid, .form-select.is-invalid {
  border-color: var(--error);
  background-color: var(--error-bg);
}

.field-error-msg {
  font-size: 0.75rem;
  color: var(--error);
  font-weight: 600;
  margin-top: 6px;
  min-height: 16px;
}

.field-hint {
  font-size: 0.75rem;
  color: var(--gray-muted);
  margin-top: 4px;
}

/* Step 3 Pills */
.contact-method-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.pill-radio-label {
  position: relative;
  cursor: pointer;
}

.pill-radio-label input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pill-radio-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: var(--white);
  color: var(--charcoal);
  transition: all var(--transition-fast);
}

.pill-radio-label:hover .pill-radio-box {
  border-color: var(--violet);
}

.pill-radio-label input:checked + .pill-radio-box {
  border-color: var(--violet);
  background-color: var(--violet-light);
  color: var(--plum);
}

/* Checkbox */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--gray-muted);
}

.custom-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkbox-box {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  background-color: var(--white);
  transition: all var(--transition-fast);
  color: var(--white);
}

.custom-checkbox:checked + .checkbox-box {
  background-color: var(--violet);
  border-color: var(--violet);
}

.custom-checkbox:focus + .checkbox-box {
  box-shadow: 0 0 0 3px var(--violet-glow);
}

.custom-checkbox.is-invalid + .checkbox-box {
  border-color: var(--error);
  background-color: var(--error-bg);
}

.form-btn-dual {
  display: flex;
  gap: 12px;
}

.form-btn-dual .btn-prev {
  flex: 0 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.form-btn-dual .btn-next,
.form-btn-dual .btn-submit {
  flex: 1;
}

.form-legal-notice {
  font-size: 0.71875rem;
  color: var(--gray-muted);
  line-height: 1.45;
  margin-top: 14px;
  text-align: center;
}

.form-legal-notice a, .checkbox-label a {
  color: var(--violet);
  text-decoration: underline;
}

/* Success Card */
.form-success-state {
  text-align: center;
  padding: 16px 0 8px;
}

.success-icon-badge {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-full);
  background-color: var(--violet-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: var(--shadow-violet-glow);
}

.success-heading {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--plum);
  margin-bottom: 8px;
}

.success-message {
  font-size: 0.9375rem;
  color: var(--charcoal);
  line-height: 1.5;
  margin-bottom: 20px;
}

.success-summary-box {
  background-color: var(--canvas-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 16px;
  text-align: left;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
}

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

.summary-label {
  color: var(--gray-muted);
  font-weight: 600;
}

.summary-val {
  font-weight: 800;
  color: var(--plum);
  text-transform: capitalize;
}

.success-subtext {
  font-size: 0.8125rem;
  color: var(--gray-muted);
  margin-bottom: 20px;
}

/* --------------------------------------------------------------------------
   9. Trust Strip Section
   -------------------------------------------------------------------------- */
.trust-strip-section {
  background-color: var(--white);
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-strip-header {
  text-align: center;
  margin-bottom: 28px;
}

.trust-strip-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--plum);
}

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

.trust-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-md);
  background-color: var(--canvas-subtle);
  border: 1px solid var(--border);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.trust-card:hover {
  transform: translateY(-2px);
  border-color: var(--violet);
}

.trust-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: var(--white);
  color: var(--violet);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--border);
}

.trust-card-text {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--plum);
  line-height: 1.35;
}

/* --------------------------------------------------------------------------
   10. Coverage Categories Section
   -------------------------------------------------------------------------- */
.coverage-section {
  background-color: var(--white);
}

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

.coverage-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.coverage-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--violet);
}

.card-visual-header {
  position: relative;
  height: 190px;
  overflow: hidden;
  background-color: var(--canvas-subtle);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.coverage-card:hover .card-img {
  transform: scale(1.06);
}

.card-pattern-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 12, 27, 0.05) 0%, rgba(15, 12, 27, 0.65) 100%);
  z-index: 1;
}

.card-icon-pill {
  position: absolute;
  bottom: 14px;
  left: 18px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: var(--white);
  color: var(--violet);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.card-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--plum);
  margin-bottom: 8px;
}

.card-desc {
  font-size: 0.9375rem;
  color: var(--gray-muted);
  line-height: 1.5;
  margin-bottom: 20px;
  flex: 1;
}

.card-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--violet);
  position: relative;
  padding-bottom: 2px;
  align-self: flex-start;
}

.card-cta-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--rose);
  transition: width var(--transition-normal);
}

.card-cta-link:hover {
  color: var(--rose-dark);
}

.card-cta-link:hover::after {
  width: 100%;
}

.card-cta-link svg {
  transition: transform var(--transition-fast);
}

.card-cta-link:hover svg {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   11. How It Works Section
   -------------------------------------------------------------------------- */
.how-it-works-section {
  background-color: var(--sand);
  border-top: 1px solid var(--sand-border);
  border-bottom: 1px solid var(--sand-border);
}

.how-it-works-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.steps-container {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 36px;
}

.step-item {
  display: flex;
  gap: 20px;
}

.step-badge {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--plum) 0%, var(--plum-light) 100%);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.1875rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(15, 12, 27, 0.2);
}

.step-title {
  font-family: var(--font-heading);
  font-size: 1.1875rem;
  font-weight: 800;
  color: var(--plum);
  margin-bottom: 4px;
}

.step-description {
  font-size: 0.9375rem;
  color: var(--charcoal);
  line-height: 1.55;
}

.how-media-col {
  position: relative;
}

.how-image-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--sand-border);
}

.how-img {
  width: 100%;
  height: 490px;
  object-fit: cover;
}

.how-image-quote {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background-color: rgba(15, 12, 27, 0.94);
  backdrop-filter: blur(10px);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  color: var(--white);
}

.quote-text {
  font-size: 0.9375rem;
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 6px;
}

.quote-caption {
  font-size: 0.75rem;
  color: var(--gray-light);
}

/* --------------------------------------------------------------------------
   12. Why InsuranceWhen Section
   -------------------------------------------------------------------------- */
.why-us-section {
  background-color: var(--white);
}

.why-us-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 64px;
  align-items: center;
}

.why-image-wrapper {
  position: relative;
}

.why-img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.why-floating-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background-color: var(--white);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.floating-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background-color: var(--violet-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.floating-text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--plum);
}

.floating-text span {
  font-size: 0.75rem;
  color: var(--gray-muted);
}

.why-lead-paragraph {
  font-size: 1.125rem;
  color: var(--charcoal);
  line-height: 1.65;
  margin-bottom: 28px;
}

.why-features-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.why-feature-item {
  display: flex;
  gap: 16px;
}

.feature-icon-box {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background-color: var(--violet-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-heading {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--plum);
  margin-bottom: 2px;
}

.feature-desc {
  font-size: 0.875rem;
  color: var(--gray-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   13. Educational Insights Section
   -------------------------------------------------------------------------- */
.educational-section {
  background-color: var(--canvas-subtle);
}

.educational-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 36px;
}

.article-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.article-image-wrapper {
  position: relative;
  height: 190px;
  overflow: hidden;
}

.article-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.article-card:hover .article-img {
  transform: scale(1.06);
}

.article-category-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--plum);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-xs);
}

.article-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-title {
  font-family: var(--font-heading);
  font-size: 1.1875rem;
  font-weight: 800;
  color: var(--plum);
  line-height: 1.35;
  margin-bottom: 10px;
}

.article-teaser {
  font-size: 0.875rem;
  color: var(--gray-muted);
  line-height: 1.55;
  margin-bottom: 20px;
  flex: 1;
}

.article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.article-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--violet);
}

.article-link:hover {
  color: var(--rose-dark);
}

.article-read-time {
  font-size: 0.75rem;
  color: var(--gray-light);
}

.educational-disclaimer {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--gray-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   14. Final CTA Section
   -------------------------------------------------------------------------- */
.final-cta-section {
  position: relative;
  background: linear-gradient(135deg, var(--plum-dark) 0%, var(--plum) 60%, #20173D 100%);
  color: var(--white);
  padding: 96px 0;
  overflow: hidden;
}

.final-cta-mesh {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.22) 0%, transparent 60%);
  pointer-events: none;
}

.final-cta-inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
}

.cta-pill-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rose-bright);
  background-color: rgba(251, 113, 133, 0.12);
  border: 1px solid rgba(251, 113, 133, 0.25);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.final-cta-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.final-cta-subtitle {
  font-size: 1.125rem;
  color: #E8E2F7;
  line-height: 1.6;
  margin-bottom: 36px;
}

.final-cta-actions {
  margin-bottom: 24px;
}

.final-cta-contact {
  font-size: 0.875rem;
  color: #9B94B0;
}

.final-cta-contact a {
  color: var(--rose-bright);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --------------------------------------------------------------------------
   15. FAQ Accordions
   -------------------------------------------------------------------------- */
.faq-section {
  background-color: var(--white);
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.faq-item.active {
  border-color: var(--violet);
  box-shadow: var(--shadow-sm);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  text-align: left;
  background-color: var(--white);
  color: var(--plum);
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 800;
  transition: background-color var(--transition-fast);
}

.faq-trigger:hover {
  background-color: var(--canvas-subtle);
}

.faq-question {
  padding-right: 16px;
}

.faq-icon {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  background-color: var(--canvas-subtle);
  color: var(--plum);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-normal), background-color var(--transition-fast), color var(--transition-fast);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background-color: var(--violet);
  color: var(--white);
}

.faq-panel {
  padding: 0 24px 22px;
  font-size: 0.9375rem;
  color: var(--charcoal);
  line-height: 1.62;
}

/* --------------------------------------------------------------------------
   16. Modern Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--plum-dark);
  color: #E8E2F7;
  padding: 80px 0 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-logo {
  margin-bottom: 16px;
}

.footer-brand-statement {
  font-size: 0.875rem;
  color: #9B94B0;
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 290px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
}

.footer-email-link {
  color: #FFFFFF;
  font-weight: 600;
}

.footer-email-link:hover {
  color: var(--rose-bright);
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.875rem;
  color: #9B94B0;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-disclaimer-box {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-bottom: 40px;
}

.footer-disclaimer-text {
  font-size: 0.78125rem;
  color: #9B94B0;
  line-height: 1.6;
}

.footer-disclaimer-text strong {
  color: var(--white);
  font-weight: 700;
}

.footer-smid-bar {
  text-align: center;
  padding: 14px 0 4px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.footer-smid-code {
  font-weight: 800;
  color: #C4B5FD;
  display: inline-block;
  padding: 4px 12px;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: var(--radius-xs);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8125rem;
  color: #9B94B0;
}

.footer-social-links {
  display: flex;
  gap: 14px;
}

.social-link {
  color: #9B94B0;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.social-link:hover {
  background-color: var(--violet);
  color: var(--white);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   17. Legal Modal Dialog
   -------------------------------------------------------------------------- */
.legal-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 12, 27, 0.7);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.legal-modal-backdrop[hidden] {
  display: none !important;
}

.legal-modal-dialog {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  max-width: 620px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: modalSlide 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlide {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--plum);
}

.modal-close-btn {
  color: var(--gray-muted);
  padding: 8px;
  border-radius: var(--radius-sm);
  background-color: var(--canvas-subtle);
}

.modal-close-btn:hover {
  color: var(--plum);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--charcoal);
}

.modal-body h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--plum);
  margin: 18px 0 8px;
}

.modal-body p {
  margin-bottom: 14px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  background-color: var(--canvas-subtle);
}

/* --------------------------------------------------------------------------
   18. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

  .hero-trust-list, .hero-cta-group, .hero-lifestyle-card {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-form-wrapper {
    max-width: 580px;
    margin: 0 auto;
  }

  .coverage-grid, .educational-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .how-it-works-layout, .why-us-layout {
    grid-template-columns: 1fr;
  }

  .why-image-wrapper {
    order: 2;
    max-width: 540px;
    margin: 0 auto;
  }

  .why-content-col {
    order: 1;
  }

  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding-top: 12px;
    padding-bottom: 56px;
  }

  .section {
    padding: 68px 0;
  }

  .nav-wrapper {
    top: 10px;
    padding: 0 16px;
  }

  .header-inner {
    padding: 8px 16px;
  }

  .desktop-nav, .btn-header-cta {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .top-trust-bar {
    padding: 6px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .trust-bar-list {
    justify-content: flex-start;
    gap: 20px;
    padding-bottom: 2px;
  }

  .trust-bar-item {
    font-size: 0.75rem;
  }

  .hero-headline {
    font-size: 2.375rem;
  }

  .section-title {
    font-size: 1.875rem;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .coverage-grid, .educational-grid {
    grid-template-columns: 1fr;
  }

  .category-radio-grid {
    grid-template-columns: 1fr;
  }

  .category-radio-card.full-span {
    grid-column: span 1;
  }

  .form-row-2, .contact-method-group {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 18px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .form-card {
    padding: 20px 14px;
    border-radius: var(--radius-lg);
  }

  .form-input, .form-select {
    font-size: 16px; /* Prevents auto-zoom on iOS Safari */
    padding: 12px 14px;
  }

  .input-with-icon .form-input {
    padding-left: 38px;
  }

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

  .hero-headline {
    font-size: 1.875rem;
    line-height: 1.18;
  }

  .hero-subheadline {
    font-size: 1rem;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .hero-lifestyle-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px;
  }

  .lifestyle-thumb {
    width: 100%;
    height: 120px;
  }

  .legal-page-title {
    font-size: 1.75rem;
  }

  .legal-content-card {
    padding: 20px 14px;
    border-radius: var(--radius-lg);
  }
}

/* --------------------------------------------------------------------------
   19. Reduced Motion Mode
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   20. Standalone Legal & Compliance Page Layouts
   -------------------------------------------------------------------------- */
.legal-page-hero {
  background: linear-gradient(135deg, var(--plum-dark) 0%, var(--plum) 70%, #20173D 100%);
  color: var(--white);
  padding: 56px 0 48px;
  position: relative;
  overflow: hidden;
}

.legal-hero-mesh {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(124, 58, 237, 0.18) 0%, transparent 60%);
  pointer-events: none;
}

.legal-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--gray-light);
  margin-bottom: 16px;
}

.legal-breadcrumb a {
  color: var(--rose-bright);
}

.legal-breadcrumb a:hover {
  text-decoration: underline;
}

.legal-page-title {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  color: var(--white);
}

.legal-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 0.875rem;
  color: #E8E2F7;
}

.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background-color: rgba(124, 58, 237, 0.2);
  border: 1px solid rgba(124, 58, 237, 0.35);
  color: #C4B5FD;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.legal-main-section {
  padding: 64px 0 96px;
  background-color: var(--canvas);
}

.legal-layout-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}

/* Sticky Sidebar */
.legal-sidebar {
  position: sticky;
  top: 96px;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.legal-sidebar-heading {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--plum);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.legal-toc-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legal-toc-link {
  font-size: 0.875rem;
  color: var(--charcoal);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  display: block;
}

.legal-toc-link:hover {
  background-color: var(--violet-light);
  color: var(--violet-dark);
}

.legal-toc-link.active {
  background-color: var(--violet-light);
  color: var(--violet-dark);
  font-weight: 700;
}

.legal-sidebar-cta {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

/* Legal Content Card */
.legal-content-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-sm);
}

.legal-prose h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--plum);
  margin: 36px 0 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.legal-prose h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-prose h3 {
  font-family: var(--font-heading);
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--plum);
  margin: 24px 0 10px;
}

.legal-prose p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--charcoal);
  margin-bottom: 16px;
}

.legal-prose ul, .legal-prose ol {
  margin: 16px 0 20px 20px;
}

.legal-prose ul {
  list-style: disc;
}

.legal-prose ol {
  list-style: decimal;
}

.legal-prose li {
  margin-bottom: 8px;
  line-height: 1.6;
  color: var(--charcoal);
}

.legal-callout-box {
  background-color: var(--sand-light);
  border-left: 4px solid var(--violet);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 28px 0;
}

.legal-callout-box p {
  margin-bottom: 0;
  font-size: 0.9375rem;
}

.legal-table-wrapper {
  overflow-x: auto;
  margin: 24px 0;
}

.legal-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.legal-data-table th {
  background-color: var(--plum);
  color: var(--white);
  text-align: left;
  padding: 12px 16px;
  font-family: var(--font-heading);
  font-weight: 700;
}

.legal-data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--charcoal);
  vertical-align: top;
}

.legal-data-table tr:nth-child(even) td {
  background-color: var(--sand-light);
}

/* Interactive Opt-Out Form in Do Not Sell */
.optout-form-card {
  background-color: var(--sand-light);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 32px 0;
}

.optout-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--plum);
  margin-bottom: 8px;
}

.optout-desc {
  font-size: 0.875rem;
  color: var(--gray-muted);
  margin-bottom: 20px;
}

@media (max-width: 1024px) {
  .legal-layout-grid {
    grid-template-columns: 1fr;
  }
  .legal-sidebar {
    position: static;
  }
  .legal-content-card {
    padding: 32px 24px;
  }
}

@media (max-width: 768px) {
  .legal-page-title {
    font-size: 2rem;
  }
  .legal-content-card {
    padding: 24px 18px;
  }
}
