/* Custom CSS */


/* Skip main content */

a.skip-main-link {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    word-wrap: normal;
    overflow: hidden;
}

a.skip-main-link:focus,
a.skip-main-link:active {
    display: block;
    width: auto;
    height: auto;
    top: 1.5rem;
    left: 2rem;
    padding: 0.8rem 1.5rem;
    border-radius: 0.2rem;
    clip: auto;
    clip-path: none;
    font-size: 1rem;
    font-weight: 700;
    line-height: normal;
    text-decoration: none;
    box-shadow: 0 0 2px 2px rgb(0 0 0 / 60%);
    background-color: #f7faff;
    color: #2655e3;
    z-index: 100000;
}

.has-adminbar a.skip-main-link:focus,
.has-adminbar a.skip-main-link:active {
    top: calc(1.5rem + 40px);
}


/* Navbar */

@media screen and (min-width: 501px) {
    .has-adminbar nav.navbar.sticky-top {
        top: 32px;
    }
}

@media screen and (min-width: 501px) and (max-width: 767px) {
    .has-adminbar nav.navbar.sticky-top {
        top: 38px;
    }
}


/* reCAPTCHA */

.recaptcha-error {
    display: none;
}


/* Contact Button */

.contact-button {
    position: fixed;
    right: 50px;
    bottom: 50px;
    z-index: 50;

    a {
        display: flex;
        width: 64px;
        height: 64px;
        text-align: center;
        text-decoration: none;
        border-radius: 100%;
        background: linear-gradient(to right, #24ca68, #00b49f);
        color: #fff !important;
        box-shadow: 0 5px 15px -5px rgba(0, 0, 0, 0.4);

        i {
            margin: auto;
            font-size: 36px;
        }

        i.fa-phone {
            font-size: 28px;
        }

        .fa {
            font-family: "Font Awesome 5 Free", "Font Awesome 5 Brands";
            font-weight: 600;
        }

        span {
            display: inline-block;
            position: absolute;
            width: 130px;
            line-height: normal;
            top: 14px;
            left: -150px;
            padding: 8px 14px;
            border: solid 1px #00b49f;
            border-radius: 20px;
            text-align: center;
            font-size: 14px;
            font-weight: 400;
            background-color: #fff;
            color: #666;
            white-space: nowrap;
            box-shadow: 0 5px 15px -10px rgba(0, 0, 0, 0.4);
            animation: contact-button 5s;
            animation-timing-function: ease;
            transition: ease-in-out 0.3s;
            z-index: 2;
            opacity: 0;
        }

        &:after {
            content: "";
            display: inline-block;
            position: absolute;
            line-height: normal;
            top: 23px;
            left: -25px;
            padding: 0;
            border-style: solid;
            border-width: 10px 0 10px 10px;
            border-color: transparent #00b49f;
            font-size: initial;
            animation: contact-button 5s;
            animation-timing-function: ease;
            transition: ease-in-out 0.3s;
            z-index: 1;
            opacity: 0;
        }
    }
}

.contact-button.disable-caption a span,
.contact-button.disable-caption a:after {
    opacity: 0;
    width: 0;
}
.contact-button.remove-caption a span,
.contact-button.remove-caption a:after {
    display: none;
}

@keyframes contact-button {
    0% {
        margin-left: -20px;
        opacity: 1;
    }
    5% {
        margin-left: -20px;
    }
    10% {
        margin-left: 0;
    }
    15% {
        margin-left: -15px;
    }
    15% {
        margin-left: 0;
    }
    15% {
        margin-left: -5px;
    }
    18% {
        margin-left: 0;
    }
    95% {
        margin-left: 0;
        opacity: 1;
    }
    100% {
        margin-left: -20px;
        opacity: 0;
    }
}

@media (max-width: 425px) {
    .contact-button {
        right: 30px;
        bottom: 32px;
    }
}
