.rotating-icon {
  display: inline-block;
  animation: rotate 2s linear infinite; /* Animation name, duration, timing function, iteration */
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.popup-content {
  background: white;
  padding: 20px;
  border-radius: 10px; /* Smooth border radius */
  width: 90%;
  max-width: 400px;
  text-align: center;
}
/* Flip effect for the success message */
.message {
  display: none;
  padding: 10px;
  background-color: #4CAF50;
  color: white;
  text-align: center;
  border-radius: 5px;
  font-size: 16px;
  margin-top: 20px;
}

.message.flip {
  animation: flipIn 1s forwards;
  display: block;
}

/* Flip animation */
@keyframes flipIn {
  0% {
    transform: rotateX(-180deg);
    opacity: 0;
  }
  50% {
    transform: rotateX(90deg);
    opacity: 0.5;
  }
  100% {
    transform: rotateX(0deg);
    opacity: 1;
  }
}

/* Optional: Hide the form after submission */
#popupForm {
  display: block;
}

#popupForm.hidden {
  display: none;
}
