/* General Style */
body {
  margin: 0;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  background: linear-gradient(135deg, #000, #00cfff, #000);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  color: white;
  overflow: hidden;
  perspective: 1500px;
}

.onboarding-container {
  width: 90%;
  max-width: 600px;
  padding: 50px;
  border-radius: 25px;
  background: rgba(13, 5, 0, 0.5);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transform-style: preserve-3d;
  transition: transform 1s ease, box-shadow 1s ease, border 0.5s ease;
  transform: rotateX(-10deg) rotateY(10deg) translateZ(20px);
  will-change: transform, box-shadow;
  position: relative;
}

.onboarding-container:hover {
  transform: rotateY(0deg) rotateX(0deg) translateZ(30px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.onboarding-container:before {
  content: "";
  position: absolute;
  top: -5%;
  left: -5%;
  right: -5%;
  bottom: -5%;
  background: linear-gradient(45deg, #6a11cb, #2575fc, #ff0080);
  opacity: 0.1;
  filter: blur(15px);
  border-radius: 30px;
  z-index: -1;
}

/* Headings */
h1 {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 25px;
  color: #fff;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* Step Form Styles */
.step {
  display: none;
  transform: translateY(50px);
}

.step.active {
  display: block;
  opacity: 0;
  animation: slideFadeIn 1.5s forwards;
}

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

/* Progress Bar */
.progress-bar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
}

.progress-bar div {
  width: 22%;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.progress-bar div.active {
  background: linear-gradient(to right, #ff0080, #ff8c00);
  box-shadow: 0 0 15px rgba(255, 0, 128, 0.6);
}

/* Form Input Styles */
.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 1.2rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border-radius: 15px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1rem;
  outline: none;
  transition: background 0.4s, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3), inset 0 0 10px rgba(255, 255, 255, 0.1);
}

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
  border: 2px solid #ff4d4d;
  background: rgba(255, 0, 0, 0.2);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(to right, #6a11cb, #2575fc);
  color: white;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.btn:hover {
  background: linear-gradient(to right, #2575fc, #6a11cb);
  box-shadow: 0 10px 25px rgba(37, 117, 252, 0.7);
  transform: translateY(-3px);
}

.btn-next {
  float: right;
}

.btn-prev {
  float: left;
}

/* Loading Spinner */
.loading-spinner {
  display: none;
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Particle Background */
#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  animation: backgroundShift 15s ease infinite;
}

@keyframes backgroundShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
