/* ============================================================
   INDEX PAGE — Dedicated Stylesheet
   All selectors prefixed  idx-  to avoid collision with style.css
   Mirrors the client mockup (index-page-design-idea.jpg) exactly
   ============================================================ */

/* ── Google Font import (Inter already loaded via <link>, this is a fallback) ── */

/* ── Shell / page wrapper ── */
.idx-shell {
  min-height: 100vh;
   background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 60%, #1d4ed8 100%);
    padding: 0 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "Inter", sans-serif;
}


/* ============================================================
   1. TRUST BAR  — thin top strip
      🏆 Privacy Protected | SSL Secured | ⭐ 4.5★ Rating
   ============================================================ */
.idx-trust-bar {
  width: 100%;
  max-width: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 7px 10px;
}

.idx-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: #e0e7ff;
  white-space: nowrap;
  padding: 0 8px;
}

.idx-trust-item svg { flex-shrink: 0; }

/* Orange pill highlight — "Privacy Protected" item */
.idx-trust-highlight {
  /* background: #ea580c; */
  color: #ffffff;
  border-radius: 9999px;
  padding: 3px 10px;
  font-weight: 700;
  font-size: 14px;
}

.idx-trust-divider {
  color: rgba(255,255,255,0.3);
  font-size: 13px;
  line-height: 1;
  flex-shrink: 0;
}

/* ============================================================
   2. HEADER CARD — blue gradient
      Logo icon  |  "You MATCHED WITH  /  SpokeLoans FUNDING"
   ============================================================ */

.idx-header-card {
  width: 100%;
  max-width: 480px;
  background:#fff;
  padding: 16px 20px;
  display: flex;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.09);
  border-radius: 16px;
  margin-bottom: 12px;
}

.idx-header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Circular logo container — orange border ring to match mockup */
.idx-logo-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid #ea580c;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  flex-shrink: 0;
  overflow: hidden;
}

.idx-logo-img {
    width: 80px;
    height: 40px;
    object-fit: contain;
}

.idx-header-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.idx-matched-with {
    font-size: 13px;
    font-style: italic;
    font-weight: 500;
    color: #ea580c;
    letter-spacing: 0.02em;
    margin-bottom: 5px;
}

.idx-brand-name {
    font-size: 20px;
    font-weight: 900;
    color: #3f48cc;
    letter-spacing: 0.04em;
    line-height: 1.1;
    text-transform: uppercase;
}

/* ============================================================
   3. MAIN OFFER CARD — white, rounded
      Great News + Name + CTA buttons
   ============================================================ */
.idx-main-card {
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border-radius:16px;
  padding:20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.09);
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Offer text block */
.idx-offer-block {
  text-align: center;
  margin-bottom: 18px;
}

/* "GREAT NEWS," — italic, underlined, dark blue */
.idx-great-news {
    font-size: 20px;
    font-weight: 800;
    font-style: normal;
    color: #778cbf;
    text-decoration: none;
    text-decoration-color: #1e3a8a;
    text-underline-offset: 3px;
    margin-bottom: 4px;
    letter-spacing: 0.01em;
    letter-spacing: 1px;
}

/* Name — large bold orange */
.idx-name {
    font-size: 28px;
    font-weight: 700;
    color: #ea580c;
    line-height: 1.1;
    margin-bottom: 8px;
}

.pr{position:relative;}
.logo-left {
    position: absolute;
    top: 10px;
    left: 10px;
}

/* "Your SAME DAY loan is ready!" — bold green */
/* .idx-loan-ready {
    font-size: 17px;
    font-weight: 700;
    color: #16a34a;
    line-height: 1.3;
    letter-spacing: 1px;
    margin: 15px 0;
} */
.idx-loan-ready {
    font-size: 20px;
    font-weight: 800;
    color: #16a34a;
    line-height: 1.3;
    letter-spacing: 1px;
    margin: 15px 0;
}
@media (max-width:359px) {
.idx-loan-ready {
    font-size: 6vw;
    font-weight: 800;
    letter-spacing:0px;
}
}
/* Primary CTA — large solid blue, full width */
.idx-btn-primary {
    display: block;
    width: 100%;
    background: #00a3e9;
    color: #ffffff;
    text-align: center;
    font-family: "Inter", sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 17px 16px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    margin-bottom: 12px;
    transition: filter 0.2s, transform 0.1s;
    animation: idx-pulse-blue 2.2s ease-in-out infinite;
}

.idx-btn-primary:hover  { filter: brightness(1.08); }
.idx-btn-primary:active { transform: scale(0.98); animation: none; }

@keyframes idx-pulse-blue {
  0%, 100% { box-shadow: 0 2px 5px rgba(46, 88, 177, 0.5); }
  50%       { box-shadow: 0 4px 10px rgba(36, 80, 175, 0.8); }
}

/* Ghost / secondary — thin border, gray text */
.idx-btn-ghost {
  display: block;
  width: 100%;
  margin: 0 auto;
  background: #ffffff;
  color: #6b7280;
  text-align: center;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 11px 16px;
  border-radius: 9999px;
  border: 2px solid #d1d5db;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.idx-btn-ghost:hover { background: #f9fafb; color: #374151; }

/* ============================================================
   4. INFO / TRUST CARD
      "Your Communication is Safe & Secure!"
      + 2 info tiles  + email opt-in
   ============================================================ */
.idx-info-card {
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border-radius: 16px;
  padding: 18px 16px 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.idx-info-heading {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  text-align: center;
  margin-bottom: 2px;
}

/* ── Info tiles ── */
.idx-info-tile {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-radius: 10px;
  padding: 12px 14px;
}

/* Green tile — privacy */
.idx-tile-green {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

/* Blue tile — approval */
.idx-tile-blue {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

/* Icon wrapper — square rounded bg */
.idx-tile-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.idx-tile-green .idx-tile-icon { background: #dcfce7; }
.idx-tile-blue  .idx-tile-icon { background: #dbeafe; }

.idx-tile-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* Tile title */
.idx-tile-title {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
}

/* Green tile title — same plain dark style as blue tile */
.idx-tile-green .idx-tile-title {
  color: #111827;
  text-decoration: none;
}

/* Italic em inside tile title */
.idx-tile-title em {
  font-style: italic;
  color: #2563eb;
}

/* Tile subtitle */
.idx-tile-sub {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.45;
}

/* Both tiles get blue subtitle text */
.idx-tile-green .idx-tile-sub,
.idx-tile-blue  .idx-tile-sub { color: #2563eb; }

/* ── Email opt-in ── */
.idx-optin {
  background: #fffbeb;
  border-left: 4px solid #f97316;
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 2px;
}

.idx-optin-label {
  font-size: 13px;
  color: #374151;
  text-align: center;
  margin-bottom: 8px;
  line-height: 1.5;
}

.idx-optin-label strong {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
}

.idx-optin-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.idx-checkbox {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  accent-color: #2563eb;
  cursor: pointer;
}

.idx-optin-text {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  letter-spacing: 0.01em;
}

/* ============================================================
   5. LEGAL FOOTER
   ============================================================ */
.idx-footer {
    width: calc(100% + 30px);
    display: flex;
    flex-direction: column;
    margin: 0 -15px;
    max-width: 480px;
}


/* Top block — dark gray, lightly lighter than body */
.idx-footer-top {
  background: #1f2937;
  padding: 16px 18px;
}

.idx-footer-top p {
  font-size: 13px;
  color: #d1d5db;
  line-height: 1.6;
}

.idx-footer-top strong { color: #f9fafb; }
.idx-footer-top em     { font-style: italic; color: #f9fafb; }

/* Body block — slightly darker */
.idx-footer-body {
  background: #111827;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.idx-footer-body p {
  font-size: 14px;
  color: #9ca3af;
  line-height: 1.6;
}

.idx-footer-body strong { color: #d1d5db; }


.popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(10, 20, 50, 0.55);
    display:none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    padding: 50px 20px 30px;
    overflow: auto;
}

.popup-card {
    position: relative;
    background: #ffffff;
    border: 2px solid #1e3a8a;
    border-radius: 18px;
    padding: 22px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.22);
    margin: auto;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 60%, #1d4ed8 100%);
    padding: 20px;
    color: #cad8f7;
}

.popup-card .pop-cont {
    max-height:none;
    background: transparent;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: "Inter", sans-serif;
}

.popup-close-btn {
    position: absolute;
    top: -36px;
    right: -5px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #91a3d7;
    background: rgba(0,0,0,.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #b8c1db;
    font-weight: 700;
    transition: background 0.18s, color 0.18s;
}

img.a8 {
    max-width: 200px;
}

.popup-card .idx-main-card {
    width: 100%;
    max-width: 480px;
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.09);
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid #fff3;
    background: #ffffff1a;
}
.popup-card p {
    margin-bottom: 10px;
}
.popup-card .btn {
    margin-bottom: 10px;
}

.info-box {
    width: calc(100% + 30px);
    margin: 0 -15px;
    padding: 0 10px 0 15px;
    height: 70px;
    overflow: auto;
    font-size: 13px;
}

.mb0 {
    margin-bottom: 0!important;
}
.mb10 {
    margin-bottom: 10px!important;
}
.mb20 {
    margin-bottom: 20px!important;
}
.mb30 {
    margin-bottom: 30px!important;
}


.slim-scroll {
  overflow-y: auto;
  max-height: 300px; /* adjust as needed */
}

/* Chrome, Edge, Safari */
.slim-scroll::-webkit-scrollbar {
  width: 6px;
}

.slim-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.slim-scroll::-webkit-scrollbar-thumb {
  background-color: #999;
  border-radius: 10px;
}

.slim-scroll::-webkit-scrollbar-thumb:hover {
  background-color: #666;
}

/* Firefox */
.slim-scroll {
  scrollbar-width: thin;
  scrollbar-color: #999 transparent;
}

/* Show popup */
.popup-overlay.active {
  display: flex;
}

h4.question-title, .before-text {
    text-align: center;
}

.popup-card h3, h4 {color:#fff!important}

@media (max-width: 459px) {
  .popup-card .pop-cont .options.mb20{width: 100% ;}
.popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(10, 20, 50, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    padding: 30px 0px 10px;
    overflow: auto;
}
.btn {
    display: block;
    width: 100%;
    border: none;
    border-radius: 9999px;
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: clamp(11px, 3vw, 13px);
    text-transform: uppercase;
    cursor: pointer;
    padding: 12px 10px;
    text-align: center;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.1s, box-shadow 0.2s;
    line-height: 1.3;
    letter-spacing: 0.03em;
}

.idx-main-card {
    padding: 20px 10px;
}

}

@media (min-width:360px) {
  .logo-left {
    position: absolute;
    top: 15px;
    left: 20px;
}
.idx-great-news {
    font-size: 25px;
    font-weight: 800;
    font-style: normal;
    color: #778cbf;
    text-decoration: none;
    text-decoration-color: #1e3a8a;
    text-underline-offset: 3px;
    margin-bottom: 15px;
    letter-spacing: 0.01em;
    letter-spacing: 1px;
}
}

@media (max-width:429px) {
    .logo-left {
        position:static;
margin: auto;
    }

    .idx-trust-highlight {
    /* background: #ea580c; */
    color: #ffffff;
    border-radius: 9999px;
    padding: 3px 5px;
    font-weight: 700;
    font-size: 13px;
}
.idx-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #e0e7ff;
    white-space: nowrap;
    padding: 0 8px;
}
}