body {
  font-family: Arial, sans-serif;
  background: #f9f9f9;
  padding: 20px;
}

.quiz-container {
  max-width: 600px;
  margin: auto;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.step-wrapper {
  position: relative;
  min-height: 240px;
}

.step {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  display: block;
}

.step.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  z-index: 1;
}

.checkbox-label {
  display: block;
  margin: 10px 0;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select {
  width: 100%;
  max-width: 100%;
  padding: 10px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

button {
  padding: 10px 20px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 12px;
}

button:hover {
  background: #0056b3;
}

.slide-out-left {
  animation: slideOutLeft 0.3s forwards;
}

.slide-in-right {
  animation: slideInRight 0.3s forwards;
}

@keyframes slideOutLeft {
  to {
    opacity: 0;
    transform: translateX(-40px);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
