@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

:root {
  font-family: "Inter", sans-serif;

  --bg-deep: #0b1625;
  --bg-panel: rgba(53, 65, 78, 0.9);
  --bg-panel-soft: rgba(63, 75, 88, 0.6);
  --bg-field: rgba(20, 31, 41, 0.7);
  --bg-field-strong: rgba(14, 22, 31, 0.8);
  --border-soft: rgba(255, 255, 255, 0.2);
  --border-lighter: rgba(255, 255, 255, 0.28);
  --text-main: #eef2f8;
  --text-soft: rgba(226, 231, 236, 0.75);
  --text-muted: rgba(213, 218, 224, 0.7);
  --purple-1: #8b5cf6;
  --purple-2: #a855f7;
  --purple-3: #7c3aed;
  --purple-glow: rgba(160, 100, 255, 0.75);
  --danger: #ff6a5b;
  --dot: rgba(255, 255, 255, 0.18);
  --shadow: rgba(0, 0, 0, 0.38);
}

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

html,
body {
  min-height: 100dvh;
}

body {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100dvh;
  background:
    radial-gradient(
      circle at 50% 20%,
      rgba(128, 87, 196, 0.65),
      transparent 18%
    ),
    linear-gradient(180deg, #0c1829 0%, #0b1623 100%);
  color: var(--text-main);
  padding: 2rem;
  overflow: hidden;
}

body::before {
  content: "";
  position: absolute;
  width: 30rem;
  height: 30rem;
  top: 14%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(
    circle,
    rgba(163, 119, 255, 0.6),
    transparent 62%
  );
  filter: blur(30px);
  opacity: 0.9;
  pointer-events: none;
}

.form {
  position: relative;
  width: min(100%, 34rem);
  z-index: 1;
}

.step {
  display: none;
}

.step.active {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2.7rem 2.2rem 1.4rem;
  background: rgba(54, 65, 77, 0.9);
  border: 1px solid var(--border-soft);
  border-radius: 1.1rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.step h1,
.step h2 {
  font-weight: 400;
  font-size: clamp(1.2rem, 1.6vw, 2.2rem);
  line-height: 1.2;
  margin-bottom: 0.3rem;
  color: var(--text-main);
}

.step h2 {
  margin-bottom: 0.9rem;
  text-align: center;
  width: 100%;
}

.step label,
.step p,
.step li,
.step input,
.step button {
  font-size: 0.9rem;
}

.step-1 label,
.step-2 label {
  display: block;
  color: var(--text-soft);
  font-weight: 500;
}

.step-1 input,
.step-2 input,
.step-3 input {
  width: 100%;
  margin-top: 0.45rem;
  padding: 0.95rem 1rem;
  border-radius: 0.8rem;
  background: transparent;
  border: 1px solid var(--border-lighter);
  color: var(--text-main);
  font: inherit;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.step-1 input:focus,
.step-2 input:focus {
  border-color: rgba(169, 136, 255, 0.95);
  box-shadow: 0 0 0 1px rgba(169, 136, 255, 0.25);
}

.step-1 input::placeholder,
.step-2 input::placeholder {
  color: var(--text-muted);
}

.step-1 .message-1,
.step-2 .message-2 {
  display: none;
  color: var(--danger);
  font-size: 0.72rem;
  font-weight: 600;
  margin-top: -0.2rem;
}

.step button {
  display: block;
  width: min(100%, 11.5rem);
  margin: 0.6rem auto 0;
  padding: 0.9rem 1.2rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple-3), var(--purple-2));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 10px 20px rgba(156, 92, 240, 0.3);
  color: white;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}

.step button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 0.65rem;
  color: var(--text-soft);
  font-size: 0.8rem;
}

.step-label {
  margin-right: 0.15rem;
  color: var(--text-soft);
}

.dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: inline-block;
}

.dot.active {
  background: rgba(203, 155, 255, 0.9);
  box-shadow: 0 0 0 2px rgba(203, 155, 255, 0.18);
}

.step-2 {
  gap: 0.8rem;
}

.topic-option {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 3.3rem;
  padding: 0.9rem 1rem;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  cursor: pointer;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.topic-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.topic-option span {
  display: block;
  width: 100%;
  font-weight: 500;
  color: var(--text-soft);
}

.topic-option.selected {
  background: linear-gradient(
    135deg,
    rgba(147, 95, 245, 0.55),
    rgba(138, 93, 240, 0.9)
  );
  border-color: rgba(194, 166, 255, 0.7);
  box-shadow: 0 0 0 1px rgba(194, 166, 255, 0.16);
}

.topic-option.selected span {
  color: #f4f5f7;
}

.step-3 {
  gap: 0.9rem;
}

.step-3 p {
  margin: 0;
  color: var(--text-main);
  font-size: 1.05rem;
  line-height: 1.45;
}

.step-3 .name,
.step-3 .email {
  color: var(--text-main);
  font-weight: 600;
}

.step-3 .topics {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 0.2rem;
  color: var(--text-main);
}

.step-3 li {
  margin-left: 0.15rem;
  line-height: 1.8;
}

@media (max-width: 480px) {
  body {
    padding: 1rem;
  }

  .step.active {
    padding: 2rem 1.3rem 1.1rem;
  }

  .step h1,
  .step h2 {
    font-size: 1.5rem;
  }

  .progress {
    gap: 0.45rem;
    font-size: 0.75rem;
  }
}
