.gform_wrapper input:not([type="file"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]),
.gform_wrapper textarea{
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius-4) !important;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.2;
    color: #111827;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.gform_wrapper input:not([type="file"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]){
    min-height: 50px;
}
/* Textarea */
.gform_wrapper textarea{
    min-height: 120px;
    resize: vertical;
}
/* Placeholder */
.gform_wrapper input::placeholder,
.gform_wrapper textarea::placeholder{
    color: #4a5565;
}
/* Hover */
.gform_wrapper input:not([type="file"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]):hover,
.gform_wrapper textarea:hover{
    border-color: #d1d5db;
}
/* Focus */
.gform_wrapper input:not([type="file"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]):focus,
.gform_wrapper textarea:focus{
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.18), 0 1px 2px rgba(0,0,0,0.06);
}
/* Disabled */
.gform_wrapper input:disabled,
.gform_wrapper textarea:disabled{
    background-color: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
}
.gform_wrapper select{
    -webkit-appearance: none;
    appearance: none;
    width: 100% !important;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius-4) !important;
    padding: 12px 44px 12px 14px;
    font-size: 14px !important;
    line-height: 1.2;
    color: #111827;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    height: 50px;
}
/* Hover */
.gform_wrapper select:hover{
    border-color: #d1d5db;
}
/* Focus */
.gform_wrapper select:focus{
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.18), 0 1px 2px rgba(0,0,0,0.06);
}

/* Se Gravity Forms applica una height/line-height diversa, manteniamo coerente */
.gform_wrapper .gfield select,
.gform_wrapper .ginput_container_select select{
    min-height: 44px;
}
/* Gravity Forms: checkbox + radio stile come screenshot */
/* Spaziatura e allineamento riga */
.gform_wrapper .gfield_checkbox .gchoice,
.gform_wrapper .gfield_radio .gchoice{
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
}
.gform_wrapper .gfield_checkbox .gchoice + .gchoice,
.gform_wrapper .gfield_radio .gchoice + .gchoice{
    margin-top: 10px;
}
/* Reset input nativi */
.gform_wrapper .gfield_checkbox input[type="checkbox"],
.gform_wrapper .gfield_radio input[type="radio"]{
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    cursor: pointer;
    position: relative;
    top: 2px;
}
/* Checkbox */
.gform_wrapper .gfield_checkbox input[type="checkbox"]{
    border-radius: var(--border-radius-4) !important;
}
/* Radio */
.gform_wrapper .gfield_radio input[type="radio"]{
    border-radius: 999px;
}
/* Check (checkbox) */
.gform_wrapper .gfield_checkbox input[type="checkbox"]:checked{
    background: #2563eb;
    border-color: #2563eb;
}
.gform_wrapper .gfield_checkbox input[type="checkbox"]:checked::after{
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
/* Dot (radio) */
.gform_wrapper .gfield_radio input[type="radio"]:checked{
    border-color: #2563eb;
}
.gform_wrapper .gfield_radio input[type="radio"]:checked::after{
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    background: #2563eb;
    border-radius: 999px;
    transform: translate(-50%, -50%);
}
/* Hover */
.gform_wrapper .gfield_checkbox input[type="checkbox"]:hover,
.gform_wrapper .gfield_radio input[type="radio"]:hover{
    border-color: #94a3b8;
}
/* Focus accessibile */
.gform_wrapper .gfield_checkbox input[type="checkbox"]:focus-visible,
.gform_wrapper .gfield_radio input[type="radio"]:focus-visible{
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
    border-color: #2563eb;
}
/* Testo */
.gform_wrapper .gfield_checkbox label,
.gform_wrapper .gfield_radio label{
    font-size: 14px;
    line-height: 1.35;
    color: #111827;
    cursor: pointer;
}
/* Link nel testo (terms and conditions) */
.gform_wrapper .gfield_checkbox label a,
.gform_wrapper .gfield_radio label a{
    color: #2563eb;
    text-decoration: underline;
}
.gform_button{
    background: var(--btn-primary) !important;
    border-radius: var(--border-radius-50);
    line-height: 1.2rem;
    font-weight: 600 !important;
    color: #ffffff !important;
    padding: 20px !important;
    width: 100%;
}
.gform_button:hover{
    background: var(--btn-primary-hover);
}