/* Contact Widget Styling for Taste of Hoi An */

/* --- Floating Contact Bar --- */
.contact-floating-bar {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.contact-btn-item {
  display: flex;
  align-items: center;
  text-decoration: none !important;
  position: relative;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.contact-btn-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  color: #ffffff;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0;
}

.contact-btn-icon svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.contact-btn-item:hover .contact-btn-icon {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

/* Specific Brand Colors */
.contact-btn-hotline .contact-btn-icon {
  background: linear-gradient(135deg, #ff416c, #ff4b2b);
  animation: pulse-red 2s infinite;
}

.contact-btn-zalo .contact-btn-icon {
  background: linear-gradient(135deg, #0088ff, #0055fe);
}

.contact-btn-whatsapp .contact-btn-icon {
  background: linear-gradient(135deg, #25d366, #128c7e);
}

.contact-btn-messenger .contact-btn-icon {
  background: linear-gradient(135deg, #00b2fe, #006aff);
}

/* Tooltip Labels */
.contact-btn-label {
  position: absolute;
  right: 60px;
  background: rgba(20, 20, 20, 0.9);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.contact-btn-item:hover .contact-btn-label {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Pulse Animation for Hotline */
@keyframes pulse-red {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 65, 108, 0.7);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(255, 65, 108, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 65, 108, 0);
  }
}

/* --- Sidebar Contact Section (Minimal, matched to nav menu style) --- */
.sidebar-contact-section {
  margin: 14px 0 0 0;
  padding: 0;
}

.sidebar-contact-heading {
  font-size: 11px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin: 0 0 8px 0;
  padding: 10px 0 6px 0;
  border-top: 1px solid #e8e8e8;
  display: block;
}

.sidebar-contact-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.sidebar-contact-list li {
  margin: 0 !important;
  padding: 0;
}

.sidebar-contact-link {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none !important;
  color: #6b6b6b;
  font-size: 12.5px;
  font-weight: 400;
  padding: 5px 0;
  transition: color 0.2s ease;
  line-height: 1.3;
}

.sidebar-contact-link:hover {
  color: #222;
  text-decoration: none !important;
}

.sidebar-contact-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0.85;
}

.sidebar-contact-dot svg {
  width: 11px;
  height: 11px;
  fill: #ffffff;
  display: block;
}

.sidebar-dot-phone   { background: #e53935; }
.sidebar-dot-zalo    { background: #0068ff; }
.sidebar-dot-wa      { background: #25d366; }
.sidebar-dot-msg     { background: #0084ff; }

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .contact-floating-bar {
    bottom: 15px;
    right: 15px;
    gap: 10px;
  }
  .contact-btn-icon {
    width: 44px;
    height: 44px;
  }
  .contact-btn-icon svg {
    width: 22px;
    height: 22px;
  }
  .contact-btn-label {
    display: none;
  }
}
