:root {
  --blue: #2d35e8;
  --blue2: #1d27d4;
  --teal: #0cb8b6;
}

/* HERO LAYOUT */
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 32px;
}
.hero-left h1 {
  font-family: 'Sora', sans-serif;
  font-weight: 900;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero-left h1 span { color: var(--blue); }
.hero-checks { list-style: none; margin-bottom: 24px; }
.hero-checks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  margin-bottom: 10px;
  color: var(--text);
}
.hero-checks li::before {
  content: '✓';
  width: 22px; height: 22px;
  background: var(--blue);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.rgpd-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1a1a6e;
  color: white;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
}
.rgpd-stars { color: #ffd700; }

/* FORM CARD */
.form-card {
  background: white;
  border: 2px solid var(--blue);
  border-radius: 16px;
  padding: 24px;
}

/* WRAPPER (tunnel pages) */
.tunnel-wrap {
  max-width: 620px;
  margin: 30px auto;
  padding: 0 16px 60px;
  display: none;
}
.tunnel-wrap.act { display: block; }

/* PROGRESS BAR */
.prog-track { height: 8px; background: var(--lgray); border-radius: 4px; margin-bottom: 20px; overflow: hidden; }
.prog-fill { height: 100%; background: var(--blue); border-radius: 4px; transition: width 0.4s ease; }

/* CARD */
.card { background: white; border: 2px solid var(--blue); border-radius: 16px; padding: 24px; }

/* SCREENS */
.screen { display: none; }
.screen.act { display: block; animation: fadeUp 0.3s ease; }
@keyframes fadeUp { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }

/* QUESTION LABEL */
.q-label {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy);
  margin-bottom: 16px;
}
.q-label .req { color: var(--red); }

/* ICON CARDS GRID */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.icon-grid.col2 { grid-template-columns: 1fr 1fr; }
.icon-grid.col5 { grid-template-columns: repeat(3,1fr); }
.icon-card {
  border: 2px solid var(--lgray);
  border-radius: 12px;
  padding: 16px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  background: white;
}
.icon-card:hover { border-color: var(--blue); background: #f0f1ff; }
.icon-card.sel { border-color: var(--blue); background: #f0f1ff; box-shadow: 0 0 0 3px rgba(45,53,232,0.12); }
.icon-card .ic { font-size: 2rem; margin-bottom: 8px; display: block; color: var(--blue); }
.icon-card .ic-svg { font-size: 2.2rem; margin-bottom: 8px; display: block; }

/* BANK GRID */
.bank-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 10px;
  margin-bottom: 12px;
}
.bank-card {
  border: 2px solid var(--lgray);
  border-radius: 10px;
  padding: 12px 6px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--navy);
}
.bank-card:hover { border-color: var(--blue); background: #f0f1ff; }
.bank-card.sel { border-color: var(--blue); background: #f0f1ff; }
.bank-logo { font-size: 1.5rem; margin-bottom: 4px; display: block; }
.bank-name { font-size: 0.7rem; line-height: 1.3; }

/* OUI/NON CARDS */
.yn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.yn-card {
  border: 2px solid var(--lgray);
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}
.yn-card:hover { border-color: var(--blue); }
.yn-card.sel { border-color: var(--blue); background: #f0f1ff; }
.yn-icon { font-size: 2.5rem; margin-bottom: 8px; display: block; color: var(--blue); }

/* INPUTS */
.inp-g { margin-bottom: 15px; }
.inp-g label { display: block; font-weight: 700; font-size: 0.87rem; color: var(--navy); margin-bottom: 5px; }
.inp-g label .req { color: var(--red); }
.inp-g input, .inp-g select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  background: #f8f9ff;
  outline: none;
  transition: border-color 0.2s;
}
.inp-g input:focus, .inp-g select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(45,53,232,0.1); background: white; }
.inp-g input.err-field { border-color: var(--red); }
.inp-hint { font-size: 0.72rem; color: var(--gray); margin-top: 4px; }
.inp-hint.orange { color: var(--orange); }
.inp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.inp-shield { position: relative; }
.inp-shield input { padding-right: 40px; }
.shield-icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--border); }

/* RADIO */
.radio-inline { display: flex; gap: 24px; margin: 10px 0 6px; flex-wrap: wrap; }
.radio-inline label { display: flex; align-items: center; gap: 7px; font-size: 0.88rem; cursor: pointer; font-weight: 500; }
.radio-inline input[type=radio] { width: 17px; height: 17px; accent-color: var(--blue); cursor: pointer; }

/* CHECKBOX / OPTIN */
.chk-line { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 10px; }
.chk-line input[type=checkbox] { width: 17px; height: 17px; min-width: 17px; accent-color: var(--blue); cursor: pointer; margin-top: 2px; }
.chk-line label { font-size: 0.8rem; color: var(--text); line-height: 1.55; cursor: pointer; }
.chk-line label a { color: var(--blue); }
.err-msg { font-size: 0.72rem; color: var(--red); margin-top: 3px; display: none; }
.err-msg.show { display: block; }

/* ELIGIBILITY BANNER */
.eligibility-banner {
  background: #f0f1ff;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 20px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  line-height: 1.4;
}

/* BUTTONS */
.btn-row { display: flex; gap: 10px; margin-top: 18px; }
.btn-next {
  flex: 1;
  padding: 13px;
  background: var(--blue);
  color: white;
  border: none;
  border-radius: 10px;
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-next:hover { background: var(--blue2); transform: translateY(-1px); }
.btn-prev {
  padding: 13px 20px;
  background: var(--blue);
  color: white;
  border: none;
  border-radius: 10px;
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-prev:hover { background: var(--blue2); }
.btn-launch {
  width: 100%;
  padding: 15px;
  background: var(--blue);
  color: white;
  border: none;
  border-radius: 10px;
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-launch:hover { background: var(--blue2); transform: translateY(-1px); }

/* LOADING */
.load-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.load-overlay.act { display: flex; }
.load-box {
  background: white;
  border-radius: 16px;
  padding: 40px 48px;
  text-align: center;
  max-width: 460px;
  width: 90%;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
}
.load-title {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 24px;
  line-height: 1.4;
}
.load-bars { margin: 0 auto 24px; width: 80px; }
.load-bar {
  height: 5px;
  background: var(--blue);
  border-radius: 3px;
  margin-bottom: 5px;
  animation: barPulse 1.2s ease-in-out infinite alternate;
}
.load-bar:nth-child(1) { width: 40%; animation-delay: 0s; }
.load-bar:nth-child(2) { width: 70%; animation-delay: 0.1s; }
.load-bar:nth-child(3) { width: 55%; animation-delay: 0.2s; }
.load-bar:nth-child(4) { width: 80%; animation-delay: 0.3s; }
.load-bar:nth-child(5) { width: 45%; animation-delay: 0.4s; }
.load-bar:nth-child(6) { width: 60%; animation-delay: 0.5s; }
.load-bar:nth-child(7) { width: 30%; animation-delay: 0.6s; }
@keyframes barPulse { from { opacity: 0.3; } to { opacity: 1; } }
.load-steps { list-style: none; text-align: left; display: inline-block; }
.load-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--gray);
  margin-bottom: 8px;
}
.ls-icon { width: 22px; text-align: center; font-size: 1rem; }
.ls-spin {
  width: 16px; height: 16px;
  border: 2px solid var(--lgray);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
.load-step.active { color: var(--text); font-weight: 600; }
.load-step.active .ls-spin { display: inline-block; }
.load-step.done { color: var(--green); }
.load-step.done .ls-icon::before { content: '✅'; }
@keyframes spin { to { transform: rotate(360deg); } }

/* RESULT PAGE */
.result-page { display: none; }
.result-page.act { display: block; animation: fadeUp 0.4s ease; }
.result-header {
  background: #cce8e8;
  padding: 40px 24px;
  text-align: center;
}
.result-header h2 {
  font-family: 'Sora', sans-serif;
  font-weight: 900;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--navy);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.result-header h3 {
  font-family: 'Sora', sans-serif;
  font-weight: 900;
  font-size: clamp(0.95rem, 2.5vw, 1.2rem);
  color: #0099ff;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.result-logo-card {
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  background: white;
  max-width: 400px;
  margin: 0 auto 20px;
  text-align: center;
}
.result-logo-name {
  font-family: 'Sora', sans-serif;
  font-weight: 900;
  font-size: 2rem;
  color: var(--orange);
  letter-spacing: -1px;
}
.result-logo-tagline { font-size: 0.75rem; color: var(--gray); margin-top: 2px; }
.result-pct {
  font-family: 'Sora', sans-serif;
  font-weight: 900;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--navy);
}
.result-pct span {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--navy);
}
.result-body {
  background: #cce8e8;
  padding: 20px 24px 32px;
  text-align: center;
  font-size: 0.87rem;
  color: var(--navy);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}
.result-body strong { font-weight: 700; }
.result-cta {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 20px auto 0;
  padding: 15px;
  background: var(--orange);
  color: white;
  border: none;
  border-radius: 12px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.result-cta:hover { background: #ff8c42; transform: translateY(-2px); }

/* REASSURANCE */
.reassurance { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; padding: 18px; margin-top: 16px; background: white; border-radius: 12px; }
.re { display: flex; align-items: center; gap: 5px; font-size: 0.73rem; color: var(--gray); }

footer {
  background: white;
  border-top: 1px solid var(--lgray);
  padding: 40px 48px 24px;
  margin-top: 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto 24px;
}
.footer-brand .flogo { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.3rem; color: var(--navy); display: block; margin-bottom: 8px; }
.footer-brand .flogo span { color: var(--orange); }
.footer-copy { font-size: 0.75rem; color: var(--gray); line-height: 1.6; }
.footer-col h4 { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 0.88rem; color: var(--navy); margin-bottom: 12px; }
.footer-col a { display: block; font-size: 0.8rem; color: var(--gray); text-decoration: none; margin-bottom: 8px; transition: color 0.2s; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom { text-align: center; font-size: 0.68rem; color: #aaa; border-top: 1px solid var(--lgray); padding-top: 16px; max-width: 900px; margin: 0 auto; }
@media(max-width:600px){ .footer-grid { grid-template-columns: 1fr; } footer { padding: 28px 20px 16px; } }

@media(max-width:768px) {
  .hero-layout { grid-template-columns: 1fr; padding: 24px 16px; }
  .icon-grid.col5 { grid-template-columns: repeat(2,1fr); }
  .bank-grid { grid-template-columns: repeat(3,1fr); }
}
