.animated-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: #00A1CC;
  border: 2px solid #00A1CC;
  border-radius: 9999px;
  background-color: transparent;
  overflow: hidden;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.animated-button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  padding: 2px;
  background: conic-gradient(#00A1CC 0deg, transparent 0deg);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

.animate-ring::before {
  animation: ringSpin 1.2s forwards ease-out;
}

@keyframes ringSpin {
  0% {
    background: conic-gradient(#00A1CC 0deg, transparent 0deg);
  }
  100% {
    background: conic-gradient(#00A1CC 360deg, transparent 360deg);
  }
}