/* ============================================================
   Formulaire de devis HORIZONTAL (test) - page "devis-aidant"
   Styles autonomes, alignés sur la charte graphique de production
   (voir style/styles.css / template-services.php) : accent rose
   #c40767, cartes arrondies (16px, bordure #ebebeb), police Poppins.
   ============================================================ */
.aidant-step.slide-in-right {
  animation: aidantSlideInRight 0.15s ease;
  z-index: -1;
}
.aidant-step.slide-in-left {
  animation: aidantSlideInLeft 0.15s ease;
  z-index: -1;
}
@keyframes aidantSlideInRight {
  from {
    opacity: 0;
    transform: translateX(140px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes aidantSlideInLeft {
  from {
    opacity: 0;
    transform: translateX(-140px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.aidant-form p.input-search-subtitle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  color: #11191e;
}
.aidant-form .input-search-label {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #374851;
}
.aidant-form {
  display: block;
  max-width: 760px;
  height: 100%;
  padding: 24px 0 40px;
}

/* --- Barre de progression --- */
.aidant-progress {
  margin-bottom: 5px;
  display: none;
  opacity: 0;
  transition: opacity 1s ease;
}

.aidant-progress-bar {
  position: relative;
  height: 6px;
  background: #e9e9ef;
  border-radius: 999px;
  overflow: hidden;
}

.aidant-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: #c40767;
  border-radius: 999px;
  transition: width 0.35s ease;
}

.aidant-progress-label {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #7a7a8c;
  text-align: right;
}

/* --- Liste des points forts (checklist avec icône coche) --- */
.aidant-check-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}
.aidant-check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  line-height: 24px;
  color: #11191e;
  margin-bottom: 8px;
}
.aidant-check-icon {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}

/* --- Viewport (fenêtre des étapes) --- */
.aidant-viewport {
  position: relative;
  width: 100%;
  /* Pas de clipping : la liste des suggestions de ville déborde de l'étape
       active et doit rester visible. */
  overflow: visible;
  transition: height 0.35s ease;
}
/* Liste déroulante des villes au-dessus des autres éléments */
.aidant-form .city-result,
.aidant-form .city-result-container {
  position: relative;
  z-index: 20;
  max-height: 175px;
  overflow-y: auto;
}

/* Le grisage hérité (.disable ajouté par agenceSearch) ne doit pas
   s'appliquer dans le formulaire horizontal. */
.aidant-form .input-search-container.disable {
  opacity: 1;
  pointer-events: auto;
}
.form-devis {
  background: #ffffff;
  box-shadow: 0px 5px 10px 0px #00000026;
  width: 100%;
  gap: 20px;
  opacity: 1;
  border-radius: 20px;
  padding: 40px 20px;
  margin-top: 40px;
  overflow: hidden;
  position: relative;
}
/* --- Étapes : une seule visible à la fois --- */
.aidant-step {
  display: none;
}

.aidant-step.is-active {
  display: block;
}
.aidant-step .form-header-input-search {
  margin-top: 0;
}

/* --- Bouton étape précédente --- */

/* ============================================================
   Cartes de choix : reprend le design de production (voir
   .devis-shortcode .devis-container .form-container .input-radio
   dans style/styles.css) : carte blanche arrondie, bordure claire,
   sélection matérialisée par une bordure rose #c40767.
   ============================================================ */

.aidant-form .input-radio:not(.aidant-counter):hover {
  border-color: #b0b3c1;
}

@media screen and (max-width: 767px) {
  .aidant-form .input-radio:not(.aidant-counter) {
    width: calc(50% - 6px);
  }
}

/* --- Textes --- */
.aidant-form .input-radio .radio-text {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: #11191e;
  width: 100%;
}

.aidant-form .input-radio .radio-info {
  font-size: 12px;
  line-height: 18px;
  font-weight: 400;
  color: #374851;
  font-style: italic;
  width: 100%;
  margin-top: 4px;
}

/* --- Infobulle (coin supérieur droit) --- */
.aidant-form .input-radio .radio-infobulle {
  display: none;
  position: absolute;
  width: 21px;
  height: 20px;
  top: 7px;
  right: 7px;
  z-index: 9;
}

/* --- Inputs radio/checkbox masqués (la carte sert de contrôle) --- */
.aidant-form .input-radio input[type="radio"],
.aidant-form .input-radio input[type="checkbox"] {
  position: absolute;
  left: -9999px;
}

.aidant-form .input-radio.active-radio:not(label[for="nb_heures"]) {
  border: 2px solid #c40767;
}
