/**
 * Dental Fillings & Bonding — Super-Pillar Page CSS
 * hcmcdental.com/treatments/fillings/
 * Namespace: fb-
 * Author: Antigravity for HCMC Dental
 * Version: 1.0.0
 */

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

/* =====================================================
   2. DESIGN TOKENS
===================================================== */
.fb-page {
  --fb-blue:       #0077cc;
  --fb-blue-dark:  #005fa3;
  --fb-teal:       #00a89d;
  --fb-teal-dark:  #008880;
  --fb-teal-light: #e6f9f8;
  --fb-green:      #25d366;
  --fb-green-dark: #1da750;
  --fb-amber:      #f59e0b;
  --fb-red:        #dc2626;
  --fb-purple:     #7c3aed;
  --fb-gold:       #d97706;
  --fb-dark:       #0f172a;
  --fb-body-text:  #334155;
  --fb-muted:      #64748b;
  --fb-soft:       #f8fafc;
  --fb-soft2:      #f1f5f9;
  --fb-card:       #ffffff;
  --fb-border:     #e2e8f0;
  --fb-border-teal:#b2e4e1;
  --fb-shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --fb-shadow:     0 4px 16px rgba(0,0,0,.10);
  --fb-shadow-lg:  0 8px 32px rgba(0,0,0,.14);
  --fb-radius:     12px;
  --fb-radius-sm:  8px;
  --fb-radius-lg:  20px;
  --fb-font:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  /* ── Dark section backgrounds (used by pricing/FAQ/services full-width sections) ── */
  --fb-bg-dark:    #0f172a;
  --fb-bg-deep:    #0a0f28;
}

/* =====================================================
   3. PAGE RESET & GLOBAL
===================================================== */
.fb-page .ast-container,
.fb-page .ast-separate-container .ast-article-post,
.fb-page #primary,
.fb-page #content {
  max-width: 100% !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Hide Astra default breadcrumbs to prevent duplicates */
.fb-page .ast-breadcrumbs-wrapper {
  display: none !important;
}

.fb-page body,
.fb-page {
  font-family: var(--fb-font) !important;
  color: var(--fb-body-text);
  line-height: 1.7;
  background: #fff;
}

.fb-page *, .fb-page *::before, .fb-page *::after {
  box-sizing: border-box;
}

/* =====================================================
   4. LAYOUT — WRAPPER & COLUMNS
===================================================== */
.fb-outer {
  background: #fff;
  width: 100%;
}

.fb-wrap {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  position: relative;
  align-items: flex-start;
  gap: 32px;
}

.fb-main {
  flex: 1 1 0;
  min-width: 0;
  padding-top: 8px;
  padding-bottom: 60px;
}

.fb-sidebar {
  width: 320px;
  flex-shrink: 0;
  position: sticky;
  top: 100px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.fb-sidebar-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* =====================================================
   5. HERO SECTION
===================================================== */
.fb-hero {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #003d6b 45%, #00a89d 100%);
  color: #fff;
  overflow: hidden;
  padding: 0;
}

.fb-hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right;
  opacity: 0.18;
  pointer-events: none;
}

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

.fb-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px 60px;
  color: #fff;
}

.fb-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #7efff8;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
}

.fb-hero h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 12px;
  color: #fff;
  max-width: 680px;
}

.fb-hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.82);
  margin-bottom: 6px;
}

.fb-hero-url {
  font-size: .78rem;
  color: rgba(255,255,255,.5);
  font-family: monospace;
  margin-bottom: 24px;
  display: block;
}

.fb-hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,.88);
  max-width: 600px;
  line-height: 1.75;
  margin-bottom: 28px;
}

/* Trust Badges */
.fb-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.fb-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50px;
  padding: 5px 14px;
  font-size: .82rem;
  font-weight: 500;
  color: #fff;
  backdrop-filter: blur(4px);
  transition: background .2s;
}

.fb-badge:hover {
  background: rgba(255,255,255,.18);
}

.fb-badge-tick {
  color: #4ade80;
  font-size: .9rem;
}

/* Hero CTAs */
.fb-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* =====================================================
   6. BUTTONS
===================================================== */
.fb-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--fb-font);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  cursor: pointer;
  border: none;
  line-height: 1;
  white-space: nowrap;
}

.fb-btn:hover {
  transform: translateY(-2px);
}

.fb-btn-wa {
  background: var(--fb-green);
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(37,211,102,.4);
}
.fb-btn-wa:hover {
  background: var(--fb-green-dark);
  box-shadow: 0 8px 24px rgba(37,211,102,.5);
}

.fb-btn-price {
  background: rgba(255,255,255,.15);
  color: #fff !important;
  border: 2px solid rgba(255,255,255,.5);
  backdrop-filter: blur(4px);
}
.fb-btn-price:hover {
  background: rgba(255,255,255,.25);
}

.fb-btn-teal {
  background: var(--fb-teal);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(0,168,157,.35);
}
.fb-btn-teal:hover {
  background: var(--fb-teal-dark);
  box-shadow: 0 8px 24px rgba(0,168,157,.45);
}

.fb-btn-outline {
  background: transparent;
  color: var(--fb-teal) !important;
  border: 2px solid var(--fb-teal);
}
.fb-btn-outline:hover {
  background: var(--fb-teal);
  color: #fff !important;
}

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

/* =====================================================
   7. SECTION SYSTEM
===================================================== */
.fb-section {
  margin-bottom: 64px;
}

.fb-section-header {
  margin-bottom: 28px;
}

.fb-section-label {
  display: inline-block;
  background: var(--fb-teal-light);
  color: var(--fb-teal-dark);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 10px;
}

.fb-section h2 {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 800;
  color: var(--fb-dark);
  line-height: 1.25;
  margin: 0 0 12px;
}

.fb-section h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--fb-dark);
  margin: 28px 0 10px;
}

.fb-section p {
  color: var(--fb-body-text);
  line-height: 1.75;
  margin: 0 0 16px;
}

.fb-divider {
  border: none;
  border-top: 1px solid var(--fb-border);
  margin: 64px 0;
}

/* Section with teal left border accent */
.fb-section-accent {
  border-left: 4px solid var(--fb-teal);
  padding-left: 20px;
  margin-bottom: 28px;
}

/* =====================================================
   8. BREADCRUMB
===================================================== */
.fb-breadcrumb {
  background: #f0f4f8;
  border-bottom: 1px solid var(--fb-border);
  padding: 10px 20px;
}

.fb-breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  font-size: 13px;
  color: var(--fb-muted);
}

.fb-breadcrumb-inner a {
  color: var(--fb-teal);
  text-decoration: none;
}
.fb-breadcrumb-inner a:hover { text-decoration: underline; }
.fb-breadcrumb-inner span { margin: 0 6px; opacity: .5; }

/* =====================================================
   9. CARDS
===================================================== */
.fb-card {
  background: var(--fb-card);
  border: 1px solid var(--fb-border);
  border-radius: var(--fb-radius);
  padding: 28px;
  box-shadow: var(--fb-shadow-sm);
  transition: transform .2s, box-shadow .2s;
}

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

.fb-card-teal {
  border-top: 4px solid var(--fb-teal);
}

.fb-card-blue {
  border-top: 4px solid var(--fb-blue);
}

.fb-card-amber {
  border-top: 4px solid var(--fb-amber);
}

/* =====================================================
   10. INFOGRAPHIC / IMAGE CONTAINERS
===================================================== */
.fb-infographic {
  margin: 32px 0;
  text-align: center;
}

.fb-infographic img {
  max-width: 100%;
  height: auto;
  border-radius: var(--fb-radius);
  box-shadow: var(--fb-shadow);
}

.fb-infographic-caption {
  margin-top: 10px;
  font-size: .82rem;
  color: var(--fb-muted);
  font-style: italic;
}

/* =====================================================
   11. CHECKLIST (Self-Diagnosis Section)
===================================================== */
.fb-checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0;
}

.fb-check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--fb-soft);
  border: 1px solid var(--fb-border);
  border-radius: var(--fb-radius-sm);
  padding: 14px 16px;
  transition: border-color .2s, background .2s;
  cursor: pointer;
}

.fb-check-item:hover {
  border-color: var(--fb-teal);
  background: var(--fb-teal-light);
}

.fb-check-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid var(--fb-amber);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  color: var(--fb-amber);
  margin-top: 1px;
}

.fb-check-text {
  font-size: .9rem;
  color: var(--fb-body-text);
  line-height: 1.5;
}

.fb-check-cta {
  background: linear-gradient(135deg, #fff7ed, #fef3c7);
  border: 2px solid var(--fb-amber);
  border-radius: var(--fb-radius);
  padding: 20px 24px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.fb-check-cta p {
  margin: 0;
  font-weight: 600;
  color: var(--fb-dark);
}

/* =====================================================
   12. COMPARISON TABLES
===================================================== */
.fb-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 24px 0;
  border-radius: var(--fb-radius);
  box-shadow: var(--fb-shadow-sm);
  border: 1px solid var(--fb-border);
}

.fb-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: .9rem;
  background: #fff;
}

.fb-table thead {
  background: linear-gradient(135deg, var(--fb-dark) 0%, #1e3a5f 100%);
  color: #fff;
}

.fb-table thead th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .03em;
  white-space: nowrap;
}

.fb-table thead th:first-child {
  border-radius: var(--fb-radius-sm) 0 0 0;
}

.fb-table tbody tr {
  border-bottom: 1px solid var(--fb-border);
  transition: background .15s;
}

.fb-table tbody tr:last-child { border-bottom: none; }
.fb-table tbody tr:hover { background: var(--fb-soft); }

.fb-table td {
  padding: 12px 16px;
  vertical-align: top;
}

.fb-table td:first-child {
  font-weight: 600;
  color: var(--fb-dark);
  white-space: nowrap;
}

.fb-table .fb-table-highlight {
  background: var(--fb-teal-light);
}

.fb-table .fb-table-highlight td:first-child {
  color: var(--fb-teal-dark);
}

.fb-price-tag {
  font-weight: 700;
  color: var(--fb-teal-dark);
}

/* =====================================================
   13. PROCEDURE STEPS
===================================================== */
.fb-steps {
  counter-reset: fb-step;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 0;
  margin: 24px 0;
}

.fb-step {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--fb-border);
  position: relative;
}

.fb-step:last-child { border-bottom: none; }

.fb-step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--fb-teal), var(--fb-blue));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 4px 12px rgba(0,168,157,.3);
}

.fb-step-body { flex: 1 1 0; }

.fb-step-body h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--fb-dark);
  margin: 0 0 6px;
}

.fb-step-body p {
  font-size: .9rem;
  color: var(--fb-body-text);
  margin: 0;
}

/* =====================================================
   14. FAQ ACCORDION
===================================================== */
.fb-faq-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.fb-faq-cat-btn {
  padding: 6px 16px;
  border-radius: 50px;
  border: 2px solid var(--fb-border);
  background: #fff;
  font-size: .82rem;
  font-weight: 600;
  color: var(--fb-muted);
  cursor: pointer;
  transition: all .2s;
  font-family: var(--fb-font);
}

.fb-faq-cat-btn.active,
.fb-faq-cat-btn:hover {
  background: var(--fb-teal);
  border-color: var(--fb-teal);
  color: #fff;
}

.fb-faq-list { margin: 0; padding: 0; list-style: none; }

/* ── Light-theme FAQ items (used in main content area if any) ── */
.fb-main .fb-faq-item {
  border: 1px solid var(--fb-border);
  border-radius: var(--fb-radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow .2s;
}

.fb-main .fb-faq-item:hover {
  box-shadow: var(--fb-shadow-sm);
}

/* ── Light-theme FAQ button (only in .fb-main) ── */
.fb-main .fb-faq-q {
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--fb-font);
  font-size: .95rem;
  font-weight: 600;
  color: var(--fb-dark);
  line-height: 1.5;
  transition: background .15s;
}

.fb-main .fb-faq-q:hover { background: var(--fb-soft); }

.fb-main .fb-faq-q[aria-expanded="true"] { background: var(--fb-teal-light); }

.fb-faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--fb-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--fb-teal);
  transition: transform .25s, background .2s;
  font-weight: 300;
  line-height: 1;
}

.fb-faq-q[aria-expanded="true"] .fb-faq-icon {
  transform: rotate(45deg);
  background: var(--fb-teal);
  color: #fff;
}

.fb-faq-a {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
}

.fb-faq-a.open {
  max-height: 600px;
  padding: 4px 20px 18px;
}

.fb-faq-a p {
  font-size: .9rem;
  color: var(--fb-body-text);
  margin: 0;
  line-height: 1.75;
}

/* =====================================================
   15. PRICING TABLE
===================================================== */
.fb-pricing-header {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0;
  background: linear-gradient(135deg, var(--fb-dark) 0%, #1e3a5f 100%);
  border-radius: var(--fb-radius) var(--fb-radius) 0 0;
  color: #fff;
  padding: 16px 20px;
  font-weight: 700;
  font-size: .85rem;
}

.fb-pricing-header span:not(:first-child) {
  text-align: right;
}

.fb-pricing-rows { border: 1px solid var(--fb-border); border-top: none; border-radius: 0 0 var(--fb-radius) var(--fb-radius); overflow: hidden; }

.fb-pricing-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0;
  padding: 12px 12px;
  border-bottom: 1px solid var(--fb-border);
  align-items: center;
  transition: background .15s;
}

.fb-pricing-row:last-child { border-bottom: none; }
.fb-pricing-row:hover { background: var(--fb-soft); }

.fb-pricing-row .fb-price-regular {
  text-align: right;
  color: var(--fb-muted);
  text-decoration: line-through;
  font-size: .85rem;
  min-width: 80px;
}

.fb-pricing-row .fb-price-wa {
  text-align: right;
  font-weight: 700;
  color: var(--fb-teal-dark);
  min-width: 90px;
}

.fb-price-wa-badge {
  background: #f0fdf4;
  border-left: 3px solid var(--fb-green);
  padding: 2px 8px;
  border-radius: 0 4px 4px 0;
  font-size: .75rem;
  font-weight: 700;
  color: var(--fb-green-dark);
}

.fb-pricing-note {
  background: var(--fb-soft);
  border: 1px solid var(--fb-border);
  border-radius: 0 0 var(--fb-radius) var(--fb-radius);
  padding: 14px 20px;
  font-size: .82rem;
  color: var(--fb-muted);
  margin-top: -1px;
}

.fb-pricing-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* =====================================================
   16. RELATED SERVICES GRID
===================================================== */
.fb-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.fb-service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  background: var(--fb-card);
  border: 1px solid var(--fb-border);
  border-radius: var(--fb-radius);
  padding: 18px 16px;
  text-decoration: none !important;
  color: var(--fb-body-text) !important;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.fb-service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--fb-shadow);
  border-color: var(--fb-teal);
  color: var(--fb-dark) !important;
}

.fb-service-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.fb-service-name {
  font-weight: 700;
  font-size: .9rem;
  color: var(--fb-dark);
  line-height: 1.3;
}

.fb-service-desc {
  font-size: .78rem;
  color: var(--fb-muted);
  line-height: 1.4;
}

/* =====================================================
   17. TESTIMONIALS
===================================================== */
.fb-testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.fb-testimonial {
  background: var(--fb-card);
  border: 1px solid var(--fb-border);
  border-radius: var(--fb-radius);
  padding: 24px;
  position: relative;
  box-shadow: var(--fb-shadow-sm);
}

.fb-testimonial::before {
  content: '"';
  position: absolute;
  top: 12px;
  left: 20px;
  font-size: 4rem;
  line-height: 1;
  color: var(--fb-teal);
  opacity: .15;
  font-family: Georgia, serif;
}

.fb-testimonial-stars {
  color: #fbbf24;
  font-size: 1rem;
  margin-bottom: 10px;
}

.fb-testimonial-text {
  font-size: .9rem;
  color: var(--fb-body-text);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 16px;
}

.fb-testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fb-testimonial-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--fb-teal), var(--fb-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  flex-shrink: 0;
}

.fb-testimonial-name {
  font-weight: 700;
  font-size: .85rem;
  color: var(--fb-dark);
}

.fb-testimonial-country {
  font-size: .78rem;
  color: var(--fb-muted);
}

/* =====================================================
   18. DR CUONG PROFILE CARD
===================================================== */
.fb-dr-card {
  background: linear-gradient(135deg, #0f172a 0%, #003d6b 100%);
  border-radius: var(--fb-radius);
  padding: 28px;
  color: #fff;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin: 24px 0;
}

.fb-dr-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--fb-teal);
  flex-shrink: 0;
}

.fb-dr-name {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 0 4px;
}

.fb-dr-title {
  font-size: .82rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 8px;
}

.fb-dr-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fb-dr-spec {
  background: rgba(255,255,255,.12);
  border-radius: 50px;
  padding: 3px 10px;
  font-size: .75rem;
  color: #7efff8;
}

/* =====================================================
   19. ANXIETY SECTION (callout style)
===================================================== */
.fb-anxiety-box {
  background: linear-gradient(135deg, #fff7ed, #fef9ec);
  border: 2px solid #fed7aa;
  border-radius: var(--fb-radius);
  padding: 28px;
  margin: 24px 0;
}

.fb-anxiety-box h3 {
  color: #92400e;
  margin-top: 0;
}

.fb-anxiety-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.fb-anxiety-list li {
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  font-size: .9rem;
  color: var(--fb-body-text);
}

.fb-anxiety-list li::before {
  content: '✅';
  position: absolute;
  left: 0;
}

/* =====================================================
   20. DECISION TREE
===================================================== */
.fb-decision-visual {
  margin: 24px 0;
  overflow-x: auto;
}

.fb-decision-visual img {
  max-width: 100%;
  height: auto;
  border-radius: var(--fb-radius);
  box-shadow: var(--fb-shadow);
}

/* =====================================================
   21. INFO BOXES (callouts)
===================================================== */
.fb-info-box {
  background: var(--fb-teal-light);
  border-left: 4px solid var(--fb-teal);
  border-radius: 0 var(--fb-radius-sm) var(--fb-radius-sm) 0;
  padding: 16px 20px;
  margin: 20px 0;
}

.fb-info-box p { margin: 0; font-size: .9rem; color: var(--fb-dark); }
.fb-info-box strong { color: var(--fb-teal-dark); }

.fb-warning-box {
  background: #fff7ed;
  border-left: 4px solid var(--fb-amber);
  border-radius: 0 var(--fb-radius-sm) var(--fb-radius-sm) 0;
  padding: 16px 20px;
  margin: 20px 0;
}

.fb-warning-box p { margin: 0; font-size: .9rem; color: var(--fb-dark); }

/* =====================================================
   22. SIDEBAR COMPONENTS
===================================================== */
.fb-sidebar-cta-box {
  background: linear-gradient(135deg, #003d6b 0%, var(--fb-teal-dark) 100%);
  border-radius: var(--fb-radius);
  padding: 24px;
  color: #fff;
  text-align: center;
}

.fb-sidebar-cta-box h3 {
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 6px;
  color: #fff;
}

.fb-sidebar-cta-box p {
  font-size: .82rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 16px;
}

.fb-sidebar-cta-box .fb-btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 10px;
}

.fb-sidebar-price-box {
  background: var(--fb-card);
  border: 1px solid var(--fb-border);
  border-radius: var(--fb-radius);
  padding: 20px;
}

.fb-sidebar-price-box h4 {
  font-size: .85rem;
  font-weight: 700;
  color: var(--fb-dark);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--fb-border);
}

.fb-mini-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px dashed var(--fb-border);
  font-size: .82rem;
}

.fb-mini-price-row:last-of-type { border-bottom: none; }
.fb-mini-price-row span:first-child { color: var(--fb-body-text); }
.fb-mini-price-row span:last-child { font-weight: 700; color: var(--fb-teal-dark); }

.fb-sidebar-toc {
  background: var(--fb-card);
  border: 1px solid var(--fb-border);
  border-radius: var(--fb-radius);
  padding: 20px;
}

.fb-sidebar-toc h4 {
  font-size: .85rem;
  font-weight: 700;
  color: var(--fb-dark);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--fb-border);
}

.fb-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fb-toc-list li a {
  display: block;
  padding: 6px 10px;
  border-radius: var(--fb-radius-sm);
  font-size: .8rem;
  color: var(--fb-body-text);
  text-decoration: none;
  transition: background .15s, color .15s;
  line-height: 1.4;
}

.fb-toc-list li a:hover,
.fb-toc-list li.active a {
  background: var(--fb-teal-light);
  color: var(--fb-teal-dark);
}

.fb-sidebar-dr {
  background: linear-gradient(135deg, #0f172a, #1e3a5f);
  border-radius: var(--fb-radius);
  padding: 20px;
  color: #fff;
  text-align: center;
}

.fb-sidebar-dr img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--fb-teal);
  margin-bottom: 10px;
}

.fb-sidebar-dr-name {
  font-weight: 800;
  font-size: .9rem;
  margin-bottom: 4px;
}

.fb-sidebar-dr-title {
  font-size: .75rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 12px;
}

/* =====================================================
   23. HERO HORIZONTAL RULE
===================================================== */
.fb-hero-bottom-stripe {
  background: rgba(0,0,0,.2);
  padding: 12px 20px;
}
.fb-hero-bottom-stripe-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}
.fb-hero-stat {
  font-size: .82rem;
  color: rgba(255,255,255,.75);
  display: flex;
  align-items: center;
  gap: 6px;
}
.fb-hero-stat strong {
  color: #fff;
  font-weight: 700;
}

/* =====================================================
   24. SECTION CTA STRIPS
===================================================== */
.fb-cta-strip {
  background: linear-gradient(135deg, var(--fb-teal-light), #e0f2fe);
  border: 1px solid var(--fb-border-teal);
  border-radius: var(--fb-radius);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin: 32px 0;
}

.fb-cta-strip-text h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--fb-dark);
  margin: 0 0 4px;
}

.fb-cta-strip-text p {
  font-size: .85rem;
  color: var(--fb-muted);
  margin: 0;
}

.fb-cta-strip-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* =====================================================
   25. FOOTER CTA SECTION
===================================================== */
.fb-footer-cta {
  background: linear-gradient(135deg, #0f172a 0%, #003d6b 50%, #00a89d 100%);
  color: #fff;
  padding: 56px 20px;
  text-align: center;
  margin-top: 0;
}

.fb-footer-cta h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px;
}

.fb-footer-cta p {
  color: rgba(255,255,255,.75);
  font-size: 1rem;
  margin-bottom: 28px;
}

.fb-footer-cta-btns {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* =====================================================
   26. MEDICAL DISCLAIMER
===================================================== */
.fb-disclaimer {
  background: var(--fb-soft);
  border: 1px solid var(--fb-border);
  border-radius: var(--fb-radius-sm);
  padding: 16px 20px;
  font-size: .78rem;
  color: var(--fb-muted);
  line-height: 1.6;
  margin: 48px 0 0;
}

/* =====================================================
   27. ANIMATIONS
===================================================== */
@keyframes fb-fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fb-animate {
  animation: fb-fadeUp .5s ease forwards;
}

/* =====================================================
   28. RESPONSIVE — TABLET (< 1024px)
===================================================== */
@media (max-width: 1024px) {
  .fb-sidebar { width: 280px; }
  .fb-wrap { gap: 24px; }
  .fb-checklist { grid-template-columns: 1fr; }
}

/* =====================================================
   29. RESPONSIVE — MOBILE (< 768px)
===================================================== */
@media (max-width: 768px) {
  .fb-wrap {
    display: block;
    padding: 0 16px 40px;
  }

  .fb-sidebar {
    width: 100%;
    order: -1; /* Show sidebar above content on mobile - for the mini CTA only */
    display: none; /* Hide full sidebar on mobile to avoid duplication */
  }

  .fb-hero-inner { padding: 36px 16px 32px; }

  .fb-hero h1 { font-size: clamp(1.5rem, 6vw, 2rem); }

  .fb-trust-badges { gap: 7px; }
  .fb-badge { font-size: .75rem; padding: 4px 10px; }

  .fb-hero-ctas { flex-direction: column; }
  .fb-btn { width: 100%; justify-content: center; }

  .fb-checklist { grid-template-columns: 1fr; }

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

  .fb-testimonials { grid-template-columns: 1fr; }

  .fb-dr-card { flex-direction: column; align-items: center; text-align: center; }

  .fb-cta-strip { flex-direction: column; text-align: center; }

  .fb-pricing-ctas { flex-direction: column; }
  .fb-pricing-ctas .fb-btn { justify-content: center; }

  .fb-footer-cta-btns { flex-direction: column; align-items: center; }
  .fb-footer-cta-btns .fb-btn { width: 100%; max-width: 340px; }

  .fb-table { font-size: .8rem; }
  .fb-table td, .fb-table th { padding: 10px 12px; }

  .fb-section h2 { font-size: 1.4rem; }
}

/* =====================================================
   30. RESPONSIVE — SMALL MOBILE (< 480px)
===================================================== */
@media (max-width: 480px) {
  .fb-services-grid { grid-template-columns: 1fr; }
  .fb-hero-stat { font-size: .75rem; }
  .fb-breadcrumb-inner { font-size: .75rem; }
}

/* =============================================================
   PHASE 4B / 4C EXTENSIONS
   ============================================================= */

/* ── Full-width outer wrapper for pricing/FAQ/services ── */
.fb-outer-full {
  width: 100%;
  background: var(--fb-bg-deep);
}

/* ── Section centered header ── */
.fb-section-header.fb-centered { text-align: center; max-width: 780px; margin: 0 auto 40px; }
.fb-section-header.fb-centered h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); }
.fb-section-sub { font-size: .95rem; color: rgba(255,255,255,.7); margin-top: 10px; }

/* ── Anxiety box ── */
.fb-anxiety-box {
  background: linear-gradient(135deg, rgba(126,255,248,.08) 0%, rgba(0,194,255,.05) 100%);
  border: 1px solid rgba(126,255,248,.2);
  border-radius: 16px;
  padding: 28px 32px;
  margin: 40px 0 0;
}
.fb-anxiety-box h3 { color: var(--fb-teal); margin-bottom: 12px; }
.fb-anxiety-list { margin: 12px 0 20px 16px; color: rgba(255,255,255,.85); }
.fb-anxiety-list li { margin-bottom: 6px; }

/* ── Bug 5: Mobile floating CTA — permanently hidden (theme has its own button) ── */
.fb-mobile-float,
[class*="fb-mobile-float"],
#fb-mobile-float-wa {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

@media (max-width: 768px) {
  .fb-mobile-float { display: none !important; }
  .fb-main, body.fb-page { padding-bottom: 0 !important; }
  /* Bug 6: ensure the full-width sections don't blowout mobile width */
  .fb-outer-full {
    width: 100%;
    overflow-x: hidden;
  }
}

/* ── Pricing section (now inside fb-main — uses negative side margins to extend dark bg) ── */
.fb-pricing-section {
  background: linear-gradient(160deg, #0d1435 0%, #0a0f28 50%, #0d1435 100%);
  padding: 40px;
  border-radius: 24px;
  margin-bottom: 32px;
}
.fb-pricing-container { max-width: 100%; margin: 0 auto; padding: 0; }
.fb-price-banner {
  background: linear-gradient(135deg, rgba(126,255,248,.12) 0%, rgba(0,194,255,.08) 100%);
  border: 1px solid rgba(126,255,248,.25);
  border-radius: 12px;
  padding: 16px 24px;
  margin-bottom: 40px;
  font-size: .9rem;
  color: rgba(255,255,255,.85);
  text-align: center;
}
.fb-price-banner a { color: var(--fb-teal); text-decoration: none; font-weight: 600; margin-left: 8px; }
.fb-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.fb-price-table {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.fb-price-table:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.fb-price-table.fb-price-featured {
  border-color: rgba(126,255,248,.4);
  background: linear-gradient(160deg, rgba(126,255,248,.08) 0%, rgba(0,194,255,.05) 100%);
  transform: scale(1.02);
}
.fb-price-table.fb-price-featured:hover { transform: scale(1.02) translateY(-4px); }
.fb-price-table-header { padding: 24px 24px 16px; }
.fb-price-table-header h3 { margin: 0 0 8px; font-size: 1.15rem; color: #fff; }
.fb-price-table-badge {
  background: rgba(126,255,248,.15);
  color: var(--fb-teal);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 3px 10px;
  border-radius: 20px;
}
.fb-price-rows { padding: 0 24px; }
.fb-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
  font-size: .875rem;
  color: rgba(255,255,255,.8);
  gap: 12px;
}
.fb-price-row:last-child { border-bottom: none; }
.fb-price-row-featured { background: rgba(126,255,248,.06); margin: 0 -24px; padding: 12px 24px; }
.fb-price { font-weight: 700; color: var(--fb-teal); white-space: nowrap; }
.fb-price-table .fb-btn { display: block; margin: 20px 24px 24px; text-align: center; }
.fb-pricing-note {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  font-size: .875rem;
  color: rgba(255,255,255,.65);
}
.fb-pricing-note .fb-btn { margin-top: 16px; }

@media (max-width: 900px) {
  .fb-pricing-grid { grid-template-columns: 1fr; }
  .fb-price-table.fb-price-featured { transform: none; }
  .fb-price-table.fb-price-featured:hover { transform: translateY(-4px); }
}

/* ── FAQ section (now inside fb-main column) ── */
.fb-faq-section {
  background: #0f172a;
  padding: 40px;
  border-radius: 24px;
  margin-bottom: 32px;
}
.fb-faq-container { max-width: 100%; margin: 0 auto; padding: 0; }
.fb-faq-category { margin-bottom: 40px; }
.fb-faq-cat-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--fb-teal);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(126,255,248,.2);
}
.fb-faq-group { display: flex; flex-direction: column; gap: 4px; }

/* ── Dark section FAQ items (inside .fb-faq-section / .fb-outer-full) ── */
.fb-faq-section .fb-faq-item {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 8px;
  /* Override the light-theme rule that sets background:#fff */
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.fb-faq-section .fb-faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: rgba(255,255,255,.04) !important;
  border: 1px solid rgba(255,255,255,.07) !important;
  border-radius: 12px;
  color: #ffffff !important;
  font-size: .95rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background .2s, border-color .2s, border-radius .2s;
  font-family: var(--fb-font);
  line-height: 1.5;
}
.fb-faq-section .fb-faq-q:hover { background: rgba(126,255,248,.08) !important; border-color: rgba(126,255,248,.2) !important; }
.fb-faq-section .fb-faq-item.is-open .fb-faq-q {
  background: rgba(126,255,248,.1) !important;
  border-color: rgba(126,255,248,.3) !important;
  border-radius: 12px 12px 0 0;
}
.fb-faq-section .fb-faq-icon {
  font-size: 1.4rem;
  font-weight: 300;
  color: #00a89d;
  min-width: 24px;
  text-align: center;
  transition: transform .3s;
  /* Reset the light-theme icon styles */
  width: auto;
  height: auto;
  background: transparent;
  border-radius: 0;
  flex-shrink: 0;
}
.fb-faq-section .fb-faq-item.is-open .fb-faq-icon { transform: rotate(45deg); background: transparent; color: #7efff8; }
.fb-faq-section .fb-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  background: rgba(126,255,248,.04);
  border: 1px solid rgba(126,255,248,.15);
  border-top: none;
  border-radius: 0 0 12px 12px;
}
.fb-faq-section .fb-faq-a p { padding: 16px 20px 20px; margin: 0; font-size: .88rem; color: rgba(255,255,255,.95) !important; line-height: 1.7; }
.fb-faq-cta {
  text-align: center;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,.07);
}
.fb-faq-cta p { color: rgba(255,255,255,.7); margin-bottom: 16px; }

/* ── Services section (now inside fb-main column) ── */
.fb-services-section {
  background: linear-gradient(160deg, #0a0f28 0%, #0d1435 100%);
  padding: 40px;
  border-radius: 24px;
  margin-bottom: 32px;
}
.fb-services-container { max-width: 100%; margin: 0 auto; padding: 0; }

/* ── Final CTA banner ── */
.fb-final-cta {
  background: linear-gradient(135deg, #1a3a5c 0%, #0d1f3d 40%, #0a1628 100%);
  border-top: 1px solid rgba(126,255,248,.2);
  padding: 80px 24px;
  text-align: center;
}
.fb-final-cta-inner { max-width: 900px; margin: 0 auto; }
.fb-final-cta h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); margin-bottom: 16px; color: #fff; }
.fb-final-cta p { font-size: 1rem; color: rgba(255,255,255,.75); margin-bottom: 32px; max-width: 680px; margin-left: auto; margin-right: auto; }
.fb-final-cta-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  margin-bottom: 40px;
  font-size: .82rem;
  color: rgba(255,255,255,.65);
}
.fb-final-cta-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.fb-btn-lg { padding: 16px 28px !important; font-size: 1rem !important; }
.fb-final-trust-bar {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: .8rem;
  color: rgba(255,255,255,.45);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.fb-final-trust-bar a { color: rgba(255,255,255,.55); text-decoration: none; }

/* ── Decision tree visual ── */
.fb-decision-visual { margin: 32px 0; text-align: center; }
.fb-decision-visual img { max-width: 100%; height: auto; border-radius: 16px; }

/* ── btn-teal variant ── */
.fb-btn-teal {
  background: linear-gradient(135deg, rgba(126,255,248,.2) 0%, rgba(0,194,255,.15) 100%);
  border: 1px solid rgba(126,255,248,.4);
  color: var(--fb-teal) !important;
}
.fb-btn-teal:hover {
  background: linear-gradient(135deg, rgba(126,255,248,.3) 0%, rgba(0,194,255,.25) 100%);
  border-color: rgba(126,255,248,.7);
}

/* ── Bug 1: Pricing, FAQ & Services section text contrast fixes ── */
/* These sections have dark backgrounds but global .fb-section h2 sets color: var(--fb-dark) */
.fb-pricing-section .fb-section-header h2,
.fb-faq-section .fb-section-header h2,
.fb-services-section .fb-section-header h2 {
  color: #ffffff !important;
}

.fb-pricing-section .fb-section-sub,
.fb-faq-section .fb-section-sub,
.fb-services-section .fb-section-sub {
  color: rgba(255, 255, 255, 0.92) !important;
}

/* Section label badges inside dark sections should also be visible */
.fb-pricing-section .fb-section-label,
.fb-faq-section .fb-section-label,
.fb-services-section .fb-section-label {
  background: rgba(126,255,248,.15) !important;
  color: #7efff8 !important;
}

/* Service cards inside .fb-services-section need white text on dark bg */
.fb-services-section .fb-service-card {
  background: rgba(255,255,255,.05) !important;
  border-color: rgba(255,255,255,.1) !important;
  color: rgba(255,255,255,.9) !important;
}
.fb-services-section .fb-service-card:hover {
  background: rgba(126,255,248,.08) !important;
  border-color: rgba(126,255,248,.3) !important;
  color: #ffffff !important;
}
.fb-services-section .fb-service-name {
  color: #ffffff !important;
}
.fb-services-section .fb-service-desc {
  color: rgba(255,255,255,.7) !important;
}
.fb-services-section .fb-service-link {
  color: #00a89d !important;
}

/* Bug 6 final: mobile-level overflow prevention */
@media (max-width: 768px) {
  .fb-outer,
  .fb-outer-full,
  body.fb-page {
    overflow-x: hidden;
    width: 100%;
  }
  .fb-pricing-grid {
    grid-template-columns: 1fr !important;
  }
  .fb-price-table.fb-price-featured {
    transform: none !important;
  }
  /* On mobile: reset negative margins (they'd cause blowout), use zero margin and safe padding */
  .fb-pricing-section,
  .fb-faq-section,
  .fb-services-section {
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 16px !important;
    padding: 40px 20px !important;
  }
}
