/* Floating Contact Widget Styles */

#floating-contact-widget {
    position: fixed;
    right: 10px;
    bottom: 130px;
    z-index: 9999;
}

/* Slide Mode Behavior */
#floating-contact-widget.slide-mode {
    right: -88px;
    transition: right 0.5s ease, opacity 0.5s ease;
}

#floating-contact-widget.slide-mode.open {
    right: 0;
    opacity: 1;
}

/* Simple Mode (No Slide) */
#floating-contact-widget.simple-mode {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Contact Buttons */
.contact-btn {
    padding: 10px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.35);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-btn:hover {
    transform: translateY(-3px);
    filter: drop-shadow(0 0 3px rgba(235, 93, 16, 0.5));
    box-shadow: none;
    transition: all 0.4s ease;
}

.contact-btn img {
    width: 32px;
    height: 32px;
    transition: all 0.4s ease;
}

/* Contact Items (when slide mode is active) */
.contact-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 15px;
}

/* Toggle Button */
.contact-toggle {
    position: relative;
    left: -50px;
    top: 130px;
    width: 44px;
    height: 44px;
    border-radius: 5px 0 0 5px;
    background: #313438;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.4s;
}

/* Toggle Background Change on Open */
#floating-contact-widget.slide-mode.open .contact-toggle {
    background-color: #f36724;;
}

/* Toggle Hover Effect (Desktop only) */
@media (min-width: 1024px) {
    .contact-toggle:hover {
        background-color: #f36724;;
    }
}

/* Toggle Icons */
.contact-toggle .toggle-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 24px;
    transform: translate(-50%, -50%);
    transition: opacity 0.6s ease, visibility 0s linear;
}

/* Closed Icon */
.toggle-icon.closed-icon {
    opacity: 1;
    visibility: visible;
}

#floating-contact-widget.open .toggle-icon.closed-icon {
    opacity: 0;
    visibility: hidden;
}

/* Open Icon */
.toggle-icon.open-icon {
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%) scaleX(-1);
}

#floating-contact-widget.open .toggle-icon.open-icon {
    opacity: 1;
    visibility: visible;
}

/* Responsive: Mobile vs Desktop visibility */
.contact-btn.visible-mobile,
.contact-btn.visible-desktop {
    display: none;
}

@media (max-width: 767px) {
    .contact-btn.visible-mobile {
        display: flex;
    }

    #floating-contact-widget {
        bottom: 80px !important;
    }

    .contact-items {
        padding-right: 8px;
    }
}

@media (min-width: 768px) {
    .contact-btn.visible-desktop {
        display: flex;
    }

    .contact-btn img {
        height: 42px;
        width: 42px;
    }

    .contact-toggle {
        width: 54px;
        height: 54px;
        top: 112px !important;
    }

    .contact-toggle .toggle-icon {
        width: 30px;
        height: 30px;
    }

    .toggle-icon.closed-icon {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 420px) {
    .contact-btn {
        padding: 8px;
    }

    .contact-toggle {
        top: 123px;
        left: -60px;
    }
}
