/* Payment Page Styles */

/* Page Layout */
main.bg-gray-50 {
  background-color: #f9fafb;
  min-height: 100vh;
}

/* Progress Indicator */
.bg-white.border-b {
  border-bottom-width: 1px;
}

/* Cards & Containers */
.bg-white.border.border-gray-200.rounded-xl {
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  background: white;
  transition: box-shadow 0.2s ease;
}

.bg-white.border.border-gray-200.rounded-xl:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Payment Method Selection */
.payment-method .cursor-pointer {
  cursor: pointer;
  transition: all 0.2s ease;
}

.payment-method:not(.active) .cursor-pointer:hover {
  border-color: #d1d5db;
  background-color: #f9fafb;
}

.payment-method.active .cursor-pointer {
  border-color: #10b981;
  background-color: #f0fdfa;
}

/* Price Display */
.text-3xl.font-bold.text-gray-900 {
  font-size: 2.25rem;
  line-height: 2.5rem;
}

.line-through {
  text-decoration: line-through;
}

/* Payment Button */
#payButton {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#payButton:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

#payButton:active {
  transform: translateY(0);
}

/* Loading State */
#payButton.loading {
  pointer-events: none;
  opacity: 0.8;
}

#payButton.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Sticky Sidebar */
.sticky.top-6 {
  position: sticky;
  top: 1.5rem;
}

/* Applied Offers */
#appliedOffers {
  border: 1px solid #d1fae5;
  background: linear-gradient(to bottom, #f0fdfa, #ffffff);
}

/* Trust Badges */
.bg-emerald-50.border-emerald-100 {
  background-color: #f0fdfa;
  border-color: #a7f3d0;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .grid.md\:grid-cols-3 {
    grid-template-columns: 1fr;
  }
  
  .sticky.top-6 {
    position: static;
  }
  
  .text-3xl.font-bold.text-gray-900 {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }
  
  #payButton {
    padding: 1rem;
    font-size: 1.125rem;
  }
  
  /* Ensure touch-friendly sizes */
  .payment-method .cursor-pointer {
    padding: 1rem;
  }
  
  .payment-method .w-10.h-10 {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  /* High contrast for accessibility */
  .text-gray-900 {
    color: #111827;
  }
  
  .text-gray-600 {
    color: #4b5563;
  }
  
  /* Thumb-friendly button */
  #payButton {
    min-height: 56px;
  }
}

/* Desktop Optimizations */
@media (min-width: 769px) {
  .container.max-w-4xl {
    max-width: 56rem;
  }
}

/* Focus States for Accessibility */
button:focus,
.payment-method .cursor-pointer:focus {
  outline: 2px solid #10b981;
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  #payButton,
  .payment-method,
  .bg-white.border.border-gray-200.rounded-xl.shadow-sm {
    display: none;
  }
  
  .bg-gray-50 {
    background: white !important;
  }
}

/* Razorpay Checkout Modal Overrides */
.razorpay-checkout-frame {
  border-radius: 0.75rem !important;
}

/* Ensure proper contrast ratios */
.text-gray-500 {
  color: #6b7280;
}

.text-gray-700 {
  color: #374151;
}

/* Smooth transitions */
.transition-all.duration-300 {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

/* Remove any sales-like animations */
/* No flashy animations, no urgency indicators */

/* Ensure UPI is clearly primary */
.payment-method.active[data-method="upi"] .cursor-pointer {
  border-width: 2px;
  border-color: #10b981;
}

/* Disabled state */
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

button:disabled:hover {
  transform: none;
  box-shadow: none;
}