: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;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.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(100vh - 64px);
  display: grid;
  place-items: start center;
  padding: 42px 18px 56px;
}

.card-container {
  width: min(520px, 100%);
  text-align: center;
}

.hero {
  background: var(--hero);
  padding: 26px 14px 30px;
  margin: 0 0 28px;
  border-radius: var(--radius);
}

.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 {
  max-width: min(340px, 86%);
  height: auto;
}

.title--small {
  font-size: clamp(34px, 5.5vw, 44px);
  line-height: 1.15;
}

.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-btn {
  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);
  display: flex;
  align-items: center;
  justify-content: center;
}

.submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.submit-btn:hover:not(:disabled) {
  filter: brightness(0.98);
}

.submit-btn:active:not(:disabled) {
  transform: translateY(1px);
}

.submit-btn:focus-visible {
  outline: 3px solid rgba(31, 111, 235, 0.35);
  outline-offset: 3px;
}

.form-container {
  width: min(460px, 100%);
  margin: 0 auto;
  text-align: left;
}

.field {
  margin-bottom: 18px;
}

.field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-bottom: 18px;
}

.field--inline {
  flex: 1 1 140px;
  min-width: 0;
  margin-bottom: 0;
}

.input-label {
  display: inline-block;
  font-weight: 600;
  margin: 0 0 8px;
  color: #0f172a;
}

.custom-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);
}

.custom-input::placeholder {
  color: #94a3b8;
}

.custom-input:focus {
  border-color: var(--field-focus);
  box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.20);
}

.input--card,
.input--iban {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.hint {
  min-height: 18px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

.links {
  margin-top: 34px;
  display: grid;
  gap: 18px;
  justify-items: center;
}

.custom-link {
  color: var(--link);
  font-style: italic;
  text-decoration: none;
  font-size: 18px;
}

.custom-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.custom-link:focus-visible {
  outline: 3px solid rgba(31, 111, 235, 0.35);
  outline-offset: 3px;
  border-radius: 10px;
}

.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;
}

.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__text {
  margin: 0 0 14px;
  font-size: 17px;
  color: #111827;
  line-height: 1.45;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

@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-btn {
    height: 60px;
  }
  .custom-link {
    font-size: 17px;
  }
}
