/* Gravity Forms demo request form: layout glue on top of the static form rules (.field, .input, .pills, .btn). */
#demo .gform_wrapper{width:100%}
/* fx.css draws the card on #demo form, which in the static page was the card itself. */
.fx #demo .contact__card{box-shadow:0 0 0 1px rgba(255,255,255,.4),0 40px 80px -40px rgba(0,20,60,.6);border-radius:28px}
.fx #demo .contact__card form{box-shadow:none;border-radius:0}
/* Each choice sits in its own div: let it size to the pill. */
#demo .pills .gchoice{display:flex}
#demo .gform_fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 28px}
#demo .gfield.full{grid-column:1/-1;border:0;padding:0;margin:0;min-width:0}
#demo .gfield.full legend{margin-bottom:14px;padding:0}
/* Required fields: the "(Obbligatorio)" text stays for screen readers, sighted users get an asterisk (alt text "" keeps it silent). */
#demo .gfield_required{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
#demo .gfield_contains_required .gform-field-label__text::after{content:"*" / "";margin-left:.2em;color:#573894}
#demo .gform_footer{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-5,24px);margin-top:var(--sp-7,40px)}
#demo .gform_footer .small{color:var(--text-subtle)}
#demo .gform_button .btn__arrow svg{display:block}
/* Field errors: under the input (the form places them above, which pushed the input down and broke the row). */
#demo .gfield_validation_message,#demo .validation_message{order:3;margin-top:8px;color:var(--danger);font-size:.8125rem;line-height:1.4}
/* Focus on underlined fields: the line itself thickens and turns purple; fx.css would add a rounded outline and a cyan ring. */
body.fx :is(.input,.textarea):is(:focus,:focus-visible){outline:none;border-radius:0;border-bottom-color:#573894;box-shadow:0 1px 0 #573894}
#demo .gfield_error .input,#demo .gfield_error .input:hover,body.fx #demo .gfield_error .input:focus{border-bottom-color:var(--danger);box-shadow:0 1px 0 var(--danger)}
#demo .gfield_error .gform-field-label__text{color:var(--danger)}
/* Error summary: one calm block that names the problem and links to each field; the inline messages carry the detail. */
#demo .gform_validation_errors{margin-bottom:32px;padding:18px 22px;border-radius:16px;background:rgba(216,31,24,.06);color:#002d72;font-size:.875rem;line-height:1.5}
#demo .gform_validation_errors:focus{outline:none}
#demo .gform_validation_errors h2{margin:0;font:500 .9375rem/1.4 var(--font-body);letter-spacing:-.01em;color:var(--danger)}
#demo .gform_validation_errors .gform-icon{display:none}
#demo .gform_validation_errors ol{margin:8px 0 0;padding:0;list-style:none;display:grid;gap:4px}
#demo .gform_validation_errors a{color:#002d72;text-decoration:underline;text-decoration-color:rgba(0,45,114,.3);text-underline-offset:3px}
#demo .gform_validation_errors a:hover{text-decoration-color:currentColor}
/* Sending: the arrow of the button turns into a spinner; Gravity Forms' own loader would sit next to the button and shift it. */
#demo .gform-loader,#demo .gform_ajax_spinner{display:none}
#demo .gform_button[aria-busy="true"]{cursor:progress}
#demo .gform_button[aria-busy="true"] .btn__arrow svg{opacity:0}
#demo .gform_button[aria-busy="true"] .btn__arrow{position:relative}
#demo .gform_button[aria-busy="true"] .btn__arrow::after{content:"";position:absolute;inset:0;margin:auto;width:16px;height:16px;border-radius:50%;border:2px solid currentColor;border-right-color:transparent;animation:gf-spin .7s linear infinite}
@keyframes gf-spin{to{transform:rotate(1turn)}}
@media (prefers-reduced-motion:reduce){#demo .gform_button[aria-busy="true"] .btn__arrow::after{animation-duration:2.4s}}
#demo .gform_hidden,#demo .gform_validation_container{display:none!important}
@media (max-width:900px){#demo .gform_fields{grid-template-columns:minmax(0,1fr)}#demo .gform_footer{flex-direction:column-reverse;align-items:stretch}}
