/**
 * Moduli Fluent Forms con la grafica del tema: stessi input, bordi, raggi e pulsanti del sito
 * (select "Ordina per", campi account/checkout, df-btn--primary). Caricato dal tema solo dove c'è un modulo.
 */
.fluentform { font-family: var(--wp--preset--font-family--body); color: #3E4A57; }
.fluentform .ff-el-group { margin-bottom: 20px; }
.fluentform .ff-el-input--label { margin-bottom: 6px; }
.fluentform .ff-el-input--label label { font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 14px; line-height: 1.3; color: #13233F; }
.fluentform .ff-el-is-required.asterisk-right label::after { content: " *"; color: #B3261E; margin-left: 0; }
.fluentform .ff-el-form-control { display: block; width: 100%; min-height: 48px; box-sizing: border-box; padding: 10px 14px; border: 1px solid #C9D6E6; border-radius: 10px; background-color: #fff; font-family: var(--wp--preset--font-family--body); font-size: 16px; line-height: 1.4; color: #13233F; box-shadow: none; transition: border-color .15s, box-shadow .15s; }
.fluentform textarea.ff-el-form-control { min-height: 160px; resize: vertical; }
.fluentform select.ff-el-form-control { padding-right: 40px; -webkit-appearance: none; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2313233F' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; }
.fluentform .ff-el-form-control::placeholder { color: #6B7785; opacity: 1; }
.fluentform .ff-el-form-control:hover { border-color: #8FA6C4; }
.fluentform .ff-el-form-control:focus { outline: none; border-color: #14477D; box-shadow: 0 0 0 3px rgba(20,71,125,.25); }

/* errori: bordo e testo rosso, messaggio leggibile sotto il campo (contrasto AA) */
.fluentform .ff-el-is-error .ff-el-form-control { border-color: #B3261E; }
.fluentform .ff-el-is-error .ff-el-form-control:focus { box-shadow: 0 0 0 3px rgba(179,38,30,.2); }
.fluentform .error.text-danger, .fluentform .ff-el-is-error .text-danger { display: block; margin-top: 6px; font-size: 14px; line-height: 1.4; color: #B3261E; }
.fluentform .ff-errors-in-stack { margin-top: 12px; }

/* testo informativo privacy sotto il pulsante */
.fluentform .df-form-note, .fluentform .ff-custom_html p { margin: 12px 0 0; font-size: 14px; line-height: 1.5; color: #5A6572; }
.fluentform .ff-custom_html a, .fluentform .df-form-note a { color: #14477D; text-decoration: underline; }

/* pulsante = df-btn--primary */
.fluentform .ff-btn-submit, .fluentform .ff_submit_btn_wrapper .ff-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px !important; border: 0 !important; border-radius: 10px !important; background: #14477D !important; color: #fff !important; font-family: var(--wp--preset--font-family--heading) !important; font-weight: 700 !important; font-size: 15px !important; line-height: 1 !important; cursor: pointer; box-shadow: none !important; transition: background .15s; }
.fluentform .ff-btn-submit:hover { background: #0E3561 !important; opacity: 1 !important; }
.fluentform .ff-btn-submit:focus-visible { outline: 2px solid #14477D; outline-offset: 3px; }
.fluentform .ff-btn-submit.disabled, .fluentform .ff-working .ff-btn-submit { opacity: .6; }

/* conferma inline dopo l'invio */
.ff-message-success { margin: 0; padding: 24px; border: 0 !important; border-radius: 16px; background: #EEF4FA !important; box-shadow: none !important; font-family: var(--wp--preset--font-family--body); font-size: 17px; line-height: 1.5; color: #13233F; }

/* honeypot invisibile */
.fluentform .ff-el-group.ff_force_hide, .fluentform .ff_force_hide { display: none !important; }

@media (max-width: 767px) {
	.fluentform .ff-btn-submit { width: 100%; }
}
