/* ----- CSS for the floating contact button and menu ----- */
.floating-contact-container {
  position: fixed;
  bottom: 15rem; /* <-- ค่าสำหรับจอคอม (ไม่ได้เปลี่ยนแปลง) */
  right: 2rem;
  z-index: 100;
}

.floating-main-btn {
  background: linear-gradient(180deg, #F9D038 0%, #F5AE23 100%);
  color: white;
  border-radius: 50%;
  width: 4rem;
  height: 4rem;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), inset 0 -4px 0 rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.floating-main-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15), inset 0 -4px 0 rgba(0, 0, 0, 0.1);
}

.floating-menu {
  position: absolute;
  bottom: 5rem;
  right: 0;
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
}

.floating-menu.active {
  display: flex;
}

.floating-main-btn i {
  color: white;
  font-size: 32px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.menu-text {
  background-color: #AEAEAE;
  color: #333;
  font-weight: bold;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
  transition: all 0.2s ease-in-out;
}

.menu-item:hover .menu-text {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.menu-btn {
  background-color: white;
  color: #F5AE23;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.menu-btn img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.menu-btn:hover {
  transform: scale(1.1);
}

/* ----- Responsive Floating Contact Button ----- */
@media (max-width: 768px) {
  .floating-contact-container {
    bottom: 8rem;  /* ✅ ขยับขึ้นเฉพาะในจอมือถือ */
    right: 1rem;
  }

  .floating-main-btn {
    width: 3.2rem;
    height: 3.2rem;
  }

  .floating-main-btn i {
    font-size: 24px;
  }

  .floating-menu {
    bottom: 4rem;
    gap: 0.75rem;
  }

  .menu-btn {
    width: 3rem;
    height: 3rem;
    border-radius: 10px;
  }

  .menu-btn img {
    width: 70%;
    height: 70%;
  }

  .menu-text {
    font-size: 13px;
    padding: 0.4rem 0.8rem;
  }
}