.bf-cf7-hidden{display:none!important}.bf-cf7-required:after{content:' *';font-weight:700}.bf-cf7-debug{margin-top:16px;padding:10px;border:1px dashed #999;background:#fff;font-size:12px;color:#333}

.bf-cf7-step-nav {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 18px 0;
}
.bf-cf7-step-nav .bf-cf7-prev,
.bf-cf7-step-nav .bf-cf7-next,
.bf-cf7-step-nav .bf-cf7-final-submit {
  cursor: pointer;
  width: auto !important;
  max-width: none !important;
  min-width: 0;
  flex: 0 0 auto !important;
}
.bf-cf7-step-nav .bf-cf7-next,
.bf-cf7-step-nav .bf-cf7-final-submit {
  margin-left: auto !important;
}
.bf-cf7-step-error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid #d63638;
  color: #b32d2e;
  background: #fcf0f1;
}
.bf-step-invalid {
  border-color: #d63638 !important;
}


/* Avanti/Indietro sono pulsanti di navigazione: non devono mai mostrare il cursore di divieto. */
.bf-cf7-step-nav .bf-cf7-prev,
.bf-cf7-step-nav .bf-cf7-next,
.bf-cf7-step-nav .bf-cf7-prev:disabled,
.bf-cf7-step-nav .bf-cf7-next:disabled,
.bf-cf7-step-nav .bf-cf7-prev[disabled],
.bf-cf7-step-nav .bf-cf7-next[disabled],
.bf-cf7-step-nav .bf-cf7-prev[aria-disabled="true"],
.bf-cf7-step-nav .bf-cf7-next[aria-disabled="true"] {
  cursor: pointer !important;
  pointer-events: auto !important;
}

/* Solo il vero bottone Invia deve mostrare il divieto quando CF7 lo disabilita. */
.bf-cf7-step-nav .bf-cf7-final-submit:disabled,
.bf-cf7-step-nav .bf-cf7-final-submit[disabled],
.bf-cf7-step-nav .bf-cf7-final-submit[aria-disabled="true"] {
  cursor: not-allowed !important;
}


/* Responsive multi-step navigation: su mobile i pulsanti restano dentro il form senza troncare il testo. */
.bf-cf7-step-nav,
.bf-cf7-step-nav * {
  box-sizing: border-box;
}
.bf-cf7-step-nav {
  max-width: 100%;
  overflow: visible;
}
.bf-cf7-step-nav .bf-cf7-prev,
.bf-cf7-step-nav .bf-cf7-next,
.bf-cf7-step-nav .bf-cf7-final-submit {
  white-space: nowrap !important;
  min-width: 0 !important;
  overflow: visible !important;
  text-overflow: clip !important;
}
@media (max-width: 640px) {
  .bf-cf7-step-nav {
    gap: 8px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    flex-wrap: nowrap !important;
  }
  .bf-cf7-step-nav .bf-cf7-prev,
  .bf-cf7-step-nav .bf-cf7-next,
  .bf-cf7-step-nav .bf-cf7-final-submit {
    flex: 0 1 auto !important;
    width: auto !important;
    max-width: 48% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 44px !important;
    padding: 11px 20px !important;
    font-size: clamp(13px, 3.6vw, 16px) !important;
    line-height: 1.15 !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }
  .bf-cf7-step-nav .bf-cf7-next,
  .bf-cf7-step-nav .bf-cf7-final-submit {
    margin-left: auto !important;
  }
  .bf-cf7-step-nav .bf-cf7-next:only-child,
  .bf-cf7-step-nav .bf-cf7-final-submit:only-child {
    max-width: 100% !important;
  }
}
@media (max-width: 380px) {
  .bf-cf7-step-nav {
    gap: 6px !important;
  }
  .bf-cf7-step-nav .bf-cf7-prev,
  .bf-cf7-step-nav .bf-cf7-next,
  .bf-cf7-step-nav .bf-cf7-final-submit {
    padding: 10px 16px !important;
    font-size: 13px !important;
    min-height: 42px !important;
  }
}


/* Colore configurabile delle etichette/domande generate dal builder. */
.bf-cf7-logic-active .bf-cf7-field-label {
  color: var(--bf-cf7-label-color, inherit);
}
