/* Success Overlay Styles */
.success-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.success-overlay.show {
  opacity: 1;
}

.success-overlay.hidden {
  display: none !important;
}

.success-content {
  background: #ffffff;
  border: 1px solid hsl(214 32% 83%);
  padding: 3rem 2rem;
  border-radius: 0;
  text-align: center;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  transform: scale(0.8);
  transition: transform 0.3s ease-in-out;
}

.success-overlay.show .success-content {
  transform: scale(1);
}

.success-animation {
  margin-bottom: 2rem;
}

.checkmark {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  position: relative;
  border-radius: 50%;
  background-color: #4ade80;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: checkmark-pop 0.6s ease-in-out;
}

.checkmark::before {
  content: '✓';
  color: white;
  font-size: 40px;
  font-weight: bold;
  animation: checkmark-check 0.3s ease-in-out 0.3s both;
  transform: scale(0);
}

.checkmark-svg {
  display: none;
}

.checkmark-circle {
  display: none;
}

.checkmark-check {
  display: none;
}

@keyframes checkmark-pop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes checkmark-check {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}

.success-title {
  font-size: 2rem;
  font-weight: 700;
  color: hsl(222.2 84% 4.9%);
  margin-bottom: 1rem;
}

.success-message {
  font-size: 1.125rem;
  color: hsl(215 16% 47%);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.redirect-info {
  padding: 1rem;
  background-color: hsl(210 40% 96%);
  border: 1px solid hsl(214 32% 83%);
  border-radius: 0;
  font-size: 0.875rem;
  color: hsl(215 16% 47%);
}

#countdown {
  font-weight: 600;
  color: hsl(186 100% 40%);
}
