:root {
  --fl-light-blue: #eef4fb;
  --fl-bg-light: #f2f5f9;
  --fl-blue-10: rgba(123, 157, 196, 0.1);
  --fl-blue-20: rgba(123, 157, 196, 0.2);
}

.fl-bg-light {
  background-color: var(--fl-bg-light);
}

.fl-font {
  font-family: "Georgia", serif;
}

.bg-grey {
  background-color: var(--cf-grey3);
}

.text-grey {
  color: var(--cf-text-light);
}

.rounded {
  border-radius: 10px !important;
}

.shadow {
  box-shadow: 0px 20px 50px 10px rgba(0, 0, 0, 0.03) !important;
}

.card-default {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.fl-btn-main,
.fl-btn-main:active,
.fl-btn-main:visited {
  color: var(--white) !important;
  background-color: var(--cf-navy);
  border: 1px solid var(--cf-navy);
  text-decoration: none !important;
}

.fl-btn-main:hover {
  color: var(--white) !important;
  background: var(--cf-navy);
  border: 1px solid var(--cf-navy);
}

.btn-fl-secondary {
  color: var(--cf-navy) !important;
  background-color: var(--fl-blue-10) !important;
  border: var(--cf-teal) 1px solid;
  text-decoration: none !important;
}

.btn-fl-secondary:hover {
  color: var(--cf-navy);
  background-color: var(--fl-blue-20) !important;
  border: var(--cf-teal) 1px solid;
  text-decoration: none !important;
}

.icon-white {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0 !important;
}

.icon-large {
  font-size: 36px !important;
}

.icon-small {
  font-size: 24px !important;
}

.carousel-control-prev-icon {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="40px" viewBox="0 -960 960 960" width="40px" fill="%2300819C"><path d="M480-352.67 503.33-376l-87.07-87.08h200.66v-33.84H416.26L503.33-584 480-607.33 352.67-480 480-352.67Zm.13 232.67q-74.51 0-140-28.34-65.48-28.34-114.44-77.25-48.96-48.92-77.32-114.34Q120-405.35 120-479.87q0-74.67 28.34-140.41 28.34-65.73 77.25-114.36 48.92-48.63 114.34-76.99Q405.35-840 479.87-840q74.67 0 140.41 28.34 65.73 28.34 114.36 76.92 48.63 48.58 76.99 114.26Q840-554.81 840-480.13q0 74.51-28.34 140-28.34 65.48-76.92 114.44-48.58 48.96-114.26 77.32Q554.81-120 480.13-120Zm-.13-33.85q136.26 0 231.21-95.02Q806.15-343.9 806.15-480q0-136.26-94.94-231.21-94.95-94.94-231.21-94.94-136.1 0-231.13 94.94-95.02 94.95-95.02 231.21 0 136.1 95.02 231.13Q343.9-153.85 480-153.85ZM480-480Z"/></svg>');
  height: 35px;
  width: 35px;
}

.carousel-control-next-icon {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="40px" viewBox="0 -960 960 960" width="40px" fill="%2300819C"><path d="M480-352.67 607.33-480 480-607.33 456.67-584l87.07 87.08H343.08v33.84h200.66L456.67-376 480-352.67Zm.13 232.67q-74.51 0-140-28.34-65.48-28.34-114.44-77.25-48.96-48.92-77.32-114.34Q120-405.35 120-479.87q0-74.67 28.34-140.41 28.34-65.73 77.25-114.36 48.92-48.63 114.34-76.99Q405.35-840 479.87-840q74.67 0 140.41 28.34 65.73 28.34 114.36 76.92 48.63 48.58 76.99 114.26Q840-554.81 840-480.13q0 74.51-28.34 140-28.34 65.48-76.92 114.44-48.58 48.96-114.26 77.32Q554.81-120 480.13-120Zm-.13-33.85q136.26 0 231.21-95.02Q806.15-343.9 806.15-480q0-136.26-94.94-231.21-94.95-94.94-231.21-94.94-136.1 0-231.13 94.94-95.02 94.95-95.02 231.21 0 136.1 95.02 231.13Q343.9-153.85 480-153.85ZM480-480Z"/></svg>');
  height: 35px;
  width: 35px;
}

.carousel-indicators {
  bottom: -3rem;
}

.carousel-indicators [data-bs-target] {
  background-color: var(--cf-teal);
  margin: 0 6px;
  opacity: 0.2;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.carousel-indicators [data-bs-target].active {
  opacity: 1;
}

.btn-teal {
  background-color: var(--cf-teal);
  color: var(--white) !important;
  border: 1px solid var(--cf-teal);
  text-decoration: none !important;
}

.btn-teal:hover {
  background-color: var(--cf-dark-teal) !important;
  border: 1px solid var(--cf-dark-teal) !important;
}

.cta-carousel {
  background-color: var(--cf-green-10);
  height: 100%;
  padding: 5px;
  margin-bottom: 5rem;
}

.cta-carousel .carousel-indicators {
  bottom: -5.5rem;
}

.cta-carousel p {
  margin-bottom: 0;
}

.custom-accordion .accordion-header,
.custom-accordion .accordion-button,
.custom-accordion .accordion-body {
  background-color: var(--cf-teal-5) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}

.custom-accordion .accordion-item,
.custom-accordion {
  border: none !important;
  background-color: var(--cf-teal-5) !important;
  border-radius: 10px !important;
}

#hiw-table {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  overflow: hidden;
  border-spacing: 0;
  table-layout: fixed;
}

#hiw-table thead {
  font-size: 1.25rem;
  vertical-align: middle;
}

.bg-blue-table {
  color: var(--cf-teal) !important;
  background-color: var(--cf-teal-10) !important;
}

#hiw-table tr:last-child td:first-child {
  border-bottom: 2px solid var(--cf-green) !important;
}

#hiw-table td.col-grey {
  background-color: #f1f1f16b;
}

/* =========================================================
   NEW TABLE STYLING - UPDATED
   ========================================================= */

/* existing – applies to all cells in #hiw-table */
#hiw-table > :not(caption) > * > * {
  padding: 1.75rem 1rem;
  border-bottom-width: 0;
  border-left: 2px var(--cf-green) solid;
}

/* override just the blue header cells */
#hiw-table th.bg-blue-table {
  padding: 15px;
}

/* =========================================================
   Loans by Phone Page
   - Mobile Loans steps cards
   - Types of Personal Loans by Phone accordion
   ========================================================= */

.step-circle {
  width: 43px;
  height: 43px;
  border-radius: 50%;
  background-color: var(--cf-green);
  color: var(--white);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0; 
  box-shadow: 0 0 0 5px var(--fl-blue-20);
}

.custom-accordion-white .accordion-header,
.custom-accordion-white .accordion-button,
.custom-accordion-white .accordion-body {
  background-color: var(--white) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}

.custom-accordion-white .accordion-item,
.custom-accordion-white {
  border: none !important;
  border-radius: 10px !important;
}

/* Taller cards in reusable feature carousel */
#featureCarousel .card-default {
  min-height: 220px;
}

/* Base: keep indicators under the controls */
#featureCarousel .carousel-indicators {
  z-index: 1;   
}

/* Ensure controls stay on top */
#featureCarousel .carousel-control-prev,
#featureCarousel .carousel-control-next {
  z-index: 2;
}

/* Desktop (keep existing overlaid style) */
@media (min-width: 768px) {
  #featureCarousel .carousel-indicators {
    position: absolute;
    bottom: 1.5rem;
  }
}

/* Mobile (move indicators down below the carousel) */
@media (max-width: 767.98px) {
  #featureCarousel .carousel-indicators {
    position: static;
    margin: 0;
    display: flex;
    justify-content: center;
  }
}

.teal-5 {
  background-color: rgba(0, 129, 156, 0.05);
}

/* =========================
   TABLE (DESKTOP / TABLET)
   ========================= */
.comparison-table {
  width: 100%;
  table-layout: fixed; /* respect colgroup widths */
  border-collapse: separate;
  border-spacing: 0;
}

/* Column widths via <colgroup> */
.comparison-col-feature {
  width: 18%; /* left feature column */
}

.comparison-col-product {
  width: calc((100% - 18%) / 3); /* remaining width split equally */
}

/* Table styling */
.comparison-table th,
.comparison-table td {
  border-color: var(--cf-grey3);
}

.comparison-table thead th {
  padding: 1.75rem 1.25rem 0.5rem 1.25rem;
  font-weight: 700;
  font-size: 1.25rem;
  white-space: normal;
}

/* Primary product column (CreditFresh green) */
.comparison-primary {
  background-color: var(--cf-green) !important;
  color: #fff !important;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.comparison-primary-col {
  background-color: var(--cf-green) !important;
  color: #fff !important;
}

/* Rounded bottom on the primary column */
.comparison-table tbody tr:last-child .comparison-primary-col {
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td {
  border-bottom: none;
  padding-bottom: 1.75rem; /* adjust as needed */
}

.comparison-table tbody tr:first-child th,
.comparison-table tbody tr:first-child td {
  padding-top: 1.5rem;
}

/* Feature (left) column label cells */
.comparison-feature {
  text-align: left;
  font-weight: 300;
  font-size: 1.25rem;
  color: var(--cf-teal) !important;
  white-space: nowrap;
}

/* Data columns: spacing (width handled by colgroup) */
.comparison-table thead th:not(.comparison-feature),
.comparison-table tbody td {
  padding: 1.25rem 2rem;
}

/* =========================
   CAROUSEL LAYOUT (MOBILE)
   ========================= */

#comparisonCarousel {
  position: relative; /* create stacking context */
}

/* Mobile: keep carousel cards same height so indicators stay fixed */
@media (max-width: 767.98px) {
  #comparisonCarousel .carousel-item .comparison-card {
    min-height: 515px; /* adjust as needed */
    display: flex;
    flex-direction: column;
  }

  #comparisonCarousel .carousel-item .comparison-card .card-body {
    flex: 1 1 auto;
  }
}

/* Move controls down if needed */
#comparisonCarousel .carousel-control-prev,
#comparisonCarousel .carousel-control-next {
  top: auto;
  bottom: -2.5rem; /* adjust as needed */
  transform: translateY(0);
  z-index: 2; /* above indicators */
}

/* Indicators behind controls */
#comparisonCarousel .carousel-indicators {
  z-index: 1; /* behind controls */
}

/* =========================
   MOBILE CARDS – NEW DESIGN
   (card headers + tinted rows)
   ========================= */

/* Card shell */
.comparison-card {
  overflow: hidden;
}

/* Header band – uses bg-green / bg-teal utilities for color */
.comparison-card-header {
  display: flex;
  align-items: center;
  padding: 1.25rem 1.5rem;
  min-height: 90px;
}

.comparison-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

/* Base row style – background color is from bg-light / bg-light-green */
.comparison-row {
  padding: 1rem 1.1rem;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.comparison-row-label {
  font-weight: 700;
  margin-bottom: 0.15rem;
  font-size: 1.2rem;
}

.comparison-row-text {
  font-size: 0.95rem;
}

#hero-image {
  aspect-ratio: 11 / 8;
  overflow: hidden;
}

#hero-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

@media (max-width: 767.98px) {
  #hero-image {
    aspect-ratio: 16 / 9;
  }
}