/* Wizard di prenotazione */
.popup-content.wizard {
  width: 90%;
  max-width: 600px;
  padding: 30px;
  border-radius: 15px;
  background-color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  margin: auto;
  /* Remove any top/transform properties that might conflict with the popup centering */
}

/* Barra di progresso */
.progress-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  position: relative;
}

.progress-bar .step {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #777;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.progress-bar .step.active {
  background-color: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

.progress-bar .step.completed {
  background-color: #4CAF50;
  color: white;
}

.progress-bar .connector {
  flex-grow: 1;
  height: 4px;
  background-color: #f0f0f0;
  margin: 0 5px;
  position: relative;
}

/* Animazione per connettori completati */
.progress-bar .step.completed + .connector {
  background-color: #4CAF50;
}

/* Contenuto degli step */
.steps-container {
  min-height: 300px;
  margin-bottom: 20px;
}

.step-content {
  animation: fadeIn 0.5s ease;
}

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

/* Stile per i tour cards invece di un semplice select */
.tour-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.tour-card {
  border: 2px solid #eee;
  border-radius: 10px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tour-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tour-card.selected {
  border-color: var(--primary-color);
  background-color: rgba(0, 164, 204, 0.05);
}

.tour-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.tour-card h3 {
  margin: 0 0 10px 0;
  color: #333;
  font-size: 16px;
}

.tour-card .price {
  font-weight: bold;
  color: var(--primary-color);
}

/* Pulsanti di navigazione */
.buttons-container {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.prev-button, .next-button, .cancel-button {
  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.prev-button {
  background-color: #f0f0f0;
  color: #555;
}

.next-button {
  background-color: var(--primary-color);
  color: white;
}

.cancel-button {
  background-color: #f44336;
  color: white;
}

.prev-button:hover, .next-button:hover, .cancel-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.prev-button:hover {
  background-color: #e0e0e0;
}

.next-button:hover {
  background-color: #0089a9;
}

.cancel-button:hover {
  background-color: #d32f2f;
}

/* Stili per i campi di input */
.step-content input,
.step-content select {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 2px solid #eee;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.step-content input:focus,
.step-content select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 164, 204, 0.2);
}

/* Dettagli partecipanti */
.participant-details {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  border-left: 4px solid var(--primary-color);
}

/* Responsive design */
@media (max-width: 768px) {
  .popup-content.wizard {
    width: 95%;
    padding: 20px;
  }
  
  .progress-bar .step {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }
  
  .buttons-container {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .prev-button, .next-button, .cancel-button {
    padding: 10px 15px;
    font-size: 14px;
  }
}