.gform_title {
    color: white !important;
    margin-top: 0 !important;
    text-transform: uppercase;
}

.gform_required_legend {
    display: none !important;
}

.gform-body {
    input, textarea {
        border: none !important;
        background-color: #BE0000 !important;
        box-shadow: none !important;
        color: white !important;
    }

    label {
        color: white !important;
        font-weight: 400 !important;

        .gform-field-label__text {
            padding: 0 !important;
        }
    }

    .gfield_required {
        color: white !important;
    }
}

.gform_fields {
    gap: 2rem !important;

    .details-fields {
        grid-column: span 6;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .message-field {
        grid-column: span 6 !important;
        display: flex;
        flex-direction: column;

        .ginput_container {
            flex: 1;

            textarea {
                height: 100%;
            }
        }
    }

    @media (max-width: 768px) {
        display: flex;
        flex-direction: column;
        gap: 1rem;

        .details-fields {
            grid-column: span 12;
        }

        .message-field {
            grid-column: span 12 !important;
        }
    }
}

.gform-footer {
    display: flex;
    flex-direction: column !important;
    align-items: flex-start !important;

    .recaptcha-notice {
        font-size: var(--wp--preset--font-size--small) !important;
        margin-top: 1rem;

        a {
            text-decoration: underline !important;
        }
    }

    button[type="submit"] {
        background-color: black !important;
        color: white !important;
        font-size: var(--wp--preset--font-size--tiny) !important;
        padding: 0.5rem 2rem !important;
        box-shadow: none !important;
        font-weight: 300 !important;
        border-radius: 0 !important;
    }
}

.gform_wrapper input:is(:-webkit-autofill, :autofill) {
    -webkit-text-fill-color: white !important;
    caret-color: white !important;
    box-shadow: inset 0 0 0 1000px #ad2a21 !important;
}
