/* Custom CSS for Conversion-Optimized Umrah Website */

/* Smooth scrolling and base styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Animation for flash sale banner */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/* Hover effects for buttons */
.btn-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

/* Trust badge styling */
.trust-badge {
  background: linear-gradient(45deg, #fbbf24, #f59e0b);
  color: #065f46;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Package card hover effects */
.package-card {
  transition: all 0.3s ease;
  cursor: pointer;
}

.package-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Popular badge for package */
.popular-badge {
  background: linear-gradient(45deg, #fbbf24, #f59e0b);
  color: #065f46;
  font-weight: bold;
  font-size: 0.75rem;
  padding: 4px 16px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Form styling enhancements */
.form-input {
  transition: all 0.3s ease;
}

.form-input:focus {
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
  outline: none;
}

/* CTA button animations */
.cta-primary {
  background: linear-gradient(45deg, #fbbf24, #f59e0b);
  border: none;
  color: #065f46;
  font-weight: bold;
  padding: 16px 32px;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
}

.cta-primary:hover {
  background: linear-gradient(45deg, #f59e0b, #d97706);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.6);
}

.cta-secondary {
  background: linear-gradient(45deg, #dc2626, #b91c1c);
  border: none;
  color: white;
  font-weight: bold;
  padding: 16px 32px;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
}

.cta-secondary:hover {
  background: linear-gradient(45deg, #b91c1c, #991b1b);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.6);
}

/* WhatsApp button styling */
.whatsapp-btn {
  background: #25D366;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
  background: #128C7E;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* Floating action buttons */
.fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fab-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.fab-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(0,0,0,0.4);
}

/* Testimonial cards */
.testimonial-card {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

/* Star rating */
.star-rating {
  color: #fbbf24;
  font-size: 1.25rem;
}

/* Loading animation for forms */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

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

/* Mobile-specific optimizations */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .package-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 12px;
  }
  
  .testimonial-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .trust-badge, .popular-badge {
    border: 2px solid #000;
  }
  
  .cta-primary, .cta-secondary {
    border: 2px solid #000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .animate-pulse {
    animation: none;
  }
}

/* Print styles */
@media print {
  .fab, .floating-buttons, .animate-pulse {
    display: none !important;
  }
  
  .bg-green-800, .bg-green-900 {
    background: #000 !important;
    color: #fff !important;
  }
}