body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f8f9fa;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  width: 100%;
  margin: 0;
  overflow-x: hidden;
}

h1 {
    text-align: center;
}

.wrapper {
  box-sizing: border-box;
}

.form-wrapper {
  width: 100%;
  max-width: 700px;
  box-sizing: border-box;
  padding: 24px;
}

#multistep-form {
  width: 100%;
}

form {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 700px;
  box-sizing: border-box;
  padding: 24px;
}

.form-step {
  display: none;
  animation: fadeIn 0.4s ease;
  width: 100%;
  min-height: auto;
}

.form-step.active {
  display: block;
}

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

input,
textarea {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
}

button {
  padding: 10px 20px;
  margin: 10px 5px 0 0;
  border: none;
  border-radius: 25px;
  background-color: #4a90e2;
  color: white;
  font-size: 1rem;
  cursor: pointer;
}

button:hover {
  background-color: #357ab8;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  margin-bottom: 20px;
}

.progress {
  height: 100%;
  background: #4a90e2;
  width: 0%;
  transition: width 0.3s ease;
}

input.error,
textarea.error {
  border: 2px solid red;
}

.error-message {
  color: red;
  font-size: 0.9rem;
  margin-top: 10px;
  margin-bottom: 10px;
}

/* 🔧 Responsive: ottimizzazioni per dispositivi mobili */
@media (max-width: 768px) {
  .form-wrapper {
    padding: 16px;
  }

  form {
    padding: 16px;
    border-radius: 12px;
  }

  .form-step {
    min-height: auto;
  }

  input,
  textarea {
    font-size: 1rem;
  }

  button {
    width: 100%;
    margin-bottom: 10px;
  }

  .progress-bar {
    margin-bottom: 16px;
  }
}
