/* ==========================================================================
   Dedicated Flagship Money Page Styles: Trồng Răng Implant 3D (/trong-rang-implant/)
   Mobile-first, WCAG AA contrast, zero horizontal overflow, GPU-smooth interactions
   ========================================================================== */

.bs-imp-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}

.bs-imp-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.bs-imp-kpi {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 13px 12px;
  backdrop-filter: blur(6px);
}

.bs-imp-kpi strong {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: #6ee7b7;
  line-height: 1.25;
  margin-bottom: 4px;
}

.bs-imp-kpi span {
  display: block;
  font-size: 12.5px;
  color: #ecfdf5;
  line-height: 1.35;
}

.bs-imp-hero-frame {
  background: rgba(5, 46, 22, 0.72);
  border: 1.5px solid rgba(110, 231, 183, 0.38);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
}

.bs-imp-hero-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  cursor: zoom-in;
}

.bs-imp-hero-cap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: rgba(4, 47, 46, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.bs-imp-hero-cap strong {
  display: block;
  font-size: 14px;
  color: #fff;
}

.bs-imp-hero-cap span {
  display: block;
  font-size: 12.5px;
  color: #a7f3d0;
}

.bs-imp-hero-cap small {
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.18);
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: #fde68a;
  font-weight: 700;
  font-size: 11.5px;
}

/* Sticky Section Jump Bar (Khối 02) */
.bs-imp-subnav-wrap {
  position: sticky;
  top: 66px;
  z-index: 88;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bs-border);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.bs-imp-subnav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.bs-imp-subnav::-webkit-scrollbar {
  display: none;
}

.bs-imp-subnav a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--bs-navy);
  background: #f1f5f9;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.bs-imp-subnav a:hover,
.bs-imp-subnav a.is-active {
  background: #064e3b;
  color: #fff;
}

.bs-imp-subnav a.bs-imp-subnav__cta {
  background: #fffbeb;
  border-color: #f59e0b;
  color: #92400e;
}

.bs-imp-subnav a.bs-imp-subnav__cta:hover {
  background: #d97706;
  color: #fff;
}

/* Clinical Scorecard 4 Columns (Khối 04) */
.bs-imp-scorecard {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.bs-imp-score {
  background: #f8fafc;
  border: 1px solid var(--bs-border);
  border-top: 4px solid #059669;
  border-radius: 14px;
  padding: 18px;
}

.bs-imp-score__num {
  font-size: 24px;
  font-weight: 800;
  color: #064e3b;
  line-height: 1.2;
}

.bs-imp-score__lbl {
  font-size: 14px;
  font-weight: 700;
  color: var(--bs-navy);
  margin: 6px 0 4px;
}

.bs-imp-score p {
  font-size: 13px;
  color: var(--bs-muted);
  margin: 0;
  line-height: 1.5;
}

/* Visual Split Figure Blocks */
.bs-imp-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 30px;
  align-items: center;
}

.bs-imp-figure {
  margin: 0;
  background: #fff;
  border: 1px solid var(--bs-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.bs-imp-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  cursor: zoom-in;
}

.bs-imp-figure figcaption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--bs-muted);
  background: #f8fafc;
  border-top: 1px solid var(--bs-border);
  line-height: 1.5;
}

/* Yes / No Eligibility Grid (Khối 05) */
.bs-imp-yn-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 28px;
}

.bs-imp-yn-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--bs-border);
}

.bs-imp-yn-card--yes {
  border-top: 4px solid #059669;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 42%);
}

.bs-imp-yn-card--no {
  border-top: 4px solid #d97706;
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 42%);
}

.bs-imp-yn-card h3 {
  font-size: 19px;
  margin: 8px 0 14px;
}

.bs-imp-yn-card ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  font-size: 15px;
  line-height: 1.6;
}

/* 4-Step Timeline Cards (Khối 07) */
.bs-imp-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.bs-imp-step {
  background: #fff;
  border: 1px solid var(--bs-border);
  border-radius: 16px;
  padding: 22px 18px;
  position: relative;
}

.bs-imp-step__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #065f46;
  font-size: 12.5px;
  font-weight: 800;
  margin-bottom: 10px;
}

.bs-imp-step h3 {
  font-size: 17px;
  margin: 0 0 8px;
}

.bs-imp-step p {
  font-size: 14px;
  color: var(--bs-muted);
  margin: 0;
  line-height: 1.55;
}

/* Interactive 2-Stage Implant Calculator (Khối 08) */
.bs-imp-calc {
  margin-top: 28px;
  background: linear-gradient(145deg, #052e16 0%, #064e3b 100%);
  color: #fff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 18px 40px rgba(5, 46, 22, 0.22);
}

.bs-imp-calc-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
}

.bs-imp-calc label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #a7f3d0;
  margin-bottom: 6px;
}

.bs-imp-calc select,
.bs-imp-calc input[type="number"] {
  width: 100%;
  min-height: 46px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 700;
}

.bs-imp-calc-result {
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid rgba(110, 231, 183, 0.3);
  border-radius: 16px;
  padding: 22px;
}

.bs-imp-calc-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 6px 0;
  font-size: 14px;
  color: #e2e8f0;
}

.bs-imp-calc-total {
  font-size: 28px;
  font-weight: 800;
  color: #6ee7b7;
}

/* Included vs Add-on Guarantee Grid */
.bs-imp-inc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

/* Interactive 30s Missing Tooth & Bone Loss Triage (Khối 13) */
.bs-imp-triage {
  background: #fff;
  border: 2px solid rgba(5, 150, 105, 0.3);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}

.bs-imp-triage-qgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

.bs-imp-triage-q {
  background: #f8fafc;
  border: 1px solid var(--bs-border);
  border-radius: 14px;
  padding: 16px;
}

.bs-imp-triage-q h3 {
  font-size: 15.5px;
  margin: 0 0 10px;
}

.bs-imp-triage-q label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 0;
  font-size: 14px;
  cursor: pointer;
  line-height: 1.45;
}

.bs-imp-triage-out {
  margin-top: 18px;
  padding: 20px;
  border-radius: 14px;
  background: #f0fdf4;
  border: 1px solid #86efac;
}

/* Certificates & Remote 3-Photo Zalo Guide */
.bs-imp-certs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.bs-imp-cert-card {
  display: flex;
  gap: 14px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--bs-border);
  border-radius: 14px;
  padding: 14px;
}

.bs-imp-cert-card img {
  width: 112px;
  height: 82px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--bs-border);
  flex-shrink: 0;
  cursor: zoom-in;
}

.bs-imp-photo-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0 24px;
}

.bs-imp-photo-step {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  padding: 16px;
}

.bs-imp-photo-step strong {
  display: block;
  color: #fde68a;
  font-size: 15px;
  margin-bottom: 6px;
}

.bs-imp-photo-step span {
  display: block;
  color: #ecfdf5;
  font-size: 13.5px;
  line-height: 1.5;
}

/* 5-Branch Silo Directory */
.bs-imp-branch {
  margin-bottom: 26px;
}

.bs-imp-branch__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e2e8f0;
}

.bs-imp-branch__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.bs-imp-spoke-card {
  background: #fff;
  border: 1px solid var(--bs-border);
  border-radius: 12px;
  padding: 15px 16px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.bs-imp-spoke-card:hover {
  border-color: #059669;
  transform: translateY(-2px);
}

.bs-imp-spoke-card h4 {
  font-size: 15px;
  margin: 0 0 6px;
  line-height: 1.4;
}

.bs-imp-spoke-card h4 a {
  color: var(--bs-navy);
  text-decoration: none;
}

.bs-imp-spoke-card h4 a:hover {
  color: #059669;
}

.bs-imp-spoke-card p {
  font-size: 13px;
  color: var(--bs-muted);
  margin: 0;
  line-height: 1.45;
}

/* Responsive Breakpoints: Tablet & Mobile (360px - 1024px) */
@media (max-width: 1024px) {
  .bs-imp-hero-grid,
  .bs-imp-split,
  .bs-imp-calc-grid {
    grid-template-columns: 1fr;
  }

  .bs-imp-timeline,
  .bs-imp-scorecard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bs-imp-triage-qgrid,
  .bs-imp-branch__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .bs-imp-subnav-wrap {
    top: 58px;
  }

  .bs-imp-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .bs-imp-yn-grid,
  .bs-imp-inc-grid,
  .bs-imp-timeline,
  .bs-imp-triage-qgrid,
  .bs-imp-certs,
  .bs-imp-photo-steps,
  .bs-imp-branch__grid {
    grid-template-columns: 1fr;
  }

  .bs-imp-scorecard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .bs-imp-score {
    padding: 14px 12px;
  }

  .bs-imp-score__num {
    font-size: 20px;
  }

  .bs-imp-calc,
  .bs-imp-triage {
    padding: 20px 16px;
  }

  .bs-imp-hero-cap {
    flex-direction: column;
    align-items: flex-start;
  }
}
