/**
 * Floating Contact Buttons - Styles
 */

/* Container */
.fcb-container {
    position: fixed;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* RTL Support */
.fcb-container.fcb-rtl {
    direction: rtl;
}

/* Button Base Styles */
.fcb-button {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    border: none;
    outline: none;
    animation: fadeInUp 0.5s ease;
}

/* Hover Effects */
.fcb-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.fcb-button:active {
    transform: scale(0.95);
}

/* WhatsApp Button */
.fcb-button.fcb-whatsapp {
    background-color: #25D366;
}

.fcb-button.fcb-whatsapp:hover {
    background-color: #20BA5A;
}

/* Call Button */
.fcb-button.fcb-call {
    background-color: #007bff;
}

.fcb-button.fcb-call:hover {
    background-color: #0056b3;
}

/* SVG Icons */
.fcb-button svg {
    pointer-events: none;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pulse Animation for Attention */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 10px rgba(37, 211, 102, 0.2);
    }
    100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
}

/* Optional: Add pulse animation to WhatsApp button */
.fcb-button.fcb-whatsapp {
    animation: fadeInUp 0.5s ease, pulse 2s infinite;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .fcb-container {
        gap: 10px;
    }
    
    .fcb-button {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
}

@media screen and (max-width: 480px) {
    /* Ensure buttons don't overlap with mobile UI elements */
    .fcb-container {
        gap: 8px;
    }
}

/* Accessibility */
.fcb-button:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Print Styles - Hide buttons when printing */
@media print {
    .fcb-container {
        display: none !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .fcb-button {
        border: 2px solid #fff;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .fcb-button {
        animation: none;
        transition: none;
    }
    
    .fcb-button:hover {
        transform: none;
    }
}

/* Modal Styles for CF7 Form */
.fcb-modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fcbFadeIn 0.3s ease;
}

.fcb-modal-content {
    background-color: #fefefe;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: fcbSlideIn 0.3s ease;
}

.fcb-modal-close {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.fcb-modal-close:hover,
.fcb-modal-close:focus {
    color: #000;
}

.fcb-modal-body {
    margin-top: 10px;
}

/* Modal animations */
@keyframes fcbFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fcbSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive modal */
@media screen and (max-width: 600px) {
    .fcb-modal-content {
        width: 95%;
        padding: 20px;
    }
}
