/**
 * Contact Page Styles
 * Custom animations and form styles
 */

/* Hero Gradient Text */
.hero-gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #a855f7 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradient-shift 3s ease infinite;
  display: inline-block;
  position: relative;
}

/* Fallback for browsers that don't support background-clip: text */
@supports not (-webkit-background-clip: text) {
  .hero-gradient-text {
    color: #a855f7;
    background: none;
    -webkit-text-fill-color: initial;
  }
}

/* Gradient Shift Animation */
@keyframes gradient-shift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Fade In Up Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slide In Left Animation */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Slide In Right Animation */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Float Animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Float Delayed Animation */
@keyframes floatDelayed {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-30px);
  }
}

/* Float Slow Animation */
@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* Apply Animations */
.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

.animate-slide-in-left {
  animation: slideInLeft 0.8s ease-out;
}

.animate-slide-in-right {
  animation: slideInRight 0.8s ease-out;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
  animation: floatDelayed 8s ease-in-out infinite;
  animation-delay: -2s;
}

.animate-float-slow {
  animation: floatSlow 10s ease-in-out infinite;
  animation-delay: -4s;
}

/* Form Styles */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* FAQ Styles */
.faq-question.active i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-answer.show {
  max-height: 500px;
  transition: max-height 0.3s ease-in;
}

/* Loading States */
.form-loading {
  position: relative;
  pointer-events: none;
}

.form-loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
}

/* Success Message */
.success-message {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  display: none;
}

.success-message.show {
  display: block;
  animation: fadeInUp 0.5s ease-out;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-gradient-text {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  .floating-element {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-gradient-text {
    font-size: 2rem;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .animate-fade-in-up,
  .animate-slide-in-left,
  .animate-slide-in-right,
  .animate-float,
  .animate-float-delayed,
  .animate-float-slow {
    animation: none;
  }

  .faq-answer {
    transition: none;
  }
}

/* Print Styles */
@media print {
  .floating-element,
  .bg-gradient-to-r,
  .bg-gradient-to-br,
  button[type="submit"],
  .whatsapp-section,
  .emergency-section {
    display: none !important;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    border: 1px solid #000 !important;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: more) {
  .hero-gradient-text {
    background: none;
    -webkit-text-fill-color: initial;
    color: #000;
  }

  .bg-gradient-to-r,
  .bg-gradient-to-br {
    background: #fff !important;
    border: 2px solid #000;
  }
}

/* Accessibility - Focus States */
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible,
button:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

