// Form Group Start 
.form-group {
    position: relative;
    margin-top: 5px;
    &.ai-float-input {
        .ai-float-label {
            @include aiFloatLabel;
            @media only screen and (max-width: $sm_767) {
                font-size: 12px;
                left: 8px;
                padding: 4px 4px;
            }
            span {
                color: $textSecondary;
            }
        }
        .form-control,.form-select {
            padding-left: 20px;
        }
    }
    &.ai-input-icon {
        position: relative;
        .ai-input-group {
            position: relative;
            .ai-field-icon {
                position: absolute;
                right: 0;
                top: 0;
                height: 48px;
                width: 48px;
                @include aiDflexAlignItemsJustifyContentCenter;
                &.ai-active {
                    &:after {
                        content: "";
                        width: 28px;
                        position: absolute;
                        background: $textGray;
                        height: 1px;
                        transform: rotate3d(1, 1, 1, 55deg);
                    }
                }
            }
        }
    }
    &.ai-float-radio {
        border: solid 1px $borderColor;
        border-radius: 5px;
        height: 58px;
        padding: 4px 16px; 
        @include aiDflex;
        gap: 20px;
        .form-check {
            padding-top: 12px;
            margin: 0;
            display: inline-block;
            .form-check-input {
                border-radius: 50%;
                &:checked {
                    background-color: $bgBlue;
                    border-color: $bgBlue;
                    background-size: 25px;
                    + {
                        .form-check-label {
                            color: $textBlue;
                        }
                    }
                }
            }
        }
        .ai-float-label {
            @include aiFloatLabel;
            font-weight: $fontRegular;
            @media only screen and (max-width: $sm_767) {
                font-size: 12px;
                left: 8px;
                padding: 4px 4px;
            }
            span {
                color: $textSecondary;
            }
        }
        &.ai-radio-list {
            border: none;
            height: auto;
            padding: 0;
            @include aiDflexDirection;
            .form-check {
                padding-top: 0;
                .form-check-label {
                    font-weight: $fontRegular;
                }
                .form-check-input {
                    &:checked {
                        + {
                            .form-check-label {
                                color: $textBlue;
                            }
                        }
                    }
                }
            }
        }
    }
    .form-control,.form-select {
        border-color: $borderColor;
        border-radius: 5px;
        height: 44px;
        padding: 4px 16px; 
        font-size: $font14;
        color: $textBlue;
        font-weight: $fontRegular;
        &::placeholder {
            font-weight: $fontLight;
        }
        @media only screen and (max-width: $xs_575) {
            padding: 4px 12px; 
        }
        @media only screen and (min-width: $xl_1660) {
            height: 48px;
        }
    }
    .form-select {
        min-width: 150px;
        background-image: url('../images/icons/ai-down-arrow.svg');
        padding-right: 35px;
        background-size: 15px;
        @media only screen and (max-width: $xs_575) {
            background-size: 12px; 
            padding-right: 32px;
        }
    }
    .form-control {
        &.ai-datepicker {
            padding-right: 40px;
            background: url('../images/icons/ai-calendar-black.svg') no-repeat calc(100% - 15px) center / 19px;
        }
        &[type="password"] {
            -webkit-text-security: disc;
            font-size: 24px;
        }
    }
    &.ai-input-icon {
        .form-control,.form-select { 
            padding-right: 50px;
        }
        .ai-icon {
            position: absolute;
            width: 35px;
            height: 35px;
            border-radius: 8px;
            background: $bgLightBlue;
            top: 5px;
            right: 5px;
            @include aiDflexAlignItemsJustifyContentCenter;
            @media only screen and (min-width: $xl_1660) {
                width: 40px;
                height: 40px;
            }
        }
        .form-select {
            background-image: none;
            + {
                .ai-icon {
                    pointer-events: none;
                }
            }
        }
    }
    textarea {
        &.form-control {
            min-height: 90px;
            width: 100%;
            padding: 16px;
            line-height: normal;
            @media only screen and (min-width: $xl_1660) {
                min-height: 140px;
                padding: 20px;
            }
        }
    }
}
.ai-check-list {
    padding-top: 19px;
    .ai-radio,
    .ai-checkbox {
        @media only screen and (max-width: $xs_575) {
            margin-bottom: 10px;
        }
    }
}
.form-check {
    display: flex;
    &.ai-check-large {
        .form-check-input {
            width: 24px;
            height: 24px;
            border-radius: 5px;
            border-color: $bgGrey;
            margin-top: 0;
            &:checked[type=checkbox] {
                background: $bgWhite url('../images/icons/ai-check-black.svg') no-repeat center center / 14px auto;
            }
        }   
        .form-check-label {
            font-weight: $fontLight;
            padding-top: 2px;
            white-space: nowrap;
        } 
    }
    &.ai-check-black {
        .form-check-input {
            border-color: $bgGrey;
            margin-top: 0;
            &:checked[type=checkbox] {
                background: $bgWhite url('../images/icons/ai-check-black.svg') no-repeat center center / 10px auto;
            }
        }   
        .form-check-label {
            font-weight: $fontLight;
            padding-top: 2px;
            white-space: nowrap;
        } 
    }
    .form-check-input {
        width: 20px;
        height: 20px;
        border-color: $borderColor;
        border-radius: 5px;
        margin-right: 10px;
        &:focus {
            box-shadow: none;
        }
        &:checked[type=checkbox] {
            background: $bgLightBlueV5 url('../images/icons/ai-check-blue.svg') no-repeat center center / 12px auto;
        }
    }
    .form-check-label {
        flex: 1 0 0;
        padding-top: 3px;
        color: $textDark;
        small {
            width: 100%;
            font-size: $font12;
            color: $textGray;
            @include aiDflex;
        }
        p {
            .ai-redstar  {
                color: $textSecondary;
            }
        }
    }
}
// Form Group End

// Switch Toggle Start 
.ai-form-switch {
    @include aiDflex;
    align-items: center;
    margin: 0;
    padding: 0;
    gap: 8px;
    .ai-form-check-input {
        width: 36px;
        height: 18px;
        margin: 0;
        &:focus {
            box-shadow: none;
        }
        &:checked {
            box-shadow: none;
            background-color: $bgBlue;
            border-color: $bgBlue;
        }
    }
    .ai-form-check-label {
        line-height: normal;
    }
}
// Switch Toggle End 
