:root {
  color-scheme: light;
  --bg: #0b1020;
  --card: rgba(255, 255, 255, 0.08);
  --cardBorder: rgba(255, 255, 255, 0.14);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.68);
  --danger: #ff6b6b;
  --primary: #7c5cff;
  --primary2: #19d3ff;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 20% 10%, rgba(124, 92, 255, 0.35), transparent 60%),
    radial-gradient(900px 600px at 80% 25%, rgba(25, 211, 255, 0.22), transparent 55%),
    radial-gradient(900px 700px at 50% 100%, rgba(255, 255, 255, 0.08), transparent 55%),
    var(--bg);
  min-height: 100vh;
}

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 18px 72px;
}

.header {
  margin-bottom: 18px;
}

.title {
  margin: 0;
  letter-spacing: -0.03em;
  font-weight: 750;
  font-size: 40px;
}

.subtitle {
  margin: 10px 0 0;
  color: var(--muted);
}

.card {
  border: 1px solid var(--cardBorder);
  background: var(--card);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.cardTitle {
  margin: 0 0 14px;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.fieldset {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px;
  margin: 14px 0;
}

.legend {
  padding: 0 8px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 650;
}

.choices {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.18);
}

.choice input {
  accent-color: var(--primary);
}

.field {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.label {
  color: rgba(255, 255, 255, 0.84);
  font-weight: 650;
}

.input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  outline: none;
}

.input:focus {
  border-color: rgba(124, 92, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.2);
}

.actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 14px;
  flex-wrap: wrap;
}

.error {
  margin: 0 auto 0 0;
  min-height: 1.25em;
  color: var(--danger);
  font-weight: 600;
}

.button {
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  color: white;
  font-weight: 750;
  letter-spacing: -0.01em;
  cursor: pointer;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
}

.button.secondary {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.button:active {
  transform: translateY(1px);
}

.hidden {
  display: none;
}

.thanksText {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.5;
}

@media (max-width: 520px) {
  .title {
    font-size: 32px;
  }
  .actions {
    justify-content: stretch;
  }
  .button {
    width: 100%;
  }
}

