/* Floating Contact Sidebar Styles */

.floating-contact-sidebar {
  position: fixed;
  right: 20px; /* Adjust as needed */
  bottom: 20px; /* Adjust as needed */
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: var(--secondary-color); /* Use secondary color */
  backdrop-filter: blur(5px);
  border-radius: 25px; /* Rounded edges */
  padding: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  width: 50px; /* Minimal width */
  overflow: hidden;
}

.floating-contact-sidebar.expanded {
  width: 180px; /* Expanded width */
  border-radius: 10px;
  padding: 15px;
}

.contact-button {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
  padding: 8px 10px;
  border-radius: 20px;
  transition: all 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
}

.contact-button i {
  font-size: 1.2rem;
  width: 24px; /* Fixed width for icons */
  text-align: center;
  flex-shrink: 0; /* Prevent icons from shrinking */
  margin-left: -5px; /* Move icons to the left */
}

.contact-button span {
  opacity: 0;
  width: 0;
  transition: opacity 0.1s ease, width 0.1s ease;
}

.floating-contact-sidebar.expanded .contact-button span {
  opacity: 1;
  width: auto;
  transition: opacity 0.3s ease 0.1s, width 0.3s ease 0.1s;
}

.floating-contact-sidebar .contact-button.whatsapp-btn {
  background-color: var(--primary-color) !important;
}
.contact-button.whatsapp-btn:hover {
  background-color: #2E6B60;
}

.contact-button.email-btn {
  background-color: var(--primary-color);
}
.contact-button.email-btn:hover {
    background-color: #2E6B60;
}

.contact-button.phone-btn {
    background-color: var(--primary-color);
}
.contact-button.phone-btn:hover {
    background-color: #2E6B60;
}

/* Hide text when not hovered */
.floating-contact-sidebar:not(.expanded) .contact-button span {
  width: 0;
  opacity: 0;
}

/* Ensure icons are always visible */
.floating-contact-sidebar .contact-button i {
  flex-shrink: 0;
}
