/* ===============================
   RESET / BASE
================================ */
* {
  box-sizing: border-box;
}

body {
  background: #f6f5f3;
}

/* ===============================
   CONTAINER
================================ */
.preventivo {
  max-width: 980px;
  margin: 50px auto;
  padding: 50px;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 20px 40px rgba(0,0,0,.06);
}
/* HERO */
.hero {
  position: relative;
  min-height: 35vh;
  background: url('../images/page-preventivo/hero.png') center/cover no-repeat;
  display: flex;
  align-items: center;
 background-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.55), rgba(0,0,0,.15));
}

.hero__content {
  position: relative;
  max-width: 400px;
  padding: 0 8%;
  color: #fff;
}

.hero__tag {
  opacity: .7;
  font-size: 14px;
}

.hero h1 {
  font-size: clamp(32px, 4vw, 52px);
  margin: 15px 0;
}

.hero p {
  line-height: 1.6;
  max-width: 600px;
}
/* ===============================
   TITLES
================================ */
.preventivo h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 50px;
  color: #1f1f1f;
}

/* ===============================
   PROGRESS BAR
================================ */
.progress {
  height: 6px;
  background: #eaeaea;
  border-radius: 10px;
  margin-bottom: 50px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 33%;
  background: linear-gradient(90deg,#e67e22,#f39c12);
  transition: width .4s ease;
}

/* ===============================
   STEPS
================================ */
.step {
  display: none;
}

.step.active {
  display: block;
  animation: slideRight .35s ease;
}

/* ===============================
   OPTIONS (STEP 1 & 2)
================================ */
.options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.option {
  background: #fff;
  border: 2px solid #e6e6e6;
  border-radius: 18px;
  padding: 35px 20px;
  text-align: center;
  cursor: pointer;
  font-size: 18px;
  transition: all .25s ease;
  user-select: none;
}

.option:hover {
  transform: translateY(-4px);
  border-color: #e67e22;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.option.selected {
  border-color: #e67e22;
  background: #fff7ef;
  color: #e67e22;
  font-weight: 600;
}

/* ===============================
   ACTION BUTTONS
================================ */
.actions p {
 /*  display: flex; */
  align-items: center;
/*   justify-content: space-between;
 */  gap: 20px;
  margin: 0;

}

/* Supprimer le <br> auto */
.actions p br {
  display: none;
}

/* Bouton Indietro */
.actions .prev {
  background: #f1f1f1;
  color: #333;
  padding: 16px 32px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

/* Submit CF7 */
.actions .wpcf7-submit {
  padding: 18px 36px;
  border-radius: 14px;
  font-size: 17px;
  background: linear-gradient(135deg, #e67e22, #f39c12);
  color: #fff;
  border: none;
  cursor: pointer;
}

/* Spinner CF7 */
.actions .wpcf7-spinner {
  margin-left: 12px;
}


button {
  padding: 16px 32px;
  border-radius: 14px;
  border: none;
  font-size: 16px;
  cursor: pointer;
  transition: .25s;
}

button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.next {
  background: linear-gradient(135deg,#e67e22,#f39c12);
  color: #fff;
}

.next:hover {
  opacity: .9;
}

.prev {
  background: #e0e0e0;
  color: #333;
}

.prev:hover {
  background: #d5d5d5;
}

/* ===============================
   CF7 FORM (STEP 3)
================================ */





/* Inputs */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #dcdcdc;
  font-size: 15px;
  transition: .2s;
}

.wpcf7 textarea {
  min-height: 140px;
  resize: vertical;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: #e67e22;
  box-shadow: 0 0 0 2px rgba(230,126,34,.15);
}

/* File */
.wpcf7 input[type="file"] {
  padding: 14px;
  border: 2px dashed #ddd;
  border-radius: 12px;
  background: #fafafa;
}

/* Privacy */
.wpcf7-acceptance {
  font-size: 14px;
}

/* Submit */
.wpcf7-submit {
  background: linear-gradient(135deg,#e67e22,#f39c12);
  color: #fff;
  font-size: 17px;
  padding: 18px;
  border-radius: 14px;
}

.wpcf7-submit:hover {
  opacity: .9;
}

/* CF7 messages */
.wpcf7-response-output {
  grid-column: 1 / -1;
  border-radius: 12px;
  padding: 15px;
}

/* ===============================
   ANIMATIONS
================================ */
@keyframes slideRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 900px) {

  .preventivo {
    padding: 30px;
  }

  .options {
    grid-template-columns: 1fr;
  }

  .wpcf7 form {
    grid-template-columns: 1fr;
  }

  .actions button {
        margin-bottom: 15px;
  }

  button {
    width: 100%;
  }
}
.step-error {
  background: #fdecea;
  color: #c0392b;
  border: 1px solid #f5c6cb;
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 25px;
  font-size: 15px;
}
@media (max-width: 600px) {
  .actions p {
    flex-direction: column-reverse;
  }

  .actions button,
  .actions .wpcf7-submit {
    width: 100%;
  }
}
