/* LABEL */
.wpforms-container label.wpforms-field-label {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1;
    letter-spacing: 0;
    color: #004A7F !important;
}


/*  checkbox */
.wpforms-field-checkbox span {
  display: none;
}

.wpforms-field.wpforms-field-checkbox {
    padding-top: 0;
}

legend.wpforms-field-label {
  display: none;
}

/* FORM SUBMIT */


button.wpforms-submit {
    background-color: #F28B2D !important;
    color: #FFFFFF;
    border: none;
    border-radius: 10px !important;
    padding: 5px 10px !important;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600; 
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

@media screen and (min-width: 1024px) {
  button.wpforms-submit {
    position: absolute !important;
    right: 0;
    display: flex;
    transform: translateY(-40px);
  }
}



.wpforms-field-required li a {
  color: #d97924;
}

/* INPUT, TEXTAREA, SELECT */
.wpforms-field-container input[type="text"],
.wpforms-field-container input[type="email"],
.wpforms-field-container input[type="tel"],
.wpforms-field-container input[type="number"],
.wpforms-field-container input[type="password"],
.wpforms-field-container textarea,
.wpforms-field-container select {
    width: 100%;
    background-color: white;
    border: 1px solid #E5E5E5;
    border-radius: 5px;
    padding: 10px;
    min-height: 39px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    line-height: 1.2;
    color: #004A7F;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}


/* INPUT, TEXTAREA, SELECT SFONDO BIANCO */
.form-sfondo-bianco .wpforms-field-container input[type="text"],
.form-sfondo-bianco .wpforms-field-container input[type="email"],
.form-sfondo-bianco .wpforms-field-container input[type="tel"],
.form-sfondo-bianco .wpforms-field-container input[type="number"],
.form-sfondo-bianco .wpforms-field-container input[type="password"],
.form-sfondo-bianco .wpforms-field-container textarea,
.form-sfondo-bianco .wpforms-field-container select {
    width: 100%;
    background-color: #F8F8F8;
    border: 1px solid #E5E5E5;
    border-radius: 5px;
    padding: 10px;
    min-height: 39px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    line-height: 1.2;
    color: #004A7F;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

/* PLACEHOLDER */
.form-sfondo-bianco .wpforms-form input::placeholder,
.form-sfondo-bianco .wpforms-form textarea::placeholder {
    color: #A7A7A7;
    opacity: 1;
}

/* FOCUS */
.form-sfondo-bianco .wpforms-form input:focus,
.form-sfondo-bianco .wpforms-form textarea:focus,
.form-sfondo-bianco .wpforms-form select:focus {
    border-color: #004A7F;
    background-color: #FFFFFF;
    outline: none;
}

/* Testo 'Campi obbligatori' */
.note-obbligatori {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #004A7F;
}

/* Colore dell'asterisco */
.note-obbligatori span {
    color: #F9A23E; 
}

/* Linea divisoria */
.form-divider {
    border: 0;
    border-top: 1px solid #E5E5E5;
    margin-top: 40px;
    margin-bottom: 0;
}

/* CONTENUTO NASCOSTO /*
/* Pulsante INDIETRO (WPForms Next + Submit) */
div.wpforms-container-full .wpforms-page-prev {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    color: #006895 !important;
    cursor: pointer;
}

.wpforms-field.wpforms-field-pagebreak {
    display: flex;
    justify-content: end;
}

.wpforms-field.wpforms-field-pagebreak:nth-of-type(2)  {
    display: flex;
    justify-content: space-between !important;
}

/* Pulsante AVANTI */
div.wpforms-container-full .wpforms-page-next,
div.wpforms-container-full .wpforms-submit {
    background-color: #F28B2D !important;
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    padding: 5px 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600; 
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

/* Hover */
div.wpforms-container-full .wpforms-page-next:hover,
div.wpforms-container-full .wpforms-submit:hover {
    background-color: #d97924;
}

/* Freccia → automatica */
.wpforms-page-next::after,
.wpforms-submit::after {
    content: "";
    width: 8px;
    height: 12px;
    display: inline-block;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    background-image: url("data:image/svg+xml,%3Csvg width='8' height='12' viewBox='0 0 8 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6.01562 5.79758L1 10.159' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
/* FINE CONTENUTO NASCOSTO */


/* Contenitore bottoni */
.form-nav {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

/* INDIETRO (Blu) */
.wpforms-field-container .btn-prev {
    background: transparent;
    border: none;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #006895;
    cursor: pointer;
}

/* Nasconde visivamente ma lascia cliccabili via JS */
.wpforms-page-next,
.wpforms-page-prev {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  overflow: hidden !important;
}

/* AVANTI (Arancione con freccia svg) */
.wpforms-field-container .btn-next {
    background-color: #F28B2D;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 5px 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    height: 34px;
    min-width: 88px;
}

.wpforms-field-container .btn-next.right {
  margin-left: auto;
}

.wpforms-field-container .btn-next:hover {
    background-color: #d97924;
}

.wpforms-field-container .btn-next::after {
    content: "";
    width: 8px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg width='8' height='12' viewBox='0 0 8 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6.01562 5.79758L1 10.159' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

/* PROGRESS BAR */
.wpforms-page-indicator,
.wpforms-page-indicator.progress {
    display: none !important;
}
/* allinea tutta la progress bar a sinistra */
.custom-progress {
  width: 100%;
  margin-bottom: 32px;
}

/* Righe step */
.custom-progress .progress-steps {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

/* Ogni step occupa esattamente 1/3 */
.custom-progress .step {
  width: 33.3333%;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  text-align: left;
}

/* numero dentro cerchio */
.custom-progress .circle {
  min-width: 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #C5C5C5;
  color: white;
  font-family: Poppins, sans-serif;
  font-weight: 500;
  font-size: 18px;
}

/* testo step */
.custom-progress .label {
  font-family: Poppins, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 110%;
  color: #9AA2A9;
  text-align: left;
}

/* step attivo */
.custom-progress .step.active .circle {
  background: #F28B2D;
}
.custom-progress .step.active .label {
  color: #F28B2D;
}

/* step disabilitato */
.custom-progress .step.disabled {
  opacity: .4;
}

/* progress bars 1/3 + 1/3 + 1/3 */
.custom-progress .progress-bars {
  display: flex;
  width: 100%;
  gap: 10px;
  margin-top: 16px;
}

.custom-progress .bar {
  flex: 1;
  height: 6px;
  border-radius: 6px;
  background: #E6E6E6;
  overflow: hidden;
}

.custom-progress .bar .fill {
  height: 100%;
  width: 0%;
  background: #F28B2D;
  transition: width .35s ease;
}


.form-sfondo-bianco .StripeElement {
  margin-top: 5px;
  margin-bottom: 14px;
}

/* Nascondo il bottone di acquisto */
.wpforms-submit.form-button-orange {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  overflow: hidden !important;
  pointer-events: none;
}

/* MODALE */
.privacy-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999999;
}

@media screen and (max-width: 780px) {
  .privacy-modal {
    max-width: 100%;
  }
}

/* CONTENUTO DEL MODALE */
.privacy-modal-content {
  background: #fff;
  width: 90%;
  max-width: 720px;
  max-height: 85vh; 
  padding: 30px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
}

/* AREA SCORRIBILE (questa è quella che deve scrollare) */
.privacy-text-wrapper {
  flex: 1;
  overflow-y: auto; /* <--- SCROLL ATTIVO QUI */
  border: 1px solid #ccc;
  border-radius: 6px;
  margin: 16px 0;
  padding: 18px;
  max-height: 50vh; 
}

/* TESTO INTERNO */
.privacy-text {
  line-height: 1.5;
}

/* PULSANTE ACCETTO */
.privacy-accept-btn {
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  background: #ccc;
  color: #fff;
  font-weight: 600;
  cursor: not-allowed;
  transition: background .25s;
  max-width: 300px;
  display: flex;
  justify-content: center;
  margin: 0 auto;
}

.privacy-accept-btn.enabled {
    background: #F28B2D;
    cursor: pointer;
}

/* Blocca scroll della pagina quando modale aperto */
body.modal-open {
  overflow: hidden;
}


@media (max-width: 768px) {

  /* nascondi tutti gli step… */
  .custom-progress .step { display:none !important; }
  /* …tranne quello attivo (full width, a sinistra) */
  .custom-progress .step.active {
    display:flex !important;
    width:100% !important;
    align-items:center;
    gap:10px;
    justify-content:flex-start;
  }

  /* per default nascondi tutte le barre */
  .custom-progress .bar { display:none; }

  /* quando siamo negli step 1-3 mostri SOLO la prima barra */
  .custom-progress.show-bar-1 .bar-1 { display:block; flex:1; }

  /* quando siamo nello step 4 mostri SOLO la seconda barra */
  .custom-progress.show-bar-2 .bar-2 { display:block; flex:1; }

  /* un po’ di air */
  .custom-progress .progress-bars { width:100%; margin:8px 0 16px; gap:8px; }
}
