:root {
  --red: #d62224;
  --red-dark: #b81d1f;
  --blue: #004fff;
  --ink: #1a1d21;
  --body: #4a5057;
  --muted: #8a9099;
  --line: #e7e9ee;
  --bg: #eef1f5;
  --card: #ffffff;
  --green: #1aa251;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(20, 25, 40, .08), 0 2px 6px rgba(20, 25, 40, .05);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 24px;
}

.card {
  width: 100%;
  max-width: 520px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.brandbar {
  background: var(--red);
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brandbar img {
  height: 30px;
  width: auto;
  display: block;
}

.content { padding: 32px 28px 28px; }

@media (min-width: 480px) {
  .content { padding: 36px 36px 32px; }
}

h1 {
  font-size: 1.5rem;
  line-height: 1.25;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -.01em;
}

.lead {
  margin-top: 10px;
  color: var(--body);
  font-size: 1rem;
}

/* Steps */
.steps {
  margin: 24px 0 4px;
  list-style: none;
  display: grid;
  gap: 14px;
}

.steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.steps .n {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 79, 255, .1);
  color: var(--blue);
  font-weight: 700;
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.steps p { font-size: .95rem; }

/* Consent note */
.note {
  margin-top: 22px;
  background: #f6f8ff;
  border: 1px solid rgba(0, 79, 255, .18);
  border-left: 3px solid var(--blue);
  padding: 14px 16px;
  border-radius: 10px;
  font-size: .9rem;
  color: #33415a;
}

.note strong { color: var(--ink); }

/* Buttons */
.actions { margin-top: 26px; }

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background .15s, border-color .15s, transform .05s;
}

.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--muted); }

.btn + .btn { margin-top: 12px; }

:focus-visible {
  outline: 3px solid rgba(0, 79, 255, .45);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Secure line */
.secure {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--muted);
  font-size: .82rem;
}

.secure svg { flex: none; }

.cards {
  margin-top: 6px;
  text-align: center;
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .03em;
}

/* Centered (success / cancel) */
.center { text-align: center; }
.center h1 { margin-top: 20px; }
.center .lead { margin-left: auto; margin-right: auto; max-width: 38ch; }

.icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  animation: pop .35s ease-out both;
}

.icon-success { background: rgba(26, 162, 81, .12); color: var(--green); }
.icon-info { background: rgba(0, 79, 255, .1); color: var(--blue); }

.tick path {
  stroke-dasharray: 32;
  stroke-dashoffset: 32;
  animation: draw .5s .15s ease-out forwards;
}

/* Recap card */
.recap {
  margin-top: 22px;
  background: #f7f8fa;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: .92rem;
  text-align: left;
}

.recap .row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.recap .row + .row { margin-top: 10px; }
.recap .dot {
  flex: none;
  margin-top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}
.recap.info .dot { background: var(--blue); }

.ref {
  margin: 18px auto 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f7f8fa;
  border: 1px dashed var(--line);
  color: var(--body);
  font-size: .85rem;
  padding: 8px 14px;
  border-radius: 999px;
}
.ref strong { color: var(--ink); letter-spacing: .03em; }

.help {
  margin-top: 20px;
  text-align: center;
  font-size: .85rem;
  color: var(--muted);
}
.help a { color: var(--blue); text-decoration: none; font-weight: 600; }
.help a:hover { text-decoration: underline; }

@keyframes pop {
  0% { transform: scale(.6); opacity: 0; }
  60% { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .icon { animation: none; }
  .tick path { animation: none; stroke-dashoffset: 0; }
}
