/* Scoped CSS for CMED Schedule III Landing Page */
#cmed-schedule3-wrapper {
  font-family: 'Montserrat', sans-serif;
  color: #333333;
  line-height: 1.6;
  font-size: 16px;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
}

#cmed-schedule3-wrapper *,
#cmed-schedule3-wrapper *::before,
#cmed-schedule3-wrapper *::after {
  box-sizing: border-box;
}

#cmed-schedule3-wrapper h1,
#cmed-schedule3-wrapper h2,
#cmed-schedule3-wrapper h3,
#cmed-schedule3-wrapper h4 {
  color: #11294b;
  margin-top: 0;
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

#cmed-schedule3-wrapper p {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

#cmed-schedule3-wrapper a {
  color: #00a79d;
  text-decoration: none;
  transition: color 0.2s ease;
}

#cmed-schedule3-wrapper a:hover {
  color: #11294b;
}

.s3-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.s3-section {
  padding: 80px 0;
}

.s3-section-alt {
  background-color: #f8f9fa;
}

/* Buttons */
.s3-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.s3-btn-primary {
  background-color: #11294b;
  color: #ffffff !important;
  border: 2px solid #11294b;
}

.s3-btn-primary:hover, .s3-btn-primary:focus {
  background-color: transparent;
  color: #11294b !important;
}

.s3-btn-secondary {
  background-color: transparent;
  color: #11294b !important;
  border: 2px solid #11294b;
}

.s3-btn-secondary:hover, .s3-btn-secondary:focus {
  background-color: #11294b;
  color: #ffffff !important;
}

.s3-btn-teal {
  background-color: #00a79d;
  color: #ffffff !important;
  border: 2px solid #00a79d;
}

.s3-btn-teal:hover, .s3-btn-teal:focus {
  background-color: transparent;
  color: #00a79d !important;
}

/* Hero Section */
.s3-hero {
  padding: 100px 0 80px;
  text-align: center;
  background: linear-gradient(to bottom, #f0f4f8, #ffffff);
}

.s3-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.s3-hero-sub {
  font-size: 1.25rem;
  color: #555555;
  max-width: 800px;
  margin: 0 auto 2.5rem;
}

.s3-hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.s3-hero-trust {
  font-size: 0.875rem;
  color: #777777;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* What Changed Section */
.s3-changed-content {
  max-width: 800px;
  margin: 0 auto;
}
.s3-changed-content ul {
  padding-left: 20px;
  margin-bottom: 2rem;
}
.s3-changed-content li {
  margin-bottom: 0.75rem;
}

.s3-key-point {
  background-color: #e6f6f5;
  border-left: 4px solid #00a79d;
  padding: 24px;
  border-radius: 0 8px 8px 0;
  margin: 2rem 0;
}

.s3-key-point h4 {
  color: #00a79d;
  margin-bottom: 0.5rem;
}

.s3-key-point p:last-child {
  margin-bottom: 0;
  font-weight: 600;
}

/* Comparison Cards (Section 2) */
.s3-comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 3rem 0;
}

.s3-comp-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.s3-comp-card-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.s3-card-before .s3-comp-card-badge {
  background-color: #f1f5f9;
  color: #64748b;
}

.s3-card-now {
  border-color: #00a79d;
  box-shadow: 0 10px 15px -3px rgba(0, 167, 157, 0.1);
}

.s3-card-now .s3-comp-card-badge {
  background-color: #00a79d;
  color: #ffffff;
}

.s3-comp-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.s3-disclaimer-text {
  font-size: 0.875rem;
  color: #666;
  text-align: center;
  font-style: italic;
}

/* What it Does Not Mean (Section 3) */
.s3-does-not-mean {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.s3-not-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #fee2e2;
}

.s3-icon-cross {
  color: #ef4444;
  flex-shrink: 0;
  margin-top: 2px;
}

.s3-not-item p {
  margin-bottom: 0;
  font-weight: 500;
}

.s3-not-summary {
  text-align: center;
  margin-top: 3rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #11294b;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Med vs Rec (Section 4) */
.s3-vs-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 3rem 0;
}

.s3-vs-col {
  background: #ffffff;
  border-radius: 12px;
  padding: 2.5rem;
  border: 1px solid #e2e8f0;
}

.s3-vs-col h3 {
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.s3-vs-col ul {
  list-style: none;
  padding: 0;
}

.s3-vs-col li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 1rem;
}

.s3-vs-col li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: #00a79d;
  font-weight: bold;
}

/* State Selector (Section 7) */
#cmed-schedule3-wrapper .s3-state-picker { max-width: 580px; margin: 2.5rem auto 0; }
#cmed-schedule3-wrapper .s3-state-picker label { display: block; font-weight: 700; margin-bottom: .75rem; }
#cmed-schedule3-wrapper .s3-state-picker select { box-sizing: border-box; width: 100%; min-height: 60px; padding: 1rem 2.75rem 1rem 1rem; border: 2px solid #28568b; border-radius: 10px; background: #fff; color: #112c4b; font: inherit; font-size: 1rem; }
#cmed-schedule3-wrapper .s3-state-picker select:focus-visible,
#cmed-schedule3-wrapper .s3-state-picker button:focus-visible,
#cmed-schedule3-wrapper .s3-state-directory summary:focus-visible { outline: 3px solid #00a79d; outline-offset: 4px; }
#cmed-schedule3-wrapper #s3-state-help { font-size: .875rem; margin: .85rem 0 1.25rem; }
#cmed-schedule3-wrapper #s3-view-state { width: 100%; min-height: 54px; font: inherit; font-weight: 700; cursor: pointer; }
#cmed-schedule3-wrapper #s3-view-state:disabled { opacity: .5; cursor: not-allowed; transform: none; }
#cmed-schedule3-wrapper .s3-state-directory { margin-top: 1.5rem; font-size: .9rem; }
#cmed-schedule3-wrapper .s3-state-directory summary { cursor: pointer; color: #28568b; padding: .5rem 0; }
#cmed-schedule3-wrapper .s3-state-directory ul { columns: 2; padding-left: 1.25rem; }
#cmed-schedule3-wrapper .s3-state-directory li { padding: .4rem 0; break-inside: avoid; }
#cmed-schedule3-wrapper .s3-state-directory a { color: #28568b; }
@media (max-width: 420px) { #cmed-schedule3-wrapper .s3-state-directory ul { columns: 1; } }
.s3-state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.s3-state-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.s3-state-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  border-color: #00a79d;
}

.s3-state-card h3 {
  margin-bottom: 0.5rem;
}

.s3-state-card p {
  color: #64748b;
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.s3-state-card .s3-btn {
  width: 100%;
}

/* How CMED Helps (Section 8) */
.s3-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 3rem 0;
}

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

.s3-step-num {
  width: 64px;
  height: 64px;
  background-color: #e6f6f5;
  color: #00a79d;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
}

/* FAQ */
.s3-faq-list {
  max-width: 800px;
  margin: 3rem auto 0;
}

.s3-faq-item {
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 0;
}

.s3-faq-item:first-child {
  border-top: 1px solid #e2e8f0;
}

.s3-faq-item summary {
  padding: 1.5rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #11294b;
  cursor: pointer;
  list-style: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.s3-faq-item summary::-webkit-details-marker {
  display: none;
}

.s3-faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: #00a79d;
  transition: transform 0.3s ease;
}

.s3-faq-item[open] summary::after {
  transform: rotate(45deg);
}

.s3-faq-item p {
  padding-bottom: 1.5rem;
  padding-right: 2rem;
  color: #555555;
  animation: fadeIn 0.3s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .s3-faq-item p {
    animation: none;
  }
  .s3-state-card,
  .s3-faq-item summary::after,
  .s3-btn {
    transition: none;
  }
}

/* Final CTA */
.s3-final-cta {
  background-color: #11294b;
  color: #ffffff;
  text-align: center;
  padding: 80px 0;
}

.s3-final-cta h2 {
  color: #ffffff;
}

.s3-final-cta p {
  color: #cbd5e1;
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.125rem;
}

/* Sources & Legal */
.s3-legal {
  padding: 40px 0;
  border-top: 1px solid #e2e8f0;
  font-size: 0.875rem;
  color: #64748b;
}

.s3-legal p {
  margin-bottom: 1rem;
}
.s3-legal a {
  color: #64748b;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .s3-section {
    padding: 60px 0;
  }
  .s3-hero {
    padding: 80px 0 60px;
  }
  .s3-hero-actions {
    flex-direction: column;
    padding: 0 1rem;
  }
  .s3-comparison-grid,
  .s3-vs-container,
  .s3-steps {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .s3-not-item {
    align-items: flex-start;
  }
}

/* Preview Header/Footer Styles (For Demo Only) */
.preview-header {
  font-family: 'Montserrat', sans-serif;
  position: relative;
  z-index: 100;
}
.preview-topbar {
  background-color: #11294b;
  color: #ffffff;
  padding: 8px 20px;
  font-size: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 20px;
}
.preview-topbar a {
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.preview-topbar a:hover {
  text-decoration: underline;
}
.preview-header-main {
  background: #ffffff;
  border-bottom: 1px solid #eaeaea;
  padding: 15px 20px;
}
.preview-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}
.preview-logo {
  height: 45px;
  width: auto;
}
.preview-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.preview-nav a {
  text-decoration: none;
  color: #333333;
  font-weight: 600;
  font-size: 15px;
  transition: color 0.2s;
}
.preview-nav a:hover {
  color: #00a79d;
}
.preview-nav a.schedule-btn {
  border: 2px solid #11294b;
  color: #11294b;
  padding: 8px 20px;
  border-radius: 999px;
}
.preview-nav a.schedule-btn:hover {
  background-color: #11294b;
  color: #ffffff;
}
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #11294b;
  padding: 5px;
}
.preview-footer {
  background: #11294b;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
}
.preview-footer a {
  color: #00a79d;
  text-decoration: none;
}
@media (max-width: 900px) {
  .preview-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 20px;
    border-bottom: 1px solid #eaeaea;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  }
  .preview-nav.active {
    display: flex;
  }
  .mobile-menu-btn {
    display: block;
  }
}