/* ============================================================
   Bao Gia page — page-specific styles
   Depends on tokens.css + hub.css (loaded before this file).
   ============================================================ */

/* ---- Page intro ---- */
.bg-intro {
  margin-bottom: 3.5rem;
}

/* ---- Section heading ---- */
.bg-section {
  margin-bottom: 3rem;
}

.bg-section + .bg-section {
  padding-top: 3rem;
  border-top: 1.5px solid var(--neutral-200);
}

.bg-section__eyebrow {
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--brand-red);
  margin-bottom: 0.6rem;
}

.bg-section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 3vw, 1.95rem);
  font-weight: var(--fw-bold);
  color: var(--brand-navy);
  line-height: var(--lh-heading);
  margin-bottom: 0.9rem;
}

.bg-section__lead {
  font-size: 1.02rem;
  line-height: var(--lh-body);
  color: var(--neutral-700);
  max-width: 640px;
}

/* ---- Decision ladder ---- */
.bg-ladder {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.bg-step {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0 1.25rem;
  position: relative;
}

.bg-step__connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0.15rem;
}

.bg-step__node {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--brand-navy);
  color: #fff;
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.bg-step__node--highlight {
  background: var(--brand-red);
}

.bg-step__line {
  width: 2px;
  flex: 1;
  background: var(--neutral-200);
  margin: 0.25rem 0;
  min-height: 1.5rem;
}

.bg-step:last-child .bg-step__line {
  display: none;
}

.bg-step__body {
  padding-bottom: 1.75rem;
}

.bg-step__question {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--brand-navy);
  line-height: var(--lh-subheading);
  margin-bottom: 0.5rem;
}

.bg-step__desc {
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--neutral-700);
  margin-bottom: 0.75rem;
}

.bg-step__tag {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.01em;
}

.bg-step__tag--navy {
  background: var(--brand-navy);
  color: #fff;
}

.bg-step__tag--red {
  background: var(--brand-red);
  color: #fff;
}

.bg-step__tag--outline {
  background: transparent;
  border: 1.5px solid var(--neutral-300);
  color: var(--neutral-700);
}

.bg-step__tag--pink {
  background: var(--brand-pink);
  color: #fff;
}

.bg-step__included {
  margin-top: 0.6rem;
  padding: 0.75rem 1rem;
  background: var(--neutral-100);
  border-left: 3px solid var(--brand-navy);
  border-radius: 0 6px 6px 0;
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--neutral-700);
}

.bg-step__included strong {
  color: var(--brand-navy);
  font-weight: var(--fw-semibold);
}

/* ---- Tier comparison table ---- */
.bg-table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1.5px solid var(--neutral-200);
}

.bg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.bg-table th,
.bg-table td {
  padding: 0.8rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--neutral-200);
  vertical-align: top;
  white-space: nowrap;
}

.bg-table th {
  background: var(--brand-navy);
  color: #fff;
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  white-space: nowrap;
}

.bg-table th:first-child {
  border-radius: 0;
  white-space: normal;
  min-width: 160px;
}

.bg-table td:first-child {
  font-weight: var(--fw-medium);
  color: var(--neutral-900);
  white-space: normal;
}

.bg-table tr:last-child td {
  border-bottom: none;
}

.bg-table tr:nth-child(even) td {
  background: var(--neutral-100);
}

.bg-table__yes {
  color: var(--color-success);
  font-weight: var(--fw-bold);
}

.bg-table__no {
  color: var(--neutral-300);
}

.bg-table__price {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  color: var(--brand-navy);
  white-space: nowrap;
}

.bg-table__total-row td {
  background: var(--brand-navy) !important;
  color: #fff;
  font-weight: var(--fw-bold);
  border-top: 2px solid var(--brand-red);
}

/* override .bg-table td:first-child (neutral-900) so the total-row label stays white on navy */
.bg-table__total-row td:first-child {
  color: #fff;
}

.bg-table__total-row .bg-table__price {
  color: var(--brand-pink);
  font-size: 1.05rem;
}

/* ---- Third-party cost section ---- */
.bg-vendor-notice {
  background: var(--neutral-50);
  border: 1.5px solid var(--neutral-200);
  border-left: 4px solid var(--color-warning);
  border-radius: 0 10px 10px 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--neutral-700);
}

.bg-vendor-notice strong {
  color: var(--color-warning);
  font-weight: var(--fw-semibold);
}

.bg-vendor-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.25rem;
}

.bg-vendor-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem 1.5rem;
  align-items: start;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1.5px solid var(--neutral-200);
  border-radius: 8px;
}

.bg-vendor-item__name {
  font-weight: var(--fw-semibold);
  color: var(--neutral-900);
  margin-bottom: 0.25rem;
  font-size: var(--fs-base);
}

.bg-vendor-item__desc {
  font-size: var(--fs-sm);
  color: var(--neutral-400);
  line-height: var(--lh-caption);
}

.bg-vendor-item__who {
  text-align: right;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-warning);
  white-space: nowrap;
}

/* ---- CTA block ---- */
.bg-cta {
  margin-top: 3.5rem;
  padding: 2.5rem;
  background: var(--brand-navy);
  border-radius: 14px;
  text-align: center;
  color: #fff;
}

.bg-cta__title {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: var(--fw-bold);
  margin-bottom: 0.75rem;
  line-height: var(--lh-heading);
}

.bg-cta__title span {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-cta__body {
  font-size: 1rem;
  line-height: var(--lh-body);
  opacity: 0.82;
  max-width: 520px;
  margin: 0 auto 1.5rem;
}

.bg-cta__note {
  font-size: var(--fs-sm);
  opacity: 0.6;
  margin-top: 1rem;
}

.bg-cta__btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--brand-red);
  color: #fff;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.01em;
  transition: opacity 0.15s;
}

.bg-cta__btn:hover {
  opacity: 0.88;
}

/* ---- Note callout ---- */
.bg-note {
  padding: 0.85rem 1.15rem;
  background: var(--neutral-100);
  border-left: 3px solid var(--brand-pink);
  border-radius: 0 6px 6px 0;
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--neutral-700);
  margin-top: 1rem;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .bg-step {
    grid-template-columns: 2rem 1fr;
    gap: 0 0.9rem;
  }

  .bg-step__node {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.7rem;
  }

  .bg-step__question {
    font-size: var(--fs-md);
  }

  .bg-vendor-item {
    grid-template-columns: 1fr;
  }

  .bg-vendor-item__who {
    text-align: left;
  }

  .bg-cta {
    padding: 1.75rem 1.25rem;
  }

  .bg-table th,
  .bg-table td {
    padding: 0.65rem 0.75rem;
    font-size: 0.82rem;
  }
}
