.gform_wrapper {

    .gform_ajax_spinner {
        display: none;
    }

    ul {
        margin: 0 0 0 0;
        list-style: none;
    }

    textarea {
        margin-bottom: 1rem;
    }

    label {
        color: $primary-color;
    }

    .hidden_label, .gfield-hide-label {
        .gfield_label {
            display: none;
        }
        .gfield--name {
            label {
                display: none;
            }
        }
    }

    .gfield_checkbox {
        a {
            text-decoration: underline;
        }
        li {
            position: relative;
        }
        input[type="checkbox"] {
            position: absolute;
            margin: 0;
        }
        label {
            display: inline-block;
            padding-left: 34px;
            margin: 0;
        }
    }

    .gfield--name {
        .ginput_container {
            @include clearfix;
            & > * {
                margin-bottom: 0;
                @include breakpoint(large) {
                    float: left;
                    width: 50%;
                    &:first-child {
                        padding-right: 8px;
                    }
                    &:last-child {
                        padding-left: 8px;
                    }
                }
            }
        }
    }

    .show-label {
        label {
            display: inline-block;
        }
    }

    .gform_footer {
        margin-top: 1rem;

        input[type="submit"] {
            margin-bottom: 0;
        }
    }
}

/*
 * Validation
 */
.validation_error {
    margin: 16px auto !important;
    padding: 16px !important;
    border-radius: $global-radius;
    list-style-type: none;
    background-color: $light-gray;
    color: $dark-gray;
    background-repeat: no-repeat;
    background-position: 16px center;
    background-size: 20px;
    color: $white;
    background-color: $alert-color;
    display: block;
    a {
        margin-left: 16px;
    }
}

.gform_validation_error {
    .ginput_container_select + .validation_message {
        margin-top: 16px;
    }
}

.validation_message {
    position: relative;
    top: -8px;
    color: $alert-color;
}

.gfield_error {
    position: relative;
    select, [type='text'], [type='password'], [type='date'], [type='datetime'], [type='datetime-local'], [type='month'], [type='week'], [type='email'], [type='number'], [type='search'], [type='tel'], [type='time'], [type='url'], [type='color'], textarea {
        border-color: transparent;
        border-bottom-color: $alert-color;
    }
}

/*
 * Success
 */
.gform_confirmation_message {
    margin: 16px auto !important;
    padding: 16px !important;
    border-radius: $global-radius;
    list-style-type: none;
    background-color: $light-gray;
    color: $dark-gray;
    background-repeat: no-repeat;
    background-position: 16px center;
    background-size: 20px;
    color: $white;
    background-color: $success-color;
    display: block;
    a {
        margin-left: 16px;
    }
}
