/* ==========================================
   MODERN PLANS PAGE STYLES
   ========================================== */

/* Hero Section - Modern & Flush with Header */
.plans-hero {
  background: linear-gradient(135deg, #f8faf9 0%, #e8f5e9 100%);
  padding: 0 0 60px 0;
  margin-top: 0 !important;
  position: relative;
  overflow: hidden;
  animation: fadeInDown 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 500px;
  display: flex;
  align-items: center;
}

.plans-hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(0, 60, 48, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.plans-hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(95, 160, 10, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.plans-hero-content {
  position: relative;
  z-index: 1;
  padding: 80px 0 40px;
  width: 100%;
}

.plans-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 24px;
  font-family: Georgia, "Times New Roman", Times, serif;
  line-height: 1.2;
  animation: fadeInUp 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Larger, more readable description text */
.plans-hero p,
.section-header-plans p,
.cta-description {
  font-size: 1.2rem;
  color: #444;
  line-height: 1.85;
  margin-bottom: 22px;
  animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* General paragraph text size increase */
main p {
  font-size: 1.15rem;
  line-height: 1.85;
}

.plans-hero img {
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  animation: fadeInUp 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.plans-hero img:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}

/* Modern CTA Button in Hero */

/* Modern CTA Button - match homepage style */
.plans-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 34px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  background: var(--color-primary);
  border: none;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(95, 160, 10, 0.25);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.plans-cta-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-primary-hover);
  opacity: 0.12;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  z-index: 0;
}
.plans-cta-btn:hover::before {
  transform: scaleX(1);
}
.plans-cta-btn:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 32px rgba(95, 160, 10, 0.35);
  color: #fff;
}
.plans-cta-btn svg,
.plans-cta-btn i {
  margin-left: 10px;
  font-size: 1.5em;
  transition: transform 0.3s;
}
.plans-cta-btn:hover svg,
.plans-cta-btn:hover i {
  transform: translateX(6px);
}
/* Modern CTA Card Section (like homepage) */
.plans-modern-cta-section {
  background: linear-gradient(135deg, #f0fdf4 0%, #e7f5ef 100%);
  padding: 70px 0 70px 0;
  position: relative;
  overflow: hidden;
}
.plans-modern-cta-wrapper {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 60, 48, 0.1);
  padding: 56px 40px;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  animation: fadeInUp 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}
.plans-modern-cta-wrapper .cta-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 1.2rem;
  font-family: Georgia, "Times New Roman", Times, serif;
  line-height: 1.2;
}
.plans-modern-cta-wrapper .cta-text {
  font-size: 1.25rem;
  color: #555;
  margin-bottom: 2.2rem;
  line-height: 1.7;
}
.plans-modern-cta-wrapper .plans-cta-btn {
  margin-top: 10px;
}

/* Animation for fade-in/zoom */
@keyframes zoomIn {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
.animate-zoomIn {
  animation: zoomIn 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Section Headers - Unified Modern Style */
.section-header-plans {
  text-align: center;
  margin-bottom: 48px;
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-header-plans h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 20px;
  font-family: Georgia, "Times New Roman", Times, serif;
  position: relative;
  display: inline-block;
}

.section-header-plans h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 80px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-primary-hover)
  );
  transform: translateX(-50%);
  border-radius: 4px;
}

.section-header-plans p {
  font-size: 1.1rem;
  color: #666;
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Modern Card Styles */
.medicare-part,
.medicare-card,
.benefit-card,
.step-card {
  background: #ffffff;
  border-radius: 20px;
  border: 2px solid #f0f0f0;
  padding: 2.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.medicare-part::before,
.medicare-card::before,
.benefit-card::before,
.step-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--color-primary) 0%,
    var(--color-primary-hover) 100%
  );
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.medicare-part:hover,
.medicare-card:hover,
.benefit-card:hover,
.step-card:hover {
  transform: translateY(-12px);
  border-color: rgba(95, 160, 10, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.medicare-part:hover::before,
.medicare-card:hover::before,
.benefit-card:hover::before,
.step-card:hover::before {
  transform: scaleX(1);
}

/* Icon Styling in Cards */
.card-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8faf9 0%, #e8f5e9 100%);
  border-radius: 50%;
  font-size: 2.5rem;
  color: var(--color-primary);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.card-icon::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-primary-hover) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.medicare-part:hover .card-icon,
.medicare-card:hover .card-icon,
.benefit-card:hover .card-icon,
.step-card:hover .card-icon {
  transform: translateY(-8px) scale(1.1) rotate(-5deg);
}

.medicare-part:hover .card-icon::before,
.medicare-card:hover .card-icon::before,
.benefit-card:hover .card-icon::before,
.step-card:hover .card-icon::before {
  opacity: 1;
}

/* Card Titles */
.card-title-modern {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
  font-family: Georgia, "Times New Roman", Times, serif;
}

.card-text-modern {
  font-size: 1.12rem;
  color: #444;
  line-height: 1.9;
  margin: 0;
}

/* Benefit Rows - Modern List Style */
.benefit-row {
  display: flex;
  align-items: flex-start;
  padding: 1.25rem;
  margin-bottom: 1rem;
  background: #ffffff;
  border-radius: 12px;
  border-left: 4px solid var(--color-primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.benefit-row:hover {
  background: linear-gradient(135deg, #f8faf9 0%, #e8f5e9 100%);
  transform: translateX(8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-left-width: 6px;
}

.benefit-row i {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-right: 1rem;
  transition: all 0.3s ease;
  min-width: 30px;
}

.benefit-row:hover i {
  color: var(--color-primary-hover);
  transform: scale(1.2) rotate(5deg);
}

.benefit-row h5,
.benefit-row h4 {
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.benefit-row p {
  color: #444;
  margin: 0;
  line-height: 1.85;
  font-size: 1.12rem;
}
/* Improve benefit text readability (spans used in markup) */
.benefit-row span {
  font-size: 1.18rem;
  color: #333;
  line-height: 1.9;
  font-weight: 400;
}

/* Intro section specific typography */
.medicare-intro-section .section-header-plans p,
.medicare-intro-section p {
  font-size: 1.2rem;
  line-height: 1.9;
  color: #333;
}

/* Prevent layout overflow on small screens */
body,
html {
  overflow-x: hidden;
}
.container,
.row {
  min-width: 0;
}
.plans-hero,
.plans-modern-cta-section {
  contain: layout paint;
}

/* Trust badges (optional hero embellishment) */
.plans-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}
.plans-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: #fff;
  border-radius: 40px;
  font-size: 0.9rem;
  color: var(--color-primary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.plans-trust-badge i {
  color: var(--color-primary-hover);
  font-size: 1.1rem;
}
.plans-trust-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Secondary CTA button (outline) inside final card */
.plans-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 34px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  background: #fff;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 60, 48, 0.12);
  margin-top: 1rem;
}
.plans-cta-secondary:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 60, 48, 0.28);
}
.plans-modern-cta-wrapper .cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 576px) {
  .plans-modern-cta-wrapper .cta-actions {
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
  }
  .plans-cta-secondary {
    margin-top: 0;
  }
}

/* Step Cards - Modern Timeline Style */
.step-card {
  position: relative;
  padding-top: 3rem;
}

.step-number {
  position: relative;
  top: 0;
  left: 0;
  margin: 0 auto 1.5rem;
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-primary-hover) 100%
  );
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(95, 160, 10, 0.3);
  transition: all 0.3s ease;
}

.step-card:hover .step-number {
  transform: scale(1.15) rotate(10deg);
  box-shadow: 0 12px 30px rgba(95, 160, 10, 0.4);
}

/* FAQ Section - Modern Accordion Style */
.faq-item {
  background: #ffffff;
  border-radius: 16px;
  margin-bottom: 1rem;
  overflow: hidden;
  border: 2px solid #f0f0f0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
  border-color: rgba(95, 160, 10, 0.3);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.faq-question {
  padding: 1.5rem 2rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  transition: background 0.3s ease;
  font-weight: 600;
  color: var(--color-primary);
}

.faq-question:hover {
  background: linear-gradient(135deg, #f8faf9 0%, #e8f5e9 100%);
}

.faq-btn {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-answer {
  padding: 0 2rem 1.5rem;
  color: #666;
  line-height: 1.8;
}

/* Search Bar - Modern Style */
.search-container-modern {
  max-width: 600px;
  margin: 0 auto 3rem;
  position: relative;
}

.search-container-modern input {
  width: 100%;
  padding: 16px 24px 16px 56px;
  border: 2px solid #e0e0e0;
  border-radius: 50px;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.search-container-modern input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 8px 20px rgba(95, 160, 10, 0.15);
}

.search-container-modern i {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-primary);
  font-size: 1.25rem;
}

/* Ensure all columns stretch to same height */
.row-equal > [class*="col-"] {
  display: flex;
}

.row-equal .medicare-part,
.row-equal .medicare-card,
.row-equal .benefit-card,
.row-equal .step-card {
  flex: 1;
}

/* Modern Animations */
@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-32px);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(32px);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

/* ACA-specific coverage section (lighter titles) */
.coverage-section .card-title-modern {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
}

/* ACA-specific steps section styling */
.aca-steps-section .step-card {
  padding: 2.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}
.aca-steps-section .step-number {
  position: relative;
  top: 0;
  width: 64px;
  height: 64px;
  font-size: 1.8rem;
  flex-shrink: 0;
  margin: 0 auto 1rem;
}
.aca-steps-section .card-title-modern {
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 1rem;
}
.aca-steps-section .card-text-modern {
  font-size: 1.08rem;
  line-height: 1.7;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .plans-hero h1 {
    font-size: 2.5rem;
  }

  .section-header-plans h2 {
    font-size: 2rem;
  }

  .medicare-part,
  .medicare-card,
  .benefit-card,
  .step-card {
    padding: 2rem;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 768px) {
  .plans-hero {
    padding: 0 0 40px 0;
    min-height: 450px;
  }

  .plans-hero-content {
    /* add horizontal breathing room on tablets/large phones */
    padding: 60px 16px 24px;
  }

  .plans-hero h1 {
    font-size: 2rem;
  }

  .section-header-plans h2 {
    font-size: 1.75rem;
  }

  .medicare-part,
  .medicare-card,
  .benefit-card,
  .step-card {
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    text-align: center;
  }

  .benefit-row {
    padding: 1rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-left-width: 0;
    border-top: 4px solid var(--color-primary);
  }

  .benefit-row i {
    margin-bottom: 0.75rem;
  }

  /* Center card texts on tablets/phones */
  .card-text-modern {
    text-align: center;
  }
  .card-title-modern {
    text-align: center;
  }

  .step-card {
    margin-bottom: 2.5rem;
  }
}

@media (max-width: 576px) {
  .plans-hero h1 {
    font-size: 1.75rem;
  }

  .plans-hero p {
    font-size: 1.05rem;
  }
  .plans-hero-content {
    /* safe-area aware padding for very small devices */
    padding: 32px calc(env(safe-area-inset-left,0) + 18px) 20px calc(env(safe-area-inset-right,0) + 18px);
  }

  /* Mobile: intro text comfortably larger */
  .medicare-intro-section p {
    font-size: 1.08rem;
    line-height: 1.85;
  }
  .benefit-row span {
    font-size: 1.1rem;
  }

  .plans-cta-btn {
    padding: 14px 28px;
    font-size: 1rem;
  }

  .section-header-plans h2 {
    font-size: 1.5rem;
  }

  .card-icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }

  .card-title-modern {
    font-size: 1.25rem;
  }

  .step-number {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  /* Tighten "How It Works" for small screens */
  .step-card {
    padding: 2.25rem 1rem 1.25rem;
  }
  .step-card .card-icon {
    margin-top: 0.25rem;
  }
}
