/**
 * Stili per il calcolo del bollino ambientale.
 */

/* Contenitore pagina */
.dekra-bollino-page {
  padding: 20px 0;
}

/* Contenitore form */
.dekra-bollino-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 25px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.dekra-bollino-container h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
  font-size: 24px;
}

/* Stili form */
#bollino-form-wrapper {
  margin-top: 15px;
}

/* Campi select */
#bollino-form-wrapper select {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: white;
  box-sizing: border-box;
}

/* Evidenzia i selettori per migliorare UX */
.bollino-select {
  transition: all 0.3s ease;
  border-width: 2px !important;
}

.bollino-select:focus, 
.bollino-select:hover {
  border-color: #0056b3 !important;
  box-shadow: 0 0 5px rgba(0, 86, 179, 0.3);
}

/* Pulsante */
#bollino-form-wrapper .form-actions {
  margin-top: 10px;
  text-align: center;
}

#bollino-form-wrapper .form-submit {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

#bollino-form-wrapper .form-submit:hover {
  background-color: #0056b3;
}

/* Risultato */
.bollino-risultato {
  margin-top: 25px;
  text-align: center;
  padding: 15px;
  background-color: #f0f0f0;
  border-radius: 8px;
}

.bollino-risultato img {
  max-width: 150px;
  display: inline-block;
  margin-bottom: 15px;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s;
}

.bollino-risultato img:hover {
  transform: scale(1.05);
}

.bollino-descrizione {
  font-size: 16px;
  color: #333;
  margin-top: 10px;
}

.bollino-descrizione strong {
  font-weight: bold;
  text-transform: uppercase;
}

/* Indicatore di caricamento - versione CSS senza immagine */
.ajax-progress {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

@keyframes spinner {
  to {transform: rotate(360deg);}
}

.ajax-progress .throbber {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  border: 3px solid #ccc;
  border-radius: 50%;
  border-top-color: #007bff;
  animation: spinner 0.8s linear infinite;
}

.ajax-progress .message {
  color: #666;
  font-size: 14px;
}

/* Animazione per le azioni AJAX */
@keyframes bollino-fade {
  0% { opacity: 0.7; }
  100% { opacity: 1; }
}

.form-ajax-effect {
  animation: bollino-fade 0.5s ease-in-out;
} 