* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    sans-serif;
  color: #0f172a;
  background: #f8fafc;
}

body {
  min-height: 100vh;
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
}

p {
  margin: 0;
}

button {
  font-family: inherit;
}

/* Navigation */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 600;
}

.nav-logo-mark.large {
  width: 56px;
  height: 56px;
  font-size: 1.25rem;
}

.nav-logo-text {
  font-size: 1rem;
  font-weight: 500;
  color: #ffffff;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.nav-link,
.nav-login {
  border: none;
  background: none;
  font-size: 0.9rem;
  cursor: pointer;
  color: #64748b;
  padding: 0;
}

.nav-link.is-active {
  color: #2563eb;
}

.nav-link:hover {
  color: #0f172a;
}

.nav-login {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: #2563eb;
  color: #ffffff;
  font-weight: 500;
}

.nav-login-phone {
  margin-right: 0.5rem;
  font-size: 0.8rem;
  color: #0f172a;
}

.nav-login:hover {
  background: #1d4ed8;
}

.nav-menu-toggle {
  border: none;
  background: none;
  padding: 0.25rem;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.nav-menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #0f172a;
}

.nav-mobile {
  display: none;
  border-top: 1px solid #e2e8f0;
  padding: 0.75rem 1rem 1rem;
}

.nav-mobile.open {
  display: block;
}

.nav-mobile-link,
.nav-mobile-login {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: none;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: #64748b;
  cursor: pointer;
}

.nav-mobile-link.is-active {
  color: #2563eb;
}

.nav-mobile-login {
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  background: #2563eb;
  color: #ffffff;
  text-align: center;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }

  .nav-menu-toggle {
    display: none;
  }

  .nav-mobile {
    display: none !important;
  }
}

/* Sections */

main {
  flex: 1;
}

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3rem 1rem 4rem;
}
.home-loans-inner {
  max-width: 1240px;
}
.section-inner.eligibility {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1rem 4rem;
}

/* Application page */

.application-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 1.5rem;
  margin-bottom: 1.75rem;
}

.home-loan-application-header {
  align-items: center;
  max-width: 760px;
  margin: 0 auto 0.75rem;
}

.application-header h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.application-subtitle {
  font-size: 0.95rem;
  color: #64748b;
  margin-bottom: 8px;
}

.application-info-banner {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 0.75rem;
  background: #eff6ff;
  font-size: 0.9rem;
  color: #1e293b;
}

.application-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.application-section-card {
  background: #ffffff;
  border-radius: 0.9rem;
  border: 1px solid #e2e8f0;
  padding: 1.5rem 1.5rem 1.75rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  width: 800px;
}

.application-section-card h2 {
  font-size: 1.05rem;
  margin-bottom: 1.1rem;
}

.application-consent-text {
  font-size: 0.9rem;
  color: #475569;
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
  padding: 0.9rem 1rem;
  border-radius: 0.75rem;
  background-color: #f8fafc;
}

.application-consent-list {
  margin: 8px 0 1.25rem 1.2rem;
  padding: 0;
  font-size: 0.9rem;
  color: #475569;
}

.application-consent-list li {
  margin-bottom: 0.25rem;
}

.application-success {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.application-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  margin: 0 auto 1.5rem;
  background: #dcfce7;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.application-success h1 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.application-success-text {
  max-width: 540px;
  margin: 0 auto 2rem;
  font-size: 0.95rem;
  color: #475569;
}

.application-success-card {
  margin: 0 auto;
  max-width: 900px;
  text-align: left;
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  padding: 1.75rem 2rem 2rem;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
}

.application-success-card h2 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.application-success-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
}

.application-success-step {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.75rem;
  row-gap: 0.1rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: #475569;
}

.application-success-step + .application-success-step {
  margin-top: 0.85rem;
}

.application-success-step-number {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: #dbeafe;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.1rem;
}

.application-success-step-body strong {
  display: block;
  color: #0f172a;
}

.application-success-step-body span {
  display: block;
  margin-top: 0.1rem;
}

.application-success-cta {
  display: inline-flex;
  margin: 1.25rem auto 0;
}

/* Home Loan Application (Step 1) */

.loan-application-progress {
  margin: 0 auto 1.5rem;
  max-width: 760px;
}

.loan-application-progress-bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.loan-application-progress-fill {
  width: 20%;
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #1d4ed8);
}

.home-loan-step-card {
  max-width: 760px;
  margin: 0 auto;
}

.home-loan-step-card.action {
  background-color: inherit;
  border: none;
  box-shadow: none;
  padding: 0;
}

.home-loan-step-card .application-form {
  margin-top: 1rem;
}

.application-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
}

/* Hero */

.hero {
  position: relative;
  padding: 5rem 1rem 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("./assets/images/HomePageBanner.png");
  background-size: cover;
  background-position: center;
}

.hero-inner {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
  color: #ffffff;
}

.hero-inner h1 {
  font-size: clamp(2.25rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.hero-inner p {
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto 2rem;
  color: #dbeafe;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
    justify-content: center;
  }
}

/* Buttons */

.btn {
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}
a,
.btn,
a.btn,
a.btn:link,
a.btn:visited {
  text-decoration: none;
}

.btn-primary {
  background: #ffffff;
  color: #2563eb;
}

.btn-primary:hover {
  background: #eff6ff;
}

.btn-outline {
  background: transparent;
  color: #000000;
  border: 1px solid #000000;
}

.btn-secondary {
  background: #0f172a;
  color: #ffffff;
  border: none;
  border-radius: 8px;
}

.btn-secondary:hover {
  background: #0f150a;
}

.btn-outline:hover {
  background: rgba(15, 23, 42, 0.08);
}

.btn-outline-light {
  border-color: #ffffff;
  color: #ffffff;
}

.full-width {
  width: 100%;
}

.link-button {
  border: none;
  background: none;
  padding: 0;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #64748b;
  cursor: pointer;
}

.link-button:hover,
a.link-button:hover {
  color: #0f172a;
}

/* Features (home) */

.features {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3rem 1rem 4rem;
}

.features-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.features-header h2 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.features-header p {
  max-width: 560px;
  margin: 0 auto;
  color: #64748b;
}

.features-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.feature-card {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1.75rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.03);
}

.feature-card h3 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.feature-card p {
  font-size: 0.95rem;
  color: #64748b;
}

.feature-card .link-button {
  display: inline-flex;
  align-items: center;
  margin-top: 0.75rem;
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.feature-icon-blue {
  background: #dbeafe;
  color: #2563eb;
}

.feature-icon-green {
  background: #dcfce7;
  color: #16a34a;
}

.feature-icon-purple {
  background: #e9d5ff;
  color: #7c3aed;
}

.feature-icon-orange {
  background: #ffedd5;
  color: #ea580c;
}

/* Icon sizing overrides for credit cards */

.lucide-gift {
  width: 20px;
  height: 20px;
}

.lucide-star {
  width: 16px;
  height: 16px;
}

/* Credit Cards */

#section-credit-cards .section-inner {
  padding-top: 3rem;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.section-header h1 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: #64748b;
  margin-bottom: 1.5rem;
}

.cards-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card-item {
  background: #ffffff;
  border-radius: 0.9rem;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
}

.card-visual {
  padding: 1.5rem;
  color: #ffffff;
  position: relative;
  min-height: 180px;
}

.card-visual-dark {
  background: linear-gradient(135deg, #0f172a, #020617);
}

.card-visual-gold {
  background: linear-gradient(135deg, #d97706, #b45309);
}

.card-visual-silver {
  background: linear-gradient(135deg, #64748b, #0f172a);
}

.card-visual-purple {
  background: linear-gradient(135deg, #4c1d95, #020617);
}

.card-visual-blue {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.card-visual-green {
  background: linear-gradient(135deg, #15803d, #166534);
}

.card-visual-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}

.card-visual-header h3 {
  font-size: 1.1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(15, 23, 42, 0.28);
  border: 1px solid rgba(248, 250, 252, 0.3);
}

.card-icon {
  font-size: 1.4rem;
  opacity: 0.85;
}

.card-visual-footer {
  position: absolute;
  inset-inline: 1.5rem;
  bottom: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 0.9rem;
}

.card-visual-footer .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.7;
}

.card-visual-footer .value {
  margin-top: 0.15rem;
}

.card-body {
  padding: 1.4rem 1.5rem 1.5rem;
}

.card-body h4 {
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

.card-body .muted {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 0.9rem;
}

.card-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.card-benefits li {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 0.25rem;
}

/* How it works */

.how-it-works {
  margin-top: 3rem;
  padding: 2rem;
  border-radius: 1rem;
  background: #eff6ff;
}

.how-it-works h2 {
  text-align: center;
  margin-bottom: 1.75rem;
}

.how-it-works-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .how-it-works-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.step {
  text-align: center;
}

.step-number {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: #2563eb;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
}

.step h3 {
  margin-bottom: 0.4rem;
}

.step p {
  font-size: 0.9rem;
  color: #64748b;
}

/* Home Loans */

.loan-hero {
  position: relative;
  margin-bottom: 2.5rem;
  border-radius: 1.5rem;
  overflow: hidden;
  min-height: 340px;
  background-image: url("./assets/images/HomeLoanBanner.png");
  background-size: cover;
  background-position: center;
}

.loan-hero-content {
  position: relative;
  padding: 4.5rem 1.5rem;
  max-width: 520px;
  color: #ffffff;
}

.loan-hero-content h1 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.loan-hero-content p {
  font-size: 1.05rem;
  color: #bfdbfe;
  margin-bottom: 1.5rem;
}

.loan-benefits-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .loan-benefits-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.loan-options {
  margin-top: 3rem;
}

.loan-options-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .loan-options-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.loan-card {
  background: #ffffff;
  border-radius: 0.9rem;
  border: 1px solid #e2e8f0;
  padding: 1.5rem;
}

.loan-card h3 {
  margin: .5rem 0;
}

.loan-card p {
  font-size: 0.95rem;
  color: #64748b;
  margin-bottom: 0.9rem;
}

.loan-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.loan-card ul li {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.loan-card-highlight {
  border-width: 2px;
  border-color: #bfdbfe;
}

.loan-features {
  margin-top: 3rem;
}

.loan-features-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .loan-features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.feature-row {
  display: flex;
  gap: 1rem;
}

.feature-row h3 {
  margin-bottom: 0.3rem;
}

.feature-row p {
  font-size: 0.95rem;
  color: #64748b;
}

.loan-cta {
  margin-top: 3rem;
  padding: 2.5rem 1.75rem;
  border-radius: 1.25rem;
  background: linear-gradient(to right, #2563eb, #1d4ed8);
  text-align: center;
  color: #ffffff;
}

.loan-cta h2 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.loan-cta p {
  color: #e0f2fe;
  margin-bottom: 1.5rem;
}

.loan-requirements {
  margin-top: 3rem;
  border: 1px solid #e2e8f0;
  padding: 18px;
  border-radius: 8px;
}

.loan-requirements h2 {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  font-weight: 400;
}

.loan-requirements-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .loan-requirements-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.loan-requirements-grid h3 {
  margin-bottom: 0.35rem;
  font-weight: 400;
}

.loan-requirements-grid p {
  font-size: 0.95rem;
  color: #64748b;
}

/* Home Loan Calculator */

.loan-calculator {
  margin-top: 3rem;
}

.loan-calculator-back {
  border: none;
  background: none;
  padding: 0;
  font-size: 0.9rem;
  color: #64748b;
  cursor: pointer;
}

.loan-calculator-back:hover {
  color: #0f172a;
}

.loan-calculator-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.loan-calculator-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
}
.loan-calculator-title {
  margin-top: 18px;
}

.loan-calculator-title h2 {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

.loan-calculator-title p {
  font-size: 0.95rem;
  color: #64748b;
}

.loan-calculator-grid {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 900px) {
  .loan-calculator-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: flex-start;
  }
}

.loan-calculator-panel {
  background: #ffffff;
  border-radius: 1.25rem;
  border: 1px solid #e2e8f0;
  padding: 1.75rem 1.75rem 1.9rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.05);
}

.loan-calculator-panel h3 {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.loan-slider-group {
  margin-bottom: 1.5rem;
}

.loan-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.loan-slider-header span:last-child {
  font-weight: 500;
  color: #0f172a;
}

.loan-slider-range {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 0.25rem;
}

.loan-calculator-panel input[type="range"] {
  width: 100%;
  cursor: pointer;
}

.loan-summary {
  margin-top: 1.5rem;
  padding: 1.5rem 1.5rem 1.75rem;
  border-radius: 1.1rem;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
}

.loan-summary h3 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.loan-summary-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.8;
}

.loan-summary-emi {
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0.25rem 0 1rem;
}

.loan-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1.25rem;
  font-size: 0.9rem;
}

.loan-summary-grid .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

.loan-summary-grid .value {
  margin-top: 0.15rem;
}

.loan-breakdown {
  margin-top: 1.5rem;
}

.loan-breakdown h3 {
  font-size: 1rem;
  margin-bottom: 0.9rem;
}

.loan-breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #475569;
  padding: 0.35rem 0;
}

.loan-breakdown-total {
  border-top: 1px solid #e2e8f0;
  margin-top: 0.3rem;
  padding-top: 0.6rem;
  font-weight: 500;
}

.loan-quote-panel {
  background: #ffffff;
  border-radius: 1.25rem;
  border: 1px solid #e2e8f0;
  padding: 1.75rem 1.75rem 1.9rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.05);
}

@media (min-width: 900px) {
  .loan-quote-panel {
    position: sticky;
    top: 5.5rem;
    align-self: flex-start;
  }
}

.loan-quote-panel h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.loan-quote-panel .muted {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 1.25rem;
}

.loan-quote-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.loan-quote-note {
  margin: 1rem 0 1.25rem;
  padding: 0.85rem 0.9rem;
  border-radius: 0.85rem;
  background: #eff6ff;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.loan-quote-note-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.loan-quote-note-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: #0f172a;
  margin-bottom: 0.15rem;
}

.loan-quote-note-text {
  font-size: 0.85rem;
  color: #475569;
}

.loan-quote-terms {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: #94a3b8;
  text-align: center;
}

/* Footer */

.footer {
  background: #0f172a;
  color: #e2e8f0;
  padding: 3rem 1rem;
  margin-top: 3rem;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}

.footer-tagline {
  margin-top: 0.75rem;
  margin-bottom: 0.35rem;
  color: #94a3b8;
}

.footer-copy {
  font-size: 0.85rem;
  color: #64748b;
}

/* Toast notifications */

.toast-container {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  min-width: 260px;
  max-width: 420px;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.9rem;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.18);
  color: #0f172a;
  background: #ffffff;
}

.toast-success {
  background: #dcfce7;
  color: #166534;
}

.toast-error {
  background: #fee2e2;
  color: #991b1b;
}

/* Login Modal */

.login-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 40;
}

.login-modal.open {
  display: flex;
}

.login-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.login-dialog {
  position: relative;
  z-index: 1;
  width: min(420px, 100% - 2rem);
  background: #ffffff;
  border-radius: 1.25rem;
  padding: 1.5rem 1.5rem 1.75rem;
  box-shadow: 0 25px 80px rgba(15, 23, 42, 0.25);
}

.login-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: none;
  background: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: #64748b;
}

.login-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.login-dialog h2 {
  text-align: center;
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.login-subtitle {
  text-align: center;
  font-size: 0.95rem;
  color: #64748b;
  margin-bottom: 1.25rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.login-form label {
  font-size: 0.9rem;
  color: #0f172a;
}

.login-form input {
  border-radius: 0.6rem;
  border: 1px solid #e2e8f0;
  padding: 0.6rem 0.7rem;
  font-size: 0.95rem;
}

.login-form input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 1px #bfdbfe;
}

.helper-text {
  font-size: 0.75rem;
  color: #64748b;
}

.login-terms {
  margin-top: 0.3rem;
  font-size: 0.75rem;
  color: #94a3b8;
}

.login-security {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
}

/* Eligibility Page */

.eligibility-layout {
  display: block;
  margin-top: 10px;
}

.eligibility-form-card h1 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.eligibility-subtitle {
  font-size: 0.95rem;
  color: #64748b;
  margin-bottom: 1.75rem;
}

.eligibility-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: 8px;
}

.form-row.three-cols {
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .form-row.three-cols {
    flex-direction: row;
  }
}

.form-row.two-cols {
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .form-row.two-cols {
    flex-direction: row;
  }
}

.form-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-field label {
  font-size: 0.9rem;
  color: #0f172a;
}

.form-field label.required::after {
  content: " *";
  color: #ef4444;
}

.form-field input,
.form-field select,
.form-field textarea {
  border-radius: 0.6rem;
  border: 1px solid #e2e8f0;
  padding: 0.6rem 0.7rem;
  font-size: 0.95rem;
  font-family: inherit;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 1px #bfdbfe;
}

/* Readonly fields (prefilled, non-editable) */

.form-field input[readonly],
.form-field select[readonly] {
  background-color: #f8fafc;
  cursor: default;
}

.form-field input[readonly]:focus,
.form-field select[readonly]:focus {
  border-color: #e2e8f0;
  box-shadow: none;
}

.eligibility-note {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  padding: 0.9rem 1rem;
  border-radius: 0.75rem;
  background: #eff6ff;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.eligibility-note-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: #0f172a;
  margin-bottom: 0.15rem;
}

.eligibility-note-text {
  font-size: 0.8rem;
  color: #64748b;
}

.eligibility-terms {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: #94a3b8;
  text-align: center;
}

.eligibility-results {
  align-self: stretch;
  display: none;
}

.eligibility-results.feature-card {
  background-color: inherit;
  border: none;
  width: 900px;
  box-shadow: none;
}
.eligibility-results h2 {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.eligibility-results .muted {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 0.9rem;
}

.eligibility-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.eligibility-card {
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  padding: 0.9rem 1rem;
  background: #ffffff;
}

.eligibility-card h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.eligibility-card .badge {
  margin-right: 0.5rem;
}

.eligibility-card .muted {
  font-size: 0.85rem;
  color: #64748b;
}

.eligibility-card .muted.small {
  font-size: 0.8rem;
}

.eligibility-card-message {
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  padding: 0.9rem 1rem;
  background: #ffffff;
  font-size: 0.9rem;
  color: #64748b;
}

.eligibility-card-row {
  display: flex;
  flex-direction: column;
  border-radius: 1.25rem;
  border: none;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

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

.eligibility-card-visual {
  position: relative;
  padding: 1.5rem;
  color: #ffffff;
  min-height: 170px;
  flex: 0 0 280px;
}

.eligibility-card-visual h3 {
  margin-top: 0.5rem;
}

.eligibility-card-fee-rewards {
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
}

.eligibility-card-fee-rewards .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.75;
}

.eligibility-card-fee-rewards .value {
  margin-top: 0.15rem;
}

.eligibility-meta-row {
  display: flex;
  flex-direction: column;
}

.eligibility-meta-row p {
  color: #ffffff;
}

.eligibility-card-body {
  padding: 1.5rem 1.75rem;
  flex: 1;
}

.eligibility-card-welcome h4 {
  margin-bottom: 0.3rem;
}

.eligibility-card-welcome .muted {
  margin-bottom: 0.5rem;
}

.eligibility-card-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
}

.eligibility-card-benefits li {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 0.25rem;
}

.eligibility-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.75rem;
}

.prequalified-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 0.78rem;
  font-weight: 500;
}
