/*
*** Captcha
 */

.captcha {
    visibility: hidden;
    opacity: 0;
    transition: all .25s ease-in-out;
    position: absolute;
    width: 397px;
    transform: translate(-18px, -215px);
    z-index: 1000;
    background-color: #fff;
    padding: 5px;
    background-clip: padding-box;
    border: 1px solid rgb(208, 208, 208);
    border-radius: .2rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.captcha:after, .captcha:before {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 8px 0 8px;
    border-color: #fefefe transparent transparent transparent;
    top: 100%;
    left: 17px;
    content: '';
}

.captcha:before {
    top: calc(100% + 1px);
    border-color: rgb(208, 208, 208) transparent transparent transparent;
}

#captcha:checked ~ .captcha {
    visibility: visible;
    opacity: 1;
}

.captcha-bg {
   border: 3px solid #000;
   margin-bottom: -3px;
}

.captcha input[type="checkbox"][id^="cc"] {
    display: none;
}

.captcha label[id^="cl"] {
    /*border: 2px solid red;*/
    padding: 0;
    display: block;
    position: relative;
    cursor: pointer;
    background-color: transparent;
    width: 64px;
    height: 64px;
    user-select: none;
    margin: 0;
}

.captcha label[id^="cl"]::before {
    background-color: #0d6efd;
    color: white;
    content: " ";
    display: block;
    border-radius: 15%;
    position: absolute;
    top: 20px;
    left: 22px;
    width: 22px;
    height: 22px;
    text-align: center;
    line-height: 16px;
    transform: scale(0);
}

.captcha :checked + label[id^="cl"]::before {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
    background-color: #0d6efd;
    transform: scale(1);
}

.form-check-input[type="checkbox"] {
    border-radius: 0.2em;
    border-color: #86b7fe;
}

.form-check-input[id^="captcha"]:hover {
    border-color: #86b7fe;
}

.form-check-input[id^="captcha"]:focus {
    box-shadow: none;
}

.form-check-input[id^="captcha"]:checked {
    border-color: #0d6efd;
}

.form-check-input[id^="captcha"]:checked[type=checkbox] {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    vertical-align: text-bottom;
    border: .2em solid #009EF7;
    border-right-color: transparent;
    border-radius: 50%;
    -webkit-animation: .75s linear infinite spinner-border;
    animation: .75s linear infinite spinner-border;
    background-image: none;
    background-color: #fefefe;
}

.form-check-label {
    display: flex;
    justify-content: start;
    align-items: center;
    width: 100%!important;
    height: auto!important;
    background-color: transparent!important;
    color: #000!important;
}