/* Additional Styles for Enhanced Features */

/* Loading Spinner */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Form Validation Errors */
.error-message {
  color: #e74c3c;
  font-size: 13px;
  margin-top: 6px;
  display: block;
}

.input.error {
  border-color: #e74c3c;
  box-shadow: 0 0 0 1px rgba(231, 76, 60, 0.3);
}

/* Countdown Timer */
.countdown {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.countdown-item {
  background: linear-gradient(135deg, #f8f4f0, #ffffff);
  border-radius: 12px;
  padding: 12px 16px;
  min-width: 70px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.countdown-num {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: #c99a6f;
  line-height: 1;
}

.countdown-label {
  display: block;
  font-size: 11px;
  color: #7a7a7a;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Sticky CTA Button */
.sticky-cta {
  position: fixed;
  bottom: -100px;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #c99a6f, #e7c29a);
  padding: 14px 20px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transition: bottom 0.3s ease;
}

.sticky-cta.visible {
  bottom: 0;
}

.sticky-cta-content {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.sticky-cta-text {
  color: #fff;
  font-weight: 600;
  font-size: 15px;
}

.sticky-cta-btn {
  background: #fff;
  color: #c99a6f;
  padding: 10px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.1s ease;
  white-space: nowrap;
}

.sticky-cta-btn:hover {
  transform: scale(1.05);
}

/* Exit Intent Popup */
.exit-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.exit-popup.visible {
  opacity: 1;
  pointer-events: all;
}

.popup-content {
  background: #fff;
  border-radius: 24px;
  padding: 32px 28px;
  max-width: 480px;
  width: 100%;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.exit-popup.visible .popup-content {
  transform: scale(1);
}

.popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f0f0f0;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #666;
  transition: background 0.2s ease;
}

.popup-close:hover {
  background: #e0e0e0;
}

.popup-emoji {
  font-size: 48px;
  text-align: center;
  margin-bottom: 16px;
}

.popup-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  text-align: center;
}

.popup-text {
  font-size: 15px;
  color: #7a7a7a;
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: center;
}

.popup-cta {
  display: block;
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #c99a6f, #e7c29a);
  color: #fff;
  border-radius: 999px;
  text-align: center;
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: transform 0.1s ease;
}

.popup-cta:hover {
  transform: translateY(-2px);
}

/* Participants Counter Badge */
.participants-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  color: #2e7d32;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 12px;
}

.participants-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4caf50;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.3);
  }
}

/* Social Proof Section */
.social-proof {
  background: linear-gradient(135deg, #fff8f0, #ffffff);
  border-radius: 20px;
  padding: 20px;
  margin: 20px 0;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.social-proof-title {
  font-size: 16px;
  font-weight: 600;
  color: #2b2b2b;
  margin-bottom: 8px;
}

.social-proof-text {
  font-size: 14px;
  color: #7a7a7a;
}

/* Trust Indicators */
.trust-indicators {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 24px 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #7a7a7a;
}

.trust-icon {
  color: #4caf50;
  font-size: 16px;
}

/* Responsive Improvements */
@media (max-width: 600px) {
  .countdown-item {
    min-width: 60px;
    padding: 10px 12px;
  }

  .countdown-num {
    font-size: 24px;
  }

  .sticky-cta-content {
    flex-direction: column;
    text-align: center;
  }

  .popup-content {
    padding: 24px 20px;
  }

  .popup-title {
    font-size: 20px;
  }
}

/* Smooth Animations */
.fade-in {
  animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Focus Styles for Accessibility */
button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 2px solid #c99a6f;
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .sticky-cta,
  .exit-popup,
  .countdown {
    display: none;
  }
}
