/* ============================================
   VIGEO Health - Resource Guide Page Styles
   Comprehensive resource guide specific styles
   ============================================ */

/* ============================================
   UNIFIED DESIGN SYSTEM VARIABLES
   Single source of truth for all tabs
   ============================================ */
:root {
  /* Brand Colors - Consistent across all tabs */
  --rg-brand-red: #af2d2c;
  --rg-brand-red-dark: #8f2423;
  --rg-brand-red-light: rgba(175, 45, 44, 0.1);
  --rg-success-green: #2e7d32;
  --rg-cozy-peach: #ffeee6;
  --rg-cozy-cream: #fefcfa;

  /* Typography - Unified across all tabs */
  --rg-font-hero-title: clamp(1.5rem, 4vw, 2rem);
  --rg-font-section-title: clamp(1.25rem, 3vw, 1.5rem);
  --rg-font-card-title: 0.95rem;
  --rg-font-card-desc: max(16px, 0.8rem);
  --rg-font-body: max(16px, 1rem);

  /* Spacing - Symmetrical layout framework */
  --rg-section-padding: 4rem;
  --rg-card-padding: 1rem;
  --rg-grid-gap: 0.75rem;
  --rg-content-max-width: 900px;

  /* Animation - Unified interaction model */
  --rg-transition-fast: 0.2s ease;
  --rg-transition-medium: 0.3s ease;
  --rg-transition-slow: 0.4s ease;

  /* Shadows - Consistent depth */
  --rg-shadow-card: 0 2px 8px rgba(0, 0, 0, 0.04);
  --rg-shadow-card-hover: 0 4px 16px rgba(0, 0, 0, 0.08);
  --rg-shadow-dropdown: 0 4px 12px rgba(0, 0, 0, 0.1);

  /* Border Radius - Unified curves */
  --rg-radius-sm: 6px;
  --rg-radius-md: 8px;
  --rg-radius-lg: 12px;
  --rg-radius-pill: 100px;

  /* Icon sizes - Consistent iconography */
  --rg-icon-sm: 16px;
  --rg-icon-md: 24px;
  --rg-icon-lg: 32px;
}

/* ============================================
   TAB-PANEL CSS RESET
   Prevent inheritance issues from base styles
   ============================================ */
.tab-panel {
  /* Reset box-sizing for consistent layout calculations */
  box-sizing: border-box;
}

.tab-panel *,
.tab-panel *::before,
.tab-panel *::after {
  box-sizing: inherit;
}

/* Ensure consistent font rendering across tabs */
.tab-panel {
  font-family: inherit;
  font-size: var(--rg-font-body, max(16px, 1rem));
  line-height: 1.6;
  color: inherit;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Reset margins/padding on common elements within tabs */
.tab-panel h1, .tab-panel h2, .tab-panel h3,
.tab-panel h4, .tab-panel h5, .tab-panel h6 {
  margin-top: 0;
}

.tab-panel p {
  margin-top: 0;
}

.tab-panel ul, .tab-panel ol {
  margin-top: 0;
}

/* ============================================
   RESOURCE GUIDE PAGE BASE STYLES
   ============================================ */
.resource-guide-page {
  min-height: 100vh;
  background: var(--bg-light);
  /* No padding-top - handled by sticky positioning */
}

/* Hero section for resource guide */
.resource-hero {
  background: linear-gradient(135deg, var(--cozy-peach) 0%, var(--white) 100%);
  padding: var(--space-2xl) 0;
  text-align: center;
}

.resource-hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.resource-hero h1 {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.resource-hero p {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
}

/* Main content layout */
.resource-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-xl);
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
}

@media (max-width: 991px) {
  .resource-layout {
    grid-template-columns: 1fr;
  }
}

/* Sidebar navigation */
.resource-sidebar {
  position: sticky;
  top: calc(var(--header-height) + var(--space-lg));
  height: fit-content;
}

@media (max-width: 991px) {
  .resource-sidebar {
    position: static;
    display: none;
  }

  .resource-sidebar.mobile-open {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: var(--z-modal);
    padding: var(--space-lg);
    overflow-y: auto;
  }
}

.sidebar-nav {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.sidebar-title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-md);
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.sidebar-link {
  display: block;
  padding: var(--space-sm) var(--space-md);
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  transition: all var(--transition-fast);
}

.sidebar-link:hover {
  background: var(--cozy-cream);
  color: var(--text-primary);
}

.sidebar-link.active {
  background: var(--cozy-peach);
  color: var(--vigeo-red);
  font-weight: var(--font-weight-semibold);
}

/* Main content area */
.resource-content {
  min-width: 0;
}

/* Content sections */
.resource-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.resource-section h2 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--cozy-peach);
}

.resource-section h3 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin: var(--space-lg) 0 var(--space-md);
}

.resource-section p {
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.resource-section ul,
.resource-section ol {
  margin: var(--space-md) 0;
  padding-left: var(--space-lg);
}

.resource-section li {
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
}

/* Info boxes */
.info-box {
  background: var(--cozy-cream);
  border-left: 4px solid var(--vigeo-red);
  padding: var(--space-md);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: var(--space-lg) 0;
}

.info-box-title {
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.info-box p {
  margin: 0;
  font-size: var(--font-size-sm);
}

/* Accordion styles */
.accordion {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: var(--space-md) 0;
}

.accordion-item {
  border-bottom: 1px solid var(--border-color);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  width: 100%;
  padding: var(--space-md);
  background: var(--white);
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  transition: background var(--transition-fast);
}

.accordion-header:hover {
  background: var(--bg-light);
}

.accordion-header.active {
  background: var(--cozy-cream);
}

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

.accordion-header.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  display: none;
  padding: var(--space-md);
  background: var(--bg-light);
}

.accordion-content.open {
  display: block;
}

/* Table of contents mobile toggle */
.toc-toggle {
  display: none;
  width: 100%;
  padding: var(--space-md);
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  cursor: pointer;
}

@media (max-width: 991px) {
  .toc-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

/* ============================================
   RESOURCE GUIDE - SMART STICKY HEADER
   Integrated navbar + tabs with glassmorphism
   ============================================ */

.resource-tabs-bar {
  position: sticky;
  top: 0;
  z-index: 999; /* Just below main navbar (1000), above all content */
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  margin-top: 72px; /* Space for absolute-positioned navbar */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* When navbar is scrolled away, tab bar takes full prominence */
.resource-tabs-bar.is-sticky {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.resource-tabs-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.resource-tabs-container::-webkit-scrollbar {
  display: none;
}

/* Tab Buttons - Premium underline style */
.tab-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  background: transparent;
  border: none;
  border-radius: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 48px; /* Accessibility: Touch target */
}

/* Active indicator underline */
.tab-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: calc(100% - 1rem);
  height: 3px;
  background: var(--rg-brand-red);
  border-radius: 3px 3px 0 0;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: currentColor;
  opacity: 0.7;
  transition: opacity 0.25s ease;
}

.tab-btn .tab-label {
  display: inline;
}

.tab-btn:hover {
  color: var(--rg-brand-red);
}

.tab-btn:hover svg {
  opacity: 1;
}

.tab-btn:hover::after {
  transform: translateX(-50%) scaleX(0.5);
}

/* Active tab - Vigeo Red underline */
.tab-btn.active {
  color: var(--rg-brand-red);
  font-weight: 600;
}

.tab-btn.active svg {
  opacity: 1;
  stroke: var(--rg-brand-red);
}

.tab-btn.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* ============================================
   TAB PANELS - Directional Slide Transitions
   ============================================ */

.tab-content {
  min-height: calc(100vh - 60px);
  overflow-x: hidden; /* Prevent horizontal scroll during animation */
  position: relative;
}

.tab-panel {
  display: none;
  opacity: 0;
}

.tab-panel.active {
  display: block;
  opacity: 1;
}

/* Slide from right (navigating forward/right) */
.tab-panel.slide-in-right {
  animation: slideInFromRight 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Slide from left (navigating backward/left) */
.tab-panel.slide-in-left {
  animation: slideInFromLeft 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================================
   SERVICE HEADER
   ============================================ */

.service-header {
  background: linear-gradient(135deg, var(--rg-cozy-peach) 0%, #fff 100%);
  padding: 2.5rem 1.5rem 1.5rem;
}

.header-content {
  max-width: 1100px;
  margin: 0 auto;
}

.header-main {
  text-align: center;
  margin-bottom: 1.5rem;
}

.service-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #111;
  margin: 0 0 0.75rem;
}

.service-description {
  font-size: 1.1rem;
  color: #555;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.header-highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 100px;
  font-size: 0.85rem;
  color: #333;
}

.highlight-icon {
  width: 20px;
  height: 20px;
  color: var(--rg-brand-red);
}

.highlight-icon svg {
  width: 100%;
  height: 100%;
}

/* Section Navigation */
.section-navigation {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(175, 45, 44, 0.1);
}

.nav-tab {
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid #ddd;
  border-radius: 100px;
  font-size: 0.85rem;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 44px; /* Accessibility */
}

.nav-tab:hover {
  border-color: var(--rg-brand-red);
  color: var(--rg-brand-red);
}

.nav-tab.active {
  background: var(--rg-brand-red);
  border-color: var(--rg-brand-red);
  color: #fff;
}

/* ============================================
   SCROLL PROGRESS INDICATOR
   Educational UI pattern for guide completion
   ============================================ */

.scroll-progress-container {
  position: sticky;
  top: 0;
  z-index: 1002;
  width: 100%;
  height: 3px;
  background: rgba(175, 45, 44, 0.1);
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--rg-brand-red) 0%, #d44544 100%);
  transition: width 0.1s ease-out;
  border-radius: 0 2px 2px 0;
}

/* ============================================
   EDUCATIONAL HERO
   Refined gradient with typographic authority
   ============================================ */

.welcome-hero {
  position: relative;
  padding: 3.5rem 1.5rem 2.5rem;
  text-align: center;
  overflow: hidden;
  /* Refined gradient: brand red at 5% opacity transitioning to crisp white */
  background: linear-gradient(
    180deg,
    rgba(175, 45, 44, 0.05) 0%,
    rgba(255, 238, 230, 0.3) 30%,
    #ffffff 100%
  );
}

/* Subtle top border accent */
.welcome-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent 0%, var(--rg-brand-red) 50%, transparent 100%);
  opacity: 0.3;
}

.welcome-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
}

/* Pre-header branding element */
.welcome-preheader {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rg-brand-red);
  background: var(--rg-brand-red-light);
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 0.75rem;
}

.welcome-preheader svg {
  width: 12px;
  height: 12px;
}

/* Reading time / Update date meta tag - Unified across all tabs */
.hero-meta-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #888;
  margin-top: 1rem;
}

.meta-read-time {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.meta-read-time svg {
  opacity: 0.6;
}

.meta-update {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.meta-update svg {
  opacity: 0.7;
}

.meta-divider {
  opacity: 0.4;
}

.meta-date {
  color: #999;
}

/* Main heading with authority */
.welcome-content h2 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  color: #111;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.welcome-content > p {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.7;
  margin: 0;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

/* Minimalist Search Bar */
.hero-search-wrapper {
  max-width: 500px;
  margin: 0 auto;
}

.hero-search {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 100px;
  padding: 0.25rem 0.25rem 0.25rem 1.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.hero-search:focus-within {
  border-color: var(--rg-brand-red);
  box-shadow: 0 4px 24px rgba(175, 45, 44, 0.12);
}

.hero-search-icon {
  color: #999;
  flex-shrink: 0;
  margin-right: 0.75rem;
}

.hero-search-icon svg {
  width: 18px;
  height: 18px;
}

.hero-search input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.95rem;
  color: #333;
  padding: 0.75rem 0;
  outline: none;
  min-width: 0;
}

.hero-search input::placeholder {
  color: #999;
}

.hero-search-btn {
  flex-shrink: 0;
  background: var(--rg-brand-red);
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 0.65rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--rg-transition-fast);
}

.hero-search-btn:hover {
  background: var(--rg-brand-red-dark);
  transform: scale(1.02);
}

/* Quick search suggestions */
.hero-search-suggestions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.8rem;
}

.search-suggestion {
  color: #666;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-suggestion:hover {
  background: var(--rg-brand-red);
  color: #fff;
  border-color: var(--rg-brand-red);
}

/* ============================================
   QUICK NAVIGATION - COMPACT DASHBOARD
   Efficient 2x2 grid with icon-left layout
   ============================================ */

.quick-nav-section {
  padding: 1.5rem 1rem 2rem;
  background: #fff;
}

.quick-nav-section--compact {
  background: var(--rg-cozy-cream);
  padding: 1.25rem 1rem 1.75rem;
}

/* Quick Nav Header with metadata pills */
.quick-nav-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  position: relative;
}

.quick-nav-header h3 {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin: 0;
}

/* Section meta pills - top-right positioned */
.section-meta-pills {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 0.4rem;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.6rem;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 100px;
  font-size: 0.65rem;
  color: #888;
  white-space: nowrap;
}

.quick-nav-section h3 {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 1rem;
}

/* ============================================
   STICKY FILTER PILLS
   ============================================ */

.filter-pills-sticky {
  position: sticky;
  top: 60px; /* Below the tab bar */
  z-index: 50;
  background: rgba(254, 252, 250, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 0.75rem 0;
  margin: 0 -1rem 1.25rem;
  padding-left: 1rem;
  padding-right: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  width: fit-content;
  max-width: 720px;
  margin: 0 auto;
}

.filter-pill {
  padding: 0.4rem 0.85rem;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 32px;
}

.filter-pill:hover {
  border-color: var(--rg-brand-red);
  color: var(--rg-brand-red);
}

/* Active state: solid brand red */
.filter-pill.active {
  background: var(--rg-brand-red);
  border-color: var(--rg-brand-red);
  color: #fff;
  font-weight: 600;
}

/* ============================================
   RESOURCE DASHBOARD - Unified 2x2 Grid
   Consistent layout across all tabs
   ============================================ */

.resource-dashboard {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--rg-grid-gap, 0.75rem);
  max-width: 720px;
  margin: 0 auto;
}

/* ============================================
   RESOURCE CARDS - Unified Design Language
   Consistent styling across all tabs
   ============================================ */

.resource-card {
  position: relative;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-top: 2px solid var(--rg-brand-red, #af2d2c);
  border-radius: var(--rg-radius-md, 8px);
  overflow: hidden;
  transition: all var(--rg-transition-medium, 0.3s ease);
}

.resource-card:hover {
  background: var(--rg-brand-red-light, rgba(175, 45, 44, 0.05));
  border-color: var(--rg-brand-red, #af2d2c);
  box-shadow: var(--rg-shadow-card-hover, 0 4px 16px rgba(175, 45, 44, 0.12));
}

.resource-card-main {
  display: flex;
  align-items: center;
  gap: var(--rg-grid-gap, 0.75rem);
  padding: var(--rg-card-padding, 1rem);
  cursor: pointer;
}

.resource-card-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 238, 230, 0.6);
  border-radius: var(--rg-radius-md, 8px);
  color: var(--rg-brand-red, #af2d2c);
  transition: all var(--rg-transition-medium, 0.3s ease);
}

.resource-card:hover .resource-card-icon {
  background: var(--rg-brand-red, #af2d2c);
  color: #fff;
}

.resource-card-icon svg {
  width: var(--rg-icon-sm, 18px);
  height: var(--rg-icon-sm, 18px);
}

.resource-card-content {
  flex: 1;
  min-width: 0;
}

.resource-card-content h4 {
  font-size: var(--rg-font-card-title, 0.95rem);
  font-weight: 600;
  color: #222;
  margin: 0 0 0.15rem;
  line-height: 1.3;
}

.resource-card:hover .resource-card-content h4 {
  color: var(--rg-brand-red, #af2d2c);
}

.resource-card-content p {
  font-size: 0.75rem;
  color: #777;
  margin: 0;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Expand Button - Unified animation timing */
.resource-card-expand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.6rem;
  background: transparent;
  border: 1px solid #ddd;
  border-radius: var(--rg-radius-sm, 4px);
  font-size: 0.7rem;
  font-weight: 500;
  color: #888;
  cursor: pointer;
  transition: all var(--rg-transition-medium, 0.3s ease);
}

.resource-card-expand:hover {
  border-color: var(--rg-brand-red, #af2d2c);
  color: var(--rg-brand-red, #af2d2c);
}

.resource-card-expand svg {
  transition: transform 0.25s ease, stroke 0.25s ease;
}

.resource-card.expanded .resource-card-expand svg {
  transform: rotate(180deg);
  stroke: var(--rg-brand-red);
}

.resource-card.expanded .resource-card-expand {
  background: transparent;
  border-color: var(--rg-brand-red);
  color: var(--rg-brand-red);
}

/* Expandable Details Section */
.resource-card-details {
  max-height: 0;
  overflow: hidden;
  background: #f9f9f9;
  border-top: 1px solid transparent;
  transition: all 0.3s ease;
}

.resource-card.expanded .resource-card-details {
  max-height: 200px;
  border-top-color: #eee;
}

.resource-card-details ul {
  margin: 0;
  padding: 0.75rem 1rem 0.5rem;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.35rem 1rem;
}

.resource-card-details li {
  font-size: 0.75rem;
  color: #555;
  line-height: 1.5;
  padding-left: 1rem;
  position: relative;
}

.resource-card-details li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--rg-brand-red);
  font-weight: 700;
}

.resource-card-details li strong {
  color: var(--rg-brand-red);
}

.details-link {
  display: block;
  padding: 0.5rem 1rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--rg-brand-red);
  text-decoration: none;
  transition: color var(--rg-transition-fast);
}

.details-link:hover {
  color: var(--rg-brand-red-dark);
  text-decoration: underline;
}

/* CTA Card Variant */
.resource-card--cta {
  background: linear-gradient(135deg, var(--rg-brand-red) 0%, #c43c3b 100%);
  border-color: var(--rg-brand-red);
  border-top-color: var(--rg-brand-red-dark);
}

.resource-card--cta .resource-card-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.resource-card--cta .resource-card-content h4,
.resource-card--cta .resource-card-content p {
  color: #fff;
}

.resource-card--cta .resource-card-content p {
  opacity: 0.9;
}

/* ============================================
   CTA ACTION BAR - Full-width below grid
   Strategic placement for conversion
   ============================================ */

.resource-cta-bar {
  max-width: 720px;
  margin: 1.25rem auto 0;
  background: linear-gradient(135deg, var(--rg-brand-red) 0%, #c43c3b 100%);
  border-radius: var(--rg-radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 4px 20px rgba(175, 45, 44, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resource-cta-bar:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(175, 45, 44, 0.25);
}

.resource-cta-bar-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.resource-cta-bar-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #fff;
}

.resource-cta-bar-icon svg {
  width: 22px;
  height: 22px;
}

.resource-cta-bar-text h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.15rem;
}

.resource-cta-bar-text p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.resource-cta-bar-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: #fff;
  border-radius: var(--rg-radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--rg-brand-red);
  text-decoration: none;
  transition: all var(--rg-transition-medium);
  min-height: 44px;
}

.resource-cta-bar-btn:hover {
  background: var(--rg-cozy-peach);
  transform: scale(1.03);
}

.resource-cta-bar-btn svg {
  width: 16px;
  height: 16px;
}

/* Mobile: Stack vertically */
@media (max-width: 768px) {
  .resource-cta-bar {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem 1rem;
  }

  .resource-cta-bar-content {
    flex-direction: column;
    gap: 0.75rem;
  }

  .resource-cta-bar-btn {
    width: 100%;
    justify-content: center;
  }
}

.resource-card-cta-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.9rem;
  background: #fff;
  border-radius: var(--rg-radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--rg-brand-red);
  text-decoration: none;
  transition: all var(--rg-transition-fast);
}

.resource-card-cta-btn:hover {
  background: var(--rg-cozy-peach);
  transform: scale(1.02);
}

/* Filter animation for cards - Premium fade transitions */
.resource-card {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.resource-card.filter-hidden {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  position: absolute;
  visibility: hidden;
}

.resource-card.filter-visible {
  opacity: 1;
  transform: scale(1);
}

/* Grid animation container */
.resource-dashboard {
  position: relative;
}

.resource-dashboard.filtering {
  min-height: 200px; /* Prevent layout jump during filter */
}

/* Legacy quick-nav-item styles (for backwards compatibility) */
.quick-nav-item,
.nav-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.75rem 1.5rem;
  background: var(--rg-cozy-cream);
  border: 1px solid #eee;
  border-radius: var(--rg-radius-lg);
  cursor: pointer;
  transition: all var(--rg-transition-medium);
  text-decoration: none;
  color: inherit;
  min-height: 44px; /* Accessibility */
  overflow: hidden;
}

/* Premium hover-lift effect with summary reveal */
.quick-nav-item:hover,
.nav-card:hover {
  border-color: var(--rg-brand-red);
  box-shadow: 0 16px 40px rgba(175, 45, 44, 0.18), 0 6px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-10px);
}

.quick-nav-icon,
.nav-card-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rg-cozy-peach);
  border-radius: 14px;
  margin-bottom: 1rem;
  color: var(--rg-brand-red);
  transition: all var(--rg-transition-medium);
}

/* Icon transforms to brand red on card hover */
.quick-nav-item:hover .quick-nav-icon,
.nav-card:hover .nav-card-icon {
  background: var(--rg-brand-red);
  color: #fff;
  transform: scale(1.08);
}

.quick-nav-icon svg,
.nav-card-icon svg {
  width: 26px;
  height: 26px;
  transition: stroke 0.3s ease;
}

.quick-nav-item h4,
.nav-card h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #222;
  margin: 0 0 0.5rem;
  transition: color 0.3s ease;
}

.quick-nav-item:hover h4,
.nav-card:hover h4 {
  color: var(--rg-brand-red);
}

/* Default description - visible */
.quick-nav-item p,
.nav-card p {
  font-size: 0.875rem;
  color: #666;
  margin: 0;
  line-height: 1.5;
  transition: all 0.3s ease;
}

/* Hover-reveal summary - hidden by default */
.quick-nav-item .hover-summary,
.nav-card .hover-summary {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(to top, rgba(175, 45, 44, 0.95) 0%, rgba(175, 45, 44, 0.85) 100%);
  color: #fff;
  font-size: 0.8rem;
  line-height: 1.5;
  transform: translateY(100%);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
}

.quick-nav-item:hover .hover-summary,
.nav-card:hover .hover-summary {
  transform: translateY(0);
  opacity: 1;
}

/* Hover summary arrow indicator */
.hover-summary::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid rgba(175, 45, 44, 0.95);
}

/* Touch-active state for mobile devices */
.quick-nav-item.touch-active,
.nav-card.touch-active {
  border-color: var(--rg-brand-red);
  box-shadow: 0 16px 40px rgba(175, 45, 44, 0.18), 0 6px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-10px);
}

.quick-nav-item.touch-active .hover-summary,
.nav-card.touch-active .hover-summary {
  transform: translateY(0);
  opacity: 1;
}

.quick-nav-item.touch-active .quick-nav-icon,
.nav-card.touch-active .nav-card-icon {
  background: var(--rg-brand-red);
  color: #fff;
  transform: scale(1.08);
}

.quick-nav-item.touch-active h4,
.nav-card.touch-active h4 {
  color: var(--rg-brand-red);
}

/* Special nav card styles */
.nav-card.urgent {
  border-color: var(--rg-brand-red);
  background: #fff5f5;
}

.nav-card.cta {
  background: var(--rg-brand-red);
  border-color: var(--rg-brand-red);
  color: #fff;
}

.nav-card.cta h4,
.nav-card.cta p {
  color: #fff;
}

.nav-card.cta .nav-card-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */

.content-section {
  padding: 2.5rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  /* Minimum 16px font for accessibility */
  font-size: max(16px, 1rem);
}

.content-section h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
  color: #111;
  margin: 0 0 1.5rem;
  text-align: center;
}

/* Card Grid */
.card-grid {
  display: grid;
  gap: 1.5rem;
}

.card-grid.three-columns {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Info Cards */
.info-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 1.5rem;
  transition: box-shadow 0.3s ease;
}

.info-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.info-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.info-card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rg-cozy-peach);
  border-radius: var(--rg-radius-md);
  color: var(--rg-brand-red);
  flex-shrink: 0;
}

.info-card-icon svg {
  width: 20px;
  height: 20px;
}

.info-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #222;
  margin: 0;
}

.info-card h5 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #444;
  margin: 1rem 0 0.5rem;
}

.info-card ul {
  margin: 0;
  padding-left: 1.25rem;
  font-size: max(16px, 0.95rem); /* Accessibility */
}

.info-card li {
  margin-bottom: 0.5rem;
  color: #555;
  line-height: 1.5;
}

/* Coverage Badges */
.coverage-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.coverage-badge.full {
  background: #e8f5e9;
  color: var(--rg-success-green);
}

.coverage-badge.partial {
  background: #fff3e0;
  color: #ef6c00;
}

.coverage-badge.varies {
  background: #e3f2fd;
  color: #1565c0;
}

.coverage-badge.flexible {
  background: var(--rg-cozy-peach);
  color: var(--rg-brand-red);
}

.coverage-badge.medicare {
  background: #e8f5e9;
  color: var(--rg-success-green);
}

.coverage-badge.insurance {
  background: #e3f2fd;
  color: #1565c0;
}

.coverage-badge.private {
  background: var(--rg-cozy-peach);
  color: var(--rg-brand-red);
}

/* Info Card Large */
.info-card-large {
  background: var(--rg-cozy-cream);
  border: 1px solid #eee;
  border-radius: var(--rg-radius-lg);
  padding: 2rem;
}

.info-card-large p {
  font-size: max(16px, 1rem); /* Accessibility */
  line-height: 1.7;
  color: #444;
  margin: 0 0 1rem;
}

.info-card-large p:last-child {
  margin-bottom: 0;
}

/* Highlight Box */
.highlight-box {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--rg-cozy-peach);
  border-radius: var(--rg-radius-lg);
  border-left: 4px solid var(--rg-brand-red);
}

.highlight-box .highlight-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: var(--rg-radius-md);
  color: var(--rg-brand-red);
  flex-shrink: 0;
}

.highlight-box .highlight-icon svg {
  width: 20px;
  height: 20px;
}

.highlight-content h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #222;
  margin: 0 0 0.5rem;
}

.highlight-content p {
  font-size: max(16px, 0.95rem); /* Accessibility */
  color: #555;
  margin: 0;
  line-height: 1.6;
}

/* ============================================
   TIMELINE
   ============================================ */

.timeline-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 700px;
  margin: 0 auto;
}

.timeline-item {
  display: flex;
  gap: 1.5rem;
  position: relative;
}

.timeline-marker {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rg-brand-red);
  color: #fff;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
}

.timeline-content {
  flex: 1;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
}

.timeline-item:last-child .timeline-content {
  border-bottom: none;
  padding-bottom: 0;
}

.timeline-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #222;
  margin: 0 0 0.5rem;
}

.timeline-content p {
  font-size: max(16px, 0.95rem); /* Accessibility */
  color: #555;
  margin: 0;
  line-height: 1.6;
}

/* ============================================
   CHECKLIST
   ============================================ */

.checklist-section {
  max-width: 700px;
  margin: 0 auto;
}

.checklist-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.checklist-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8f5e9;
  border-radius: var(--rg-radius-md);
  color: var(--rg-success-green);
}

.checklist-icon svg {
  width: 20px;
  height: 20px;
}

.checklist-header h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #222;
  margin: 0;
}

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

.family-checklist li {
  position: relative;
  padding: 0.75rem 0 0.75rem 2rem;
  border-bottom: 1px solid #eee;
  font-size: max(16px, 0.95rem); /* Accessibility */
  color: #444;
  line-height: 1.5;
}

.family-checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--rg-brand-red);
  font-weight: 700;
}

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

/* Eligibility Checklist Container */
.checklist-container {
  background: var(--rg-cozy-cream);
  border: 1px solid #eee;
  border-radius: var(--rg-radius-lg);
  padding: 2rem;
  max-width: 700px;
  margin: 2rem auto;
}

.checklist-container h3 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.checklist-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  transition: all 0.2s ease;
  min-height: 44px; /* Accessibility */
}

.check-item:hover {
  border-color: var(--rg-brand-red);
}

.check-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--rg-brand-red);
  cursor: pointer;
}

.check-item label {
  flex: 1;
  font-size: max(16px, 0.95rem); /* Accessibility */
  color: #333;
  cursor: pointer;
}

.check-item input[type="checkbox"]:checked + label {
  color: var(--rg-brand-red);
  font-weight: 500;
}

/* Phone number highlight for eligibility */
.phone-highlight {
  color: var(--rg-brand-red);
  font-weight: 700;
}

/* ============================================
   SAFETY & RIGHTS SECTIONS
   ============================================ */

.safety-tips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.safety-category {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 1.5rem;
}

.safety-category h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--rg-brand-red);
  margin: 0 0 1rem;
}

.safety-category ul {
  margin: 0;
  padding-left: 1.25rem;
}

.safety-category li {
  font-size: max(16px, 0.9rem); /* Accessibility */
  color: #555;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.rights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.rights-item {
  background: var(--rg-cozy-cream);
  border: 1px solid #eee;
  border-radius: var(--rg-radius-lg);
  padding: 1.5rem;
}

.rights-item h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #222;
  margin: 0 0 0.5rem;
}

.rights-item p {
  font-size: max(16px, 0.9rem); /* Accessibility */
  color: #555;
  margin: 0;
  line-height: 1.5;
}

/* ============================================
   FAQ SECTION
   ============================================ */

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.faq-item {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 1.5rem;
}

.faq-item h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #222;
  margin: 0 0 0.75rem;
}

.faq-item p {
  font-size: max(16px, 0.9rem); /* Accessibility */
  color: #555;
  margin: 0;
  line-height: 1.6;
}

/* ============================================
   BENEFITS & SERVICES
   ============================================ */

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.benefit-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.benefit-card:hover {
  border-color: var(--rg-brand-red);
  box-shadow: 0 4px 16px rgba(175, 45, 44, 0.08);
}

.benefit-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rg-cozy-peach);
  border-radius: 14px;
  margin: 0 auto 1rem;
  color: var(--rg-brand-red);
}

.benefit-icon svg {
  width: 28px;
  height: 28px;
}

.benefit-card h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #222;
  margin: 0 0 0.5rem;
}

.benefit-card p {
  font-size: max(16px, 0.875rem); /* Accessibility */
  color: #666;
  margin: 0;
  line-height: 1.5;
}

/* Service List */
.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.service-item {
  background: var(--rg-cozy-cream);
  border: 1px solid #eee;
  border-radius: var(--rg-radius-lg);
  padding: 1.5rem;
}

.service-item h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--rg-brand-red);
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--rg-cozy-peach);
}

.service-item ul {
  margin: 0;
  padding-left: 1.25rem;
}

.service-item li {
  font-size: max(16px, 0.9rem); /* Accessibility */
  color: #555;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

/* Benefits Overview */
.benefits-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.benefit-category {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 1.5rem;
}

.benefit-category h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--rg-brand-red);
  margin: 0 0 1rem;
}

.benefit-category ul {
  margin: 0;
  padding-left: 1.25rem;
}

.benefit-category li {
  font-size: max(16px, 0.9rem); /* Accessibility */
  color: #555;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

/* ============================================
   SCENARIOS SECTION
   ============================================ */

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.scenario-item {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.scenario-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rg-cozy-peach);
  border-radius: 14px;
  margin: 0 auto 1rem;
  color: var(--rg-brand-red);
}

.scenario-icon svg {
  width: 28px;
  height: 28px;
}

.scenario-item h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #222;
  margin: 0 0 0.5rem;
}

.scenario-item p {
  font-size: max(16px, 0.9rem); /* Accessibility */
  color: #555;
  margin: 0;
  line-height: 1.5;
}

/* ============================================
   COVERAGE COMPARISON - Digital Resource Dashboard
   Side-by-side layout with vertical dividers
   ============================================ */

.content-section--coverage {
  background: var(--rg-cozy-cream);
  padding-bottom: 4rem; /* Extra breathing room before next section */
}

.coverage-comparison {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* Dashboard variant: side-by-side with dividers */
.coverage-comparison--dashboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr 1fr;
  gap: 0;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
}

/* Vertical Divider */
.coverage-divider {
  width: 1px;
  background: linear-gradient(180deg, transparent 0%, #ddd 10%, #ddd 90%, transparent 100%);
  margin: 1rem 0;
}

.coverage-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

/* Dashboard cards: no individual borders */
.coverage-comparison--dashboard .coverage-card {
  border: none;
  border-radius: 0;
}

.coverage-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.coverage-comparison--dashboard .coverage-card:hover {
  box-shadow: none;
  background: rgba(175, 45, 44, 0.02);
}

.coverage-header {
  padding: 1.25rem 1.5rem;
  background: var(--rg-cozy-cream);
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.coverage-comparison--dashboard .coverage-header {
  background: transparent;
  border-bottom: none;
  padding-bottom: 0.75rem;
}

.coverage-header h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  letter-spacing: -0.01em;
}

.coverage-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.coverage-comparison--dashboard .coverage-body {
  padding: 0 1.5rem 1.5rem;
}

/* Coverage highlights container for alignment */
.coverage-highlights {
  flex: 1;
}

.coverage-highlight {
  background: #f8f8f8;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  font-size: max(16px, 0.9rem);
  color: #444;
  line-height: 1.5;
}

/* Bold Part A / Part B headers with increased size (+2px) */
.coverage-highlight strong {
  font-size: max(18px, 1.05rem);
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.01em;
}

.coverage-highlight:last-child {
  margin-bottom: 0;
}

/* Refined Badges - High contrast with soft fill */
.coverage-badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.coverage-badge--gov {
  background: rgba(46, 125, 50, 0.18);
  color: #1b5e20;
  border: 1px solid rgba(46, 125, 50, 0.25);
}

.coverage-badge--varies {
  background: rgba(21, 101, 192, 0.15);
  color: #0d47a1;
  border: 1px solid rgba(21, 101, 192, 0.2);
}

.coverage-badge--control {
  background: rgba(175, 45, 44, 0.12);
  color: #8c2423;
  border: 1px solid rgba(175, 45, 44, 0.2);
}

/* Legacy badge styles */
.coverage-badge.full {
  background: #e8f5e9;
  color: var(--rg-success-green);
}

.coverage-badge.partial {
  background: #fff3e0;
  color: #ef6c00;
}

.coverage-badge.varies {
  background: #e3f2fd;
  color: #1565c0;
}

.coverage-badge.flexible {
  background: var(--rg-cozy-peach);
  color: var(--rg-brand-red);
}

.coverage-badge.medicare {
  background: #e8f5e9;
  color: var(--rg-success-green);
}

.coverage-badge.insurance {
  background: #e3f2fd;
  color: #1565c0;
}

.coverage-badge.private {
  background: var(--rg-cozy-peach);
  color: var(--rg-brand-red);
}

/* Expandable Details with Toggle */
.coverage-details--expandable {
  margin-top: 1rem;
}

.coverage-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.6rem 0.9rem;
  background: transparent;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  transition: all 0.25s ease;
}

.coverage-toggle:hover {
  border-color: var(--rg-brand-red);
  color: var(--rg-brand-red);
  background: var(--rg-cozy-cream); /* Soft cream hover background */
}

.coverage-toggle svg {
  margin-left: auto;
  transition: transform var(--rg-transition-medium), stroke var(--rg-transition-medium);
}

.coverage-toggle:hover svg {
  stroke: var(--rg-brand-red);
}

.coverage-toggle[aria-expanded="true"] {
  border-color: var(--rg-brand-red);
  color: var(--rg-brand-red);
  background: var(--rg-brand-red-light);
}

.coverage-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
  stroke: var(--rg-brand-red);
}

/* Collapsed list by default */
.coverage-list {
  max-height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
  list-style: none;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.coverage-toggle[aria-expanded="true"] + .coverage-list {
  max-height: 300px;
  padding: 0.75rem 0 0 1.25rem;
}

.coverage-list li {
  position: relative;
  font-size: max(16px, 0.875rem);
  color: #555;
  margin-bottom: 0.5rem;
  line-height: 1.5;
  padding-left: 1rem;
}

.coverage-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--rg-brand-red);
  font-weight: 700;
}

/* Legacy details styles */
.coverage-details h5 {
  font-size: 0.85rem;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 1rem 0 0.5rem;
}

.coverage-details ul {
  margin: 0;
  padding-left: 1.25rem;
}

.coverage-details li {
  font-size: max(16px, 0.9rem);
  color: #555;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

/* Benefit Verification Trust Box - Elevated with dashed border */
.benefit-verification-box {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: rgba(224, 242, 254, 0.5);
  border: 1px dashed rgba(21, 101, 192, 0.4);
  border-radius: 12px;
  animation: trustBoxPulse 3s ease-in-out infinite;
  position: relative;
}

/* Subtle pulsing shadow to draw attention */
@keyframes trustBoxPulse {
  0%, 100% {
    box-shadow: 0 2px 8px rgba(21, 101, 192, 0.08);
  }
  50% {
    box-shadow: 0 6px 20px rgba(21, 101, 192, 0.18);
  }
}

/* Larger shield icon in brand red */
.verification-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rg-brand-red-light);
  border-radius: var(--rg-radius-lg);
  color: var(--rg-brand-red);
}

.verification-icon svg {
  width: 32px;
  height: 32px;
  stroke-width: 1.8;
}

.verification-content {
  flex: 1;
}

.verification-content strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--rg-brand-red);
  margin-bottom: 0.4rem;
}

.verification-content p {
  margin: 0;
  font-size: max(16px, 0.9rem);
  color: #1565c0;
  line-height: 1.6;
}

/* Legacy insurance note */
.insurance-note {
  background: #e3f2fd;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  font-size: max(16px, 0.85rem);
  color: #1565c0;
}

/* Mobile: Stack cards vertically */
@media (max-width: 991px) {
  .coverage-comparison--dashboard {
    grid-template-columns: 1fr;
  }

  .coverage-divider {
    width: 100%;
    height: 1px;
    margin: 0;
    background: linear-gradient(90deg, transparent 0%, #ddd 10%, #ddd 90%, transparent 100%);
  }

  .coverage-comparison--dashboard .coverage-card {
    border-bottom: 1px solid #eee;
  }

  .coverage-comparison--dashboard .coverage-card:last-child {
    border-bottom: none;
  }
}

/* ============================================
   ELIGIBILITY SECTION - Interactive Assessment
   ============================================ */

.content-section--eligibility {
  background: var(--rg-cozy-cream);
}

.eligibility-assessment {
  max-width: 800px;
  margin: 0 auto 1.5rem;
}

.eligibility-criteria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* Interactive variant */
.eligibility-criteria--interactive {
  gap: 0.75rem;
}

/* Checkable Criteria Card */
.criteria-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  transition: all 0.25s ease;
}

.criteria-card--checkable {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  text-align: left;
  cursor: pointer;
  padding: 1rem 1.25rem;
  border: 2px solid #e8e8e8;
  min-height: 44px; /* Mobile accessibility */
}

.criteria-card--checkable:hover {
  border-color: var(--rg-brand-red);
  background: rgba(175, 45, 44, 0.02);
}

/* Hidden native checkbox */
.criteria-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Custom checkmark box */
.criteria-checkmark {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ddd;
  border-radius: 6px;
  background: #fff;
  transition: all 0.25s ease;
  margin-top: 2px;
}

.criteria-checkmark svg {
  width: 16px;
  height: 16px;
  stroke: transparent;
  transition: stroke 0.2s ease;
}

/* Checked state */
.criteria-checkbox:checked + .criteria-checkmark {
  background: var(--rg-brand-red);
  border-color: var(--rg-brand-red);
}

.criteria-checkbox:checked + .criteria-checkmark svg {
  stroke: #fff;
}

/* Card checked state */
.criteria-card--checkable:has(.criteria-checkbox:checked) {
  border-color: var(--rg-brand-red);
  background: var(--rg-brand-red-light);
}

/* Focus state for accessibility */
.criteria-checkbox:focus + .criteria-checkmark {
  box-shadow: 0 0 0 3px rgba(175, 45, 44, 0.2);
}

/* Criteria content */
.criteria-content {
  flex: 1;
}

.criteria-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #222;
  margin: 0 0 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.criteria-card--checkable:has(.criteria-checkbox:checked) h4 {
  color: var(--rg-brand-red);
}

.criteria-card p {
  font-size: max(16px, 0.875rem);
  color: #555;
  margin: 0;
  line-height: 1.4;
}

/* Info Tooltip Trigger - 44px tap target for accessibility */
.info-tooltip-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  background: var(--rg-brand-red-light);
  border: none;
  border-radius: 50%;
  color: var(--rg-brand-red);
  cursor: pointer;
  transition: all var(--rg-transition-fast);
}

/* Invisible 44px tap target overlay for seniors/mobile */
.info-tooltip-trigger::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.info-tooltip-trigger:hover,
.info-tooltip-trigger:focus {
  background: var(--rg-brand-red);
  color: #fff;
  outline: none;
}

.info-tooltip-trigger:focus-visible {
  box-shadow: 0 0 0 3px rgba(175, 45, 44, 0.3);
}

.info-tooltip-trigger svg {
  width: 14px;
  height: 14px;
}

/* Info Tooltip - High contrast, readable */
.info-tooltip {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  transform: translateX(-50%) translateY(8px);
}

.info-tooltip::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #fff;
  filter: drop-shadow(0 -2px 2px rgba(0, 0, 0, 0.05));
}

.info-tooltip.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.tooltip-content strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.tooltip-content p {
  font-size: max(15px, 0.9rem);
  color: #333;
  margin: 0;
  line-height: 1.6;
}

/* Sticky Section Header - Instructions stay visible */
.content-section--eligibility .section-header {
  position: sticky;
  top: 60px; /* Below tab bar */
  z-index: 40;
  background: linear-gradient(180deg, var(--rg-cozy-cream) 0%, var(--rg-cozy-cream) 85%, transparent 100%);
  padding: 1.5rem 0 1rem;
  margin: -1.5rem 0 1rem;
}

/* Progress Indicator */
.eligibility-progress {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  transition: all 0.4s ease;
}

/* Success state for progress container */
.eligibility-progress.progress-complete {
  border-color: var(--rg-success-green);
  background: rgba(46, 125, 50, 0.05);
}

.progress-bar {
  flex: 1;
  height: 8px;
  background: #eee;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--rg-brand-red) 0%, #c43c3b 100%);
  border-radius: 4px;
  transition: width 0.4s ease, background 0.4s ease;
}

/* Green success color when complete */
.progress-fill.progress-complete {
  background: linear-gradient(90deg, var(--rg-success-green) 0%, #43a047 100%);
}

.progress-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: #666;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.progress-text.progress-complete {
  color: var(--rg-success-green);
  font-weight: 600;
}

/* Success checkmark celebration animation */
@keyframes successCheckPop {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

.eligibility-assessment.all-complete .criteria-card--checkable {
  animation: cardSuccessGlow 0.5s ease-out forwards;
}

@keyframes cardSuccessGlow {
  0% { box-shadow: 0 0 0 rgba(46, 125, 50, 0); }
  50% { box-shadow: 0 0 20px rgba(46, 125, 50, 0.3); }
  100% { box-shadow: 0 0 0 rgba(46, 125, 50, 0); }
}

/* Eligibility CTA */
.eligibility-cta {
  text-align: center;
  padding: 1.5rem;
  background: var(--rg-cozy-peach);
  border-radius: var(--rg-radius-lg);
  transition: all 0.4s ease;
}

.eligibility-cta p {
  font-size: max(16px, 1rem);
  color: #333;
  margin: 0 0 1rem;
}

/* Default CTA state */
.eligibility-cta-default {
  transition: opacity 0.3s ease;
}

/* Success CTA state */
.eligibility-cta-success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.eligibility-cta--success {
  background: linear-gradient(135deg, var(--rg-brand-red) 0%, #c43c3b 100%);
  animation: successPulse 0.5s ease-out;
}

@keyframes successPulse {
  0% {
    transform: scale(0.98);
    box-shadow: 0 4px 20px rgba(175, 45, 44, 0.2);
  }
  50% {
    transform: scale(1.01);
    box-shadow: 0 8px 40px rgba(175, 45, 44, 0.35);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 6px 30px rgba(175, 45, 44, 0.25);
  }
}

.eligibility-cta--success .eligibility-cta-default {
  display: none;
}

.eligibility-cta--success .eligibility-cta-success {
  display: flex;
}

.success-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
}

.success-icon svg {
  width: 32px;
  height: 32px;
}

.success-content h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
}

.success-content p {
  font-size: max(16px, 0.95rem);
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  max-width: 500px;
}

.cta-btn--success {
  background: #fff !important;
  color: var(--rg-brand-red) !important;
  border-color: #fff !important;
}

.cta-btn--success:hover {
  background: var(--rg-cozy-peach) !important;
  transform: translateY(-2px);
}

/* Desktop: Compact padding for vertical space saving */
@media (min-width: 769px) {
  .criteria-card--checkable {
    padding: 0.875rem 1.25rem; /* Reduced from 1rem 1.25rem */
  }

  .eligibility-criteria--interactive {
    gap: 0.6rem; /* Tighter gap on desktop */
  }

  .eligibility-progress {
    padding: 0.6rem 1rem;
  }
}

/* Mobile: Single column grid with larger tap targets */
@media (max-width: 768px) {
  .content-section--eligibility .section-header {
    top: 48px; /* Adjusted for mobile tab bar height */
  }

  .eligibility-criteria--interactive {
    grid-template-columns: 1fr;
  }

  .criteria-card--checkable {
    padding: 1rem;
  }

  .criteria-checkmark {
    width: 32px;
    height: 32px;
  }

  .criteria-checkmark svg {
    width: 18px;
    height: 18px;
  }

  .info-tooltip {
    width: calc(100vw - 2rem);
    left: 50%;
    transform: translateX(-50%);
  }

  .info-tooltip.visible {
    transform: translateX(-50%) translateY(0);
  }

  .eligibility-cta-success {
    padding: 0.5rem;
  }

  .success-content h4 {
    font-size: 1.1rem;
  }
}

/* ============================================
   CTA SECTIONS
   ============================================ */

.cta-section {
  text-align: center;
  padding: 3rem 1.5rem;
  padding-bottom: 4rem; /* Extra bottom padding to prevent button clipping */
  background: linear-gradient(135deg, var(--rg-cozy-peach) 0%, #fff 100%);
  margin-top: 2rem;
  margin-bottom: 3rem; /* Spacing before footer */
  overflow: visible;
}

.cta-section h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
  color: #111;
  margin: 0 0 0.75rem;
}

.cta-section > p {
  font-size: max(16px, 1rem); /* Accessibility */
  color: #555;
  max-width: 500px;
  margin: 0 auto 1.5rem;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition: all 0.3s ease;
  min-height: 44px; /* Accessibility */
  box-sizing: border-box;
}

.cta-btn.primary {
  background: var(--rg-brand-red);
  color: #fff;
  border: 2px solid var(--rg-brand-red);
}

.cta-btn.primary:hover {
  background: var(--rg-brand-red-dark);
  border-color: var(--rg-brand-red-dark);
  transform: translateY(-2px);
}

.cta-btn.secondary {
  background: #fff;
  color: var(--rg-brand-red);
  border: 2px solid var(--rg-brand-red);
}

.cta-btn.secondary:hover {
  background: var(--rg-cozy-peach);
}

.cta-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Get Started Section */
.get-started-section {
  background: linear-gradient(135deg, var(--rg-cozy-peach) 0%, var(--rg-cozy-cream) 100%);
  padding: 3rem 1.5rem;
  margin-top: 2rem;
}

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

.get-started-content h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
  color: #111;
  margin: 0 0 0.75rem;
}

.get-started-content > p {
  font-size: max(16px, 1rem); /* Accessibility */
  color: #555;
  margin: 0 0 2rem;
}

.start-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.start-option {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.start-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rg-cozy-peach);
  border-radius: var(--rg-radius-lg);
  color: var(--rg-brand-red);
  flex-shrink: 0;
}

.start-icon svg {
  width: 24px;
  height: 24px;
}

.start-content h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #222;
  margin: 0 0 0.25rem;
}

.start-content p {
  font-size: max(16px, 0.875rem); /* Accessibility */
  color: #666;
  margin: 0 0 1rem;
}

/* ============================================
   ENHANCED GET STARTED SECTION
   ============================================ */

.get-started-section--enhanced {
  background: linear-gradient(135deg, var(--rg-cozy-peach) 0%, var(--rg-cozy-cream) 100%);
  padding: 3rem 1.5rem;
  margin-top: 2rem;
}

.get-started-section--enhanced .start-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.get-started-section--enhanced .start-option {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.get-started-section--enhanced .start-option:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* Primary Call Card Styles */
.start-option--primary .start-content {
  width: 100%;
}

.start-option--primary .start-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #222;
  margin: 0 0 0.25rem;
}

.start-option--primary .start-content > p:first-of-type {
  font-size: max(16px, 0.9rem);
  color: #666;
  margin: 0 0 1rem;
}

/* Click-to-Call Button - Solid Brand Red */
.cta-btn--call {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: var(--rg-brand-red);
  color: #fff;
  border: 2px solid var(--rg-brand-red);
  border-radius: var(--rg-radius-md);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--rg-transition-medium);
  min-height: 44px;
  cursor: pointer;
}

.cta-btn--call:hover {
  background: var(--rg-brand-red-dark);
  border-color: var(--rg-brand-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(175, 45, 44, 0.3);
}

.cta-btn--call:active {
  transform: translateY(0);
}

.cta-btn--call svg {
  width: 18px;
  height: 18px;
}

/* 24/7 Micro-copy */
.start-micro-copy {
  font-size: max(16px, 0.85rem);
  color: var(--rg-success-green);
  font-weight: 500;
  margin: 0.75rem 0 0 !important;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.start-micro-copy::before {
  content: '✓';
  font-weight: 700;
}

/* Consultation Form Card */
.start-option--form .start-content {
  width: 100%;
}

.start-option--form .start-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #222;
  margin: 0 0 0.25rem;
}

.start-option--form .start-content > p:first-of-type {
  font-size: max(16px, 0.9rem);
  color: #666;
  margin: 0 0 1rem;
}

/* Consultation Toggle Button */
.consultation-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: #fff;
  color: var(--rg-brand-red);
  border: 2px solid var(--rg-brand-red);
  border-radius: var(--rg-radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--rg-transition-medium);
  min-height: 44px;
  width: 100%;
  justify-content: center;
}

.consultation-toggle:hover {
  background: var(--rg-cozy-peach);
}

.consultation-toggle .toggle-arrow {
  transition: transform 0.3s ease;
}

.consultation-toggle[aria-expanded="true"] .toggle-arrow {
  transform: rotate(180deg);
}

.consultation-toggle[aria-expanded="true"] {
  background: var(--rg-cozy-peach);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  margin-bottom: 0;
}

/* Consultation Form - Hidden by default */
.consultation-form {
  display: grid;
  gap: 1rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
  background: var(--rg-cozy-peach);
  border-radius: 0 0 var(--rg-radius-md) var(--rg-radius-md);
  margin: 0 -1.5rem -1.5rem;
  width: calc(100% + 3rem);
}

.consultation-form[aria-hidden="false"] {
  max-height: 400px;
  opacity: 1;
  padding: 1.25rem 1.5rem 1.5rem;
}

/* Form Field Styles */
.consultation-form .form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.consultation-form .form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
}

.consultation-form .form-field input,
.consultation-form .form-field select {
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 16px; /* Prevents iOS zoom */
  font-family: inherit;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 44px;
}

.consultation-form .form-field input:focus,
.consultation-form .form-field select:focus {
  outline: none;
  border-color: var(--rg-brand-red);
  box-shadow: 0 0 0 3px rgba(175, 45, 44, 0.1);
}

.consultation-form .form-field input::placeholder {
  color: #999;
}

/* Form Submit Button */
.consultation-form .form-submit {
  margin-top: 0.5rem;
  width: 100%;
  justify-content: center;
}

/* Local Trust Footer */
.get-started-footer {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(175, 45, 44, 0.15);
}

.local-anchor {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: max(16px, 0.95rem);
  color: #333;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.local-anchor svg {
  color: var(--rg-brand-red);
  flex-shrink: 0;
}

.service-areas {
  font-size: max(16px, 0.875rem);
  color: #666;
  margin: 0;
}

/* Mobile Responsive for Get Started */
@media (max-width: 768px) {
  .get-started-section--enhanced {
    padding: 2rem 1rem;
  }

  .get-started-section--enhanced .start-options {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .get-started-section--enhanced .start-option {
    padding: 1.25rem;
  }

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

  .consultation-form {
    margin: 0 -1.25rem -1.25rem;
    width: calc(100% + 2.5rem);
  }

  .consultation-form[aria-hidden="false"] {
    padding: 1rem 1.25rem 1.25rem;
  }

  .local-anchor {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .local-anchor span {
    flex: 1 1 100%;
    margin-top: 0.25rem;
  }
}

/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */

@media (max-width: 1199px) {
  /* Adjust for mobile navbar height */
  .resource-tabs-bar {
    top: 0; /* Stick to top when scrolling */
    margin-top: 64px; /* Push down initially to clear navbar */
  }
}

@media (max-width: 768px) {
  /* Mobile: show icons only, hide text labels
     Total header height: 64px navbar + 48px tabs = 112px
     This is ~17% of a 667px viewport (well under 20%) */
  .resource-tabs-container {
    justify-content: space-around;
    gap: 0;
    padding: 0;
  }

  .tab-btn {
    flex: 1;
    justify-content: center;
    padding: 0.625rem 0.5rem;
    font-size: 0.75rem;
    min-height: 48px; /* Compact but still accessible touch target */
  }

  .tab-btn .tab-label {
    display: none;
  }

  .tab-btn svg {
    width: 22px;
    height: 22px;
  }

  /* Wider underline on mobile for visibility */
  .tab-btn::after {
    width: 50%;
    height: 2px; /* Slightly thinner on mobile */
  }

  /* Content sections */
  .content-section {
    padding: 1.5rem 1rem;
  }

  .service-header {
    padding: 1.5rem 1rem;
  }

  .welcome-hero {
    padding: 2rem 1rem 1.5rem;
  }

  .welcome-preheader {
    font-size: 0.6rem;
    padding: 0.35rem 0.7rem;
  }

  /* Section meta pills - hide on mobile for cleaner look */
  .section-meta-pills {
    display: none;
  }

  .quick-nav-header {
    justify-content: center;
  }

  /* Resource card details - single column on mobile */
  .resource-card-details ul {
    grid-template-columns: 1fr;
  }

  /* Filter pills - horizontal scroll on mobile */
  .filter-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 0 1rem;
    margin-bottom: 1.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .filter-pills::-webkit-scrollbar {
    display: none;
  }

  .filter-pill {
    flex-shrink: 0;
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
  }

  /* Compact dashboard: single column on mobile */
  .resource-dashboard {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .resource-card-main {
    padding: 0.75rem 0.875rem;
    gap: 0.6rem;
  }

  .resource-card-icon {
    width: 32px;
    height: 32px;
  }

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

  .resource-card-content h4 {
    font-size: 0.85rem;
  }

  .resource-card-content p {
    font-size: 0.7rem;
  }

  .resource-card-expand .expand-text {
    display: none;
  }

  .resource-card-expand {
    padding: 0.3rem 0.5rem;
  }

  /* Sticky filters on mobile */
  .filter-pills-sticky {
    top: 48px; /* Mobile tab bar height */
    margin: 0 -1rem 1rem;
  }

  .filter-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 0.25rem;
  }

  .filter-pill {
    flex-shrink: 0;
    font-size: 0.7rem;
    padding: 0.35rem 0.7rem;
  }

  /* Legacy grid fallback */
  .quick-nav-grid--dashboard {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .quick-nav-secondary {
    flex-direction: column;
    gap: 0.75rem;
  }

  .quick-nav-item--secondary {
    max-width: 100%;
  }

  .hero-search {
    padding: 0.2rem 0.2rem 0.2rem 1rem;
  }

  .hero-search input {
    font-size: 16px; /* Prevents iOS zoom on focus */
  }

  .hero-search-btn {
    padding: 0.55rem 1rem;
    font-size: 0.8rem;
  }

  .hero-search-suggestions {
    gap: 0.4rem;
  }

  .search-suggestion {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
  }

  /* Hover summaries - show on touch for mobile */
  .quick-nav-item .hover-summary {
    /* On mobile, summaries will reveal on tap via JS */
    font-size: 0.75rem;
    padding: 0.75rem 1rem;
  }

  .quick-nav-section {
    padding: 1.5rem 1rem;
  }

  .quick-nav-grid {
    grid-template-columns: 1fr;
  }

  .cta-section {
    padding: 2rem 1rem;
    padding-bottom: 3rem; /* Extra bottom padding for mobile */
    margin-bottom: 2rem; /* Spacing before footer on mobile */
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-btn {
    justify-content: center;
    padding: 1rem 1.5rem; /* Slightly more vertical padding on mobile */
  }

  /* Highlight box responsive */
  .highlight-box {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .tab-btn {
    padding: 0.5rem;
  }

  .tab-btn svg {
    width: 18px;
    height: 18px;
  }

  .service-title {
    font-size: 1.5rem;
  }

  .section-navigation {
    gap: 0.375rem;
  }

  .nav-tab {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
  }
}

/* ============================================
   Print styles
   ============================================ */

@media print {
  .resource-tabs-bar,
  .resource-sidebar,
  .toc-toggle,
  .cta-section,
  .quick-nav-section {
    display: none;
  }

  .resource-layout {
    grid-template-columns: 1fr;
  }

  .resource-section {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid var(--border-color);
  }

  .tab-panel {
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
