.onboarding-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background: #1e1e1e8a;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  border: 1px solid #333;
}

.onboarding-container h2 {
  text-align: center;
  color: #ffffff;
  margin-bottom: 2rem;
  font-size: 1.8rem;
  font-weight: 600;
}

.onboarding-form {
  display: grid;
  gap: 2rem;
}

.form-section {
  background: #2a2a2a;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #444;
}

.form-section h3 {
  color: #64b5f6;
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  border-bottom: 2px solid #444;
  padding-bottom: 0.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #e0e0e0;
  font-weight: 500;
  font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="url"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #444;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
  background: #1e1e1e;
  color: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #64b5f6;
  box-shadow: 0 0 0 3px rgba(100, 181, 246, 0.2);
}

.form-group input.invalid {
  border-color: #f44336;
  box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  margin-bottom: 0;
  cursor: pointer;
  padding: 0.75rem;
  border-radius: 6px;
  transition: background-color 0.2s ease;
  color: #e0e0e0;
  background: #1e1e1e;
  border: 1px solid #444;
}

.checkbox-group label:hover {
  background-color: #333;
  border-color: #555;
}

.checkbox-group input[type="checkbox"] {
  margin-right: 0.75rem;
  width: auto;
  accent-color: #64b5f6;
}

.radio-group {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.radio-group label {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: background-color 0.2s ease;
  color: #e0e0e0;
  background: #1e1e1e;
  border: 1px solid #444;
  margin-bottom: 0;
}

.radio-group label:hover {
  background-color: #333;
  border-color: #555;
}

.radio-group input[type="radio"] {
  margin-right: 0.5rem;
  width: auto;
  accent-color: #64b5f6;
}

.submit-section {
  text-align: center;
  margin-top: 2rem;
  padding: 2rem;
  background: #2a2a2a;
  border-radius: 8px;
  border: 1px solid #444;
}

.submit-btn {
  padding: 1rem 3rem;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #64b5f6, #42a5f5);
  color: white;
  min-width: 200px;
}

.submit-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #42a5f5, #1e88e5);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(100, 181, 246, 0.4);
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.success-message {
  display: none;
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, #4caf50, #388e3c);
  color: white;
  border-radius: 8px;
  margin-top: 2rem;
  animation: fadeIn 0.5s ease-in-out;
}

.success-message.show {
  display: block;
}

.error-message {
  color: #f44336;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: rgba(244, 67, 54, 0.1);
  border-radius: 4px;
  border: 1px solid rgba(244, 67, 54, 0.3);
  display: none;
}

.error-message.show {
  display: block;
}

.required-indicator {
  color: #f44336;
  margin-left: 0.25rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive design */
@media (max-width: 768px) {
  .onboarding-container {
    margin: 1rem;
    padding: 1rem;
  }

  .form-section {
    padding: 1rem;
  }

  .checkbox-group {
    grid-template-columns: 1fr;
  }

  .radio-group {
    flex-direction: column;
    gap: 0.5rem;
  }

  .submit-btn {
    width: 100%;
    padding: 1rem;
  }
}
