/* Apply for loan (business & student) — Seed Out theme */
.apply-business-loan-page,
.apply-student-loan-page {
  --abl-green: #368420;
  --abl-green-dark: #2d6f1a;
  --abl-green-soft: rgba(54, 132, 32, 0.1);
  --abl-text: #1a1a1a;
  --abl-muted: #5c5c5c;
  --abl-border: rgba(0, 0, 0, 0.08);
  --abl-radius-lg: 20px;
  --abl-radius-md: 14px;
  --abl-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --abl-shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.1);
  --abl-section-y: clamp(2.75rem, 5.5vw, 5rem);
  position: relative;
  font-family: 'Outfit', sans-serif;
  color: var(--abl-text);
  background: #fff;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

/* Student loan page — home-style banner (header inside .banner-section) */
.apply-student-loan-page .apply-student-loan-banner .page-banner__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}

/* ── Hero ──
   Gradient lives on the outer .banner-section (which also holds the nav) so
   the nav strip and hero share one continuous background instead of a seam.
   Blue/navy — deliberately distinct from the green used by the cards below,
   so the hero reads as its own moment rather than blending in. */
.banner-section.abl-hero-bg {
  background: radial-gradient(ellipse 55% 55% at 88% 10%, rgba(93, 169, 255, .22) 0%, transparent 60%),
              radial-gradient(ellipse 50% 50% at 6% 95%, rgba(93, 169, 255, .12) 0%, transparent 55%),
              linear-gradient(135deg, #071a35 0%, #0f2f5c 55%, #1d5aa3 100%);
}

.abl-hero {
  position: relative;
  overflow: hidden;
  padding: var(--banner-body-padding-top, 30px) 0 clamp(2.5rem, 2rem + 2vw, 3.5rem);
}

.abl-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(1.5rem, 1rem + 3vw, 3rem);
  align-items: center;
}

/* Floating decorative illustration — sits behind the content, bleeding off
   the bottom-right corner, with a slow continuous float to give the banner
   a "living" quality instead of a flat static background. */
.abl-hero__visual-decor {
  position: absolute;
  right: -30px;
  bottom: -24px;
  width: clamp(200px, 24vw, 360px);
  z-index: 0;
  opacity: 0.92;
  pointer-events: none;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .35));
  animation: ablFloat 6s ease-in-out infinite;
}

.abl-hero__visual-decor-img {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes ablFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

@media (max-width: 900px) {
  .abl-hero__visual-decor {
    display: none;
  }
}

.abl-hero__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #cfe4ff;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 100px;
  padding: 6px 18px;
  margin-bottom: 18px;
  animation: ablFadeUp .6s ease both;
}

.abl-hero h1 {
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 16px;
  line-height: 1.2;
  animation: ablFadeUp .6s ease .1s both;
}

.abl-hero__sub {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, .88);
  max-width: 480px;
  margin: 0 0 28px;
  line-height: 1.6;
  animation: ablFadeUp .6s ease .2s both;
}

.abl-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #0f2f5c !important;
  font-weight: 700;
  font-size: .95rem;
  padding: 13px 32px;
  border-radius: 100px;
  text-decoration: none !important;
  transition: transform .2s, box-shadow .2s;
  animation: ablFadeUp .6s ease .3s both;
}

.abl-hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .25);
  color: #0f2f5c !important;
  text-decoration: none;
}

.abl-hero__badges {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.abl-hero__badge {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 16px;
  padding: 16px 18px;
  backdrop-filter: blur(4px);
  transition: background .2s, transform .2s;
  opacity: 0;
  animation: ablFadeUp .6s ease forwards;
}

.abl-hero__badge:hover {
  background: rgba(255, 255, 255, .14);
  transform: translateX(-4px);
}

.abl-hero__badge:nth-child(1) { animation-delay: .2s; }
.abl-hero__badge:nth-child(2) { animation-delay: .35s; }
.abl-hero__badge:nth-child(3) { animation-delay: .5s; }

.abl-hero__badge-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(93, 169, 255, .18);
  display: flex;
  align-items: center;
  justify-content: center;
}

.abl-hero__badge-icon i {
  font-size: 18px;
  color: #7db8ff;
}

.abl-hero__badge-title {
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.abl-hero__badge-text {
  font-size: .8rem;
  color: rgba(255, 255, 255, .72);
  margin: 2px 0 0;
}

@keyframes ablFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .abl-hero__visual-decor {
    animation: none;
  }

  .abl-hero__eyebrow,
  .abl-hero h1,
  .abl-hero__sub,
  .abl-hero__cta,
  .abl-hero__badge {
    animation: none;
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .abl-hero__grid { grid-template-columns: 1fr; }
  .abl-hero__eyebrow, .abl-hero h1, .abl-hero__sub { text-align: center; }
  .abl-hero__sub { margin-inline: auto; }
  .abl-hero__cta { display: flex; width: fit-content; margin-inline: auto; }
}

.apply-student-loan-page .apply-student-loan-banner .btn-group-donate-apply {
  margin-top: 1.5rem;
}

.apply-student-loan-page .apply-student-loan-banner .btn-group-donate-apply .btn {
  text-decoration: none;
}

.apply-student-loan-page #asl-scholarship-process {
  scroll-margin-top: 6rem;
}

.apply-business-loan-page__main,
.apply-student-loan-page__main {
  display: block;
  width: 100%;
}

.apply-business-loan-page *,
.apply-business-loan-page *::before,
.apply-business-loan-page *::after,
.apply-student-loan-page *,
.apply-student-loan-page *::before,
.apply-student-loan-page *::after {
  box-sizing: border-box;
}

.apply-business-loan-page__main img {
  max-width: 100%;
  height: auto;
  display: block;
}

.apply-business-loan-page h1,
.apply-business-loan-page h2,
.apply-business-loan-page h3,
.apply-student-loan-page h1,
.apply-student-loan-page h2,
.apply-student-loan-page h3 {
  font-family: inherit;
}

.abl-wrap {
  width: 100%;
  max-width: 1170px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 1.5rem);
}

/* Sections */
.abl-section {
  padding-block: var(--abl-section-y);
}

.abl-section--muted {
  background: #f8f8f8;
}

.abl-section__head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto clamp(1.75rem, 3.5vw, 2.75rem);
}

.abl-section__eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--abl-green);
  margin-bottom: 0.5rem;
}

.abl-section__heading {
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.125rem);
  font-weight: 700;
  color: #000;
  margin: 0 0 0.65rem;
  line-height: 1.2;
  text-wrap: balance;
}

.abl-section__desc {
  font-size: clamp(0.9375rem, 0.9rem + 0.15vw, 1.0625rem);
  line-height: 1.65;
  color: var(--abl-muted);
  margin: 0;
}

/* Features */
.abl-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.35rem);
}

.abl-feature-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  background: #fff;
  border: 1px solid var(--abl-border);
  border-radius: var(--abl-radius-lg);
  padding: clamp(1.25rem, 2.5vw, 1.65rem);
  box-shadow: var(--abl-shadow);
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.abl-feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--abl-green), #4ca838);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.abl-feature-card:hover {
  border-color: rgba(54, 132, 32, 0.22);
  box-shadow: var(--abl-shadow-hover);
  transform: translateY(-4px);
}

.abl-feature-card:hover::before {
  opacity: 1;
}

.abl-feature-card__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--abl-green-soft);
  border-radius: 12px;
  padding: 8px;
}

.abl-feature-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.abl-feature-card__icon i {
  font-size: 22px;
  color: var(--abl-green);
}

.abl-feature-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--abl-green);
  margin: 0 0 0.45rem;
  line-height: 1.3;
}

.abl-feature-card p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--abl-muted);
  margin: 0;
  flex: 1;
}

.abl-feature-card a {
  color: var(--abl-green);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.abl-feature-card a:hover {
  color: var(--abl-green-dark);
}

/* Banners */
.abl-visual-break {
  padding-block: clamp(1.25rem, 3vw, 2rem);
}

.abl-visual-break--muted {
  background: #f8f8f8;
}

.abl-visual-break__frame {
  margin: 0;
  border-radius: var(--abl-radius-lg);
  overflow: hidden;
  box-shadow: var(--abl-shadow);
  line-height: 0;
  background: #e5e5e5;
}

.abl-visual-break__frame img {
  width: 100%;
  height: auto;
  min-height: 140px;
  max-height: 300px;
  object-fit: cover;
  object-position: center;
}

/* Steps */
.abl-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.25rem);
  position: relative;
}

@media (min-width: 992px) {
  .abl-steps::after {
    content: '';
    position: absolute;
    top: 2.5rem;
    left: 14%;
    right: 14%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(54, 132, 32, 0.2) 15%, rgba(54, 132, 32, 0.2) 85%, transparent);
    pointer-events: none;
    z-index: 0;
  }
}

.abl-step-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  border: 1px solid var(--abl-border);
  border-radius: var(--abl-radius-lg);
  padding: clamp(1.35rem, 2.5vw, 1.65rem) clamp(1rem, 2vw, 1.25rem);
  box-shadow: var(--abl-shadow);
  height: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.abl-step-card:hover {
  border-color: rgba(54, 132, 32, 0.22);
  box-shadow: var(--abl-shadow-hover);
  transform: translateY(-3px);
}

.abl-step-card__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: var(--abl-green);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(54, 132, 32, 0.35);
}

.abl-step-card__icon {
  width: 46px;
  height: 46px;
  margin-bottom: 0.75rem;
  object-fit: contain;
}

i.abl-step-card__icon {
  display: block;
  width: auto;
  height: auto;
  font-size: 30px;
  color: var(--abl-green);
}

.abl-step-card h3 {
  font-size: clamp(1rem, 0.95rem + 0.15vw, 1.125rem);
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: #000;
}

.abl-step-card__badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--abl-green);
  background: var(--abl-green-soft);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  margin-bottom: 0.65rem;
  white-space: nowrap;
}

.abl-step-card p {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--abl-muted);
  margin: 0;
}

/* CTA */
.abl-cta-band {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: clamp(2rem, 4vw, 2.75rem) clamp(1.25rem, 4vw, 2rem);
  text-align: center;
  background: linear-gradient(135deg, #2d6f1a 0%, var(--abl-green) 55%, #3d9428 100%);
  border-radius: var(--abl-radius-lg);
  box-shadow: 0 8px 32px rgba(54, 132, 32, 0.22);
}

.abl-cta-band__title {
  font-size: clamp(1.2rem, 1rem + 0.7vw, 1.625rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.45rem;
  text-wrap: balance;
}

.abl-cta-band__text {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 auto 1.35rem;
  max-width: 460px;
}

.abl-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  max-width: 100%;
  height: 52px;
  padding: 0 2rem;
  border: 2px solid #fff;
  border-radius: 12px;
  background: #fff;
  color: var(--abl-green) !important;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.abl-cta-btn:hover,
.abl-cta-btn:focus {
  background: transparent;
  color: #fff !important;
  transform: translateY(-2px);
}

/* FAQ */
.abl-faq {
  max-width: 780px;
  margin: 0 auto;
}

.abl-faq .accordion-item {
  border: 1px solid var(--abl-border) !important;
  border-radius: var(--abl-radius-md) !important;
  margin-bottom: 0.6rem;
  overflow: hidden;
  background: #fff;
}

.abl-faq .accordion-item:last-child {
  margin-bottom: 0;
}

.abl-faq .accordion-button {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(0.9375rem, 0.9rem + 0.12vw, 1.03125rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--abl-text);
  background: #fff;
  padding: 1rem 1.15rem;
  box-shadow: none !important;
}

.abl-faq .accordion-button:not(.collapsed) {
  color: var(--abl-green);
  background: var(--abl-green-soft);
}

.abl-faq .accordion-button::after {
  width: 1rem;
  height: 1rem;
  background-size: 1rem;
  flex-shrink: 0;
  filter: none;
}

/* Override global app.css accordion/button conflicts inside this page */
.apply-business-loan-page .abl-faq .accordion-button.collapsed::after,
.apply-student-loan-page .abl-faq .accordion-button.collapsed::after {
  transform: rotate(-90deg);
}

.apply-business-loan-page .abl-cta-btn,
.apply-student-loan-page .abl-cta-btn {
  text-transform: none;
  letter-spacing: normal;
}

.abl-faq .accordion-button:focus {
  box-shadow: none !important;
}

.abl-faq .accordion-body {
  padding: 0 1.15rem 1.15rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--abl-muted);
}

.abl-faq .accordion-body p {
  margin: 0 0 0.75rem;
}

.abl-faq .accordion-body p:last-child {
  margin-bottom: 0;
}

.abl-faq .accordion-body ul,
.abl-faq .accordion-body ol {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
}

.abl-faq .accordion-body li {
  margin-bottom: 0.35rem;
}

.abl-faq .accordion-body a {
  color: var(--abl-green);
  font-weight: 600;
}

.abl-faq .abl-faq-or {
  text-align: center;
  font-weight: 600;
  color: #888;
  margin: 0.35rem 0 !important;
}

/* Responsive */
@media (max-width: 1199px) {
  .abl-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .abl-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .abl-steps::after {
    display: none;
  }
}

@media (max-width: 767px) {
  .abl-features {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .abl-feature-card {
    padding: 1.15rem 1.25rem;
  }

  .abl-steps {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    max-width: 400px;
    margin-inline: auto;
  }

  .abl-step-card {
    padding: 1.25rem 1.35rem;
  }

  .abl-visual-break__frame img {
    max-height: 200px;
  }

  .abl-cta-band {
    border-radius: var(--abl-radius-md);
  }
}

@media (max-width: 479px) {
  .abl-cta-btn {
    width: 100%;
  }

  .abl-faq .accordion-button {
    padding: 0.9rem 1rem;
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .abl-feature-card,
  .abl-step-card,
  .abl-cta-btn {
    transition: none;
  }

  .abl-feature-card:hover,
  .abl-step-card:hover {
    transform: none;
  }
}
