@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Inter:wght@400;500;600&family=Unbounded:wght@500&display=swap');

:root {
  --color-primary: #FFC619;
  --color-secondary: #F8F9FB;
  --color-accent: #FF8F00;
  --color-dark: #2A2A2A;
  --color-muted: #666C7A;
  --color-light: #ffffff;
  --font-heading: 'Unbounded', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 0.75rem;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 20px rgba(0,0,0,0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body) !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
  color: var(--color-dark) !important;
  background-color: var(--color-light) !important;
  padding-top: 74px !important;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0rem;
  background-color: var(--color-light);
  box-shadow: var(--shadow-sm);
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: #292D32;
  position: relative;
  bottom: 6px;
  margin-left: 6px;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0;
}

nav a {
  font-weight: 500;
  color: var(--color-dark);
  transition: color 0.2s ease;

  padding: 0 1rem;
}

nav ul li {
  position: relative;
}
nav ul li + li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 1rem;
  background-color: #E6E8EC;
}

nav a:hover {
  color: var(--color-primary);
}

/* Primary button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-primary {
  background: linear-gradient(90deg, #FFDD31 0%, #FFA600 100%);
  color: #000;
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(90deg, #FFA600 0%, #FFDD31 100%);
  transform: translateY(-2px);
}

/* Hamburger for mobile */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  border: none;
  background: none;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--color-dark);
  transition: transform 0.2s ease, opacity 0.2s ease;
  border-radius: 2px;
}

/* Animation for hamburger when active */
.hamburger.hamburger--active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.hamburger.hamburger--active span:nth-child(2) {
  opacity: 0;
}

.hamburger.hamburger--active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile menu overlay */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 999;
}

.menu-overlay.menu-overlay--active {
  opacity: 1;
  pointer-events: all;
}

/* Mobile slide out menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 75%;
  height: 100%;
  background: var(--color-light);
  box-shadow: -2px 0 10px rgba(0,0,0,0.1);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: right 0.3s ease;
  z-index: 1000;
}

.mobile-menu.mobile-menu--active {
  right: 0;
}

.mobile-menu a {
  font-weight: 600;
  color: var(--color-dark);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-secondary);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

/* Hero Section */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem 3rem;
  background: linear-gradient(135deg, #6452A6 0%, #5687E1 100%);
  color: var(--color-light);
  position: relative;
  overflow: hidden;
  min-height: 350px;
}

.hero .hero-inner {
  max-width: 1100px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero p {
  font-size: 1.125rem;
  max-width: 700px;
  margin-top: 1rem;
}

.hero img {
  width: 100%;
  max-width: 500px;
  height: auto;
  margin-top: 2rem;
}

/* Loan form */
.loan-form {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.loan-form label {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

[id^="loanControl"] {
  position: relative;
  width: 250px;
}

[id^="loanControl"] select {
  /* Hide the native select so we can style our custom dropdown */
  display: none !important;
}

[id^="loanControl"] button {
  all: unset;
  cursor: pointer;
}

[id^="loanControl"] .trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--color-light);
  color: var(--color-dark);
  border: 1px solid var(--color-secondary);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 500;
}

[id^="loanControl"] .trigger::after {
  content: '▾';
  margin-left: 0.5rem;
  transition: transform 0.2s ease;
}

[id^="loanControl"][aria-expanded="true"] .trigger::after {
  transform: rotate(180deg);
}

[id^="loanControl"] ul {
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 0;
  right: 0;
  background: var(--color-light);
  border: 1px solid var(--color-secondary);
  border-radius: var(--radius);
  max-height: 200px;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  list-style: none;
  display: none;
  z-index: 10;
}

[id^="loanControl"] ul.open {
  display: block;
}

[id^="loanControl"] li {
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--color-dark);
}

[id^="loanControl"] li:hover,
[id^="loanControl"] li.active {
  background: var(--color-secondary);
}

.loan-form .btn-start {
  margin-top: 1rem;
}

/* Section Layouts */
.section {
  padding: 4rem 2rem;
}

.section.light {
  background: var(--color-secondary);
}

.section.dark {
  background: var(--color-dark);
  color: var(--color-light);
}

.section h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Logo with icon */
.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.container {
  height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    width: 96%;
}

.logo-icon {
  width: 32px;
  height: 32px;
  display: inline-block;
}

/* Call‑to‑action button inside header */
.header-cta {
  margin-left: 1rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #FFDD31 0%, #FFA600 100%);
  color: #000;
  border: none;
  font-family: var(--font-heading);
  font-weight: 500;
  display: inline-block;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.header-cta:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

/* Material disclosure section styling */
.material-disclosure {
  background: var(--color-secondary);
  padding: 3rem 1rem;
  font-size: 0.8125rem;
}

/* Loan options custom grid and cards */
#loan-options .loan-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 2rem;
}

.card-groups {
  display: grid ;
  gap: 2rem;
}

#loan-options .option-card {
  background: #F5F7F9;
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: transform 0.2s ease;
}

#loan-options .option-card:hover {
  transform: translateY(-4px);
}

#loan-options .option-card .icon {
  background: linear-gradient(180deg, #FFC619 0%, #FFDC70 100%);
  padding: 0.75rem;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#loan-options .option-card .icon img {
  width: 28px;
  height: 28px;
}

#loan-options .option-card.image-card {
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

#loan-options .option-card.image-card img {
  width: 100%;
  height: auto;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  object-fit: cover;
}

#loan-options .option-card.image-card div {
  padding: 1.5rem;
}

#loan-options .option-card h3 {
  font-size: 1.125rem;
  font-family: var(--font-heading);
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

#loan-options .option-card p {
  font-size: 0.875rem;
  color: var(--color-muted);
}

/* Home page hero custom layout */
.home-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(90deg, #FFFFFF 35%, #FFDD31 100%);
  padding: 4rem 1rem 3rem;
  gap: 2rem;
}

@media (min-width: 768px) {
  .home-hero {
    flex-direction: row;
    text-align: left;
    padding: 6rem 2rem;
  }
  .home-hero .hero-text {
    width: 50%;
    max-width: 550px;
  }
  .home-hero .hero-image {
    width: 50%;
    display: flex;
    justify-content: flex-end;
  }
}

.home-hero h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.25rem;
  line-height: 1.2;
  color: var(--color-dark);
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  
  .home-hero h1 {
    font-size: 3rem;
  }
}

.home-hero p {
  font-size: 1rem;
  color: var(--color-muted);
}

.home-hero .hero-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Amount selector for hero */
.amount-selector {
  margin-top: 2rem;
}

.amount-selector .amount-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-start;
  list-style: none;
  margin: 0;
  padding: 0;
}

.amount-selector .amount-list li {
  background: var(--color-secondary);
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--color-dark);
  transition: background 0.2s ease;
  flex: 1 1 calc(33.333% - 0.5rem);
  text-align: center;
  list-style: none;
}

.amount-selector .amount-list li::marker {
  content: none;
}

.amount-selector .amount-list li.active {
  background: var(--color-primary);
  color: var(--color-dark);
}

.amount-selector .btn-continue {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.65rem 1.5rem;
  background: linear-gradient(90deg, #FFDD31 0%, #FFA600 100%);
  color: #000;
  border-radius: 999px;
  border: none;
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.amount-selector .btn-continue:hover {
  background: linear-gradient(90deg, #FFA600 0%, #FFDD31 100%);
  transform: translateY(-2px);
}

.material-disclosure h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: left;
}

.material-disclosure p {
  font-size: 0.8rem;
  margin-bottom: 1rem;
  line-height: 1.5;
  color: var(--color-dark);
}

.material-disclosure a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* Qualify call‑to‑action card */
#qualify {
  background: var(--color-secondary);
}

#qualify .cta-card {
  background: var(--color-dark);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  color: var(--color-light);
}

@media (min-width: 768px) {
  #qualify .cta-card {
    flex-direction: row;
  }
}

#qualify .cta-image {
  flex: 1 1 40%;
  min-height: 250px;
  background-size: cover;
  background-position: center;
}

#qualify .cta-content {
  flex: 1 1 60%;
  padding: 2rem;
}

#qualify .cta-content h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-light);
  margin-bottom: 0.5rem;
  text-align: left;
}

#qualify .cta-content p {
  color: var(--color-secondary);
  opacity: 0.4;
}

#qualify .qualify-form {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  align-items: center;
  margin-top: 1rem;
}

#qualify [id^="loanControl"] .trigger {
  background: #2E2E4D;
  color: var(--color-light);
  border: none;
  transition: background 0.2s ease;
}
#qualify [id^="loanControl"] .trigger:hover {
  background: #4d4d85;
}

#qualify [id^="loanControl"] ul {
  background: #2E2E4D;
  border: none;
  color: var(--color-light);
}

#qualify [id^="loanControl"] li {
  color: var(--color-light);
}

#qualify [id^="loanControl"] li.active {
  background: var(--color-primary);
  color: var(--color-dark);
}

#qualify input[type="email"] {
  background: #2E2E4D;
  color: var(--color-light);
  border: none;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  flex: 1 1 200px;
  font-size: 0.9rem;
}

#qualify .cta-btn {
  background: linear-gradient(90deg, #FFDD31 0%, #FFA600 100%);
  color: #000;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

#qualify .cta-btn:hover {
  transform: translateY(-2px);
}

/* Hero feature highlights below the hero section */
.hero-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 1rem;
  background: var(--color-light);
}

.hero-features .feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--color-dark);
  /* Add spacing and separators between hero features for desktop */
  position: relative;
}

.hero-features .feature:not(:last-child) {
  margin-right: 3rem;
  padding-right: 3rem;
  border-right: 1px solid #E6E8EC;
}

@media (max-width: 768px) {
  #qualify .cta-image {
    display: none;
}
  .card-groups {
    gap: 1rem;
}
    #loan-options .loan-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(279px, 1fr));
    gap: 1rem;
}
  .hero-features .feature:not(:last-child) {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid #E6E8EC;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
  }
}

.hero-features .icon {
  /* Increase the size of the feature icons and give them a subtle gradient */
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(180deg, #FFC619 0%, #FFDC70 100%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-features .icon img {
  width: 32px;
  height: 32px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  background: var(--color-light);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  transition: transform 0.2s ease;
}

/* Styling for icons in How It Works section */
.features .feature-card .icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #FFDD31;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.features .feature-card .icon img {
  width: 28px;
  height: 28px;
}

/* Number styling for how it works steps */
.step-num {
  color: var(--color-primary);
  margin-right: 0.25rem;
  font-weight: 700;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-card img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.feature-card h3 {
  font-size: 1.2rem;
  font-family: var(--font-heading);
  color: var(--color-primary);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--color-muted);
}

/* Trust & Security cards styling */
#trust-security .feature-card {
  background: var(--color-light);
  border: 1px solid #F1F1F4;
  border-radius: var(--radius);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  transition: transform 0.2s ease;
  text-align: left;
}

#trust-security .feature-card:hover {
  transform: translateY(-4px);
}

#trust-security .feature-card img {
  background: linear-gradient(180deg, #FFC619 0%, #FFDC70 100%);
  padding: 0.75rem;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

#trust-security .feature-card h3 {
  font-size: 1.2rem;
  font-family: var(--font-heading);
  color: var(--color-dark);
}

#trust-security .feature-card p {
  font-size: 0.875rem;
  color: var(--color-muted);
}

/* Special styling for the How It Works cards on the home page */
#how-it-works .feature-card {
  background: var(--color-light);
  border: 1px solid #F1F1F4;
  border-radius: var(--radius);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  transition: transform 0.2s ease;
  text-align: left;
}

#how-it-works .feature-card:hover {
  transform: translateY(-4px);
}

#how-it-works .feature-card img {
  background: var(--color-secondary);
  padding: 0.75rem;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

#how-it-works .feature-card h3 {
  font-size: 1.2rem;
  font-family: var(--font-heading);
  color: var(--color-primary);
  margin-top: 0.25rem;
}

#how-it-works .feature-card p {
  font-size: 0.875rem;
  color: var(--color-muted);
}

/* Table Styling */
.table-wrapper {
  overflow-x: auto;
  margin-top: 2rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

thead {
  background: var(--color-primary);
  color: var(--color-light);
}

th, td {
  padding: 0.75rem;
  text-align: left;
}

tbody tr:nth-child(even) {
  background: var(--color-secondary);
}

/* Disclosure modal */
.disclosure-link {
  display: inline-block;
  margin-top: 2rem;
  text-align: center;
  cursor: pointer;
  color: var(--color-primary);
  font-size: 0.8rem;
  text-decoration: underline;
  opacity: 0.6;
}

#disclosure-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 10000;
}

#disclosure-modal.show {
  opacity: 1;
  visibility: visible;
}

#disclosure-modal .modal-content {
  background: var(--color-light);
  padding: 2rem;
  border-radius: var(--radius);
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

#disclosure-modal h3 {
  margin-bottom: 1rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-primary);
}

#disclosure-modal p {
  font-size: 0.875rem;
  color: var(--color-dark) !important;
  margin-bottom: 1rem;
  opacity: 0.8 !important;
}

#disclosure-modal .modal-close {
  display: inline-block;
  margin-top: 1rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--color-primary);
  text-decoration: underline;
}
.modal-content h2 {
  font-size: 1.3rem !important;
  color: var(--color-dark) !important;
}
.modal-content h3 {
  font-size: 1.1rem !important;
  color: var(--color-dark) !important;
}

/* Footer */
footer {
  background: var(--color-dark) !important;
  color: var(--color-light) !important;
  padding: 2rem !important;
  text-align: center !important;
  font-size: 0.875rem !important;
}

/* ---------------------------------------- */
/* Additional Components and Enhancements    */
/* ---------------------------------------- */

/* Position the disclosure modal content relative so we can place a close button */
#disclosure-modal .modal-content {
  position: relative;
}

/* Top‑right close button for disclosure modal */
.modal-close-top {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 1.5rem;
  color: var(--color-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close-top:hover {
  color: var(--color-primary);
}

/* Contact form styles */
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 700px;
  margin-top: 2rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.contact-form textarea {
  grid-column: span 2;
  min-height: 150px;
  resize: vertical;
}

.contact-form button {
  grid-column: span 2;
  padding: 0.75rem;
  background: linear-gradient(90deg, #FFDD31 0%, #FFA600 100%);
  color: #000;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.contact-form button:hover {
  background: linear-gradient(90deg, #FFA600 0%, #FFDD31 100%);
  transform: translateY(-2px);
}

/* FAQ accordion styles */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

/* ====== Common Loan Amount Pills ====== */
.common-amounts {
  margin-top: 1rem;
}

.common-amounts .common-label {
  color: var(--color-muted);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.common-amounts .common-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.common-buttons .common-amount {
  background: #FFF5CC;
  border: 1px solid #F7E7A3;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #4A4A4A;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.common-buttons .common-amount:hover {
  background: #FFECA8;
}

.faq-item {
  border-bottom: 1px solid #e5e5e5;
  padding: 1rem 0;
}

.faq-item .question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-primary);
}

.faq-item .question .arrow {
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

.faq-item.open .question .arrow {
  transform: rotate(-135deg);
}

.faq-item .answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.35s ease;
  opacity: 0;
  margin-top: 0;
}

.faq-item.open .answer {
  max-height: 500px;
  opacity: 1;
  margin-top: 0.5rem;
}

.faq-item .answer p {
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Loan amount selector enhancements */
/* Hide native select on all loan controls */
[id^="loanControl"] select {
  display: none;
}

/* Style the trigger button to look like an input with arrow */
[id^="loanControl"] button.trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: var(--color-light);
  border: 1px solid #e5e5e5;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  cursor: pointer;
}

/* Arrow indicator on trigger */
[id^="loanControl"] button.trigger::after {
  content: '';
  border: solid var(--color-primary);
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 4px;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

[id^="loanControl"] button.trigger[aria-expanded="true"]::after {
  transform: rotate(-135deg);
}

/* Dropdown list styling */
[id^="loanControl"] ul {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--color-light);
  border: 1px solid #e5e5e5;
  border-radius: var(--radius);
  margin-top: 0.25rem;
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: max-height 0.3s ease, opacity 0.3s ease;
  z-index: 50;
}

[id^="loanControl"] ul.open {
  max-height: 300px;
  opacity: 1;
  pointer-events: all;
  overflow-y: auto;
}

[id^="loanControl"] ul li {
  list-style: none;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

[id^="loanControl"] ul li:hover,
[id^="loanControl"] ul li.active {
  background: var(--color-secondary);
}

footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

footer .footer-links a {
  color: var(--color-light);
  font-weight: 500;
  font-size: 0.9rem;
}

footer .footer-links a:hover {
  color: var(--color-accent);
}

/* --- Hero slider redesign --- */
.home-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
  padding: 1rem 2rem 0rem 2rem;
  position: relative;
  overflow: hidden;
}

/* Add a yellow gradient band behind the hero image */
.home-hero::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 50%;
  background: linear-gradient(90deg, #FFDD31 0%, #FFA600 100%);
  z-index: -1;
}

.home-hero .hero-content {
  flex: 1;
  max-width: 600px;
  padding: 1rem;
  border-radius: 16px;
  background-color: RGBA(255,255,255,0.6);
  border: RGBA(0,0,0,0.1) 1px solid;
  position: relative;
  z-index: 6;
  text-align: center;
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.05);
  margin-bottom: 1rem;
}
.home-hero .container {
  gap: 2rem;
}

.home-hero .hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.home-hero .hero-image img {
  max-width: 100%;
  height: auto;
}

.home-hero h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 4vw + 1rem, 3rem);
  line-height: 1.2;
  color: var(--color-dark);
}

.home-hero .subtitle {
  margin-top: 1rem;
  margin-bottom: 3.4rem;
  color: var(--color-muted);
  font-size: 1rem;
  max-width: 500px;
  display: inline-block;
}

.loan-slider {
  position: relative;
  width: 100%;
  margin-bottom: 0.5rem;
}

.loan-slider .slider-values {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 0.75rem;
  color: var(--color-muted);
}

.loan-slider .slider-values span {
  position: relative;
  text-align: center;
}

.loan-slider .slider-values span::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  /* Thinner, lighter tick marks on the loan slider to better match the design */
  width: 1px;
  height: 6px;
  background-color: #C4C4D4;
  border-radius: 1px;
}

/* Common loan amount pills below the slider */
.common-amounts {
  margin-top: 1rem;
}

.common-amounts .common-label {
  color: var(--color-muted);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.common-amounts .common-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-evenly;
}

.common-buttons .common-amount {
  background: #FFF5CC;
  border: 1px solid #F7E7A3;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #4A4A4A;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.common-buttons .common-amount:hover {
  background: #FFECA8;
}

#loanSlider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 10px;
  /* Neutral track colour for the range slider */
  background-color: #E6E8EC;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

#loanSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  background: linear-gradient(-180deg, #FFDD31 0%, #FFA600 100%);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.16s ease;
}
#loanSlider::-webkit-slider-thumb:hover {
  width: 36px;
  height: 36px;
  background: linear-gradient(-180deg, #ffe600 0%, #FFA600 100%);
}

#loanSlider::-moz-range-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  background: linear-gradient(-180deg, #FFDD31 0%, #FFA600 100%);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.16s ease;
}
#loanSlider::-moz-range-thumb:hover {
  width: 36px;
  height: 36px;
  background: linear-gradient(-180deg, #ffe600 0%, #FFA600 100%);
}
  

.slider-bubble {
  position: absolute;
  top: -40px;
  bottom: auto;
  transform: translateX(-50%);
  background: linear-gradient(-180deg, #FFDD31 0%, #FFA600 100%);
  color: var(--color-dark);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 22px;
  font-weight: 600;
  pointer-events: none;
  box-shadow: var(--shadow-sm);
}

.btn-continue.slider-continue {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(180deg, #FFDD31 0%, #FFA600 100%);
  color: #000;
  border: none;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 18px;
  font-family: var(--font-heading);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}
p.note {
  opacity: 0.6;
  line-height: 1;
}

.btn-continue.slider-continue:hover {
  transform: translateY(-2px);
}

@media (max-width: 1390px) {
  .home-hero h1 {
    font-size: 2rem;
    line-height: 1.1;
    margin-bottom: 0;
}
}

@media (max-width: 768px) {
  #qualify .qualify-form {
    gap: 1rem;
    align-items: flex-start;
}
  #qualify.section {
    padding: 1rem;
}
  #qualify .cta-content {
    padding: 1rem;
}
  .home-hero .hero-image img.main-hero-img {
    display: none;
}
.home-hero .hero-image .hand-overlay {
    display: none;
}
  .home-hero .container {
    gap: 0rem;
}
  .home-hero {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
    padding: 0rem 0.5rem;
    background: linear-gradient(90deg, #FFFFFF 35%, #f0ebd3 100%);
  }
  .home-hero .hero-content {
    max-width: 100%;
    background-color: none;
    border: none;
    background: none;
    box-shadow: none;
  }
  .home-hero .hero-image {
    order: -1;
  }
  .home-hero h1 {
    font-size: 1.6rem;
  }
  .home-hero .subtitle {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .hero {
    flex-direction: row;
    text-align: left;
    padding: 6rem 3rem;
  }
  .hero .hero-inner {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
  }
  .loan-form {
    flex-direction: row;
  }
  .loan-form .btn-start {
    margin-top: 0;
    margin-left: 1rem;
  }
  .hamburger {
    display: none;
  }
  nav ul {
    display: flex;
  }
  .mobile-menu,
  .menu-overlay {
    display: none;
  }
}

@media (max-width: 767px) {
      
  nav ul {
    display: none;
  }
  .hamburger {
    display: flex;
    z-index: 1001;
  }
}

.home-hero .hero-image {
  position: relative;
}

.money-stack {
  position: absolute;
  top: 66%;
  left: 11%;
  width: clamp(120px, 46%, 360px);
  height: auto;
  pointer-events: none;
  /* Keep the fan rotated so the spread matches the natural grip */
  transform: rotate(-80deg);
  overflow: visible;
}

.home-hero .money-stack .bill {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 100%;
  height: auto;
  transform: translateX(-50%) rotate(0deg) scale(0);
  transform-origin: 50% 60%;
  will-change: transform;
  transition: transform 0.3s ease;
}

.is-dragging .money-stack .bill {
  transition-duration: 0.11s;
}

.home-hero .hero-image .hand-overlay {
  position: absolute;
  top: 62%;
  left: 18%;
  width: clamp(60px, 15%, 200px);
  height: auto;
  pointer-events: none;
  z-index: 5;
}

@media (max-width: 1364px) {
  .loan-slider .slider-values span {
    font-size: 10px;
}
.home-hero .container {
  align-items: flex-end;
}
}

@media (max-width: 1164px) {
  .loan-slider .slider-values span.mobile-none {
    display: none;
}
}

@media (max-width: 767px) {
  .home-hero .money-stack .bill {
    transition: transform 0.09s ease;
}
  .hero h1 {
    font-size: 1.5rem;
    line-height: 1.1;
}
.section h2 {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
}
.home-hero .container {
        align-items: center;
    }
    .home-hero .hero-image {
    position: absolute;
    width: 100%;
    left: 53%;
  transform: translateX(-50%);
  max-width: 360px;
  margin-top: -3rem;
}
.money-stack {
    left: 50%;
   transform: translateX(-50%) rotate(-80deg);
    width: clamp(120px, 56%, 360px);
}
.loan-slider {
    margin-top: 9rem;
}
}