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

:root {
  --bg: #050816;
  --card: rgba(13, 18, 35, 0.82);
  --card-border: rgba(120, 145, 255, 0.18);
  --text: #f4f7ff;
  --muted: #96a0bd;
  --accent: #7c5cff;
  --accent-2: #00e5ff;
  --danger: #ff5570;
  --success: #22c55e;
}

body {
  min-height: 100vh;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(124, 92, 255, 0.25), transparent 35%),
    radial-gradient(circle at bottom right, rgba(0, 229, 255, 0.16), transparent 35%),
    var(--bg);
  color: var(--text);
  padding: 32px 18px;
}

.container {
  width: min(920px, 100%);
  margin: auto;
}

.hero {
  text-align: center;
  margin-bottom: 28px;
  animation: fadeDown 0.7s ease both;
}

.badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 14px;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  color: var(--accent-2);
  background: rgba(0, 229, 255, 0.06);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1;
  margin-bottom: 14px;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 620px;
  margin: auto;
  color: var(--muted);
  font-size: 1.05rem;
}

.progress-container,
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
}

.progress-container {
  padding: 18px;
  margin-bottom: 20px;
  animation: fadeUp 0.7s ease 0.1s both;
}

.progress-top {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.progress-bar {
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.45);
  transition: width 0.45s ease;
}

.card {
  padding: clamp(22px, 5vw, 42px);
  animation: fadeUp 0.7s ease 0.2s both;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.form-group {
  margin-bottom: 24px;
}

label,
.section-title {
  display: block;
  color: #dbe3ff;
  font-weight: 600;
  margin-bottom: 10px;
}

.section-title {
  font-size: 1rem;
}

.form-control {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid rgba(150, 160, 189, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: 0.25s ease;
}

.form-control::placeholder {
  color: rgba(150, 160, 189, 0.7);
}

.form-control:focus {
  border-color: var(--accent-2);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.08);
}

select.form-control {
  cursor: pointer;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.radio-group,
.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(150, 160, 189, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  transition: 0.25s ease;
}

.option:hover {
  border-color: rgba(0, 229, 255, 0.45);
  transform: translateY(-2px);
}

.option input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-2);
}

.option label {
  margin: 0;
  cursor: pointer;
  color: var(--text);
  font-weight: 500;
}

.btn-submit {
  width: 100%;
  border: 0;
  border-radius: 16px;
  padding: 16px 24px;
  color: #020617;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(90deg, var(--accent-2), #9effff);
  box-shadow: 0 18px 38px rgba(0, 229, 255, 0.22);
  transition: 0.25s ease;
}

.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 52px rgba(0, 229, 255, 0.32);
}

.invalid {
  border-color: var(--danger) !important;
}

.valid {
  border-color: rgba(34, 197, 94, 0.7) !important;
}

.error-message {
  display: none;
  margin-top: 8px;
  color: var(--danger);
  font-size: 0.88rem;
}

.success-message {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.success-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(34, 197, 94, 0.12);
  color: var(--success);
  font-size: 2.2rem;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.success-message h3 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.success-message p,
.footer {
  color: var(--muted);
}

.footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.9rem;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 700px) {
  body {
    padding: 22px 14px;
  }

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

  .radio-group,
  .checkbox-group {
    grid-template-columns: 1fr;
  }
}