.sticky-contact {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.contact-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.contact-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.contact-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* Main toggle button - ปรับแต่งพิเศษ */
.main-contact-btn {
  width: 70px;
  height: 70px;
  background: linear-gradient(203deg, rgba(92, 104, 211, 1) 0%, rgba(61, 74, 201, 1) 85%);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.main-contact-btn:hover {
  transform: scale(1.08); /* เอาการหมุนออก */
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

/* ปุ่ม contact อื่นๆ */
.phone-btn,
.facebook-btn,
.email-btn,
.line-btn {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.phone-btn:hover,
.facebook-btn:hover,
.email-btn:hover,
.line-btn:hover {
  background: white;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* Icon images - ใช้สีต้นฉบับ */
.contact-btn img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.main-contact-btn img {
  width: 32px;
  height: 32px;
  transition: transform 0.3s ease;
  filter: brightness(0) invert(1); /* ทำให้ไอคอนเป็นสีขาวเพื่อให้เห็นชัดบน gradient */
}

/* Tooltip */
.contact-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 65px;
  top: 50%;
  transform: translateY(-50%);

  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

.contact-btn:hover::after {
  opacity: 1;
  visibility: visible;
}

/* Responsive */
@media (max-width: 768px) {
  .sticky-contact {
    bottom: 15px;
    right: 15px;
  }

  .contact-btn {
    width: 45px;
    height: 45px;
  }

  .main-contact-btn {
    width: 55px;
    height: 55px;
  }

  .contact-btn img {
    width: 20px;
    height: 20px;
  }

  .main-contact-btn img {
    width: 24px;
    height: 24px;
  }
}
