/* Floating Emergency Call Button */
.floating-emergency-call {
    position: fixed;
    top: 80px;
    right: 30px;
    z-index: 9999;
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(255, 68, 68, 0.4);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.floating-emergency-call .call-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.2;
}

.floating-emergency-call .call-label {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.95;
}

.floating-emergency-call .call-number {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.floating-emergency-call:hover {
    background: linear-gradient(135deg, #ff0000 0%, #990000 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 68, 68, 0.6);
    color: white;
    text-decoration: none;
}

.floating-emergency-call i {
    font-size: 20px;
    animation: ring 1.5s infinite;
}

/* Phone icon ring animation */
@keyframes ring {
    0%, 100% {
        transform: rotate(0deg);
    }
    10%, 30% {
        transform: rotate(-10deg);
    }
    20%, 40% {
        transform: rotate(10deg);
    }
}

/* Pulse animation */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 8px 20px rgba(255, 68, 68, 0.4);
    }
    50% {
        box-shadow: 0 8px 30px rgba(255, 68, 68, 0.7), 0 0 0 10px rgba(255, 68, 68, 0.1);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .floating-emergency-call {
        top: auto;
        bottom: 20px;
        right: 50%;
        transform: translateX(50%);
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .floating-emergency-call i {
        font-size: 18px;
    }
    
    .floating-emergency-call .call-label {
        font-size: 12px;
    }
    
    .floating-emergency-call .call-number {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .floating-emergency-call {
        top: auto;
        bottom: 15px;
        right: 50%;
        transform: translateX(50%);
        padding: 10px 18px;
        font-size: 13px;
        width: auto;
        max-width: 90%;
    }
    
    .floating-emergency-call .call-label {
        font-size: 11px;
    }
    
    .floating-emergency-call .call-number {
        font-size: 14px;
    }
    
    .floating-emergency-call i {
        font-size: 20px;
    }
}
