/* ============================= */
/* Floating Call Button Styles */
/* ============================= */
.floating-call-btn {
    position: fixed;
    bottom: 80px;
    right: 25px;
    background-color: var(--forest-green-color);
    color: var(--white-color);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
}

/* Icon */
.floating-call-btn .call-icon {
    width: 28px;
    height: 28px;
    filter: invert(1);
    animation: ringPhone 1.5s infinite ease-in-out;
}

/* Text */
.floating-call-btn .call-text {
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

/* Minimized state */
.floating-call-btn.minimized {
    padding: 12px;
    border-radius: 50%;
    gap: 0;
    width: 50px;
    justify-content: center;
    transition: all 0.4s ease-in-out;
}

/* Hide number text when minimized */
.floating-call-btn.minimized .call-text {
    display: none;
}

/* Hover - show full number again */
.floating-call-btn.minimized:hover {
    padding: 12px 18px;
    border-radius: 50px;
    width: auto;
    gap: 10px;
}

.floating-call-btn.minimized:hover .call-text {
    display: inline;
    opacity: 1;
}

/* Phone ring animation */
@keyframes ringPhone {
    0% {
        transform: rotate(0);
    }

    10% {
        transform: rotate(15deg);
    }

    20% {
        transform: rotate(-10deg);
    }

    30% {
        transform: rotate(15deg);
    }

    40% {
        transform: rotate(-10deg);
    }

    50% {
        transform: rotate(10deg);
    }

    60% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(0);
    }
}

/* Optional subtle pulsing glow */
.floating-call-btn::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50px;
    background: rgba(33, 136, 56, 0.5);
    z-index: -1;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    70% {
        transform: scale(1.3);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* Responsive */
@media screen and (max-width: 600px) {
    .floating-call-btn {
        bottom: 100px;
        right: 15px;
        font-size: 14px;
    }

    .floating-call-btn .call-icon {
        width: 24px;
        height: 24px;
    }
}
