/* ============================================
   FLOATING BADGE MODULE
   CMC Portfolio · 2026
   Shared by: index.html, appointment.html
============================================ */

.floating-badge {
  position: fixed;
  bottom: 32px;
  right: 28px;
  left: auto;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.fb-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px 11px 14px;
  border-radius: 50px;
  border: 1px solid rgba(255, 208, 0, 0.22);
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

.fb-btn:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: rgba(255, 208, 0, 0.55);
  box-shadow: 0 8px 32px rgba(255, 106, 0, 0.28);
  color: #ffd000;
}

.fb-btn-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.fb-btn:hover .fb-btn-icon {
  transform: scale(1.15) rotate(-5deg);
}

/* Appointment button accent */
.fb-btn.fb-appt .fb-btn-icon {
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.25), rgba(255, 208, 0, 0.15));
  border: 1px solid rgba(255, 208, 0, 0.2);
}

/* Message / Lets talk button accent */
.fb-btn.fb-msg .fb-btn-icon {
  background: linear-gradient(135deg, rgba(0, 180, 255, 0.18), rgba(0, 120, 255, 0.1));
  border: 1px solid rgba(100, 200, 255, 0.2);
}

.fb-btn.fb-msg {
  border-color: rgba(100, 200, 255, 0.2);
}

.fb-btn.fb-msg:hover {
  border-color: rgba(100, 200, 255, 0.5);
  box-shadow: 0 8px 32px rgba(0, 120, 255, 0.2);
  color: #64c8ff;
}

/* Pulse ring on message button */
.fb-btn {
  position: relative;
  overflow: visible;
}

.fb-btn.fb-msg::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50px;
  border: 1px solid rgba(100, 200, 255, 0.3);
  animation: fbPulse 2.4s ease-out infinite;
  pointer-events: none;
}

/* Appointment page: float above sticky footer (46px tall) */
body.page-appointment .floating-badge {
  bottom: 62px;
}

@keyframes fbPulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  70%  { transform: scale(1.12); opacity: 0; }
  100% { transform: scale(1.12); opacity: 0; }
}

/* Responsive */
@media (max-width: 600px) {
  .floating-badge {
    bottom: 20px;
    right: 16px;
    left: auto;
    gap: 8px;
  }
  body.page-appointment .floating-badge {
    bottom: 62px;
  }
  .fb-btn {
    padding: 9px 14px 9px 11px;
    font-size: 11px;
  }
  .fb-btn-icon {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }
}