:root {
  --bg: #f6f5fa;
  --bg-accent: #f3f1f8;
  --card: #ffffff;
  --ink: #15151f;
  --muted: #6a6a7a;
  --primary: #5b4ce6;
  --primary-dark: #4638c7;
  --border: #e7e4f1;
  --shadow: 0 20px 50px rgba(28, 24, 45, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(91, 76, 230, 0.08), transparent 40%),
    radial-gradient(circle at 88% 18%, rgba(91, 76, 230, 0.06), transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(255, 255, 255, 0.7), transparent 55%),
    var(--bg);
  min-height: 100vh;
}

h1, h2, h3 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  margin: 0 0 12px 0;
}

.page {
  padding: 48px 24px 80px;
}

.hero {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: start;
}

.hero-copy {
  padding: 24px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8a8696;
  margin-bottom: 16px;
}

.subhead {
  font-size: 17px;
  color: #6f6b78;
  line-height: 1.7;
}

.steps {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.step {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 600;
  color: #2c2b33;
  border: 1px solid var(--border);
  box-shadow: 0 10px 20px rgba(20, 18, 34, 0.06);
}

.step span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1effa;
  color: #3c3270;
  font-size: 14px;
  font-weight: 700;
}

.form-card {
  background: var(--card);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  border: 1px solid var(--border);
}

.success-card {
  background: var(--card);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  border: 1px solid var(--border);
}

.success-mark {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tick-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e6f6ec;
  color: #1e8e3e;
  font-size: 22px;
  font-weight: 700;
  border: 1px solid #bde7ca;
}

.hidden {
  display: none !important;
}

.id-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  background: #faf9fe;
  display: grid;
  gap: 12px;
}

.id-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.id-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  word-break: break-all;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 500;
}

input {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 16px;
  font-family: inherit;
  background: #fbfbfe;
}

.agreement-block {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  background: #f8f7fc;
}

.agreement-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.agreement-text {
  height: 180px;
  overflow-y: auto;
  padding: 12px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
}

.checkbox input {
  margin-top: 4px;
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.primary {
  background: linear-gradient(135deg, #5b4ce6, #6f63f0);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
  box-shadow: 0 12px 24px rgba(91, 76, 230, 0.25);
}

.secondary {
  background: #f4f3fb;
  color: #3f36c2;
  border: 1px solid #ddd8f3;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
  box-shadow: none;
  width: fit-content;
}

.secondary:hover {
  background: #eeecfa;
  border-color: #cfc8f0;
  transform: translateY(-1px);
}

.primary:hover {
  filter: brightness(1.02);
  transform: translateY(-1px);
}

.primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.link {
  color: #4b3fd0;
  font-weight: 600;
  text-decoration: none;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.status {
  font-size: 14px;
  color: #4b3fd0;
}

.success {
  font-size: 15px;
  font-weight: 600;
  color: #1a6a2c;
}

.admin-table {
  display: grid;
  gap: 12px;
  font-size: 14px;
}

.admin-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: #ffffff;
}

.admin-card h4 {
  margin: 0 0 6px 0;
  font-size: 15px;
}

.admin-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.admin-card button {
  margin-top: 8px;
}

@media (max-width: 720px) {
  .page {
    padding: 32px 16px 64px;
  }

  .hero-copy {
    padding: 8px;
  }

  .form-card {
    padding: 20px;
  }
}
