/* ── Floating Contact Widget (shared: course.hbs + courses.hbs) ───────────── */
.float-contact-widget {
  position: fixed;
  bottom: 28px;
  right: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  z-index: 9999;
}

.float-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  flex-shrink: 0;
}

.float-btn:hover {
  transform: scale(1.12);
}

.float-btn__label {
  position: absolute;
  right: calc(100% + 12px);
  background: rgba(20, 20, 20, 0.92);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 8px;
  pointer-events: none;
  opacity: 0;
  transform: translateX(6px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.float-btn:hover .float-btn__label,
.float-btn:focus .float-btn__label {
  opacity: 1;
  transform: translateX(0);
}

.float-btn--whatsapp {
  background: #25d366;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
}
.float-btn--whatsapp:hover {
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.65);
}
.float-btn--whatsapp::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.5);
  animation: float-pulse 2s ease-out infinite;
}

.float-btn--call {
  background: #1a1a1a;
  border: 2px solid #333;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.float-btn--call:hover {
  background: #222;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.7);
}
.float-btn--call::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  animation: float-pulse 2.4s ease-out infinite 0.6s;
}

@keyframes float-pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  70% {
    transform: scale(1.4);
    opacity: 0;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .float-contact-widget {
    bottom: 20px;
    right: 16px;
    gap: 12px;
  }
  .float-btn {
    width: 48px;
    height: 48px;
  }
  .float-btn__label {
    display: none;
  }
}
