:root{
  --bg: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --bar: #ffffff;
  --hero: #f3f4f6;
  --brand: #1b4b5a;
  --link: #0b4a6f;
  --field-border: #cbd5e1;
  --field-focus: #1f6feb;
  --btn: #8fbfc0;
  --btn-text: #ffffff;
  --shadow: 0 1px 0 rgba(15, 23, 42, 0.08);
  --radius: 14px;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
}

.skip-link{
  position: absolute;
  left: -999px;
  top: 8px;
  padding: 10px 12px;
  background: #111827;
  color: white;
  border-radius: 8px;
  z-index: 9999;
}
.skip-link:focus{ left: 8px; }

.topbar{
  background: var(--bar);
  box-shadow: var(--shadow);
}
.topbar__inner{
  height: 64px;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand{
  display: inline-flex;
  align-items: center;
  min-height: 36px;
}
.brand__logo{
  display: block;
  height: 24px;
  width: auto;
}

.lang{
  background: transparent;
  border: 0;
  padding: 8px 10px;
  border-radius: 10px;
  color: #0b3c4b;
  font-weight: 600;
  cursor: pointer;
}
.lang:focus-visible{
  outline: 3px solid rgba(31, 111, 235, 0.35);
  outline-offset: 2px;
}
.lang:hover{
  background: rgba(15, 23, 42, 0.04);
}

.page{
  min-height: calc(100% - 64px);
  display: grid;
  place-items: start center;
  padding: 42px 18px 56px;
}

.card{
  width: min(520px, 100%);
  text-align: center;
}

.hero{
  background: var(--hero);
  padding: 26px 14px 30px;
  margin: 0 0 28px;
}
.hero--compact{
  padding: 22px 14px 24px;
}

.kicker{
  margin: 0 0 18px;
  font-size: 22px;
  color: #111827;
  font-weight: 500;
}

.title{
  margin: 0;
  font-weight: 650;
  letter-spacing: -0.02em;
  font-size: clamp(46px, 7vw, 64px);
  line-height: 1.08;
}
.bank-hero{
  display: grid;
  place-items: center;
  gap: 14px;
}
.bank-logo{
  display: none;
  max-width: min(340px, 86%);
  height: auto;
}
.title--small{
  font-size: clamp(34px, 5.5vw, 44px);
  line-height: 1.15;
}

.sr-only{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bankset{
  border: 0;
  padding: 0;
  margin: 0 0 18px;
}

.bank-option{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  border: 2px solid var(--field-border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  user-select: none;
}
.bank-option + .bank-option{ margin-top: 12px; }

.bank-radio{
  width: 18px;
  height: 18px;
}

.bank-label{
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.bank-option:has(.bank-radio:focus-visible){
  outline: 3px solid rgba(31, 111, 235, 0.35);
  outline-offset: 3px;
}
.bank-option:has(.bank-radio:checked){
  border-color: rgba(31, 111, 235, 0.9);
  box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.12);
}

.submit:disabled{
  opacity: 0.65;
  cursor: not-allowed;
}
.submit:disabled:active{ transform: none; }

.form{
  width: min(460px, 100%);
  margin: 0 auto;
  text-align: left;
}

.field{ margin-bottom: 18px; }
.label{
  display: inline-block;
  font-weight: 600;
  margin: 0 0 8px;
  color: #0f172a;
}

.input{
  width: 100%;
  height: 56px;
  padding: 14px 14px;
  border-radius: 6px;
  border: 2px solid var(--field-border);
  background: #ffffff;
  font-size: 18px;
  color: var(--text);
  outline: none;
  box-shadow: 0 2px 0 rgba(15, 23, 42, 0.06);
}
.input::placeholder{ color: #94a3b8; }
.input:focus{
  border-color: var(--field-focus);
  box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.20);
}

.hint{
  min-height: 18px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

.submit{
  width: 100%;
  height: 64px;
  border: 0;
  border-radius: 999px;
  background: var(--btn);
  color: var(--btn-text);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(15, 23, 42, 0.08);
}
.submit:hover{ filter: brightness(0.98); }
.submit:active{ transform: translateY(1px); }
.submit:focus-visible{
  outline: 3px solid rgba(31, 111, 235, 0.35);
  outline-offset: 3px;
}

.links{
  margin-top: 34px;
  display: grid;
  gap: 18px;
  justify-items: center;
}

.link{
  color: var(--link);
  font-style: italic;
  text-decoration: none;
  font-size: 18px;
}
.link:hover{
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link:focus-visible{
  outline: 3px solid rgba(31, 111, 235, 0.35);
  outline-offset: 3px;
  border-radius: 10px;
}

.approve-body{
  width: min(460px, 100%);
  margin: 0 auto;
  text-align: center;
}
.wait{
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: 2px;
}
.wait__spinner{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 4px solid rgba(15, 23, 42, 0.14);
  border-top-color: rgba(15, 23, 42, 0.55);
  animation: spin 0.9s linear infinite;
}
.wait__dots{
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}
.wait__dots span{
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  animation: pulse 1.2s ease-in-out infinite;
}
.wait__dots span:nth-child(2){ animation-delay: 0.15s; }
.wait__dots span:nth-child(3){ animation-delay: 0.3s; }

.approve-text{
  margin: 10px 0 0;
  font-size: 18px;
  color: #111827;
}

.waiting-panel{
  width: min(460px, 100%);
  margin: 0 auto 22px;
  text-align: center;
  padding: 18px 14px;
  border: 2px dashed rgba(15, 23, 42, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
}
.waiting-panel[hidden]{
  display: none !important;
}
.waiting-panel__text{
  margin: 0 0 14px;
  font-size: 17px;
  color: #111827;
  line-height: 1.45;
}

.success-body{
  width: min(460px, 100%);
  margin: 0 auto;
  text-align: center;
}
.success-text{
  margin: 10px 0 0;
  font-size: 18px;
  color: #111827;
  line-height: 1.5;
}

@keyframes spin{
  to{ transform: rotate(360deg); }
}
@keyframes pulse{
  0%, 80%, 100%{ opacity: 0.25; transform: translateY(0); }
  40%{ opacity: 1; transform: translateY(-2px); }
}

@media (prefers-reduced-motion: reduce){
  .wait__spinner, .wait__dots span{ animation: none; }
}

@media (max-width: 420px){
  .kicker{ font-size: 20px; }
  .hero{ padding: 22px 12px 26px; margin-bottom: 22px; }
  .hero--compact{ padding: 20px 12px 22px; }
  .submit{ height: 60px; }
  .link{ font-size: 17px; }
}
