/*CSS FORM 06/06/2025 aggiornato con palette Ad Hoc Tourism*/
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f9f9f9; /* Beige chiaro */
  margin: 0;
  padding: 0;
}

.container {
  max-width: 800px;
  margin: 40px auto;
  background: #ffffff; /* Bianco puro */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(15, 34, 45, 0.1); /* Blu notte trasparente */
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.container:hover {
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(15, 34, 45, 0.2); /* Blu notte trasparente */
}

h1 {
  text-align: center; 
  font-size: 28px; 
  margin-bottom: 30px; /* Spazio sotto il titolo */
  color: #0F222D; /* Blu notte */ 
  animation: fadeInDown 1s ease-in-out;  
}

h2 {
  font-size: 22px;
  color: #0F222D; /* Beige caldo */
  margin-top: 30px;
  margin-bottom: 10px;
  animation: fadeInLeft 1s ease-in-out;
}

label {
  display: block;
  margin-top: 15px;
  font-weight: 500;
  color: #0F222D; /* Blu notte */
  animation: fadeInLeft 1s ease-in-out;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border-radius: 6px;
  border: 1px solid #c7b268; /* Oro tenue */
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  background-color: #fff;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
  border-color: #B09E80; /* Beige caldo */
  box-shadow: 0 0 8px rgba(176, 158, 128, 0.3);
}

textarea {
  resize: vertical;
}

input[type="checkbox"] {
  margin-right: 10px;
  accent-color: #0F222D; /* Stile coerente con brand */
  appearance: auto; /* forza il rendering nativo */
  margin-bottom: 15px; /* aggiunge spazio sotto */
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 10px;
}

.checkbox-group div {
  flex: 1 1 45%;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.checkbox-group div input[type="checkbox"] {
  margin-right: 10px;
}

.checkbox-group div label {
  margin: 0;
  flex: 1;
  text-align: left;
  color: #0F222D;
}

.checkbox-group .section-title {
  flex: 1 1 100%;
  font-weight: bold;
  margin-top: 20px;
  color: #0F222D;
}

@media (max-width: 600px) {
  .checkbox-group div {
    flex: 1 1 100%;
  }
}

.form-section {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.form-section.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.progress-bar {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 30px;
}

.progress-step {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #D6CEC0; /* Oro tenue */
  z-index: 10;
  transition: background-color 0.3s ease-in-out;
}

.progress-step.active {
  background-color: #B09E80; /* Beige caldo */
}

.progress {
  position: absolute;
  top: 8px;
  left: 0;
  height: 4px;
  background-color: #B09E80;
  width: 0%;
  z-index: 1;
  transition: width 0.4s ease-in-out;
}

.btn-group {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

.next-btn,
.prev-btn,
button[type="submit"] {
  padding: 10px 20px;
  font-size: 16px;
  background-color: #0F222D; /* Blu notte */
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.next-btn:hover,
.prev-btn:hover,
button[type="submit"]:hover {
  background-color: #B09E80; /* Beige caldo */
  transform: scale(1.05);
}

#confirmation-message {
  background-color: #eaf9ea;
  border-left: 6px solid #2ecc71;
  padding: 15px;
  font-size: 18px;
  margin-top: 20px;
  border-radius: 8px;
  animation: fadeInUp 1s ease-in-out;
}

@media (max-width: 600px) {
  .btn-group {
    flex-direction: column;
  }

  .next-btn,
  .prev-btn,
  button[type="submit"] {
    width: 100%;
    margin-bottom: 10px;
  }

  .checkbox-group div {
    flex: 1 1 100%;
  }
}

/* Keyframes for animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
