/* ───────────────────────────────────────────────────────────────────
   Payout beneficiary survey — visual system
   Font: Manrope (Google Fonts) at 400/500/600/700/800.
   Screens live in a single document, swapped via .is-active.
   ─────────────────────────────────────────────────────────────────── */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 500px at 50% -10%, #0a3fd1 0%, transparent 60%),
    linear-gradient(180deg, #001a5a 0%, #001444 100%);
  font: 400 15px/1.55 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #0f172a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.app { padding: 20px 16px 60px; }
.app__inner {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Language switcher ─────────────────────────────────────────── */
.lang-switch {
  align-self: flex-end;
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.lang-switch__btn {
  border: 0;
  background: transparent;
  padding: 7px 14px;
  border-radius: 999px;
  font: 700 12px/1 'Manrope', sans-serif;
  letter-spacing: 0.4px;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.lang-switch__btn:hover { color: #ffffff; }
.lang-switch__btn.is-active {
  background: #ffffff;
  color: #003da5;
}

/* ── Progress bar ─────────────────────────────────────────────── */
.progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 4px;
}
.progress[hidden] { display: none; }
.progress__bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  overflow: hidden;
}
.progress__bar > span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4d8bff 0%, #ffffff 100%);
  border-radius: 999px;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.progress__label {
  font: 600 11.5px/1 'Manrope', sans-serif;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* ── Screen visibility ─────────────────────────────────────────── */
.screen { display: none; }
.screen.is-active {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* ── Cards ────────────────────────────────────────────────────── */
.card {
  background: #ffffff;
  border-radius: 20px;
  padding: 28px 24px 24px;
  box-shadow: 0 12px 40px rgba(0, 12, 60, 0.20);
}
.card--intro { text-align: center; }

.card__eyebrow {
  display: inline-block;
  font: 700 11px/1 'Manrope', sans-serif;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #003da5;
  background: #e8efff;
  padding: 7px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.card__badge {
  display: inline-block;
  font: 700 11px/1 'Manrope', sans-serif;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #047857;
  background: #dcfce7;
  padding: 7px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.card__step {
  font: 600 12px/1 'Manrope', sans-serif;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #003da5;
  margin-bottom: 10px;
}
.card__title {
  margin: 0 0 14px;
  font: 800 26px/1.2 'Manrope', sans-serif;
  color: #0b1a3a;
  letter-spacing: -0.3px;
}
.card__question {
  margin: 0 0 18px;
  font: 700 20px/1.3 'Manrope', sans-serif;
  color: #0b1a3a;
  letter-spacing: -0.2px;
}
.card__lead {
  margin: 0 0 20px;
  font: 400 15px/1.55 'Manrope', sans-serif;
  color: #475569;
}
.card__note {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid #eef2f7;
  font: 400 12.5px/1.5 'Manrope', sans-serif;
  color: #64748b;
  text-align: center;
}

/* ── Welcome perks list ───────────────────────────────────────── */
.perks {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}
.perks li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #f6f8fc;
  border-radius: 12px;
  font: 500 14px/1.4 'Manrope', sans-serif;
  color: #334155;
}
.perks__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #003da5;
  flex: 0 0 8px;
}

/* ── Radio options ────────────────────────────────────────────── */
.options {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #f6f8fc;
  border: 2px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.option:hover { background: #eef2fb; }
.option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.option__radio {
  flex: 0 0 20px;
  width: 20px; height: 20px;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  position: relative;
  transition: border-color 0.15s ease;
}
.option__radio::after {
  content: '';
  position: absolute; inset: 4px;
  border-radius: 50%;
  background: #003da5;
  transform: scale(0);
  transition: transform 0.15s ease;
}
.option__label {
  font: 500 15px/1.35 'Manrope', sans-serif;
  color: #1e293b;
}
.option input:checked + .option__radio { border-color: #003da5; }
.option input:checked + .option__radio::after { transform: scale(1); }
.option input:checked ~ .option__label { color: #003da5; font-weight: 600; }
.option:has(input:checked) {
  background: #eff4ff;
  border-color: #003da5;
}

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: block;
  width: 100%;
  padding: 15px 20px;
  border: 0;
  border-radius: 999px;
  font: 700 15px/1.2 'Manrope', sans-serif;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease, opacity 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  letter-spacing: 0.2px;
}
.btn--primary {
  background: linear-gradient(180deg, #0757e1 0%, #003da5 100%);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 61, 165, 0.35);
}
.btn--primary:hover:not(:disabled) {
  background: linear-gradient(180deg, #0a5ff0 0%, #002d80 100%);
}
.btn--primary:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled {
  background: #cbd5e1;
  color: #ffffff;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.8;
}

/* ── Meta rows on payout card ──────────────────────────────────── */
.meta { margin: 0 -24px; padding: 0 24px; }
.meta__row {
  padding: 12px 0;
  border-bottom: 1px solid #f2f4f7;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.meta__row:last-child { border-bottom: 0; }
.meta__label {
  font: 500 12px/1.4 'Manrope', sans-serif;
  color: #64748b;
  letter-spacing: 0.2px;
}
.meta__value {
  font: 600 14px/1.4 'Manrope', sans-serif;
  color: #0b1a3a;
  text-align: right;
  word-break: break-word;
}
.meta__value--strong {
  font-weight: 800;
  font-size: 18px;
  color: #003da5;
}
.meta__value--mono {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 12.5px;
  color: #475569;
  background: #f4f6fb;
  padding: 4px 8px;
  border-radius: 6px;
}

/* ── Bank picker (custom dropdown, native style but fresh) ────── */
.picker {
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.15s ease;
  margin-bottom: 18px;   /* breathing room before the Next button */
}
.picker__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  color: #0b1a3a;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  gap: 12px;
}
.picker__left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.picker__icon {
  width: 32px; height: 32px;
  object-fit: contain;
  border-radius: 6px;
  background: #f6f8fc;
  padding: 4px;
  flex: 0 0 32px;
}
.picker__label {
  font: 600 15px/1.3 'Manrope', sans-serif;
  color: #0b1a3a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.picker__chevron {
  width: 18px; height: 18px;
  color: #64748b;
  flex: 0 0 18px;
  transition: transform 0.2s ease;
}
.picker__toggle[aria-expanded="true"] .picker__chevron {
  transform: rotate(180deg);
}
.picker__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  border-top: 1px solid #eef2f7;
  max-height: 340px;
  overflow-y: auto;
  background: #ffffff;
}
.picker__list.is-open { display: block; }
.picker__list li { margin: 0; padding: 0; }
.picker__list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  color: #0b1a3a;
  text-decoration: none;
  border-bottom: 1px solid #f2f4f7;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background 0.12s ease;
}
.picker__list li:last-child a { border-bottom: 0; }
.picker__list a:hover, .picker__list a:active { background: #f6f8fc; }
.picker__list img {
  width: 30px; height: 30px;
  object-fit: contain;
  border-radius: 6px;
  background: #f6f8fc;
  padding: 4px;
  flex: 0 0 30px;
}
.picker__list span.name {
  font: 500 14.5px/1.35 'Manrope', sans-serif;
  color: #1e293b;
}
