/* Animations */
@keyframes pulse-scroll {
    0% {
        box-shadow: 0 0 0 0 rgba(72, 91, 96, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(72, 91, 96, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(72, 91, 96, 0);
    }
}

@keyframes pulse-communication {
    0% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(6, 150, 52, 0.7);
    }
    50% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 10px rgba(6, 150, 52, 0);
    }
    100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(6, 150, 52, 0);
    }
}

/* Scroll to top button */
#scroll-to-top {
    transform: rotate(-90deg);
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    outline: 0;
    border: 2px solid #485B60;
    border-radius: 30px;
    background: #ffffff;
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulse-scroll 2s infinite;
    overflow: hidden;
}

#scroll-to-top svg {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

/* Communication buttons */
.communication-button {
    display: none;
    position: fixed;
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    outline: 0;
    border: 2px solid #ffffff;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0.85;
    width: 50px;
    height: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulse-communication 2.5s infinite;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.communication-button img {
    display: block;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.communication-button svg {
    width: 30px;
    height: 30px;
    stroke: #ffffff;
    transition: transform 0.3s ease;
}

#call-us {
    bottom: 20px;
    left: 20px;
}

#contact-us {
    bottom: 20px;
    right: 20px;
}

/* Hover & Focus states */
#scroll-to-top:focus,
#scroll-to-top:hover {
    opacity: 1;
    transform: rotate(-90deg) scale(1.1);
    animation: none;
    box-shadow: 0 6px 20px rgba(72, 91, 96, 0.3);
}

.communication-button:focus,
.communication-button:hover {
    opacity: 1;
    transform: scale(1.1);
    animation: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.communication-button:hover img,
.communication-button:hover svg {
    transform: scale(1.1);
}

/* Active state */
#scroll-to-top:active,
.communication-button:active {
    transform: scale(0.95);
}

#scroll-to-top:active {
    transform: rotate(-90deg) scale(0.95);
}

@media (hover: hover) {
    #scroll-to-top:hover,
    .communication-button:hover {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* Call us popup styles */
.call-us__popup {
    pointer-events: none;
}

.call-us__popup .action-close {
    cursor: pointer;
    background: #cecece;
    width: 40px;
    height: 40px;
    transition: background 0.3s ease;
}

.call-us__popup .action-close:active,
.call-us__popup .action-close:focus {
    background: #b0b0b0;
}

.call-us__popup .action-close:before {
    content: "\2715";
    font-size: 24px;
    vertical-align: middle;
}

.call-us__popup .modal-inner-wrap {
    max-width: 600px;
}

.call-us__popup .modal-header {
    padding: 20px 0;
}

.call-us__popup .modal-content {
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.call-us__popup .modal-content .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.call-us__popup .modal-content .logo img {
    width: 100%;
    max-width: 400px;
}

.call-us__popup .modal-content .text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    font-size: 18px;
    font-weight: 700;
}
