/* 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;
  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 {
  width: 100%;
  max-width: 560px;
}

.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);
  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);
  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);
  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);
  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);
  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);
  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);
  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-tier-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.credit-tier-button {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 24px;
  border: 1px solid var(--brand-border);
  border-radius: 24px;
  background: #fff;
  color: var(--brand-purple);
  text-align: left;
  box-shadow: var(--shadow-card);
  transition: background .15s var(--ease), border-color .15s var(--ease), transform .15s var(--ease);
}

.credit-tier-button:hover {
  transform: translateY(-2px);
  border-color: var(--brand-purple);
}

.credit-tier-button.active {
  background: var(--brand-purple);
  border-color: var(--brand-purple);
  color: #fff;
}

.credit-tier-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 16px;
  font-weight: 700;
}

.credit-tier-summary {
  display: block;
  margin-top: 16px;
  color: var(--brand-muted);
  font-size: var(--text-sm);
  line-height: normal;
}

.credit-tier-button.active .credit-tier-summary {
  color: rgba(255,255,255,.88);
}

.credit-tier-panel {
  margin-top: 28px;
}

.credit-tier-panel[hidden],
.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);
  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);
  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;
  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);
  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-tier-grid {
    grid-template-columns: repeat(2, minmax(0, 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-tier-grid {
    grid-template-columns: 1fr;
  }

  .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%;
  }
}
