/* ==========================================================
   Loan pages — /loan/business (lb-*) and the
   business loan application form /loan/business/apply (la-*)
   ========================================================== */
.lb-page,
.la-page {
  --lb-purple: #5a1fd3;
  --lb-purple-2: #7b19cb;
  --lb-purple-3: #4d22d7;
  --lb-ink: #1f1640;
  --lb-muted: #6b6785;
  --lb-line: #ece9f6;
  --lb-soft: #f6f4fd;
  --lb-orange-1: #fc9715;
  --lb-orange-2: #e45b2d;
  --lb-green: #16a36a;
  background: linear-gradient(180deg, #f7f5ff 0%, #ffffff 60%);
}
.lb-page h2,
.lb-page h3,
.la-page h2,
.la-page h3 {
  text-transform: none;
}

/* ---------- shared ---------- */
.lb-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--lb-purple);
  background: rgba(90, 31, 211, 0.08);
}
.lb-eyebrow--orange {
  color: var(--lb-orange-2);
  background: rgba(228, 91, 45, 0.1);
}
.lb-panel {
  margin-top: 36px;
  padding: 44px 40px;
  border: 1px solid var(--lb-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(60, 30, 140, 0.07);
}
.lb-head {
  margin-bottom: 26px;
}
.lb-title {
  margin: 14px 0 10px;
  font-size: 32px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--lb-ink);
}
.lb-sub {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--lb-muted);
}

/* buttons */
.lb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 26px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background-color 0.25s, color 0.25s;
}
.lb-btn i {
  transition: transform 0.25s ease;
}
.lb-btn:hover i {
  transform: translateX(4px);
}
.lb-btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--lb-orange-1), var(--lb-orange-2));
  box-shadow: 0 12px 26px rgba(228, 91, 45, 0.38);
}
.lb-btn--primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(228, 91, 45, 0.5);
}
.lb-btn--ghost {
  color: var(--lb-purple);
  border: 1.5px solid rgba(90, 31, 211, 0.3);
  background: #fff;
}
.lb-btn--ghost:hover {
  color: #fff;
  border-color: var(--lb-purple);
  background: var(--lb-purple);
}
.lb-btn--light {
  flex-shrink: 0;
  color: var(--lb-purple);
  background: #fff;
  box-shadow: 0 12px 26px rgba(20, 0, 60, 0.25);
}
.lb-btn--light:hover {
  color: var(--lb-orange-2);
  transform: translateY(-2px);
}

/* ---------- hero ---------- */
.lb-hero.main-area {
  position: relative;
  margin-top: -70px;
  padding: 48px 44px 36px;
  background:
    radial-gradient(circle at 100% 0%, rgba(123, 25, 203, 0.08) 0, rgba(123, 25, 203, 0) 45%),
    #fff;
}
.lb-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 40px;
}
.lb-hero__title {
  margin: 16px 0 22px;
  font-size: 46px;
  line-height: 1.15;
  font-weight: 800;
  color: var(--lb-ink);
}
.lb-hero__title span {
  display: block;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  font-family: inherit;
  background: linear-gradient(135deg, var(--lb-orange-1), var(--lb-orange-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lb-round {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  padding: 12px 20px 12px 12px;
  border-radius: 18px;
  background: var(--lb-soft);
}
.lb-round__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--lb-purple-2), var(--lb-purple));
}
.lb-round__label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--lb-muted);
}
.lb-round__date {
  display: block;
  font-size: 18px;
  color: var(--lb-ink);
  text-transform: capitalize;
}
.lb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}
.lb-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--lb-muted);
}
.lb-proof strong {
  color: var(--lb-ink);
}
.lb-proof__dots {
  display: inline-flex;
  flex-shrink: 0;
}
.lb-proof__dots i {
  width: 28px;
  height: 28px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lb-purple-2), var(--lb-purple));
}
.lb-proof__dots i + i {
  margin-left: -10px;
  background: linear-gradient(135deg, var(--lb-orange-1), var(--lb-orange-2));
}
.lb-proof__dots i:last-child {
  background: linear-gradient(135deg, #2bc48a, var(--lb-green));
}
.lb-hero__media {
  text-align: center;
}
.lb-hero__media img {
  max-width: 100%;
  max-height: 380px;
  animation: lb-float 6s ease-in-out infinite;
}
@keyframes lb-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .lb-hero__media img { animation: none; }
}

/* facts */
.lb-facts {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr;
  gap: 16px;
  margin-top: 36px;
}
.lb-fact {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--lb-soft);
}
.lb-fact__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--lb-purple-2), var(--lb-purple));
  box-shadow: 0 10px 20px rgba(90, 31, 211, 0.25);
}
.lb-fact__icon--orange {
  background: linear-gradient(135deg, var(--lb-orange-1), var(--lb-orange-2));
  box-shadow: 0 10px 20px rgba(228, 91, 45, 0.3);
}
.lb-fact__body {
  flex: 1;
  min-width: 0;
}
.lb-fact__label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--lb-muted);
}
.lb-fact__value {
  display: block;
  margin-top: 2px;
  font-size: 18px;
  color: var(--lb-ink);
}
.lb-prizes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.lb-prizes li {
  padding: 6px 4px;
  border-radius: 10px;
  text-align: center;
  background: #fff;
}
.lb-prizes span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--lb-muted);
}
.lb-prizes sup {
  font-size: 8px;
}
.lb-prizes strong {
  display: block;
  font-size: 15px;
  color: var(--lb-ink);
}

/* ---------- leaders + winners ---------- */
.lb-split {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 24px;
  margin-top: 36px;
}
.lb-split .lb-panel {
  margin-top: 0;
  min-width: 0; /* owl-carousel must not stretch the grid track */
}
.lb-table th,
.lb-table td {
  border: none !important;
}
.lb-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.lb-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}
.lb-table th {
  padding: 0 14px 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--lb-muted);
  text-align: left;
}
.lb-table td {
  padding: 12px 14px;
  font-size: 15px;
  color: var(--lb-ink);
  background: var(--lb-soft);
  vertical-align: middle;
}
.lb-table td:first-child {
  border-radius: 14px 0 0 14px;
}
.lb-table td:last-child {
  border-radius: 0 14px 14px 0;
}
.lb-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--lb-purple-2), var(--lb-purple));
}
.lb-table tr:first-child .lb-rank {
  background: linear-gradient(135deg, var(--lb-orange-1), var(--lb-orange-2));
}
.lb-person {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.lb-person img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}
.lb-gain {
  font-weight: 700;
  white-space: nowrap;
  color: var(--lb-green);
}
.lb-more {
  margin-top: 22px;
  text-align: center;
}

.lb-winners {
  display: flex;
  flex-direction: column;
}
.lb-slider {
  margin: auto 0;
}
.lb-winner {
  padding: 30px 20px;
  border-radius: 20px;
  text-align: center;
  color: #fff;
  background: linear-gradient(150deg, var(--lb-purple-2) 0%, var(--lb-purple-3) 100%);
}
.lb-winner__avatar {
  position: relative;
  display: inline-block;
  margin-bottom: 14px;
}
.lb-page .lb-winner__avatar > img {
  width: 110px !important;
  height: 110px;
  border: 4px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  object-fit: cover;
}
.lb-winner__trophy {
  position: absolute;
  right: -4px;
  bottom: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--fm-yellow, #ffeb3b);
}
.lb-page .lb-winner__trophy img {
  width: 22px !important;
}
.lb-winner__amount {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: #ffeb3b;
}
.lb-winner__date {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}
.lb-slider .owl-dots {
  margin-top: 14px;
  text-align: center;
}
.lb-slider .owl-dot span {
  background: rgba(90, 31, 211, 0.2) !important;
}
.lb-slider .owl-dot.active span {
  background: var(--lb-purple) !important;
}

/* ---------- CTA ---------- */
.lb-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 36px;
  padding: 44px 48px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(120deg, var(--lb-purple-2) 0%, var(--lb-purple-3) 100%);
  box-shadow: 0 24px 60px rgba(77, 34, 215, 0.3);
}
.lb-cta::before {
  content: "";
  position: absolute;
  top: -80px;
  right: 18%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}
.lb-cta > * {
  position: relative;
}
.lb-cta h2 {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.25;
  color: #ffeb3b;
}
.lb-cta p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}

/* ==========================================================
   Application form
   ========================================================== */
.la-wrap.main-area {
  position: relative;
  margin-top: -70px;
}
.la-intro {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}
.la-intro__title {
  margin: 14px 0 10px;
  font-size: 34px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--lb-ink);
}
.la-intro__sub {
  margin: 0 0 22px;
  font-size: 16px;
  color: var(--lb-muted);
}
.la-req {
  color: var(--lb-orange-2);
  font-weight: 700;
}
.la-steps-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.la-steps-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--lb-ink);
  background: var(--lb-soft);
  transition: background-color 0.2s, color 0.2s;
}
.la-steps-nav a:hover {
  color: #fff;
  background: var(--lb-purple);
}
.la-steps-nav span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--lb-purple-2), var(--lb-purple));
}

.la-errors .alert,
.la-success .alert {
  border-radius: 14px;
}
.la-success {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.la-success__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
  background: var(--lb-green);
  box-shadow: 0 14px 28px rgba(22, 163, 106, 0.3);
}

.la-step {
  position: relative;
  min-width: 0;
  margin: 0 0 22px;
  padding: 26px 28px 10px;
  border: 1px solid var(--lb-line);
  border-radius: 20px;
  background: #fff;
  scroll-margin-top: 120px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.la-step:focus-within {
  border-color: rgba(90, 31, 211, 0.35);
  box-shadow: 0 18px 40px rgba(60, 30, 140, 0.08);
}
.la-step__head {
  display: flex;
  align-items: center;
  gap: 14px;
  float: left;
  width: 100%;
  margin: 0 0 22px;
  padding: 0 0 18px;
  border-bottom: 1px dashed var(--lb-line);
  font-size: inherit;
}
.la-step__head + * {
  clear: both;
}
.la-step__num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--lb-orange-1), var(--lb-orange-2));
  box-shadow: 0 10px 20px rgba(228, 91, 45, 0.28);
}
.la-step__text {
  display: block;
  min-width: 0;
}
.la-step__title {
  display: block;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--lb-ink);
}
.la-step__hint {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  font-weight: 400;
  color: var(--lb-muted);
}
.la-form .form-row {
  margin-left: -10px;
  margin-right: -10px;
}
.la-form .form-row > [class*="col-"] {
  padding-left: 10px;
  padding-right: 10px;
}
.la-form .form-group {
  margin-bottom: 18px;
}
.la-form label {
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--lb-ink);
}
.la-form label em {
  font-style: normal;
  font-weight: 400;
  color: var(--lb-muted);
}
.la-page .la-form .form-control {
  height: 50px;
  padding: 0 16px;
  font-size: 15px;
}
.la-page .la-form select.form-control {
  padding-right: 36px;
  cursor: pointer;
}
.la-money {
  flex-wrap: nowrap;
}
.la-money .input-group-text {
  height: 50px;
  min-width: 48px;
  justify-content: center;
  border: 1.5px solid #e3def5;
  border-right: none;
  border-radius: 12px 0 0 12px;
  font-weight: 700;
  color: var(--lb-purple);
  background: var(--lb-soft);
}
.la-page .la-money .form-control {
  border-radius: 0 12px 12px 0;
}
.la-since {
  flex-wrap: nowrap;
  gap: 10px;
}
.la-page .la-since .form-control {
  flex: 1 1 0;
  min-width: 0;
  border-radius: 12px !important;
}

.la-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 8px;
  padding: 22px 24px;
  border-radius: 20px;
  background: var(--lb-soft);
}
.la-agree.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 0;
}
.la-page .la-agree .form-check-input {
  position: static;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
}
.la-agree .form-check-label {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--lb-ink);
}
.la-agree a {
  display: inline;
  font-weight: 600;
}
.la-page .la-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 34px;
  border: none;
  font-size: 15px;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--lb-orange-1), var(--lb-orange-2));
  box-shadow: 0 12px 26px rgba(228, 91, 45, 0.38);
}
.la-page .la-btn:hover {
  color: #fff;
  box-shadow: 0 16px 32px rgba(228, 91, 45, 0.5);
}
.la-btn i {
  transition: transform 0.25s;
}
.la-btn:hover i {
  transform: translateX(4px);
}

/* ---------- responsive ---------- */
@media (max-width: 991px) {
  .lb-hero__grid,
  .lb-split {
    grid-template-columns: 1fr;
  }
  .lb-hero__media {
    order: -1;
  }
  .lb-hero__media img {
    max-height: 240px;
  }
  .lb-hero__title {
    font-size: 36px;
  }
  .lb-facts {
    grid-template-columns: 1fr;
  }
  .lb-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 767px) {
  .lb-hero.main-area,
  .lb-panel {
    padding: 28px 18px;
    border-radius: 18px;
  }
  .lb-cta {
    padding: 32px 22px;
    border-radius: 18px;
  }
  .lb-title,
  .la-intro__title {
    font-size: 26px;
  }
  .lb-hero__title {
    font-size: 30px;
  }
  .lb-cta h2 {
    font-size: 26px;
  }
  .lb-actions .lb-btn {
    flex: 1 1 100%;
  }
  .lb-table td,
  .lb-table th {
    padding-left: 10px;
    padding-right: 10px;
    font-size: 14px;
  }
  .lb-person img {
    width: 32px;
    height: 32px;
  }
  .la-step {
    padding: 20px 16px 4px;
    border-radius: 16px;
  }
  .la-steps-nav {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 -18px;
    padding: 0 18px 4px;
    scrollbar-width: none;
  }
  .la-steps-nav::-webkit-scrollbar {
    display: none;
  }
  .la-steps-nav a {
    white-space: nowrap;
  }
  .la-submit {
    padding: 18px 16px;
  }
  .la-page .la-btn {
    width: 100%;
  }
}
@media (max-width: 420px) {
  .lb-prizes {
    grid-template-columns: repeat(2, 1fr);
  }
  .lb-table td,
  .lb-table th {
    padding-left: 8px;
    padding-right: 8px;
    font-size: 13px;
  }
  .lb-person {
    gap: 6px;
  }
  .lb-person img {
    display: none;
  }
  .lb-rank {
    width: 30px;
    height: 30px;
  }
}
.lb-table th,
.lb-person span,
.lb-table td:nth-child(3) {
  white-space: nowrap;
}
@media (max-width: 575px) {
  .lb-table th {
    letter-spacing: 0;
    font-size: 11px;
  }
}
