.tbxforms-form-group {
    @include tbxforms-clearfix();
    margin-bottom: $tbxforms-form-group-spacer;

    .tbxforms-form-group:last-of-type {
        margin-bottom: 0; // Remove margin from last item in nested groups
    }
}

.tbxforms-form-group--error {
    padding-left: $tbxforms-spacer;
    border-left: $tbxforms-border-width-form-group solid $tbxforms-error-colour;

    .tbxforms-form-group {
        // Reset error styles in nested form groups that might have error class
        padding: 0;
        border: 0;
    }
}
