/* ========================================
   FLOATING SURVEY KEPUASAN MASYARAKAT BUTTON
   ======================================== */
.floating-survey-btn {
  position: fixed;
  bottom: 208px;
  right: 16px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
  z-index: 9997;
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
  animation: pulse-survey 2s infinite;
}

.floating-survey-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(239, 68, 68, 0.6);
  color: white;
}

.floating-survey-btn:active {
  transform: scale(0.95);
}

@keyframes pulse-survey {
  0% {
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
  }
  50% {
    box-shadow:
      0 4px 20px rgba(239, 68, 68, 0.7),
      0 0 0 15px rgba(239, 68, 68, 0.1);
  }
  100% {
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
  }
}

.survey-tooltip {
  position: absolute;
  right: 75px;
  top: 50%;
  transform: translateY(-50%);
  background: #333;
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
}

.survey-tooltip::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid #333;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.floating-survey-btn:hover .survey-tooltip {
  opacity: 1;
  visibility: visible;
  right: 80px;
}

/* ========================================
   FLOATING WIFI PUBLIK BUTTON
   ======================================== */
.floating-wifi-btn {
  position: fixed;
  bottom: 80px;
  right: 16px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4);
  z-index: 9997;
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
  animation: pulse-wifi 2s infinite;
}

.floating-wifi-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(14, 165, 233, 0.6);
  color: white;
}

.floating-wifi-btn:active {
  transform: scale(0.95);
}

@keyframes pulse-wifi {
  0% {
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4);
  }
  50% {
    box-shadow:
      0 4px 20px rgba(14, 165, 233, 0.7),
      0 0 0 15px rgba(14, 165, 233, 0.1);
  }
  100% {
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4);
  }
}

.wifi-tooltip {
  position: absolute;
  right: 75px;
  top: 50%;
  transform: translateY(-50%);
  background: #333;
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
}

.wifi-tooltip::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid #333;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.floating-wifi-btn:hover .wifi-tooltip {
  opacity: 1;
  visibility: visible;
  right: 80px;
}

/* ========================================
   FLOATING WHATSAPP CALL CENTER BUTTON
   ======================================== */
.floating-call-center {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 9998;
}

.call-center-button {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  animation: pulse-wa 2s infinite;
}

.call-center-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.call-center-button:active {
  transform: scale(0.95);
}

.emergency-icon {
  position: relative;
  width: 24px;
  height: 24px;
}

.phone-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  fill: white;
}

@keyframes ring-phone {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  10%,
  30% {
    transform: translate(-50%, -50%) rotate(-15deg);
  }
  20%,
  40% {
    transform: translate(-50%, -50%) rotate(15deg);
  }
}

.call-center-button:hover .phone-icon {
  animation: ring-phone 1s ease-in-out infinite;
}

@keyframes pulse-wa {
  0% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow:
      0 4px 20px rgba(37, 211, 102, 0.7),
      0 0 0 15px rgba(37, 211, 102, 0.1);
  }
  100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  }
}

.wa-tooltip {
  position: absolute;
  right: 75px;
  top: 50%;
  transform: translateY(-50%);
  background: #333;
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
}

.wa-tooltip::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid #333;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.floating-call-center:hover .wa-tooltip {
  opacity: 1;
  visibility: visible;
  right: 80px;
}

.online-indicator {
  position: absolute;
  top: 0px;
  right: 0px;
  width: 12px;
  height: 12px;
  background: #00ff00;
  border: 2px solid white;
  border-radius: 50%;
  animation: blink-indicator 1.5s infinite;
}

@keyframes blink-indicator {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .floating-survey-btn {
    bottom: 138px;
    right: 14px;
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .floating-wifi-btn {
    bottom: 74px;
    right: 14px;
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .floating-call-center {
    bottom: 14px;
    right: 14px;
  }

  .call-center-button {
    width: 44px;
    height: 44px;
  }

  .emergency-icon {
    width: 22px;
    height: 22px;
  }

  .phone-icon {
    width: 16px;
    height: 16px;
  }

  /* Sembunyikan semua tooltip di mobile */
  .wa-tooltip,
  .survey-tooltip,
  .wifi-tooltip {
    display: none;
  }
}

/* ========================================
   FLOATING RADIO BUTTON
   ======================================== */
.floating-radio-btn {
  position: fixed;
  bottom: 144px;
  right: 16px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
  z-index: 9997;
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
  animation: pulse-radio 2s infinite;
}

.floating-radio-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 99, 235, 0.6);
  color: white;
}

.floating-radio-btn:active {
  transform: scale(0.95);
}

@keyframes pulse-radio {
  0% {
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
  }
  50% {
    box-shadow:
      0 4px 20px rgba(37, 99, 235, 0.7),
      0 0 0 15px rgba(37, 99, 235, 0.1);
  }
  100% {
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
  }
}

.radio-tooltip {
  position: absolute;
  right: 75px;
  top: 50%;
  transform: translateY(-50%);
  background: #333;
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
}

.radio-tooltip::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid #333;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.floating-radio-btn:hover .radio-tooltip {
  opacity: 1;
  visibility: visible;
  right: 80px;
}

.floating-radio-btn.hide-fab {
  opacity: 0;
  visibility: hidden;
  transform: scale(0) translateY(20px);
  pointer-events: none;
}
.floating-radio-btn.hide-fab {
  opacity: 0;
  visibility: hidden;
  transform: scale(0) translateY(20px);
  pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
  .floating-radio-btn {
    bottom: 202px;
    right: 14px;
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .radio-tooltip {
    display: none;
  }
}
