.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
  animation: fadeIn 0.5s;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

.wizard-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5625rem;
}

.wizard-back {
  background-color: var(--gray-100);
  border: none;
  color: var(--gray-600);
  padding: 0.625rem 1.25rem;
  border-radius: var(--border-radius-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
}

.wizard-back:hover {
  background-color: var(--gray-200);
}

.wizard-next {
  background: linear-gradient(to right, var(--primary-color), var(--primary-light));
  border: none;
  color: var(--text-light);
  padding: 0.625rem 1.25rem;
  border-radius: var(--border-radius-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
}

.wizard-next:hover {
  background: linear-gradient(to right, var(--primary-dark), var(--primary-color));
  transform: translateY(-0.125rem);
  box-shadow: 0 0.25rem 0.5rem rgba(0, 109, 182, 0.2);
}

.wizard-submit {
  background: linear-gradient(to right, var(--success-color), #5cd65c);
  border: none;
  color: var(--text-light);
  padding: 0.625rem 1.875rem;
  border-radius: var(--border-radius-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all var(--transition-base);
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.wizard-submit:hover {
  background: linear-gradient(to right, #218838, #4cae4c);
  transform: translateY(-0.125rem);
  box-shadow: 0 0.25rem 0.5rem rgba(40, 167, 69, 0.3);
}

.wizard-progress {
  margin: 0 0 1.875rem 0;
  padding: 0;
  display: flex;
  counter-reset: step;
  justify-content: space-between;
  position: relative;
}

.wizard-progress::before {
  content: '';
  position: absolute;
  top: 0.875rem;
  left: 0;
  width: 100%;
  height: 0.125rem;
  background-color: var(--gray-300);
  z-index: 0;
}

.wizard-progress-bar {
  position: absolute;
  top: 0.875rem;
  left: 0;
  height: 0.125rem;
  background: linear-gradient(to right, var(--primary-color), var(--primary-light));
  z-index: 1;
  transition: width 0.3s ease;
}

.wizard-progress li {
  list-style-type: none;
  width: 33.33%;
  position: relative;
  text-align: center;
  z-index: 2;
}

.wizard-progress li::before {
  content: counter(step);
  counter-increment: step;
  width: 1.875rem;
  height: 1.875rem;
  display: block;
  border-radius: 50%;
  background-color: var(--white);
  border: 2px solid var(--gray-300);
  text-align: center;
  line-height: 1.6875rem;
  margin: 0 auto 0.625rem auto;
  color: var(--gray-600);
  transition: all 0.3s ease;
}

.wizard-progress li.active::before {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.wizard-progress li.completed::before {
  background: var(--success-color);
  color: var(--white);
  border-color: var(--success-color);
  content: '✓';
}

.wizard-step-title {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-top: 0.3125rem;
  transition: all 0.3s ease;
}

.wizard-progress li.active .wizard-step-title {
  color: var(--primary-color);
  font-weight: var(--font-weight-medium);
}

.wizard-progress li.completed .wizard-step-title {
  color: var(--success-color);
}

.wizard-header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.wizard-header h4 {
  font-size: 1.125rem;
  color: var(--primary-color);
  margin-bottom: 0.3125rem;
}

.wizard-header p {
  font-size: 0.875rem;
  color: var(--gray-600);
}

.error-animation {
  animation: shake 0.5s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-0.3125rem); }
  20%, 40%, 60%, 80% { transform: translateX(0.3125rem); }
}
