.haqihana-calculator {
  padding: 20px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  background-color: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  font-family: 'Arial', sans-serif;
  max-width: 600px;
  margin: auto;
  text-align: center;
}

.haqihana-calculator h2 {
  text-align: center;
  font-size: 1.8em;
  margin-bottom: 20px;
  color: #333333;
}

.measurement-instructions img {
  margin-bottom: 20px;
  border: 3px solid #e0e0e0;
  border-radius: 10px;
  width: 100%;
  height: auto;
}

.measurement-input {
  margin-bottom: 20px;
}

.measurement-input label {
  font-weight: bold;
  font-size: 1.2em;
  margin-bottom: 10px;
  display: block;
}

.measurement-input input[type="number"] {
  width: 100%;
  padding: 10px;
  border: 2px solid #e0e0e0;
  border-radius: 5px;
  font-size: 1.1em;
}

.size-result {
  padding: 20px;
  border-radius: 8px;
  font-weight: bold;
  text-align: center;
  margin-top: 20px;
  background-color: #f5f5f5;
  display: none; /* Masque la div par défaut */
}

.size-result.active {
  display: block; /* Affiche la div lorsque le formulaire a une valeur */
}

#size-result span {
  padding: 10px 20px;
  margin: 8px;
  border-radius: 25px;
  display: inline-block;
  font-weight: bold;
  font-size: 1.2em;
  text-align: center;
  color: #ffffff; /* Texte blanc pour plus de contraste */
}

/* Couleurs spécifiques pour chaque taille */
.size-xxxs { background-color: #8bc34a; }
.size-xxs, .size-xxsl { background-color: #ffb74d; }
.size-xs, .size-xsl { background-color: #64b5f6; }
.size-s, .size-sl, .size-s2h { background-color: #e57373; }
.size-m, .size-ml, .size-m2h { background-color: #9575cd; }
.size-l, .size-l2h { background-color: #4caf50; }
.size-xl { background-color: #ffa726; }

/* Style pour les conseils supplémentaires */
#size-result p {
  margin-top: 15px;
  font-size: 1em;
  font-weight: normal;
  color: #616161;
  background-color: #f5f5f5;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
}
