/* Custom Animations and Styles for Concurso Público Funnel */

/* Floating Animation */
@keyframes floating {
    0%, 100% {
      transform: translateY(0px);
    }
    50% {
      transform: translateY(-10px);
    }
  }
  
  .floating {
    animation: floating 3s ease-in-out infinite;
  }
  
  /* Pulse Glow Effect */
  @keyframes pulse-glow {
    0%, 100% {
      box-shadow: 0 10px 30px rgba(30, 64, 175, 0.4);
    }
    50% {
      box-shadow: 0 15px 40px rgba(30, 64, 175, 0.6);
    }
  }
  
  .pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
  }
  
  /* Success Bounce Animation */
  @keyframes success-bounce {
    0%, 20%, 50%, 80%, 100% {
      transform: translateY(0);
    }
    40% {
      transform: translateY(-10px);
    }
    60% {
      transform: translateY(-5px);
    }
  }
  
  .success-bounce {
    animation: success-bounce 2s ease-in-out infinite;
  }
  
  /* Scroll Hidden for Mobile */
  .scroll-hidden {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  
  .scroll-hidden::-webkit-scrollbar {
    display: none;
  }
  
  /* Left Column Scrollable */
  .left-column {
    max-height: 100vh;
    overflow-y: auto;
    padding-right: 10px;
  }
  
  /* Right Column Sticky */
  .right-column {
    position: sticky;
    top: 2rem;
    height: fit-content;
  }
  
  /* Custom Scrollbar for Better UX */
  .left-column::-webkit-scrollbar {
    width: 6px;
  }
  
  .left-column::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
  }
  
  .left-column::-webkit-scrollbar-thumb {
    background: #1E40AF;
    border-radius: 10px;
  }
  
  .left-column::-webkit-scrollbar-thumb:hover {
    background: #1E3A8A;
  }
  
  /* Form Focus Effects */
  input:focus {
    transform: scale(1.02);
    transition: all 0.3s ease;
  }
  
  /* Button Hover Effects */
  button:hover {
    transform: translateY(-2px);
    transition: all 0.3s ease;
  }
  
  /* Card Hover Effects */
  .card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
  }
  
  /* Fade In Animation */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .fade-in {
    animation: fadeIn 0.6s ease-out;
  }
  
  /* Countdown Timer Styling */
  #countdown {
    font-family: 'Courier New', monospace;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
  }
  
  /* Progress Bar Animation */
  @keyframes progress {
    0% {
      width: 0%;
    }
    100% {
      width: 100%;
    }
  }
  
  .progress-bar {
    animation: progress 2s ease-in-out;
  }
  
  /* Testimonial Cards */
  .testimonial-card {
    background: linear-gradient(135deg, #EC4899 0%, #F472B6 100%);
    border-radius: 15px;
    padding: 20px;
    color: white;
    position: relative;
    overflow: hidden;
  }
  
  .testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 15px;
    font-size: 4rem;
    opacity: 0.2;
    font-family: serif;
  }
  
  /* Social Proof Animation */
  @keyframes slideInUp {
    from {
      transform: translateY(30px);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }
  
  .slide-in-up {
    animation: slideInUp 0.8s ease-out;
  }
  
  /* Price Animation */
  @keyframes priceHighlight {
    0%, 100% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.05);
    }
  }
  
  .price-highlight {
    animation: priceHighlight 2s ease-in-out infinite;
  }
  
  /* Trust Badge Styles */
  .trust-badge {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border-radius: 50px;
    padding: 8px 16px;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  
  /* Mobile Optimizations */
  @media (max-width: 768px) {
    .left-column {
      max-height: none;
      overflow-y: visible;
      padding-right: 0;
    }
    
    .right-column {
      position: relative;
      top: 0;
    }
    
    .floating {
      animation: none;
    }
    
    /* Reduce motion for better mobile experience */
    .pulse-glow {
      animation: none;
      box-shadow: 0 10px 30px rgba(236, 72, 153, 0.4);
    }
  }
  
  /* Dark Mode Support */
  @media (prefers-color-scheme: dark) {
    .bg-gray-50 {
      background-color: #1f2937;
    }
    
    .bg-white {
      background-color: #374151;
    }
    
    .text-gray-900 {
      color: #f9fafb;
    }
    
    .text-gray-600 {
      color: #d1d5db;
    }
  }
  
  /* Print Styles */
  @media print {
    .no-print {
      display: none !important;
    }
    
    * {
      background: white !important;
      color: black !important;
    }
  }
  
  /* Loading Animation */
  @keyframes spin {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }
  
  .loading {
    animation: spin 1s linear infinite;
  }
  
  /* Form Validation Styles */
  .input-error {
    border-color: #EF4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
  }
  
  .input-success {
    border-color: #10B981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
  }
  
  /* Accessibility Improvements */
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  
  /* Focus Styles for Keyboard Navigation */
  *:focus {
    outline: 2px solid #1E40AF;
    outline-offset: 2px;
  }
  
  /* High Contrast Mode Support */
  @media (prefers-contrast: high) {
    .bg-primary {
      background-color: #000000;
    }
    
    .text-primary {
      color: #000000;
    }
  }
  
  /* 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;
    }
  }

  /* Optional Enhancements - Add these to your existing CSS */

/* Enhanced notification animations (for our new notification system) */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.notification-enter {
  animation: slideInRight 0.3s ease-out;
}

.notification-exit {
  animation: slideOutRight 0.3s ease-in;
}

/* Enhanced bounce animation for thank you page */
@keyframes bounce-in {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
  70% {
    transform: scale(0.9);
    opacity: 0.9;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.bounce-in {
  animation: bounce-in 0.6s ease-out;
}

/* Smooth transitions for all interactive elements */
* {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* Enhanced form field animations */
.form-field {
  position: relative;
}

.form-field input:focus + label,
.form-field input:not(:placeholder-shown) + label {
  transform: translateY(-20px) scale(0.8);
  color: #1E40AF;
}

.form-field label {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  transition: all 0.3s ease;
  pointer-events: none;
  background: white;
  padding: 0 4px;
}

/* --- Custom Mobile Column Reversal --- */
@media (max-width: 1023px) {
  .right-column {
    order: 2 !important;
  }

  .order-2 {
    order: 1 !important;
  }

  .order-1 {
    order: 2 !important;
  }
}