@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@500;700;800&display=swap');

:root {
  /* Colors */
  --primary-deep: hsl(220, 85%, 25%);
  --primary: hsl(217, 91%, 38%);
  --primary-light: hsl(215, 96%, 47%);
  --primary-tint: hsl(214, 94%, 93%);
  --accent: hsl(142, 72%, 29%); /* Calming green accent for medicare/success */
  --accent-light: hsl(142, 69%, 58%);
  --accent-tint: hsl(138, 76%, 95%);
  --bg-main: hsl(210, 40%, 98%);
  --bg-card: hsl(0, 0%, 100%);
  --text-dark: hsl(224, 71%, 15%);
  --text-muted: hsl(215, 16%, 47%);
  --border-color: hsl(214, 32%, 91%);
  
  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* System */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 2px 4px rgba(30, 41, 59, 0.04);
  --shadow-md: 0 8px 16px rgba(30, 41, 59, 0.08);
  --shadow-lg: 0 16px 32px rgba(30, 41, 59, 0.12);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1100px;
}

/* Base Styles & Accessibility */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  font-size: 18px; /* Senior-friendly */
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-main);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--primary-deep);
  font-weight: 700;
  line-height: 1.25;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.2rem;
  color: var(--text-muted);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-deep);
  text-decoration: underline;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-dark {
  background-color: var(--primary-deep);
  color: white;
}

.section-dark h2, .section-dark h3 {
  color: white;
}

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

/* Premium Navigation Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 48px;
  width: auto;
  display: block;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--primary-deep);
  letter-spacing: -0.01em;
  display: flex;
  flex-direction: column;
}

.logo-text span {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: -2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1.05rem;
}

.nav-link:hover {
  color: var(--primary);
  text-decoration: none;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background-color: var(--accent);
  color: white;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.nav-cta:hover {
  background-color: hsl(142, 72%, 24%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: white;
  text-decoration: none;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--primary-deep);
  margin: 5px 0;
  transition: var(--transition);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 1.15rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  min-height: 56px; /* Senior accessible size */
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 41, 59, 0.4);
}

.btn-accent {
  background-color: var(--accent);
  color: white;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.3);
}

.btn-accent:hover {
  background-color: hsl(142, 72%, 24%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(21, 128, 61, 0.4);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary-tint);
  color: var(--primary-deep);
}

/* Hero Section */
.hero-wrapper {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 4rem;
  padding: 4rem 0;
}

.hero-content {
  max-width: 620px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background-color: var(--primary-tint);
  color: var(--primary-deep);
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.hero-badge svg {
  color: var(--primary);
}

.hero-headline {
  margin-bottom: 1.5rem;
  color: var(--primary-deep);
}

.hero-subheadline {
  font-size: 1.35rem;
  line-height: 1.5;
  margin-bottom: 2.5rem;
  color: var(--text-muted);
}

.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  width: 100%;
}

.medicare-highlight {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--accent-tint);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border-left: 5px solid var(--accent);
  margin-bottom: 2rem;
}

.medicare-highlight p {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: hsl(220, 30%, 20%);
  font-weight: 500;
}

.medicare-highlight svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 3.5rem;
}

.benefit-card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

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

.benefit-icon {
  width: 64px;
  height: 64px;
  background: var(--primary-tint);
  color: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

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

/* How It Works (Steps) */
.steps-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 4rem;
  position: relative;
}

.step-card {
  position: relative;
  background: white;
  padding: 3rem 2rem 2.5rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  text-align: center;
  transition: var(--transition);
}

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

.step-number {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  background-color: var(--accent);
  color: white;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(34, 197, 94, 0.4);
}

.step-icon {
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.step-icon svg {
  width: 48px;
  height: 48px;
}

/* FAQs Accordion */
.faq-wrapper {
  max-width: 800px;
  margin: 3rem auto 0 auto;
}

.faq-item {
  background: white;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.faq-question {
  width: 100%;
  padding: 1.5rem 2rem;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.25rem; /* Senior readable */
  font-weight: 700;
  color: var(--primary-deep);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  outline: none;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
  padding: 0 2rem;
}

.faq-answer p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.faq-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
  color: var(--primary);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180px);
}

.faq-item.active .faq-answer {
  max-height: 1000px;
  padding: 0.5rem 2rem 1.5rem 2rem;
  transition: max-height 0.5s ease-in, padding 0.3s ease;
}

/* Call to Action Section (Banner) */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary) 100%);
  color: white;
  border-radius: var(--radius-xl);
  padding: 4rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.cta-banner h2 {
  color: white;
  font-size: 2.3rem;
  margin-bottom: 1rem;
}

.cta-banner p {
  color: var(--primary-tint);
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
}

/* Modal Wizard Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1rem;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.wizard-container {
  background: white;
  width: 100%;
  max-width: 650px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .wizard-container {
  transform: translateY(0);
}

.wizard-header {
  background: var(--primary-deep);
  color: white;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wizard-title {
  font-size: 1.3rem;
  color: white;
}

.close-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.8rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

/* Wizard Progress Bar */
.wizard-progress-container {
  background: var(--bg-main);
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border-color);
}

.progress-track {
  height: 8px;
  background-color: var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  margin-bottom: 0.5rem;
}

.progress-fill {
  height: 100%;
  background-color: var(--accent);
  width: 25%;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 10px;
}

.progress-steps-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.wizard-body {
  padding: 2.5rem 2rem;
}

.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

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

.step-question {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--primary-deep);
  margin-bottom: 1.5rem;
}

/* Radio Button Options */
.options-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.option-card {
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.option-card:hover {
  border-color: var(--primary-light);
  background-color: var(--primary-tint);
}

.option-card.selected {
  border-color: var(--primary);
  background-color: var(--primary-tint);
}

.option-card input[type="radio"] {
  width: 24px;
  height: 24px;
  accent-color: var(--primary);
  cursor: pointer;
}

.option-label {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* Text Input Styling */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.form-field-full {
  grid-column: span 2;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.form-input {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1.05rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  outline: none;
  font-family: var(--font-body);
  transition: var(--transition);
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-tint);
}

/* TCPA Consent Text */
.consent-container {
  background-color: var(--bg-main);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 2rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.consent-container p {
  margin-bottom: 0;
}

/* Wizard Footer */
.wizard-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-main);
}

.wizard-btn-prev {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  visibility: hidden; /* Programmatically set */
}

.wizard-btn-prev:hover {
  background: var(--border-color);
  color: var(--text-dark);
}

/* Success Wizard State */
.wizard-success-state {
  text-align: center;
  padding: 2rem 1rem;
}

.success-icon-wrapper {
  width: 80px;
  height: 80px;
  background-color: var(--accent-tint);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
}

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

/* Fictional/Mock details or contact list */
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  background-color: var(--primary-tint);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-content h4 {
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

.contact-info-content p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Compliance Legal Content layout */
.legal-container {
  max-width: 800px;
  margin: 3rem auto;
  background: white;
  padding: 3.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.legal-container h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.legal-last-updated {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 3rem;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.legal-content p, .legal-content ul {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.legal-content ul {
  padding-left: 2rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

/* Contact Page Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
  margin-top: 3rem;
}

/* Footer Section */
footer {
  background-color: hsl(220, 40%, 10%);
  color: hsl(220, 20%, 80%);
  padding: 4rem 0 2rem 0;
  font-size: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: white;
  letter-spacing: -0.01em;
}

.footer-brand-title span {
  color: var(--accent-light);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
}

.footer-text {
  color: hsl(220, 15%, 70%);
}

.footer-links-col h4 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: hsl(220, 15%, 75%);
  transition: var(--transition);
}

.footer-link:hover {
  color: white;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  text-align: center;
  color: hsl(220, 10%, 60%);
}

.footer-disclaimer {
  font-size: 0.8rem;
  line-height: 1.6;
  margin-top: 1.5rem;
  color: hsl(220, 10%, 55%);
}

/* Responsiveness adjustments */
@media (max-width: 968px) {
  .hero-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 2rem 0;
  }
  
  .hero-content {
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
  }
  
  .hero-badge {
    margin: 0 auto 1.5rem auto;
  }
  
  .steps-container {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  
  .step-card {
    padding-top: 3.5rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: white;
    flex-direction: column;
    padding: 3rem 1.5rem;
    gap: 2rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    align-items: stretch;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-link {
    font-size: 1.2rem;
    display: block;
    padding: 0.5rem 0;
    text-align: center;
  }
  
  .nav-cta {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .form-field-full {
    grid-column: span 1;
  }
  
  .wizard-body {
    padding: 1.5rem;
  }
  
  .wizard-footer {
    padding: 1.25rem 1.5rem;
  }
  
  .cta-banner {
    padding: 2.5rem 1.5rem;
  }
  
  .legal-container {
    padding: 2rem 1.25rem;
    margin: 1.5rem auto;
  }
}


/* ==========================================================================
   Shop, Cart and Checkout
   ========================================================================== */
.nav-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--primary-deep);
  transition: var(--transition);
}
.nav-cart:hover { background: var(--primary-tint); color: var(--primary); text-decoration: none; }
.cart-count {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--accent);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}
.cart-count.is-empty { display: none; }

.shop-hero {
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary) 100%);
  color: white;
  padding: 3.5rem 0 2.5rem;
}
.shop-hero h1 { color: white; font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 0.75rem; }
.shop-hero p { color: var(--primary-tint); font-size: 1.15rem; max-width: 640px; margin-bottom: 1.5rem; }
.category-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.category-chip {
  padding: 0.55rem 1.1rem;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.08);
  color: white;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}
.category-chip:hover { background: white; color: var(--primary-deep); text-decoration: none; }

.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2.5rem; align-items: start; }
.shop-sidebar { position: sticky; top: 96px; }
.filter-group { background: white; border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 1.25rem; margin-bottom: 1rem; }
.filter-group h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 0.75rem; }
.filter-list { list-style: none; display: flex; flex-direction: column; gap: 0.15rem; }
.filter-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  text-align: left;
  padding: 0.5rem 0.6rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn span { font-size: 0.8rem; color: var(--text-muted); }
.filter-btn:hover { background: var(--bg-main); }
.filter-btn.active { background: var(--primary-tint); color: var(--primary-deep); font-weight: 700; }
.filter-check { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; cursor: pointer; }
.filter-check input { width: 20px; height: 20px; accent-color: var(--primary); }
.shop-filters-toggle { display: none; }

.shop-toolbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.shop-toolbar h2 { margin: 0; font-size: 1.6rem; }
.shop-toolbar-right { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.shop-count { color: var(--text-muted); font-weight: 600; font-size: 0.95rem; }
.shop-search { min-width: 240px; padding: 0.7rem 1rem; font-size: 1rem; }
.shop-sort { padding: 0.7rem 2.2rem 0.7rem 1rem; font-size: 1rem; background: white; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; }
.product-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-card.is-soldout .product-card-media img { opacity: 0.5; filter: grayscale(0.6); }
.product-card-media { position: relative; display: block; aspect-ratio: 1 / 1; background: white; border-bottom: 1px solid var(--border-color); }
.product-card-media img { width: 100%; height: 100%; object-fit: contain; padding: 1rem; display: block; }
.product-card-badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 100px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em; }
.badge-sale { background: var(--accent); color: white; }
.badge-rx { background: var(--primary-tint); color: var(--primary-deep); }
.badge-muted { background: hsl(215, 16%, 90%); color: var(--text-muted); }
.product-card-body { padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.product-card-brand { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: var(--accent); }
.product-card-title { font-size: 1.05rem; margin: 0; line-height: 1.35; flex: 1; }
.product-card-title a { color: var(--primary-deep); }
.price-row { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.price { font-family: var(--font-heading); font-weight: 800; font-size: 1.35rem; color: var(--text-dark); }
.price-compare { color: var(--text-muted); text-decoration: line-through; font-size: 0.95rem; }
.price-save { color: var(--accent); font-weight: 700; font-size: 0.95rem; }
.price-row-lg .price { font-size: 2rem; }
.btn-card { width: 100%; min-height: 48px; padding: 0.7rem 1rem; font-size: 1rem; gap: 8px; margin-top: 0.5rem; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }
.shop-empty { grid-column: 1 / -1; background: white; border: 1px dashed var(--border-color); border-radius: var(--radius-md); padding: 3rem; text-align: center; }

.crumbs { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.crumbs span { margin: 0 0.5rem; }
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.pdp-main { position: relative; background: white; border: 1px solid var(--border-color); border-radius: var(--radius-lg); aspect-ratio: 1 / 1; }
.pdp-main img { width: 100%; height: 100%; object-fit: contain; padding: 2rem; }
.pdp-thumbs { display: flex; gap: 0.6rem; margin-top: 0.75rem; flex-wrap: wrap; }
.pdp-thumb { width: 72px; height: 72px; border: 2px solid var(--border-color); border-radius: var(--radius-sm); background: white; padding: 4px; cursor: pointer; }
.pdp-thumb.active { border-color: var(--primary); }
.pdp-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pdp-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0.25rem 0 1rem; }
.pdp-short { font-size: 1.1rem; color: var(--text-dark); }
.pdp-specs { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; margin: 0 0 1.5rem; }
.pdp-specs li { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 500; }
.pdp-specs svg { color: var(--accent); flex-shrink: 0; margin-top: 4px; }
.pdp-option { margin-bottom: 1.25rem; max-width: 320px; }
.pdp-buy { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.25rem; }
.pdp-buy .btn-lg { gap: 10px; flex: 1; min-width: 220px; }
.qty-control { display: inline-flex; border: 2px solid var(--border-color); border-radius: var(--radius-md); overflow: hidden; background: white; }
.qty-control button { width: 44px; height: 52px; border: none; background: none; font-size: 1.4rem; cursor: pointer; color: var(--primary-deep); }
.qty-control button:hover { background: var(--bg-main); }
.qty-control input { width: 56px; border: none; text-align: center; font-size: 1.1rem; font-weight: 700; font-family: var(--font-body); -moz-appearance: textfield; }
.qty-control input::-webkit-outer-spin-button, .qty-control input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pdp-trust { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: 0.92rem; color: var(--text-muted); font-weight: 600; margin-bottom: 1.5rem; }
.pdp-trust span { display: inline-flex; align-items: center; gap: 6px; }
.pdp-trust svg { color: var(--accent); }
.rx-notice { display: flex; gap: 0.75rem; background: var(--primary-tint); border-left: 4px solid var(--primary); border-radius: var(--radius-sm); padding: 1rem 1.25rem; }
.rx-notice svg { flex-shrink: 0; margin-top: 4px; color: var(--primary); width: 20px; height: 20px; }
.rx-notice p { margin: 0; font-size: 0.95rem; color: var(--text-dark); }
.related { margin-top: 4rem; }
.related h2 { font-size: 1.6rem; }

.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 2.5rem; align-items: start; }
.cart-lines { display: flex; flex-direction: column; gap: 1rem; }
.cart-line { display: grid; grid-template-columns: 96px 1fr auto auto; gap: 1.25rem; align-items: center; background: white; border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 1rem 1.25rem; }
.cart-line-img { width: 96px; height: 96px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: white; display: block; }
.cart-line-img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.cart-line-title { font-weight: 700; color: var(--primary-deep); display: block; }
.cart-line-meta { font-size: 0.9rem; color: var(--text-muted); }
.cart-line-price { font-size: 0.95rem; color: var(--text-muted); margin-top: 0.25rem; }
.cart-line-warn { color: hsl(0, 70%, 45%); font-weight: 600; font-size: 0.9rem; margin-top: 0.25rem; }
.cart-line-qty { display: flex; flex-direction: column; gap: 0.4rem; align-items: center; }
.cart-line-qty .qty-control button { height: 42px; width: 38px; }
.cart-remove { display: inline-flex; gap: 4px; align-items: center; background: none; border: none; color: var(--text-muted); font-size: 0.85rem; cursor: pointer; font-family: var(--font-body); }
.cart-remove:hover { color: hsl(0, 70%, 45%); }
.cart-line-total { font-family: var(--font-heading); font-weight: 800; font-size: 1.2rem; min-width: 80px; text-align: right; }
.summary-card { background: white; border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 1.75rem; box-shadow: var(--shadow-sm); position: sticky; top: 96px; }
.summary-row { display: flex; justify-content: space-between; padding: 0.5rem 0; color: var(--text-muted); }
.summary-row.total { border-top: 1px solid var(--border-color); margin-top: 0.5rem; padding-top: 1rem; color: var(--text-dark); font-weight: 800; font-size: 1.25rem; font-family: var(--font-heading); }
.summary-card .btn { width: 100%; gap: 10px; margin-top: 1.25rem; }
.checkout-error { color: hsl(0, 70%, 45%); font-weight: 600; font-size: 0.95rem; margin-top: 0.75rem; min-height: 1.2em; }
.summary-note { font-size: 0.85rem; color: var(--text-muted); margin-top: 1rem; margin-bottom: 0; line-height: 1.5; }
.notice { padding: 1rem 1.25rem; border-radius: var(--radius-md); margin-bottom: 1.5rem; font-weight: 600; }
.notice-warn { background: hsl(45, 100%, 94%); border: 1px solid hsl(45, 90%, 70%); color: hsl(35, 80%, 25%); }
.payment-logos { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }
.payment-logos span { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; color: var(--text-muted); border: 1px solid var(--border-color); border-radius: 4px; padding: 3px 7px; }

.order-card { background: white; border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 1.75rem; max-width: 560px; margin: 2rem auto 0; text-align: left; }
.order-items { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }
.order-items li { display: flex; justify-content: space-between; gap: 1rem; }
.order-total { display: flex; justify-content: space-between; border-top: 1px solid var(--border-color); padding-top: 0.75rem; font-weight: 800; font-family: var(--font-heading); font-size: 1.15rem; }

.egm-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--text-dark);
  color: white;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 2000;
  max-width: calc(100vw - 32px);
}
.egm-toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.egm-toast-icon { color: var(--accent-light); display: flex; }
.egm-toast-link { color: var(--accent-light); font-weight: 700; white-space: nowrap; }

.featured-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.featured-head h2 { margin-bottom: 0.25rem; }
.featured-head p { margin: 0; }

@media (max-width: 900px) {
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { position: static; display: none; }
  .shop-sidebar.open { display: block; }
  .shop-filters-toggle { display: inline-flex; }
  .pdp { grid-template-columns: 1fr; gap: 2rem; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary-card { position: static; }
}
@media (max-width: 768px) {
  .nav-cart { position: absolute; right: 64px; top: 18px; }
  .nav-container { position: relative; }
  .cart-line { grid-template-columns: 72px 1fr; }
  .cart-line-img { width: 72px; height: 72px; }
  .cart-line-qty { grid-column: 2; flex-direction: row; justify-content: space-between; }
  .cart-line-total { grid-column: 2; text-align: left; }
  .shop-search { min-width: 0; width: 100%; }
  .shop-toolbar-right { width: 100%; }
}

/* Wider collapse point for the nav now that it holds Shop + cart */
@media (max-width: 1024px) and (min-width: 769px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: white;
    flex-direction: column;
    padding: 3rem 1.5rem;
    gap: 2rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    align-items: stretch;
  }
  .nav-menu.active { left: 0; }
  .nav-link { font-size: 1.2rem; display: block; padding: 0.5rem 0; text-align: center; }
  .nav-cta { width: 100%; padding: 1rem; font-size: 1.1rem; }
  .nav-toggle { display: block; }
  .nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .nav-container { position: relative; }
  .nav-cart { position: absolute; right: 64px; top: 18px; }
}


/* ==========================================================================
   Coverage-check intake page (qualify.html)
   ========================================================================== */
.intake-section { padding-top: 3rem; }
.intake-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3.5rem; align-items: start; }
.intake-copy h1 { margin-bottom: 1.25rem; }
.intake-points { list-style: none; display: flex; flex-direction: column; gap: 0.85rem; margin-bottom: 2rem; }
.intake-points li { display: flex; gap: 10px; align-items: center; font-weight: 600; color: var(--text-dark); }
.intake-points svg { color: var(--accent); flex-shrink: 0; }
.intake-phone { font-size: 1.05rem; }
.intake-phone a { font-weight: 700; }
.intake-card { background: white; border: 1px solid var(--border-color); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.intake-progress { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
#intakeForm { padding: 2rem 2rem 0; }
.intake-step { display: none; }
.intake-step.active { display: block; animation: fadeIn 0.4s ease; }
.intake-footer { margin: 0 -2rem; }
.intake-error { display: none; background: hsl(0, 100%, 97%); border: 1px solid hsl(0, 80%, 85%); color: hsl(0, 70%, 40%); border-radius: var(--radius-sm); padding: 0.85rem 1rem; font-weight: 600; margin-bottom: 1.25rem; }
.hp-field { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }
.consent-block { margin-top: 0.5rem; }
.consent-block p { margin-bottom: 0.75rem; font-size: 0.82rem; }
.consent-title { font-weight: 700; color: var(--text-dark); text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.78rem; }
.consent-check { display: flex; gap: 0.75rem; align-items: flex-start; cursor: pointer; margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--border-color); }
.consent-check input { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; accent-color: var(--primary); }
.consent-check span { font-size: 0.92rem; font-weight: 600; color: var(--text-dark); line-height: 1.45; }
.intake-card .wizard-success-state { padding: 3rem 2rem; }
select.form-input { appearance: auto; background: white; }
@media (max-width: 968px) {
  .intake-layout { grid-template-columns: 1fr; gap: 2rem; }
  .intake-copy { text-align: left; }
}
@media (max-width: 768px) {
  #intakeForm { padding: 1.5rem 1.25rem 0; }
  .intake-footer { margin: 0 -1.25rem; }
}

/* Optional address block on the Get Started form */
.intake-optional { margin: 0.25rem 0 1.25rem; border: 1px dashed var(--border-color); border-radius: var(--radius-md); padding: 0.85rem 1.1rem; }
.intake-optional summary { cursor: pointer; font-weight: 600; color: var(--primary); list-style: none; display: flex; align-items: center; gap: 0.5rem; }
.intake-optional summary::-webkit-details-marker { display: none; }
.intake-optional summary::before { content: '+'; font-weight: 800; width: 20px; height: 20px; border-radius: 50%; background: var(--primary-tint); display: inline-flex; align-items: center; justify-content: center; font-size: 0.9rem; }
.intake-optional[open] summary::before { content: '\2013'; }

/* Prescription upload on the cart page */
.rx-upload { margin-top: 1rem; padding: 1rem; border: 1px dashed var(--border-color); border-radius: var(--radius-md); background: var(--bg-main); }
.rx-upload-label { display: block; font-weight: 700; font-size: 0.95rem; color: var(--text-dark); margin-bottom: 0.5rem; }
.rx-upload-input { width: 100%; font-size: 0.9rem; }
.rx-upload-status { display: flex; align-items: center; gap: 6px; font-size: 0.9rem; font-weight: 600; color: var(--accent); margin-top: 0.5rem; min-height: 1.2em; }
.rx-upload-status svg { flex-shrink: 0; }

/* "Text me the link" on the cart page */
.sms-link { margin-top: 0.9rem; text-align: center; }
.sms-link-toggle { background: none; border: none; color: var(--primary); font-weight: 700; font-size: 0.95rem; cursor: pointer; font-family: var(--font-body); text-decoration: underline; padding: 0.25rem; }
.sms-link-form { text-align: left; margin-top: 0.75rem; padding: 1.1rem; border: 1px dashed var(--border-color); border-radius: var(--radius-md); background: var(--bg-main); display: flex; flex-direction: column; gap: 0.85rem; }
.sms-link-form .form-group { gap: 0.35rem; }
.sms-link-form .form-group label { font-size: 0.9rem; }
.sms-link-form .form-input { padding: 0.75rem 0.9rem; font-size: 1.05rem; background: white; }
.sms-link-form .btn { width: 100%; min-height: 50px; margin-top: 0; }
.sms-link-status { display: flex; align-items: center; gap: 6px; font-size: 0.9rem; font-weight: 600; margin-top: 0.5rem; min-height: 1.2em; color: var(--text-muted); }
.sms-link-status.is-ok { color: var(--accent); }
.sms-link-status.is-error { color: hsl(0, 70%, 45%); }
