@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');

/* Container fixed */
#contact-plugin {
    position: fixed;
    left: 25px;
    bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 99999;
}

.demo-h1 {
    font-family: "Roboto", sans-serif;
    text-transform: none;
    letter-spacing: 0;
    font-size: 48px;
    line-height: 58px;
    font-weight: 700;
    color: #7a7a7a;
}
.demo-p{
    font-family: "Roboto", sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    line-height: 25px;
    font-weight: 700;
    color: #7a7a7a;
}

/* Contact Buttons */
.contact-btn,.contact-btn1 {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: transparent;
    display: flex;  
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: white;
    font-size: 22px;
    box-shadow: 0 16px 24px 0 rgb(73 104 126 / 16%);
}
.phones:hover {
    transform: scale(1);
}
.phones {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}


@media screen and (min-width: 768px) {
    .contact-btn,.contact-btn1 {
        width: 55px;
        height: 55px;
    }
}

.contact-btn:hover,.contact-btn1:hover {
    transform: scale(1);
}

/* Close button */
#contact-close {
    background: rgb(255,96,96);
    border-radius: 4px;
}

#contact-open {
    position: fixed;
    left: 25px;
    bottom: 25px;
    width: 54px;
    height: 54px;
    border-radius: 4px;
    background: transparent;
    color: white;
    font-size: 22px;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 99999;
}

.contact-open-label {
    background-color: #ffffff;
    font-family: "Roboto", sans-serif;
    color: #333333;
    font-weight: 500;
    top: 50%;
    left: calc(100% + 10px);
    transform: translate(.5em, -50%);
    z-index: 1000;
    box-shadow: 0 1.93465px 7.73859px rgb(0 0 0 / 15%);
    font-size: 17px;
    line-height: 21px;
    position: absolute;
    overflow: visible;
    white-space: pre;
    padding: 5px 15px;
    text-align: center;
    min-width: 1em;
    max-width: 21em;
    text-overflow: ellipsis;
    border-radius: 10px;
    text-transform: none;
    user-select: none;
    pointer-events: none;
    opacity: 0;
}
/* Mobile responsive */
@media (max-width: 767px) {
    .contact-btn, .contact-btn1 {
        width: 54px;
        height: 54px;
        font-size: 20px;
    }

    .contact-open-label {
        left: calc(100% + 5px);
    }
    .demo-h1 {
        font-size: 36px;
        line-height: 43.5px;
    }
}

.contact-open-label::before {
    left: calc(0em - 10px);
    right: auto;
    top: 50%;
    border-left: none;
    content: "";
    transform: translateY(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent #ffffff transparent transparent;
    z-index: 1001;
    text-transform: none;
    font-size: .9em;
    line-height: 1;
    user-select: none;
    position: absolute;
}

/* Container is visible by default */
#contact-plugin {
    animation: slideUp 0.4s ease forwards;
    width: fit-content;
}

/* Add the class slide-down when closing */
#contact-plugin.close-anim {
    animation: slideDown 0.4s ease forwards;
}

/* Animation sliding down */
@keyframes slideDown {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(40px);
    }
}
/* Close button rotates when disappearing */
@keyframes rotateOut {
    0% {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
    100% {
        opacity: 0;
        transform: rotate(180deg) scale(0.6);
    }
}

/* Close button rotates when appearing*/
@keyframes rotateIn {
    0% {
        opacity: 0;
        transform: rotate(-180deg) scale(0.6);
    }
    100% {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

/* Close class */
#contact-close.close-anim {
    animation: rotateOut 0.35s ease forwards;
}

/* ope class */
#contact-close.open-anim {
    animation: rotateIn 0.35s ease forwards;
}

.close-rotate {
    transform: rotate(360deg) scale(0.2);
    opacity: 0;
}

.open-rotate {
    transform: rotate(-360deg) scale(1);
    opacity: 1;
}
@keyframes slideDownFast {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(40px); opacity: 0; }
}

.btn-call.slide-down {
    animation: slideDownFast 0.25s ease forwards;
}

.btn-wa.slide-down {
    animation: slideDownFast 0.35s ease forwards;
}

.btn-mail.slide-down {
    animation: slideDownFast 0.45s ease forwards;
}

.chaty-outer-forms {
    display: none;
}
.phones:hover .contact-open-label {
    opacity: 1;
}
.contact-open-label.contact-one {
    opacity: 1;
}
.btn-mail.slide-up {
    animation: slideUp 0.25s ease forwards;
}

.btn-wa.slide-up {
    animation: slideUp 0.35s ease forwards;
}

.btn-call.slide-up {
    animation: slideUp 0.45s ease forwards;
}
/* Animation open */
@keyframes openUpFast {
    0% { transform: translateY(50px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes openUpMid {
    0% { transform: translateY(60px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes openUpSlow {
    0% { transform: translateY(70px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Apply animation to each class */
.slide-up-fast {
    animation: openUpFast 0.3s ease forwards;
}

.slide-up-mid {
    animation: openUpMid 0.45s ease forwards;
}

.slide-up-slow {
    animation: openUpSlow 0.6s ease forwards;
}
#contact-plugin {
    display: none;
}
/* Rotate */
.rotate-cw-out {
    animation: rotateCWOut .45s ease forwards;
}
.rotate-cw-in {
    animation: rotateCWIn .45s ease forwards;
}

@keyframes rotateCWOut {
    0%   { opacity: 1; transform: rotate(0deg) scale(1); }
    100% { opacity: 0; transform: rotate(180deg) scale(0.5); }
}
@keyframes rotateCWIn {
    0%   { opacity: 0; transform: rotate(180deg) scale(0.5); }
    100% { opacity: 1; transform: rotate(360deg) scale(1); }
}
.rotate-ccw-out {
    animation: rotateCCWOut .45s ease forwards;
}
.rotate-ccw-in {
    animation: rotateCCWIn .45s ease forwards;
}

@keyframes rotateCCWOut {
    0%   { opacity: 1; transform: rotate(0deg) scale(1); }
    100% { opacity: 0; transform: rotate(-180deg) scale(0.5); }
}
@keyframes rotateCCWIn {
    0%   { opacity: 0; transform: rotate(-180deg) scale(0.5); }
    100% { opacity: 1; transform: rotate(-360deg) scale(1); }
}
