:root {
  --bg-main: #02040a;
  --bg-card: rgba(8, 15, 32, 0.82);
  --bg-card-soft: rgba(15, 28, 58, 0.58);

  --blue-main: #1f47ff;
  --blue-light: #4da3ff;
  --blue-cyan: #00d4ff;
  --blue-dark: #071b5f;

  --text-main: #ffffff;
  --text-soft: #c8d7ff;
  --text-muted: #8fa4d6;

  --border-soft: rgba(77, 163, 255, 0.35);
  --shadow-blue: 0 0 30px rgba(31, 71, 255, 0.28);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 15% 15%, rgba(31, 71, 255, 0.28), transparent 28%),
    radial-gradient(circle at 85% 20%, rgba(0, 212, 255, 0.14), transparent 24%),
    radial-gradient(circle at 50% 90%, rgba(31, 71, 255, 0.18), transparent 30%),
    linear-gradient(135deg, #01030a 0%, #061026 48%, #02040a 100%);
  padding: 36px 16px;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(#ffffff 0.7px, transparent 0.7px),
    radial-gradient(#4da3ff 0.6px, transparent 0.6px);
  background-size: 90px 90px, 140px 140px;
  background-position: 0 0, 40px 60px;
  opacity: 0.18;
  z-index: -1;
}

.container {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 34px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(8, 15, 32, 0.9), rgba(3, 7, 18, 0.92)),
    var(--bg-card);
  box-shadow: var(--shadow-blue), 0 18px 70px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}

.container::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.18), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.logo {
  display: block;
  max-width: 180px;
  margin: 0 auto 18px;
  filter: drop-shadow(0 0 18px rgba(77, 163, 255, 0.45));
}

h1 {
  margin: 0 0 10px;
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.5px;
  color: var(--text-main);
  text-shadow: 0 0 20px rgba(77, 163, 255, 0.42);
}

h2 {
  margin: 0 0 24px;
  color: var(--blue-light);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-weight: 700;
}

.form-info {
  margin: 24px 0 30px;
  padding: 18px 20px;
  border: 1px solid rgba(77, 163, 255, 0.28);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(31, 71, 255, 0.16), rgba(0, 212, 255, 0.07));
  color: var(--text-soft);
}

.form-info p {
  margin: 8px 0;
  line-height: 1.5;
}

form {
  position: relative;
  z-index: 1;
}

.step {
  display: none;
  padding: 26px;
  border: 1px solid rgba(77, 163, 255, 0.23);
  border-radius: var(--radius-lg);
  background: rgba(2, 7, 18, 0.55);
  animation: fadeUp 0.35s ease both;
}

.step.active {
  display: block;
}

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

label {
  display: block;
  margin: 18px 0 8px;
  color: var(--text-soft);
  font-weight: 600;
  line-height: 1.35;
}

input,
select,
textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(144, 192, 255, 0.45);
  border-radius: var(--radius-sm);
  background: rgba(4, 12, 29, 0.88);
  color: var(--text-main);
  font-size: 1rem;
  outline: none;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    transform 0.12s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue-cyan);
  background: rgba(8, 18, 42, 0.96);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12), 0 0 20px rgba(31, 71, 255, 0.28);
}

textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.55;
}

select {
  cursor: pointer;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--blue-light) 50%),
    linear-gradient(135deg, var(--blue-light) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 42px;
}

option {
  background: #071026;
  color: #ffffff;
}

input[type="file"] {
  padding: 12px;
  border-style: dashed;
  background: rgba(5, 14, 34, 0.7);
}

input[type="checkbox"] {
  width: auto;
  accent-color: var(--blue-main);
}

.conditional {
  display: none;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid rgba(0, 212, 255, 0.22);
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(31, 71, 255, 0.12), rgba(0, 212, 255, 0.05));
}

.conditional.show {
  display: block;
  animation: fadeUp 0.28s ease both;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.checkbox-grid label {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(77, 163, 255, 0.24);
  border-radius: var(--radius-sm);
  background: rgba(8, 18, 42, 0.68);
  color: var(--text-soft);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.12s ease;
}

.checkbox-grid label:hover {
  border-color: rgba(0, 212, 255, 0.55);
  background: rgba(14, 31, 70, 0.8);
  transform: translateY(-1px);
}

.checkbox-grid input {
  margin-right: 8px;
}

.buttons {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

button {
  border: none;
  border-radius: 999px;
  padding: 13px 24px;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  cursor: pointer;
  background: linear-gradient(135deg, var(--blue-main), var(--blue-cyan));
  box-shadow: 0 10px 24px rgba(31, 71, 255, 0.32);
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 212, 255, 0.28);
  filter: brightness(1.08);
}

button:active {
  transform: translateY(0);
}

button[type="button"]:first-child:not(:only-child) {
  background: rgba(143, 164, 214, 0.14);
  border: 1px solid rgba(143, 164, 214, 0.35);
  box-shadow: none;
}

.progress-bar {
  margin-top: 24px;
  height: 12px;
  width: 100%;
  border-radius: 999px;
  background: rgba(143, 164, 214, 0.16);
  overflow: hidden;
  border: 1px solid rgba(77, 163, 255, 0.18);
}

#progress {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-main), var(--blue-cyan));
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.55);
  transition: width 0.35s ease;
}

.hidden {
  display: none !important;
}

.small-note {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.45;
  margin-top: 6px;
}

.error-field {
  border-color: #ff5577 !important;
  box-shadow: 0 0 0 3px rgba(255, 85, 119, 0.12) !important;
}

.success-message,
.error-message {
  padding: 16px 18px;
  margin-top: 18px;
  border-radius: var(--radius-md);
  font-weight: 700;
}

.success-message {
  background: rgba(0, 255, 170, 0.1);
  border: 1px solid rgba(0, 255, 170, 0.35);
  color: #bfffe9;
}

.error-message {
  background: rgba(255, 85, 119, 0.1);
  border: 1px solid rgba(255, 85, 119, 0.35);
  color: #ffd0da;
}

@media (max-width: 720px) {
  body {
    padding: 18px 10px;
  }

  .container {
    padding: 20px 14px;
    border-radius: 18px;
  }

  .step {
    padding: 20px 14px;
  }

  .form-info {
    padding: 15px;
  }

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

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

  button {
    width: 100%;
  }

  .logo {
    max-width: 145px;
  }
}
.welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at center, rgba(31, 71, 255, 0.18), transparent 38%),
    rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  animation: welcomeFadeOut 4.6s ease forwards;
}

.welcome-card {
  width: min(440px, calc(100% - 32px));
  padding: 34px 28px;
  text-align: center;
  border: 1px solid rgba(77, 163, 255, 0.42);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(8, 15, 32, 0.96), rgba(2, 6, 18, 0.96));
  box-shadow: 0 0 40px rgba(31, 71, 255, 0.36);
  animation: welcomeCardIn 0.8s ease both;
}

.welcome-logo {
  width: 170px;
  max-width: 70%;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 22px rgba(77, 163, 255, 0.48));
}

.welcome-card h2 {
  margin: 0 0 12px;
  color: #ffffff;
}

.welcome-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.5;
}

@keyframes welcomeCardIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes welcomeFadeOut {
  0% {
    opacity: 1;
    visibility: visible;
  }
  78% {
    opacity: 1;
    visibility: visible;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

.step-title {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: help;
  padding-right: 8px;
  text-shadow: 0 0 18px rgba(77, 163, 255, 0.5);
}

.step-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 60%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-main), transparent);
  box-shadow: 0 0 14px rgba(77, 163, 255, 0.55);
}

.help-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  font-size: 0.85rem;
  color: #ffffff;
  border: 1px solid rgba(0, 212, 255, 0.55);
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.1);
  box-shadow: 0 0 14px rgba(0, 212, 255, 0.28);
}

.step-help {
  position: absolute;
  left: 0;
  top: calc(100% + 16px);
  z-index: 20;
  width: min(420px, 82vw);
  padding: 14px 16px;
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
  border: 1px solid rgba(0, 212, 255, 0.32);
  border-radius: 14px;
  background: rgba(5, 12, 30, 0.98);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38), 0 0 22px rgba(31, 71, 255, 0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.22s ease;
}

.step-title:hover .step-help,
.step-title:focus .step-help,
.step-title:focus-within .step-help {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}