/**
 * Chimp Contact Us Floating Widget Styles
 */

/* Container */
#chimp-contact-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    animation: chimp-fadeIn 0.5s ease-out;
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: none; /* Hidden by default on desktop */
}

/* Show only on mobile devices */
@media (max-width: 768px) {
    #chimp-contact-container {
        display: block;
    }
}

/* Backdrop */
#chimp-contact-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1;
}

#chimp-contact-container.menu-open #chimp-contact-backdrop {
    opacity: 1;
    visibility: visible;
}

/* Main toggle button */
#chimp-contact-float-btn {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    outline: none;
    z-index: 3;
}

#chimp-contact-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

#chimp-contact-float-btn:active {
    transform: scale(0.95);
}

#chimp-contact-float-btn svg {
    width: 28px;
    height: 28px;
    position: absolute;
    transition: all 0.3s ease;
}

#chimp-contact-float-btn .icon-close {
    opacity: 0;
    transform: rotate(-90deg);
}

#chimp-contact-container.menu-open #chimp-contact-float-btn .icon-default {
    opacity: 0;
    transform: rotate(90deg);
}

#chimp-contact-container.menu-open #chimp-contact-float-btn .icon-close {
    opacity: 1;
    transform: rotate(0deg);
}

/* Pulse animation ring */
.chimp-contact-pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid #667eea;
    border-radius: 50%;
    animation: chimp-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    opacity: 0;
}

#chimp-contact-container.menu-open .chimp-contact-pulse-ring {
    animation: none;
    opacity: 0;
}

@keyframes chimp-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Menu container */
#chimp-contact-menu {
    position: absolute;
    bottom: 80px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

#chimp-contact-container.menu-open #chimp-contact-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Menu items */
.chimp-contact-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Menu button circles */
.chimp-contact-menu-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.chimp-contact-menu-btn.viber {
    background: #ffffff;
    color: #ffffff;
}

.chimp-contact-menu-btn.phone {
    background: #10b981;
    color: #ffffff;
}

.chimp-contact-menu-item:hover .chimp-contact-menu-btn {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.chimp-contact-menu-btn svg {
    width: 24px;
    height: 24px;
}

.chimp-contact-menu-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    overflow: hidden;
}

/* Menu labels */
.chimp-contact-menu-label {
    background: #ffffff;
    color: #1f2937;
    padding: 10px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.chimp-contact-menu-item:hover .chimp-contact-menu-label {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(-4px);
}

/* Responsive design */
@media (max-width: 768px) {
    #chimp-contact-container {
        bottom: 20px;
        right: 20px;
    }

    #chimp-contact-float-btn {
        width: 56px;
        height: 56px;
    }

    #chimp-contact-float-btn svg {
        width: 24px;
        height: 24px;
    }

    .chimp-contact-menu-btn {
        width: 60px;
        height: 60px;
    }

    .chimp-contact-menu-btn svg {
        width: 28px;
        height: 28px;
    }

    .chimp-contact-menu-label {
        font-size: 16px;
        padding: 12px 20px;
    }

    #chimp-contact-menu {
        bottom: 70px;
    }
}

/* Smooth fade in */
@keyframes chimp-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
