/* Estimation en ligne - Autocleanet (mobile-first)
   Ce fichier complète ton style.css sans le casser. */

.estimator-wrap{
  max-width: 900px;
  margin: 0 auto;
}

.estimator-card{
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
  border: 1px solid rgba(0,0,0,.06);
}

.estimator-steps{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin: 12px 0 16px;
}
.estimator-step-dot{
  flex:1 1 44px;
  height: 8px;
  border-radius: 999px;
  background: rgba(0,0,0,.12);
}
.estimator-step-dot.active{
  background: rgba(13,128,243,.9);
}

.estimator-h{
  margin: 0 0 10px;
  font-size: 1.35rem;
}
.estimator-p{
  margin: 0 0 14px;
  color: #555;
  line-height: 1.35;
}

.estimator-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:12px;
}

/* Cards choix */
.choice{
  display:block;
  width:100%;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 14px;
  padding: 14px;
  background:#fff;
  cursor:pointer;
  transition: .15s transform, .15s box-shadow, .15s border-color;
}
.choice:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,.08);
}
.choice.selected{
  border-color: rgba(13,128,243,.9);
  box-shadow: 0 12px 28px rgba(13,128,243,.16);
}
.choice h3{ margin:0 0 6px; font-size: 1.05rem; }
.choice p{ margin:0; color:#666; font-size: .92rem; }

.estimator-form{
  display:grid;
  grid-template-columns: 1fr;
  gap:10px;
}
.estimator-form label{ font-weight: 600; font-size: .9rem; color:#333; }
.estimator-form input, .estimator-form textarea{
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.18);
  font-size: 1rem;
}
.estimator-form textarea{ min-height: 96px; resize: vertical; }

.estimator-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 10px;
}
.estimator-actions .cta{ text-align:center; }

.estimator-summary{
  background: rgba(0,0,0,.03);
  border: 1px dashed rgba(0,0,0,.18);
  border-radius: 14px;
  padding: 14px;
}
.estimator-summary h3{ margin:0 0 10px; }
.estimator-summary ul{ margin:0; padding-left: 18px; }
.estimator-summary li{ margin: 6px 0; }
.estimator-total{
  font-size: 1.6rem;
  font-weight: 800;
  margin-top: 10px;
}

.muted{ color:#666; font-size: .92rem; }
.badge{
  display:inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight:700;
  font-size: .8rem;
  background: rgba(13,128,243,.12);
  color: rgba(13,80,200,1);
}

/* =========================================================
   OPTIONS (checkboxes) : checkbox gauche, texte, prix à droite
========================================================= */

.estimator-grid--options{
  width:100%;
  grid-template-columns: 1fr !important; /* 1 colonne partout */
}

.choice--option{
  padding: 14px;
}

.opt-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
}

/* Checkbox */
.opt-check{
  width:18px;
  height:18px;
  flex:0 0 auto;
  margin:0;          /* ✅ on enlève le margin-top */
  accent-color:#0d80f3;
}

/* Contenu */
.opt-body{
  flex:1;
  min-width:0;
}

/* Ligne titre: texte + badge */
.opt-title{
  display:flex;
  align-items:center;  /* ✅ badge et texte alignés */
  gap:10px;
  margin:0;
}

/* si titre long -> il passe à la ligne sans casser le badge */
.opt-name{
  font-weight:700;
  font-size:1.02rem;
  line-height:1.25;
}

/* Badge toujours à droite */
.choice--option .badge{
  margin-left:auto;
  white-space:nowrap;
}

/* Description en dessous, bien alignée */
.opt-desc{
  margin:6px 0 0;     /* ✅ petit espace sous le titre */
  color:#555;
  font-size:.92rem;
  line-height:1.35;
}

/* =========================================================
   RESPONSIVE (desktop)
========================================================= */
@media(min-width: 720px){
  .estimator-card{ padding: 24px; }
  .estimator-grid{ grid-template-columns: repeat(2, 1fr); }

  /* IMPORTANT : on ne touche pas ici aux options,
     car estimator-grid--options reste forcé à 1 colonne */
  .estimator-form{ grid-template-columns: none; }
  .estimator-form .full{ grid-column: 1 / -1; }
}

/* =========================================================
   FIX DESKTOP : ton style.css impose "form { max-width:480px }"
   => on annule ça uniquement pour l'estimateur
========================================================= */
.estimator-card .estimator-form{
  max-width: none;
  width: 100%;
  margin: 0;
  text-align: left;
}

/* Les cards (labels) doivent prendre toute la largeur de leur colonne */
.estimator-card .estimator-grid .choice{
  display: block;
  width: 100%;
}

/* Optionnel : si tu veux que la carte soit un peu plus large sur desktop */
@media (min-width: 1000px){
  .estimator-wrap{ max-width: 1100px; }
}


/* =========================================================
   STEP 7 - Coordonnées : layout propre + champs plus grands
========================================================= */

/* On met l’étape 7 en grille */
.step[data-step="7"]{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

/* Les blocs label+input prennent toute la largeur */
.step[data-step="7"] > div{
  width: 100%;
}

/* Labels plus lisibles */
.step[data-step="7"] label{
  display:block;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: .95rem;
  color: #222;
}

/* Inputs plus grands et bien alignés */
.step[data-step="7"] input{
  width: 100%;
  height: 52px;                 /* ✅ plus grand */
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.18);
  font-size: 1.05rem;
  background: #fff;
}

.step[data-step="7"] input:focus{
  outline: none;
  border-color: rgba(13,128,243,.9);
  box-shadow: 0 0 0 4px rgba(13,128,243,.12);
}

/* Récap plus joli */
.step[data-step="7"] .estimator-summary{
  padding: 16px;
  border-radius: 16px;
  background: rgba(13,128,243,.05);
  border: 1px solid rgba(13,128,243,.18);
}

.step[data-step="7"] .estimator-summary h3{
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.step[data-step="7"] .estimator-summary ul{
  margin: 0;
  padding-left: 18px;
}

.step[data-step="7"] .estimator-summary li{
  margin: 8px 0;
  line-height: 1.35;
}

.step[data-step="7"] .estimator-total{
  margin-top: 12px;
  font-size: 1.5rem;
  font-weight: 900;
}

/* Desktop : Nom / Tel sur 2 colonnes */
@media (min-width: 720px){
  .step[data-step="7"]{
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  /* Les éléments .full occupent les 2 colonnes */
  .step[data-step="7"] .full{
    grid-column: 1 / -1;
  }
}


/* =========================================================
   FORM LAYOUT (PRO step 2 + Particulier step 7)
   => champs alignés + responsive propre
========================================================= */

.step[data-step="2"],
.step[data-step="7"]{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

/* Les titres / textes / actions prennent toute la largeur */
.step[data-step="2"] .estimator-h,
.step[data-step="2"] .estimator-p,
.step[data-step="2"] .estimator-actions,
.step[data-step="7"] .estimator-h,
.step[data-step="7"] .estimator-p,
.step[data-step="7"] .estimator-actions{
  grid-column: 1 / -1;
}

/* Les blocs marqués .full prennent toute la largeur */
.step[data-step="2"] > .full,
.step[data-step="7"] > .full{
  grid-column: 1 / -1;
}

/* Inputs plus larges/propres */
.step[data-step="2"] input,
.step[data-step="2"] textarea,
.step[data-step="7"] input,
.step[data-step="7"] textarea{
  width: 100%;
  min-height: 48px;
}

/* Labels plus lisibles */
.step[data-step="2"] label,
.step[data-step="7"] label{
  display:block;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: .92rem;
  color:#333;
}

/* Desktop: 2 colonnes (sauf les .full) */
@media (min-width: 720px){
  .step[data-step="2"],
  .step[data-step="7"]{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
