/* Bootstrap - Overrides */
.form-group {
    position: relative;

    margin-bottom: 30px;
}
.input-group .input-group-text {
    background: #eff3f4;
    border: none;
}
.form-control {
    border: none;

    font-weight: 500;
}
.form-control:focus {
    background: #dee7e9;
    border: none;
    box-shadow: none;

    color: #637287;

    outline: none;

    transition: 0.5s;
}
.form-control-file {
    display: none;
}

::placeholder {
    color: #778487;
}
.form-control:focus::placeholder {
    color: #637287;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    background-color: transparent !important;
    -webkit-box-shadow: 0 0 0 50px #eff3f4 inset;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

label {
    font-weight: 500;

    width: 100%;
}

/* Validation */
.form .required {
    font-size: 18px;
    font-weight: 700;
    color: #b33a45;

    position: absolute;
    right: 2px;
    top: 2px;
}
.form .is-invalid {
    background-image: none;
}
.form .errorMsg {
    position: absolute;

    color: #de3673;
    font-size: 14px;
    text-align: right;

    width: 100%;

    margin: 0;
}
.form .form-alert {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 3px;

    color: #721c24;

    padding: 8px 10px;
}

/* Form - Inputs */
.form-field {
    background: #eff3f4;
    border: none;
    border-radius: 4px;

    padding: 0 15px;

    height: 52px;

    transition: 0.5s;
}

/* Form - Select */
.form-select {
    background: #eff3f4;
    border: none;
    border-radius: 4px;

    padding: 0 15px;

    height: 52px;

    transition: 0.5s;

    cursor: pointer;
}

/* Form - Text */
.form-text {
    background: #eff3f4;
    border: none;
    border-radius: 4px;

    padding: 15px;

    height: 125px;

    transition: 0.5s;
}

/* Form - File */
.form-document {
    background: #eff3f4;
    border: none;
    border-radius: 4px;

    padding: 0 10px 0 4px;

    width: 100%;
    height: auto;
}
.btn-document {
    background: #eff3f4;
    border: none;

    font-weight: 600;
    font-size: 16px;
    color: #3C3C4F;

    padding: 14px 15px;
    margin: 0;

    width: auto;

	cursor: pointer;
    transition: 0.3s;
}

/* */
.form-file {
    position: relative;
}
.form-file .btn-select {
    background: #eff3f4;
    border-radius: 4px;

    font-size: 14px;
    font-weight: 500;

    width: 130px;
    height: 130px;

    position: relative;
    display: table-cell;
    vertical-align: middle;
    text-align: center;

    cursor: pointer;

    transition: 0.2s;
}
    .form-file .btn-select:hover {
        background: #dee7e9;

        color: #637287;
        text-decoration: underline;

        transition: 0.2s;
    }
    .form-file label {
        width: auto;
    }
    .form-file img {
        width: 130px;
        height: 130px;

        object-fit: cover;
    	overflow-clip-margin: unset;
    }
    .form-file .container-alert {
        position: absolute;
        top: 0;

        font-size: 14px;

        width: 100%;

        padding: 4px 0;
    }
    .form-file.img-overlay label {
        height: 136px;
    }
    .form-file.img-overlay::after {
        content: "Delete Image";

        color: #fff;
        font-weight: 500;
        font-size: 14px;

        background-color: rgba(30, 40, 53, 0.8);
        border-radius: 4px;

        position: absolute;
    	top: 0;
    	left: 0;

    	display: flex;
        align-items: center;
        justify-content: center;

    	width: 130px;
    	height: 130px;

        cursor: pointer;
    }
    .form-file.img-overlay:hover::after {
        text-decoration: underline;

        transition: 0.2s;
    }

/* Form - Search */
.form-search {
    background: #eff3f4;
    border: none;
    border-radius: 4px;

    padding: 0 40px 0 15px;
    margin: 0;

    width: 100%;
    height: 52px;
    transition: 0.2s;
}
    .form-search__btn {
        background: #de3673;
        border: none;
        border-radius: 4px;

        position: relative;
        margin-top: -43px;
        margin-right: 10px;
        z-index: 20;

        font-size: 16px;
        color: #fff;

        width: 35px;
        height: 35px;

        float: right;

        transition: 0.2s;
    }
        .form-search__btn:hover {
            background: #af1d52;
            color: #fff;

            transition: 0.2s;
        }
        .form-search__btn i {
            position: relative;
            top: 0;
        }

/* Small Forms */
.form_sm .form-field {
    height: 40px;

    font-size: 14px;

    padding: 0 10px;
}
.form_sm .form-select {
    height: 40px;

    font-size: 14px;
}

.form_sm .form-search {
    border-radius: 4px;

    height: 40px;

    font-size: 14px;

    padding: 0 55px 0 10px;
}
    .form_sm .form-search__btn {
        background: none;

        width: auto;
        height: auto;
        line-height: normal;

        top: 10px;
        right: 5px;

        color: #959595;
    }

/* Dropdown Forms */
.dropdown-menu .form-group {
    margin-bottom: 15px;
}
.dropdown-menu .form-select {
    background: #fff;
    border: none;
    border-radius: 4px;

    font-size: 14px;

    padding: 10px 15px;

    height: auto;

    transition: 0.5s;

    cursor: pointer;
}


/* Form - Checkbox */
.checkbox-wrapper {
    position: relative;
    top: 4px;

    display: block;
    padding-left: 30px;
    margin: 0 10px 14px 0;

    width: auto;
    height: auto;

    user-select: none;
    cursor: pointer;
}
    .checkbox-wrapper .label {
        position: relative;
        top: 3px;

        display: inline-block;
    }
    .checkbox-wrapper input {
        position: absolute;

        opacity: 0;

        cursor: pointer;

        height: 0;
        width: 0;
    }

.checkmark {
    background-color: #2e3b4c;
    border-radius: 4px;

    position: absolute;
    top: 5px;
    left: 0;

    height: 20px;
    width: 20px;

    transition: 0.1s;
}
    .checkbox-wrapper:hover input ~ .checkmark {
        background-color: #de3673;

        transition: 0.1s;
    }
    .checkbox-wrapper input:checked ~ .checkmark {
        background-color: #de3673;
    }
    .checkbox-wrapper input:checked ~ .checkmark:after {
        display: block;
    }
    .checkbox-wrapper .checkmark:after {
        content: "\f00c";

        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        font-size: 14px;
        color: #fff;

        position: absolute;
        display: none;

        left: 4px;
        top: 0px;
    }
