/* Borong credit pages */
.credit-hero {
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-lilac) 0%, #fff 52%, var(--brand-mist) 100%);
}

.credit-hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 48px;
  align-items: center;
  padding: 72px 24px;
}

.credit-hero-logo {
  width: auto;
  height: 56px;
  margin-bottom: 18px;
}

.credit-hero h1 {
  max-width: 780px;
  color: var(--brand-purple);
}

.credit-hero-copy {
  margin-top: 24px;
  max-width: 670px;
  color: #443D66;
  font-size: 18px; letter-spacing: 0.04em;
  line-height: 1.65;
}

.credit-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.credit-hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.credit-hero-media > img,
.credit-hero-media > picture {
  width: 100%;
  max-width: 560px;
}
/* eleventy-img wraps the hero image in <picture> — size the inner <img> so it
   keeps its natural aspect ratio (was stretching vertically without this) */
.credit-hero-media > picture { display: block; }
.credit-hero-media > img,
.credit-hero-media > picture > img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
}

.credit-hero-media .corp-feature-visual {
  position: relative;
  width: 100%;
  max-width: 560px;
  overflow: visible;
  aspect-ratio: 412 / 312;
  box-shadow: none;
}

.credit-section-image {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: var(--shadow-card);
}

.credit-how-apply-img {
  border-radius: 24px;
  overflow: hidden;
  height: 190px;
  min-height: 190px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
  flex-shrink: 0;
}

.credit-section-image.corp-feature-visual {
  position: relative;
  overflow: visible;
  aspect-ratio: 412 / 312;
  height: auto;
  min-height: 320px;
  box-shadow: none;
}

.credit-feature-visual--floating-overlay .corp-feature-visual__image {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 82.52%;
  height: 79.5%;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: var(--shadow-card);
}

.credit-feature-visual--floating-overlay .credit-feature-visual__floating {
  position: absolute;
  right: 0;
  bottom: 4%;
  display: block;
  width: clamp(202px, 57.6%, 238px);
  max-width: 68%;
  max-height: 58%;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(45, 35, 88, .14)) drop-shadow(0 4px 10px rgba(16, 24, 40, .06));
}

.credit-feature-visual--floating-pair {
  aspect-ratio: 619 / 545;
}

.credit-feature-visual--floating-pair .corp-feature-visual__image {
  left: 11%;
  top: 10.2%;
  width: 69.8%;
  height: 65.7%;
}

.credit-feature-visual--floating-pair .credit-feature-visual__floating {
  max-width: none;
  max-height: none;
}

.credit-feature-visual--floating-pair .credit-feature-visual__floating--top-left {
  left: -3.7%;
  top: -8.7%;
  right: auto;
  bottom: auto;
  width: 47.8%;
}

.credit-feature-visual--floating-pair .credit-feature-visual__floating--bottom-right {
  right: -15.8%;
  bottom: 8.9%;
  width: 40.4%;
}

.credit-feature-visual--right-overlay .corp-feature-visual__image {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 82.52%;
  height: 79.5%;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: var(--shadow-card);
  transform: scaleX(-1);
  transform-origin: center;
}

.credit-feature-visual--right-overlay .corp-feature-visual__panel {
  position: absolute;
  right: 0;
  bottom: 4%;
  width: 32.5%;
  min-height: 0;
  aspect-ratio: 134 / 175;
  overflow: hidden;
  padding: clamp(10px, 3vw, 12px) clamp(12px, 3.6vw, 15px);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 40px rgba(45, 35, 88, .14), 0 4px 10px rgba(16, 24, 40, .06);
}

.credit-feature-visual--right-overlay .corp-feature-visual__title {
  display: inline-flex;
  align-items: center;
  min-height: auto;
  margin: 0;
  padding: 2px;
  color: #333;
  background: #fff;
  font-size: clamp(7px, 1.02vw, 10px); letter-spacing: 0.04em;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}

.credit-feature-visual--right-overlay .corp-product-list {
  display: grid;
  gap: clamp(5px, 1.7vw, 7px);
  margin-top: clamp(8px, 2.6vw, 11px);
}

.credit-feature-visual--right-overlay .corp-product-row {
  display: grid;
  grid-template-columns: clamp(24px, 7.7vw, 32px) 1fr;
  gap: clamp(8px, 3.4vw, 14px);
  align-items: center;
}

.credit-feature-visual--right-overlay .corp-product-thumb {
  display: block;
  width: clamp(24px, 7.7vw, 32px);
  height: clamp(24px, 7.7vw, 32px);
  border-radius: 2px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(16, 24, 40, .04);
}

.credit-feature-visual--right-overlay .corp-product-thumb.green {
  background: linear-gradient(135deg, #f6fffb 0 35%, #4fbf9f 35% 70%, #f7efe4 70%);
}

.credit-feature-visual--right-overlay .corp-product-thumb.red {
  background: linear-gradient(135deg, #fff 0 32%, #e53f3f 32% 70%, #ffd5d5 70%);
}

.credit-feature-visual--right-overlay .corp-product-thumb.gold {
  background: linear-gradient(135deg, #fff 0 32%, #d7a44f 32% 70%, #fff0c9 70%);
}

.credit-feature-visual--right-overlay .corp-product-row span:last-child {
  display: block;
  width: clamp(28px, 10.6vw, 44px);
  height: clamp(3px, .9vw, 4px);
  background: #d9d9d9;
  box-shadow: clamp(10px, 4.3vw, 18px) clamp(6px, 1.9vw, 8px) 0 #d9d9d9, 0 clamp(12px, 3.8vw, 16px) 0 #d9d9d9;
}

.credit-feature-visual--right-overlay .corp-feature-visual__accent {
  position: absolute;
  right: clamp(12px, 3.6vw, 15px);
  bottom: clamp(10px, 3.4vw, 14px);
  color: #333;
  font-size: clamp(7px, .9vw, 8px); letter-spacing: 0.04em;
  font-weight: 700;
  line-height: 1;
}

.credit-feature-visual--right-overlay .corp-feature-visual__accent::after {
  content: "";
  display: inline-block;
  width: clamp(20px, 6.8vw, 28px);
  height: clamp(3px, .9vw, 4px);
  margin-left: clamp(4px, 1.2vw, 5px);
  background: #333;
  vertical-align: middle;
}

.credit-feature-visual--payments .corp-feature-visual__panel {
  width: clamp(202px, 57.6%, 238px);
  max-height: clamp(150px, 58%, 194px);
  aspect-ratio: 198 / 179;
  padding: clamp(12px, 4.4%, 18px) clamp(10px, 3.2%, 13px);
}

.credit-feature-visual--payments .corp-feature-visual__title {
  font-size: clamp(9px, 1.2vw, 12px); letter-spacing: 0.04em;
  white-space: normal;
}

.credit-feature-visual--payments .corp-payment-list {
  display: grid;
  gap: clamp(4px, 1.4vw, 6px);
  margin-top: clamp(7px, 2.4vw, 10px);
}

.credit-feature-visual--payments .corp-payment-row {
  display: grid;
  grid-template-columns: clamp(26px, 8.2vw, 34px) 1fr;
  gap: clamp(8px, 2.6vw, 11px);
  align-items: center;
}

.credit-feature-visual--payments .corp-payment-thumb {
  display: block;
  width: clamp(26px, 8.2vw, 34px);
  height: clamp(26px, 8.2vw, 34px);
  border-radius: 0;
  background: #e6e6e6;
}

.credit-feature-visual--payments .corp-payment-row span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.credit-feature-visual--payments .corp-payment-row strong,
.credit-feature-visual--payments .corp-payment-row em {
  overflow: hidden;
  color: #333;
  font-size: clamp(7px, .9vw, 9px); letter-spacing: 0.04em;
  font-style: normal;
  font-weight: 500;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.credit-feature-visual--payments .corp-payment-row em {
  color: #666;
}

.credit-feature-visual--store .corp-feature-visual__image {
  position: absolute;
  top: 0;
  right: 0;
  display: block;
  width: 82.52%;
  height: 79.5%;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: var(--shadow-card);
}

.credit-feature-visual--store .corp-feature-visual__panel {
  position: absolute;
  left: 0;
  bottom: 16%;
  width: 55%;
  min-height: 0;
  aspect-ratio: 227 / 127;
  overflow: hidden;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 40px rgba(45, 35, 88, .14), 0 4px 10px rgba(16, 24, 40, .06);
}

.credit-feature-visual--store .corp-store-preview {
  position: absolute;
  left: clamp(8px, 2.4vw, 10px);
  top: clamp(8px, 2.4vw, 10px);
  width: calc(52% - clamp(8px, 2.4vw, 10px));
  height: calc(100% - (clamp(8px, 2.4vw, 10px) * 2));
  border-radius: 10px;
  background: #f3f3f3;
  overflow: hidden;
}

.credit-feature-visual--store .corp-store-topbar,
.credit-feature-visual--store .corp-store-hero,
.credit-feature-visual--store .corp-store-grid,
.credit-feature-visual--store .corp-store-copy span {
  display: block;
  background: #d9d9d9;
}

.credit-feature-visual--store .corp-store-topbar {
  position: absolute;
  left: 8%;
  top: 8%;
  width: 84%;
  height: 5%;
}

.credit-feature-visual--store .corp-store-hero {
  position: absolute;
  left: 8%;
  top: 18%;
  width: 84%;
  height: 30%;
  background: linear-gradient(90deg, #e7b17f, #c67a42);
}

.credit-feature-visual--store .corp-store-grid {
  position: absolute;
  left: 8%;
  top: 56%;
  width: 84%;
  height: 34%;
  background:
    linear-gradient(90deg, #f3f3f3 8%, transparent 8% 18%, #f3f3f3 18% 26%, transparent 26% 36%, #f3f3f3 36% 44%, transparent 44% 54%, #f3f3f3 54% 62%, transparent 62% 72%, #f3f3f3 72% 80%, transparent 80%),
    linear-gradient(#d9d9d9, #d9d9d9);
}

.credit-feature-visual--store .corp-store-copy {
  position: absolute;
  right: 10%;
  top: 28%;
  display: grid;
  gap: clamp(6px, 2.4vw, 10px);
  width: 32%;
}

.credit-feature-visual--store .corp-store-copy span {
  height: clamp(3px, .9vw, 4px);
}

.credit-feature-visual--store .corp-store-copy span:nth-child(2) {
  width: 74%;
}

.credit-feature-visual--store .corp-store-copy span:nth-child(3) {
  width: 58%;
}

.credit-feature-visual--store .corp-store-badge {
  position: absolute;
  right: 5%;
  bottom: 30%;
  display: inline-flex;
  justify-content: center;
  min-width: clamp(68px, 20vw, 82px);
  padding: clamp(3px, .9vw, 4px) clamp(8px, 2.4vw, 10px);
  border-radius: 20px;
  color: #994f00;
  background: #ffe6cc;
  font-size: clamp(6px, .78vw, 7px); letter-spacing: 0.04em;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.credit-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  color: var(--brand-muted);
}

.credit-list li {
  display: flex;
  gap: 12px;
  font-size: var(--text-body); letter-spacing: 0.04em;
  line-height: normal;
}

.credit-dot {
  width: 10px;
  height: 10px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--brand-orange);
  flex: 0 0 auto;
}

.credit-check {
  width: 22px;
  height: 22px;
  margin-top: 3px;
  flex: 0 0 auto;
}

.credit-card-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  object-fit: contain;
}

.credit-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--brand-border);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.credit-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.credit-table th,
.credit-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--brand-border);
  text-align: left;
  vertical-align: top;
  font-size: var(--text-body); letter-spacing: 0.04em;
  line-height: normal;
}

.credit-table th {
  background: var(--brand-purple);
  color: #fff;
  font-weight: 700;
}

.credit-table td {
  color: var(--brand-muted);
}

.credit-table td:first-child {
  color: var(--brand-ink);
  font-weight: 700;
}

.credit-table tr:last-child td {
  border-bottom: 0;
}

.credit-quiz-step[hidden],
.credit-alert[hidden],
.credit-result[hidden],
.credit-result-nav[hidden],
.credit-quiz-nav[hidden] {
  display: none !important;
}

.credit-result-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.credit-result-nav .btn {
  justify-content: center;
  min-width: 130px;
}

.credit-cta-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(62, 34, 109, .12);
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 16%, rgba(255, 122, 0, .15), transparent 30%),
    radial-gradient(circle at 4% 96%, rgba(62, 34, 109, .12), transparent 32%),
    linear-gradient(135deg, #fff 0%, #fbf8ff 48%, #f7fbf8 100%);
  padding: 44px;
  box-shadow: 0 24px 60px rgba(62, 34, 109, .1);
}

.credit-cta-panel::before,
.credit-cta-panel::after {
  position: absolute;
  content: "";
  pointer-events: none;
  z-index: -1;
}

.credit-cta-panel::before {
  right: 28px;
  bottom: -70px;
  width: min(48%, 430px);
  aspect-ratio: 1.35;
  border: 1px solid rgba(62, 34, 109, .14);
  border-right-color: rgba(255, 122, 0, .18);
  border-bottom-color: transparent;
  border-radius: 54% 46% 0 0 / 100% 100% 0 0;
  box-shadow:
    -58px -42px 0 -1px rgba(255, 255, 255, .68),
    -58px -42px 0 0 rgba(62, 34, 109, .11),
    -118px -8px 0 -1px rgba(255, 255, 255, .68),
    -118px -8px 0 0 rgba(255, 122, 0, .13);
  transform: rotate(-6deg);
}

.credit-cta-panel::after {
  right: -92px;
  top: -118px;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(255, 122, 0, .2);
  border-radius: 50%;
  background:
    linear-gradient(145deg, rgba(255,255,255,.72), rgba(255,255,255,0)),
    radial-gradient(circle, rgba(255, 122, 0, .12), transparent 68%);
}

.credit-cta-panel > * {
  position: relative;
  z-index: 1;
}

.credit-cta-panel h2 {
  margin-bottom: .8rem;
}

.credit-cta-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 24px;
  align-items: center;
}

.credit-cta-actions {
  display: grid;
  gap: 12px;
  justify-self: end;
  width: min(100%, 330px);
}

.credit-cta-actions .btn {
  justify-content: center;
  width: 100%;
}

.credit-cta-actions.wide {
  width: min(100%, 560px);
}

.md-order-2 {
  order: 2;
}

.credit-rich {
  color: var(--brand-muted);
  font-size: var(--text-body); letter-spacing: 0.04em;
  line-height: normal;
}

.credit-rich a {
  color: var(--brand-orange);
  font-weight: 700;
}

.credit-rich ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 18px;
}

.credit-quiz {
  max-width: 980px;
  margin: 40px auto 0;
}

.credit-quiz-progress {
  position: relative;
  display: flex;
  margin-bottom: 28px;
}

.credit-quiz-progress-bar {
  position: absolute;
  top: 14.75px;
  left: 12.5%;
  right: 12.5%;
  height: 2.5px;
  border-radius: 999px;
  background: var(--brand-border);
  z-index: 0;
  overflow: hidden;
}

.credit-quiz-progress-fill {
  width: var(--quiz-progress, 0%);
  height: 100%;
  border-radius: 999px;
  background: var(--brand-purple);
  transition: width .35s var(--ease), height .35s var(--ease);
}

.credit-quiz-indicator {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 0 6px;
  color: var(--brand-muted);
  font-size: var(--text-sm); letter-spacing: 0.04em;
  font-weight: 700;
  line-height: normal;
  text-align: center;
}

.credit-quiz-indicator::before {
  content: "";
  display: block;
  box-sizing: border-box;
  width: 32px;
  height: 32px;
  margin: 0 auto 10px;
  border: 2.5px solid var(--brand-border);
  border-radius: 999px;
  background: #fff;
}

.credit-quiz-indicator.active {
  color: var(--brand-purple);
}

.credit-quiz-indicator.active::before {
  border-color: var(--brand-purple);
  background: radial-gradient(circle, var(--brand-orange) 0 5px, #fff 6px);
}

.credit-quiz-card {
  padding: 30px;
  border: 1px solid var(--brand-border);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.credit-question {
  margin-top: 30px;
}

.credit-question-title {
  color: var(--brand-ink);
  font-size: 20px; letter-spacing: -0.3px;
  font-weight: 700;
  line-height: 1.35;
}

.credit-options {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.credit-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--brand-border);
  border-radius: 16px;
  background: #fff;
  color: var(--brand-ink);
  cursor: pointer;
  transition: border-color .15s var(--ease), background .15s var(--ease);
}

.credit-option:hover {
  border-color: var(--brand-purple);
  background: var(--brand-mist);
}

.credit-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand-purple);
  flex: 0 0 auto;
}

.credit-alert {
  margin-bottom: 18px;
  border: 1px solid #f3d3a5;
  border-radius: 14px;
  background: #fff6ea;
  color: #8a4c00;
  padding: 12px 16px;
  font-size: var(--text-body); letter-spacing: 0.04em;
  line-height: normal;
  font-weight: 700;
}

.credit-quiz-nav {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.credit-quiz-nav .btn {
  justify-content: center;
  min-width: 130px;
}

.credit-result-card {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 28px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--brand-border);
  border-radius: 28px;
  background: #fff;
}

.credit-result-media {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  background: rgba(244,241,251,.72);
  padding: 32px;
}

.credit-result-media img {
  max-height: 190px;
  object-fit: contain;
}

@media (max-width: 960px) {
  .credit-hero-grid,
  .credit-cta-grid,
  .credit-result-card {
    grid-template-columns: 1fr;
  }

  .credit-cta-actions {
    justify-self: start;
  }

  .md-order-2 {
    order: 0;
  }

  .credit-feature-visual--floating-pair {
    overflow: hidden;
  }

  .credit-feature-visual--floating-pair .credit-feature-visual__floating--top-left {
    left: 0;
  }

  .credit-feature-visual--floating-pair .credit-feature-visual__floating--bottom-right {
    right: 0;
  }
}

@media (max-width: 640px) {
  .credit-hero-grid {
    grid-template-columns: 1fr;
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .credit-quiz-progress {
    flex-direction: column;
    gap: 18px;
  }

  .credit-quiz-progress-bar {
    top: 16px;
    bottom: 16px;
    left: 14.75px;
    right: auto;
    width: 2.5px;
    height: auto;
  }

  .credit-quiz-progress-fill {
    width: 100%;
    height: var(--quiz-progress, 0%);
  }

  .credit-quiz-indicator {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0;
    text-align: left;
  }

  .credit-quiz-indicator::before {
    margin: 0;
    flex: 0 0 auto;
  }

  .credit-section-image {
    min-height: 240px;
  }

  .credit-section-image.corp-feature-visual {
    min-height: 240px;
  }

  .credit-cta-panel,
  .credit-quiz-card,
  .credit-result-card {
    padding: 24px;
    border-radius: 24px;
  }

  .credit-quiz-nav {
    flex-direction: column-reverse;
  }

  .credit-quiz-nav .btn {
    width: 100%;
  }

  .credit-result-nav {
    flex-direction: column;
  }

  .credit-result-nav .btn {
    width: 100%;
  }
}

/* ============================================================
   Credit quiz — T1 re-skin (sitemap v3.3, 2026-08-23)
   Scoped to the .cq section so the older .credit-quiz-* rules
   above are left intact. Swaps the --brand-* token family and
   28px radii for the --bh-* / 8-14px T1 language used by every
   other section on /borong-credit/.
   ============================================================ */
/* Anchor target for the calculator's "Start Pre-Qualification" button. The
   header is fixed, so without this the heading lands underneath it. 88px is
   what the other anchored sections use. */
.cq { scroll-margin-top: 88px; }
.cq .credit-quiz { max-width: 940px; margin: 44px auto 0; }

.cq .credit-quiz-card {
  padding: 0;
  border: 1px solid var(--bh-lilac-2);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 48px -24px rgba(42, 36, 68, .22);
  overflow: hidden;
}

/* --- stepper: header strip inside the card, numbered --- */
.cq .cq-head {
  padding: 26px 30px 22px;
  background: var(--bh-lilac);
  border-bottom: 1px solid var(--bh-lilac-2);
}
.cq .credit-quiz-progress { counter-reset: cqstep; margin-bottom: 0; }
.cq .credit-quiz-progress-bar { top: 15px; height: 2px; background: var(--bh-lilac-2); }
.cq .credit-quiz-progress-fill { background: var(--bh-purple); }
.cq .credit-quiz-indicator {
  counter-increment: cqstep;
  color: var(--bh-text-2);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.35;
}
.cq .credit-quiz-indicator::before {
  content: counter(cqstep);
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  margin: 0 auto 10px;
  border: 2px solid var(--bh-lilac-2);
  border-radius: 999px;
  background: #fff;
  color: var(--bh-text-2);
  font-size: 13px; font-weight: 800;
  font-variant-numeric: tabular-nums;
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}
.cq .credit-quiz-indicator.active { color: var(--bh-purple); }
.cq .credit-quiz-indicator.active::before {
  border-color: var(--bh-purple);
  background: var(--bh-purple);
  color: #fff;
}

/* --- body --- */
.cq .cq-body { padding: 30px; }
.cq .credit-quiz-step > h3 {
  margin: 0;
  font-size: 22px; font-weight: 800;
  letter-spacing: -.3px;
  color: var(--bh-ink);
}
.cq .credit-question { margin-top: 26px; }
.cq .credit-question-title {
  margin: 0;
  font-size: 16px; font-weight: 700;
  letter-spacing: .01em;
  color: var(--bh-ink);
}
.cq .credit-options { gap: 10px; margin-top: 12px; }
.cq .credit-option {
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--bh-line);
  border-radius: 8px;
  font-size: 15px;
  letter-spacing: .02em;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.cq .credit-option:hover { border-color: var(--bh-purple); background: var(--bh-lilac); }
/* Selected state — the old skin showed only the native radio, so a picked
   answer was near-invisible once you scrolled past it. */
.cq .credit-option:has(input:checked) {
  border-color: var(--bh-purple);
  background: var(--bh-lilac);
  font-weight: 700;
}
/* Keyboard focus only — a mouse click used to land a focus outline on top of
   the selected border, which read as a doubled ring. */
.cq .credit-option:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(105, 56, 239, .22); }
.cq .credit-option input { accent-color: var(--bh-purple); }

.cq .credit-alert { border-radius: 8px; font-size: 14px; font-weight: 700; }

.cq .credit-quiz-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--bh-lilac-2);
}
/* Primary stays in the right column even on step 1, where Back is hidden. */
.cq .credit-quiz-nav [data-quiz-next] { grid-column: 2; }
.cq .credit-quiz-nav .bh-btn, .cq .credit-result-nav .bh-btn { justify-content: center; }
/* bh-btn--ghost is the dark-hero variant (white text, translucent white
   border) and disappears on this white card, so the secondaries use
   bh-btn--outline. Match the primary's vertical rhythm. */
.cq .credit-quiz-nav .bh-btn--outline, .cq .credit-result-nav .bh-btn--outline { background: #fff; }

/* --- result step --- */
.cq .cq-kicker {
  margin: 0 0 10px;
  font-size: 14px; font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bh-purple);
}
.cq .cq-results { margin-top: 22px; }
/* Single centred column. The old .82fr/1.18fr grid squeezed the title into a
   narrow rail where "Invoice Financing (RM20,000 - RM250,000)" wrapped mid-word
   and overflowed, while the illustration floated in an oversized empty panel. */
.cq .credit-result-card {
  display: block;
  padding: 34px 32px 30px;
  border: 1px solid var(--bh-lilac-2);
  border-radius: 14px;
  background: var(--bh-lilac);
  text-align: center;
}
.cq .cq-result__media {
  display: grid;
  place-items: center;
  height: 132px;
  margin-bottom: 22px;
}
.cq .cq-result__media img { max-height: 132px; max-width: 240px; object-fit: contain; }
.cq .cq-result-title {
  margin: 0 auto 20px;
  max-width: 30ch;
  font-size: 26px; font-weight: 800;
  line-height: 1.22; letter-spacing: -.5px;
  color: var(--bh-ink);
  text-wrap: balance;
}
/* Bullets stay left-aligned inside a centred block so the check icons line up. */
.cq .credit-result-card .credit-list {
  display: inline-block;
  margin: 0;
  text-align: left;
}
.cq .credit-result-card .credit-list li { font-size: 15px; letter-spacing: .02em; line-height: 1.55; }
.cq .credit-result-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--bh-lilac-2);
}
.cq .credit-result-nav [data-result-action] { grid-column: 2; }

/* --- slider questions --- */
.cq .cq-slider { margin-top: 16px; }
.cq .cq-slider__readout {
  display: block;
  margin-bottom: 14px;
  font-size: 20px; font-weight: 800;
  letter-spacing: -.3px;
  color: var(--bh-purple);
}
.cq .cq-slider__range {
  background: linear-gradient(to right, var(--bh-purple) 0 var(--cq-fill, 0%), var(--bh-lilac-2) var(--cq-fill, 0%) 100%);
}
.cq .cq-slider__ends {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  font-size: 14px;
  letter-spacing: .02em;
  color: var(--bh-muted);
}
.cq .cq-slider__ends span:last-child { text-align: right; }

@media (max-width: 640px) {
  .cq .cq-head { padding: 20px 16px 16px; }
  .cq .cq-body { padding: 20px 16px; }
  .cq .credit-quiz-card { border-radius: 12px; }
  .cq .credit-result-card { border-radius: 12px; padding: 20px; }
  .cq .credit-quiz-indicator::before { margin: 0; }
  .cq .credit-result-card { padding: 26px 20px 22px; }
  .cq .cq-result-title { font-size: 22px; }
}

/* --- mobile step row (desktop hides it; the four-dot stepper takes over) --- */
.cq .cq-mstep, .cq .cq-mbar { display: none; }

/* The result view has no steps left to show. */
.cq .credit-quiz.is-result .cq-head { display: none; }

@media (max-width: 640px) {
  .cq .credit-quiz-progress { display: none; }
  .cq .cq-mstep {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
  }
  .cq .cq-mstep__label {
    font-size: 14px; font-weight: 800;
    letter-spacing: -.1px;
    color: var(--bh-ink);
  }
  .cq .cq-mstep__count {
    flex: 0 0 auto;
    font-size: 14px; font-weight: 700;
    color: var(--bh-purple);
    font-variant-numeric: tabular-nums;
  }
  .cq .cq-mbar {
    display: block;
    height: 3px;
    margin-top: 12px;
    border-radius: 999px;
    background: var(--bh-lilac-2);
    overflow: hidden;
  }
  .cq .cq-mbar__fill {
    width: 25%;
    height: 100%;
    border-radius: 999px;
    background: var(--bh-purple);
    transition: width .3s ease;
  }
}

/* ============================================================
   Borong Credit child pages — T1 re-skin (2026-08-23)
   /instant-credit/, /invoice-financing/, /tiers-and-eligibility/
   were still on the legacy proc-* / credit-table / .btn chrome.
   Copy and images are unchanged; only the shell is restyled onto
   the --bh-* T1 language the rest of /platform/ uses.
   ============================================================ */

/* Hero: same shell as t1.subhero, but these pages ship a real banner. The
   stock split is 2.64fr/0.95fr because elsewhere the media slot is an empty
   placeholder; rebalance it so the banner actually gets room. */
.crd-hero .t1-subhero__inner--split {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: stretch;                 /* let the banner run the full column */
}
.crd-hero__media { display: block; }
/* Fills the hero's content box, i.e. the section height minus its
   calc(56px + nav) top and 56px bottom padding, rather than sitting
   centred at its own aspect ratio. */
.crd-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  border-radius: 14px;
}
.crd-hero .credit-hero-logo { height: 34px; margin-bottom: 18px; }

/* Split rows: .bh-prow sizes h3, but these headings are h2 for document order. */
.crd .bh-prow__grid h2 {
  margin: 0 0 14px;
  font-size: 30px; font-weight: 800;
  line-height: 1.15; letter-spacing: -0.02em;
  color: var(--bh-ink);
}
.crd .bh-prow__text .t1-lead p { margin-bottom: 16px; }
.crd .bh-prow__media img { max-width: 100%; height: auto; border-radius: 12px; }
.crd .bh-prow__grid .credit-section-image { border-radius: 12px; }
.crd .t1-sec__cta { margin-top: 24px; }

/* Bullet lists inside the re-skinned rows */
.crd .credit-list { margin: 18px 0 0; display: grid; gap: 12px; }
.crd .credit-list li { font-size: 16px; letter-spacing: 0.04em; line-height: 1.6; color: var(--bh-text-2); }
.crd .credit-list strong { color: var(--bh-ink); }

/* Numbered step cards */
.crd .t1-cards { margin-top: 8px; }
.crd-step {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 999px;
  background: var(--bh-lilac-3);
  color: var(--bh-purple);
  font-size: 18px; font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* Success story: image and card as equal-height halves of a full-width row. */
.crd-story { align-items: stretch; }
.crd-story__img { display: block; width: 100%; height: 100%; min-height: 100%; object-fit: cover; border-radius: 14px; }
.crd-story__card { display: flex; flex-direction: column; height: 100%; padding: 32px; }
.crd-story__card h3 { font-size: 24px; line-height: 1.2; letter-spacing: -0.3px; margin: 0 0 16px; }
.crd-story__card > p { font-size: 16px; letter-spacing: 0.04em; line-height: 1.7; color: var(--bh-text-2); margin: 0; }
.crd-story__by { margin: 18px 0 0 !important; font-weight: 800; color: var(--bh-purple); letter-spacing: 0.02em; }
/* Card stretches to the image height, so the CTA anchors to the bottom
   rather than floating with dead space beneath it. */
.crd-story__cta { align-self: flex-start; margin-top: auto; padding-top: 24px; }

/* Standalone secondary CTA under a card grid */
.crd-cta-row { display: flex; justify-content: center; margin-top: 28px; }

/* Small link-bearing notes under a section */
.crd-note { margin: 22px 0 0; font-size: 16px; letter-spacing: 0.04em; color: var(--bh-text-2); }
.crd-note--center { text-align: center; }
.crd-note a { color: var(--bh-purple); font-weight: 700; }
.crd-note a:hover { text-decoration: underline; }

/* FAQ accordions */
.crd-faq { display: grid; gap: 12px; max-width: 880px; margin: 0 auto; }
.crd-faq details {
  border: 1px solid var(--bh-lilac-2);
  border-radius: 10px;
  background: #fff;
  padding: 18px 20px;
}
.crd-faq summary { font-size: 17px; font-weight: 700; color: var(--bh-ink); cursor: pointer; letter-spacing: -0.1px; }
.crd-faq details[open] { border-color: var(--bh-purple); }

/* Tier upgrade block */
.crd-tier { max-width: 880px; margin: 0 auto; text-align: center; }
.crd-tier .credit-list { display: inline-grid; text-align: left; }

@media (max-width: 1023px) {
  /* The t1 rule that stacks .t1-subhero__inner--split here is a single class,
     so the two-column .crd-hero override above outranked it and the hero never
     actually stacked: the copy column was left at 155px on a 375px screen.
     Restate the collapse at matching specificity. */
  .crd-hero .t1-subhero__inner--split { grid-template-columns: 1fr; align-items: start; }
  /* Once the hero stacks there is no sibling column to match, so the banner
     goes back to a normal ratio instead of stretching. */
  .crd-hero__media img { height: auto; min-height: 0; aspect-ratio: 16 / 10; }
}

@media (max-width: 900px) {
  .crd .bh-prow__grid { grid-template-columns: 1fr; gap: 32px; }
  .crd-story__img { height: auto; min-height: 0; aspect-ratio: 16 / 11; }
  .crd .bh-prow--rev .bh-prow__media { order: 0; }
  .crd .bh-prow__grid h2 { font-size: 26px; }
}
