.form-group {
    &--tooltip {
        position: relative;

        .form-control {
            padding-right: 45px;
        }
    }

    &__tooltip {
        bottom: auto;
        position: absolute;
        right: 5px;
        top: 12px;
        transition: opacity .5s ease;
        z-index: 1;

        &.hovered {
            z-index: 2;
        }
    }

    &__tooltip-icon {
        color: $color-blue5;
        font-size: 25px;
        line-height: 1;
        padding: 5px;
        z-index: 1;

        &:hover {
            cursor: pointer;

            & + .form-group__tooltip-message {
                opacity: 1;
                top: 36px;
            }
        }
    }

    &__tooltip-message {
        background-color: $color-white;
        border: 1px solid $color-charcoal1;
        box-shadow: 0 4px 8px rgba($color-black, .1);
        font-size: 12px;
        line-height: 16px;
        opacity: 0;
        padding: 10px;
        position: absolute;
        right: 1px;
        text-align: left;
        top: 20px;
        transition: opacity 250ms ease, top 250ms ease;
        width: 230px;
        z-index: -1;

        &:hover {
            cursor: default;
        }

        &::before,
        &::after {
            content: '';
            display: block;
            height: 0;
            position: absolute;
            width: 0;
        }

        &::before {
            border-bottom: 7px solid $color-charcoal1;
            border-left: 8px solid transparent;
            border-right: 8px solid transparent;
            right: 7px;
            top: -7px;
            z-index: 3;
        }

        &::after {
            border-bottom: 6px solid $color-white;
            border-left: 7px solid transparent;
            border-right: 7px solid transparent;
            right: 8px;
            top: -6px;
            z-index: 4;
        }
    }
}