:root {
  --bg: #000000;
  --panel: rgba(8, 8, 8, 0.92);
  --panel-strong: #0b0b0b;
  --text: #ffffff;
  --muted: #d7d7d7;
  --line: rgba(255, 78, 0, 0.4);
  --accent: #ff4e00;
  --accent-strong: #ff4e00;
  --accent-alt: #c4fc00;
  --error: #c4fc00;
  --success-bg: rgba(196, 252, 0, 0.08);
  --success-text: #ffffff;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius: 24px;
}

@font-face {
  font-family: "Akhand-Black";
  src: url("/fonts/Akhand-Black.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Esport-Woglen";
  src: url("/fonts/Esport-Woglen.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "TT-Octosquares";
  src: url("/fonts/TT-Octosquares.woff2") format("woff2");
  font-display: swap;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "TT-Octosquares", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 78, 0, 0.22), transparent 30%),
    radial-gradient(circle at top right, rgba(196, 252, 0, 0.12), transparent 24%),
    linear-gradient(180deg, #050505, #000000 48%, #080808);
  min-height: 100%;
}

.page-shell {
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: 12px;
}

.card {
  width: min(100%, 760px);
  padding: 24px;
  border: 1px solid rgba(255, 78, 0, 0.45);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 78, 0, 0.08), transparent 32%),
    linear-gradient(315deg, rgba(196, 252, 0, 0.08), transparent 28%);
  pointer-events: none;
}

.content-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-copy {
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: "TT-Octosquares", sans-serif;
}

h1, h2 {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

h1 {
  color: var(--accent);
  font-family: "Esport-Woglen", sans-serif;
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  line-height: 1;
}

h2 {
  color: var(--accent-alt);
  font-family: "Akhand-Black", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 0.95;
}

.intro {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 42rem;
  font-size: 0.88rem;
  line-height: 1.35;
}

.stepper {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.step {
  padding: 10px 14px;
  border-radius: 999px;
  background: #edf2fb;
  color: var(--muted);
  font-size: 0.92rem;
}

.step.is-active {
  background: rgba(23, 105, 255, 0.12);
  color: var(--accent-strong);
  font-weight: 700;
}

.form-step {
  display: none;
}

.form-step.is-active {
  display: block;
}

.stack {
  display: grid;
  gap: 10px;
}

.stack.compact {
  gap: 1px;
}

.field,
fieldset {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

label,
legend {
  display: inline-block;
  margin-bottom: 6px;
  font-weight: 400;
  color: var(--accent-alt);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

input,
select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(14, 14, 14, 0.95);
  color: var(--text);
  font-family: "TT-Octosquares", "Segoe UI", sans-serif;
  font-size: 0.88rem;
  line-height: 1.2;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

input:focus,
select:focus {
  outline: none;
  border-color: rgba(255, 78, 0, 0.9);
  box-shadow: 0 0 0 4px rgba(255, 78, 0, 0.14);
}

.input-invalid,
.input-invalid:focus {
  border-color: rgba(196, 252, 0, 0.82);
  box-shadow: 0 0 0 4px rgba(196, 252, 0, 0.12);
}

.hint {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.error {
  min-height: 1.25rem;
  margin: 4px 0 0;
  color: var(--error);
  font-size: 0.72rem;
  font-family: "TT-Octosquares", sans-serif;
}

.choice-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.choice,
.toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: transparent;
  cursor: pointer;
}

.toggle.compact {
  align-items: flex-start;
  gap: 6px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text);
}

.choice input,
.toggle input {
  width: auto;
  margin: 0;
  transform: scale(0.95);
}

.toggle.compact input {
  margin-top: 1px;
  transform: none;
  width: 14px;
  height: 14px;
  accent-color: var(--accent);
}

.toggle.compact span {
  line-height: 1.2;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
}

.toggle.compact-inline {
  white-space: nowrap;
}

.consent-block {
  margin-top: 6px;
}

.consent-item {
  display: grid;
  gap: 0;
}

.consent-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: start;
}

.consent-item .error {
  min-height: 1rem;
  margin-left: 19px;
  font-size: 0.7rem;
}

.actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 14px;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}

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

.btn-primary {
  background: var(--accent-alt);
  color: #000;
  font-family: "Akhand-Black", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.btn-secondary {
  background: #e8eef8;
  color: var(--text);
}

.success {
  padding: 24px;
  border-radius: 20px;
  background: var(--success-bg);
  color: var(--success-text);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.success h2 {
  margin-bottom: 14px;
}

.success p {
  color: rgba(255, 255, 255, 0.88);
}

.success p:last-child {
  margin-bottom: 0;
}

.hidden {
  display: none !important;
}

@media (max-width: 640px) {
  h1 {
    font-size: 1.28rem;
  }

  .consent-row {
    gap: 8px;
  }

  .toggle.compact-inline {
    font-size: 0.68rem;
    letter-spacing: 0;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .card {
    padding: 18px 16px;
    border-radius: 20px;
  }

  .actions {
    flex-direction: column-reverse;
  }

  .btn {
    width: 100%;
  }
}

html[data-embed="true"] body {
  background: transparent;
}

html[data-embed="true"] .page-shell {
  min-height: auto;
  padding: 0;
}

html[data-embed="true"] .card {
  width: 100%;
  border-radius: 18px;
}

html[data-embed="true"] .content-panel {
  min-height: 0;
}
