/* ====================================
   FLOATING CALL US BUTTON STYLES
   ==================================== */

/* Button Container */
#floating-call-btn {
    position: fixed;
   bottom: 270px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #1e90ff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    box-shadow: 0 2px 8px rgba(30, 144, 255, 0.3);
    transition: all 0.2s ease;
    z-index: 998;
    text-decoration: none;
    outline: none;
}

/* Hover State */
#floating-call-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(30, 144, 255, 0.4);
}

/* Focus State (Accessibility) */
#floating-call-btn:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Active State */
#floating-call-btn:active {
    transform: scale(0.98);
}

/* Tooltip on Hover */
#floating-call-btn::before {
    content: "Call Us";
    position: absolute;
    left: 75px;
    bottom: 15px;
    background-color: rgba(30, 144, 255, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    font-family: "Poppins", sans-serif;
    letter-spacing: 0.5px;
}

#floating-call-btn:hover::before {
    opacity: 1;
}

/* Tooltip arrow */
#floating-call-btn::after {
    content: "";
    position: absolute;
    left: 72px;
    bottom: 22px;
    width: 0;
    height: 0;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(30, 144, 255, 0.9);
    border-bottom: 6px solid transparent;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#floating-call-btn:hover::after {
    opacity: 1;
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */

/* Tablet Breakpoint (768px and below) */
@media (max-width: 768px) {
    #floating-call-btn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        left: 20px;
        font-size: 22px;
        box-shadow: 0 2px 8px rgba(30, 144, 255, 0.3);
    }

    #floating-call-btn:hover {
        transform: scale(1.06);
        box-shadow: 0 3px 10px rgba(30, 144, 255, 0.4);
    }

    #floating-call-btn::before {
        left: 65px;
        bottom: 10px;
        font-size: 11px;
        padding: 6px 10px;
    }

    #floating-call-btn::after {
        left: 62px;
        bottom: 16px;
        border-right: 5px solid transparent;
        border-top: 5px solid rgba(30, 144, 255, 0.9);
        border-bottom: 5px solid transparent;
    }
}

/* Mobile Breakpoint (480px and below) */
@media (max-width: 480px) {
    #floating-call-btn {
        width: 50px;
        height: 50px;
        bottom: 15px;
        left: 15px;
        font-size: 20px;
        box-shadow: 0 2px 8px rgba(30, 144, 255, 0.3);
    }

    #floating-call-btn:hover {
        transform: scale(1.06);
        box-shadow: 0 3px 10px rgba(30, 144, 255, 0.4);
    }

    #floating-call-btn::before {
        left: 60px;
        bottom: 12px;
        font-size: 10px;
        padding: 6px 8px;
    }

    #floating-call-btn::after {
        left: 57px;
        bottom: 18px;
        border-right: 4px solid transparent;
        border-top: 4px solid rgba(30, 144, 255, 0.9);
        border-bottom: 4px solid transparent;
    }
}

/* Accessibility: Reduce animations for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    #floating-call-btn {
        animation: none;
    }

    #floating-call-btn:hover {
        transform: scale(1.1);
    }

    #floating-call-btn:hover::before,
    #floating-call-btn:hover::after {
        transition: none;
    }
}

/* Dark mode consideration (if applicable) */
@media (prefers-color-scheme: dark) {
    #floating-call-btn {
        background: linear-gradient(135deg, #1e90ff, #00ced1);
        box-shadow: 0 4px 15px rgba(30, 144, 255, 0.5);
    }

    #floating-call-btn::before {
        background-color: rgba(30, 144, 255, 0.95);
    }

    #floating-call-btn::after {
        border-top-color: rgba(30, 144, 255, 0.95);
    }
}