@charset "UTF-8";

/* Floating contact buttons matching website theme */
:root {
  --contact-right: 1.5rem;
  --contact-bottom: 1.5rem;
  --zalo-bubble-size: 60px;  /* match Zalo embed bubble */
  --zalo-bubble-gap: 16px;   /* breathing room between buttons and bubble */
  --stack-center-offset: 58px; /* vertical center of the two-button stack */
}

.floating-contact {
  position: fixed;
  right: calc(var(--contact-right) + var(--zalo-bubble-size) + var(--zalo-bubble-gap));
  bottom: var(--contact-bottom);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  z-index: 1080;
  pointer-events: none; /* Allow clicking through the container area */
}

.floating-contact__btn {
  pointer-events: auto; /* Re-enable clicks on buttons */
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1.25rem;
  border-radius: 50px; /* Fully rounded pill */
  color: #fff !important;
  text-decoration: none;
  font-family: "Be Vietnam Pro", "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
}

/* Hover effects */
.floating-contact__btn:hover {
  transform: translateY(-3px);
  padding-right: 1.5rem; /* Subtle expansion */
}

.floating-contact__btn:active {
  transform: translateY(-1px) scale(0.98);
}

/* Shimmer effect overlay */
.floating-contact__btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  transition: none;
  pointer-events: none;
}

.floating-contact__btn:hover::after {
  animation: shimmer 0.7s ease-in-out;
}

@keyframes shimmer {
  100% {
    left: 150%;
  }
}

/* Theme-aligned gradients and colored shadows */
.floating-contact__btn--call {
  background: linear-gradient(135deg, #86e550 0%, #5eb928 100%);
}

.floating-contact__btn--call:hover {
  background: linear-gradient(135deg, #95eb62 0%, #68ca2f 100%) !important;
  box-shadow: 0 8px 20px -4px rgba(94, 185, 40, 0.5);
}

.floating-contact__btn--zalo {
  background: linear-gradient(135deg, #2cd6fa 0%, #02a3c6 100%);
}

.floating-contact__btn--zalo:hover {
  background: linear-gradient(135deg, #4de0fc 0%, #03b3d9 100%) !important;
  box-shadow: 0 8px 20px -4px rgba(2, 163, 198, 0.5);
}

.floating-contact__btn--messenger {
  background: linear-gradient(135deg, #00b2ff 0%, #006aff 100%); /* Meta Messenger blue */
}

.floating-contact__btn--messenger:hover {
  background: linear-gradient(135deg, #2cc7ff 0%, #0084ff 100%) !important;
  box-shadow: 0 8px 20px -4px rgba(0, 132, 255, 0.45);
}

.floating-contact__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  color: #fff;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.floating-contact__icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 2;
}

.floating-contact__btn span {
  white-space: nowrap;
  line-height: 1.4;
}

/* Align the Zalo bubble with the button stack */
.zalo-chat-widget {
  position: fixed !important;
  right: var(--contact-right) !important;
  bottom: calc(var(--contact-bottom) + var(--stack-center-offset) - (var(--zalo-bubble-size) / 2)) !important;
  z-index: 1079 !important;
  width: var(--zalo-bubble-size) !important;
  height: var(--zalo-bubble-size) !important;
}

@media (max-width: 576px) {
  :root {
    --contact-right: 1rem;
    --contact-bottom: 1rem;
    --zalo-bubble-size: 60px; /* match embed */
    --zalo-bubble-gap: 16px;
    --stack-center-offset: 49px;
  }

  .floating-contact {
    right: calc(var(--contact-right) + var(--zalo-bubble-size) + var(--zalo-bubble-gap));
    bottom: var(--contact-bottom);
    gap: 0.625rem;
  }

  .floating-contact__btn {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    border-radius: 50px;
  }
  
  .floating-contact__btn:hover {
    transform: translateY(-2px); /* Reduced movement on touch */
    padding-right: 1rem; /* Remove expansion on mobile to avoid layout shift */
  }

  .floating-contact__icon {
    width: 1.125rem;
    height: 1.125rem;
  }
}
