@media all {
    .form-cms {
        display: grid;
        gap: 18px;
        margin-top: 36px;
    }

    .form-cms .input-wrap {
        position: relative;
        min-width: 0;
        border: 0;
    }

    .form-cms .text,
    .form-cms .textarea,
    .form-cms .select {
        display: block;
        width: 100%;
        min-height: 52px;
        padding: 15px 14px;
        border: 1px solid #bcbcc5;
        border-radius: 4px;
        color: var(--colore-testo);
        background: var(--colore-sfondo);
        font: inherit;
    }

    .form-cms .text::placeholder,
    .form-cms .textarea::placeholder {
        color: transparent;
    }

    .form-cms .textarea {
        min-height: 150px;
        resize: vertical;
    }

    .form-cms .text:focus,
    .form-cms .textarea:focus,
    .form-cms .select:focus {
        border-color: var(--colore-principale);
        outline: 2px solid rgba(37, 54, 74, .22);
        outline-offset: 1px;
    }

    .form-cms .floating-label {
        position: absolute;
        top: 15px;
        left: 9px;
        z-index: 1;
        max-width: calc(100% - 40px);
        padding: 0 6px;
        overflow: hidden;
        color: var(--colore-testo);
        background: var(--colore-sfondo);
        font-size: 16px;
        font-weight: 400;
        line-height: 22px;
        text-overflow: ellipsis;
        white-space: nowrap;
        pointer-events: none;
        transition: top 160ms ease, color 160ms ease, font-size 160ms ease;
    }

    .form-cms .text:focus + .floating-label,
    .form-cms .text:not(:placeholder-shown) + .floating-label,
    .form-cms .text:-webkit-autofill + .floating-label,
    .form-cms .text[type="date"] + .floating-label,
    .form-cms .textarea:focus + .floating-label,
    .form-cms .textarea:not(:placeholder-shown) + .floating-label,
    .form-cms .select:focus + .floating-label,
    .form-cms .select:has(option:checked:not([value=""])) + .floating-label,
    .form-cms .floating-label.errordefcss {
        top: -9px;
        max-width: calc(100% - 30px);
        color: var(--colore-principale);
        font-size: 12px;
        line-height: 18px;
    }

    .form-cms .floating-label.errordefcss,
    .form-cms [data-error-for].errordefcss {
        color: #a71d2a;
    }

    .form-cms .input-wrap-checkbox label,
    .form-cms fieldset label {
        display: flex;
        align-items: flex-start;
        gap: 9px;
        color: var(--colore-testo);
        font-size: 14px;
        font-weight: 400;
    }

    .form-cms fieldset legend {
        margin-bottom: 10px;
        color: var(--colore-testo);
        font-size: 14px;
        font-weight: 700;
    }

    .form-cms fieldset label + label { margin-top: 8px; }

    .form-cms input[type="checkbox"],
    .form-cms input[type="radio"] {
        flex: 0 0 auto;
        width: 18px;
        height: 18px;
        margin-top: 3px;
    }

    .form-cms .form-feedback {
        margin: 0;
        color: #a71d2a;
        font-size: 13px;
        line-height: 1.45;
    }

    .form-cms .form-feedback:empty { display: none; }

    .form-cms .input-wrap.has-error .text,
    .form-cms .input-wrap.has-error .textarea,
    .form-cms .input-wrap.has-error .select {
        border-color: #a71d2a;
    }

    .form-cms .form-honeypot {
        position: absolute;
        left: -10000px;
        width: 1px;
        height: 1px;
        overflow: hidden;
    }

    .form-cms.is-sending { opacity: .72; }

    .form-cms [type="submit"] {
        justify-self: start;
        padding: 12px 20px;
        border: 0;
        border-radius: 4px;
        color: var(--colore-sfondo);
        background: var(--colore-principale);
        cursor: pointer;
    }

    .form-cms [type="submit"]:hover {
        background: var(--colore-accento);
    }

    .form-cms [type="submit"]:disabled {
        cursor: wait;
        opacity: .7;
    }
}

