:root {
  --bg: #0B0F1A;
  --surface: rgba(255,255,255,0.05);
  --border: rgba(255,255,255,0.1);
  --purple: #A855F7;
  --blue: #3B82F6;
  --text: #E5E7EB;
  --muted: #94A3B8;
}

body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* Onboarding Main Structural Glass Box */
.onboarding-container {
  width: 100%;
  max-width: 720px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  box-sizing: border-box;
}

/* Progress Tracking Layout */
.progress-bar-container {
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  margin: 20px 0 30px 0;
  position: relative;
}

.progress-bar {
  height: 6px;
  width: 25%; /* Initial default width for Step 1 */
  background: linear-gradient(to right, var(--purple), var(--blue));
  border-radius: 10px;
  transition: width 0.3s ease;
}

.steps-indicator {
  display: flex;
  justify-content: space-between;
  margin-bottom: 25px;
}

.step-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-dot.active {
  background: linear-gradient(to right, var(--purple), var(--blue));
  border: none;
  color: white;
}

/* Multi-step Display Hierarchy */
.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeIn 0.4s ease forwards;
}

h2 {
  margin: 0 0 6px 0;
  font-size: 1.6rem;
  font-weight: 600;
}

.subtitle {
  color: var(--muted);
  margin: 0 0 25px 0;
  font-size: 0.9rem;
}

/* Input Fields & Structured Adjustments */
.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.85rem;
  color: var(--text);
}

.input-group input[type="text"],
.input-group select,
.input-group textarea,
.input-group input[type="file"] {
  width: 100%;
  padding: 12px;
  margin-top: 6px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #111827;
  color: var(--text);
  font-size: 0.95rem;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  border-color: var(--blue);
}

.input-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

.textarea {
  min-height: 100px;
  resize: vertical;
}

/* Tailored Checkbox Wrappers */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text);
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
  accent-color: var(--purple);
  transform: scale(1.15);
  cursor: pointer;
}

.file-help {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 8px;
}

/* Navigation System Controls */
.form-navigation {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 35px;
}

/* Ensure back button pushes itself to the far left edge */
.form-navigation .prev-btn {
  margin-right: auto;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.form-navigation .prev-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.btn {
  padding: 12px 22px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(to right, var(--purple), var(--blue));
  color: white;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: opacity 0.2s, transform 0.1s;
}

.btn:hover {
  opacity: 0.9;
}

.btn:active {
  transform: scale(0.98);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}