/* Celebration animations and styles */
@keyframes scaleUp {
  0% { transform: scale(0.7); opacity: 0; }
  70% { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes slideUp {
  0% { transform: translateY(30px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.celebration-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.celebration-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.celebration-container {
  background-color: white;
  border-radius: 16px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  transform: scale(0.7);
  opacity: 0;
}

.celebration-overlay.active .celebration-container {
  animation: scaleUp 0.6s ease forwards;
}

.celebration-icon {
  width: 80px;
  height: 80px;
  background-color: #ebf5ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.celebration-title {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 15px;
  opacity: 0;
}

.celebration-overlay.active .celebration-title {
  animation: fadeIn 0.6s ease 0.3s forwards;
}

.celebration-message {
  font-size: 16px;
  line-height: 1.6;
  color: #64748b;
  margin-bottom: 25px;
  opacity: 0;
}

.celebration-message strong {
  color: #1e293b;
  font-weight: 600;
}

.info-message {
  font-size: 15px;
  line-height: 1.6;
  color: #64748b;
  margin-bottom: 25px;
  opacity: 0;
}

.celebration-overlay.active .celebration-message {
  animation: fadeIn 0.6s ease 0.5s forwards;
}

.celebration-overlay.active .info-message {
  animation: fadeIn 0.6s ease 0.6s forwards;
}

.next-steps {
  background-color: #f8fafc;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 25px;
  text-align: left;
  opacity: 0;
}

.celebration-overlay.active .next-steps {
  animation: slideUp 0.6s ease 0.7s forwards;
}

.next-steps-title {
  font-size: 16px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.next-step-item {
  display: flex;
  margin-bottom: 12px;
  align-items: flex-start;
}

.step-number {
  background-color: #3b82f6;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  margin-right: 12px;
  flex-shrink: 0;
}

.step-content {
  font-size: 14px;
  color: #475569;
  line-height: 1.5;
}

.calendly-cta {
  display: inline-block;
  background-color: #1877f2;
  color: white;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  margin-top: 10px;
  text-decoration: none;
  transition: background-color 0.2s;
  position: relative;
  overflow: hidden;
  opacity: 0;
}

.celebration-overlay.active .calendly-cta {
  animation: slideUp 0.6s ease 0.9s forwards, pulse 2s ease 1.5s infinite;
}

.cta-shimmer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

.value-tag {
  display: inline-block;
  background: linear-gradient(to right, #ffd700, #ffab00);
  color: #7a4100;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 10px;
  box-shadow: 0 2px 8px rgba(255, 171, 0, 0.3);
  opacity: 0;
}

.celebration-overlay.active .value-tag {
  animation: fadeIn 0.6s ease 1.1s forwards, pulse 3s ease 2s infinite;
}

.close-celebration {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #f1f5f9;
  cursor: pointer;
  color: #64748b;
  border: none;
  font-size: 20px;
  opacity: 0.8;
  transition: all 0.2s;
}

.close-celebration:hover {
  background-color: #e2e8f0;
  color: #334155;
  opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .celebration-container {
    padding: 30px 20px;
  }
  
  .celebration-title {
    font-size: 24px;
  }
  
  .celebration-icon {
    width: 70px;
    height: 70px;
  }
}