/* ============================================
   PRICING PAGE - LAYOUT & UX IMPROVEMENTS
   Better spacing, readability, and user experience
   ============================================ */

/* ============================================
   1. PAGE CONTAINER - MAX WIDTH
   ============================================ */

.pricing-plans .container {
  max-width: 1600px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 clamp(1rem, 4vw, 2rem) !important;
  box-sizing: border-box !important;
}

/* ============================================
   2. PRICING GRID - BETTER SPACING
   ============================================ */

.pricing-plans {
  padding: clamp(4rem, 8vw, 6rem) 0 !important;
  background: linear-gradient(to bottom, #F8FAFC 0%, #FFFFFF 100%) !important;
  min-height: calc(100vh - 200px) !important;
  position: relative !important;
}

.pricing-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)) !important;
  gap: clamp(2rem, 4vw, 3rem) !important;
  padding: clamp(2rem, 4vw, 3rem) 0 !important;
  margin: 0 auto !important;
  width: 100% !important;
  max-width: 1600px !important;
  box-sizing: border-box !important;
  align-items: stretch !important;
}

/* ============================================
   3. LOADING STATE - BETTER UX
   ============================================ */

#pricingLoading {
  grid-column: 1 / -1 !important;
  text-align: center !important;
  padding: clamp(4rem, 8vw, 6rem) 20px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 400px !important;
}

#pricingLoading .loading-spinner {
  width: 60px !important;
  height: 60px !important;
  border: 5px solid #e2e8f0 !important;
  border-top: 5px solid #3b82f6 !important;
  border-radius: 50% !important;
  animation: spin 1s linear infinite !important;
  margin-bottom: 24px !important;
}

#pricingLoading p {
  color: #64748b !important;
  font-size: clamp(1rem, 2vw, 1.125rem) !important;
  font-family: 'Noto Sans Lao', 'Phetsarath OT', 'Saysettha OT', 'Plus Jakarta Sans', sans-serif !important;
  margin: 0 !important;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ============================================
   4. HERO SECTION - PROFESSIONAL
   ============================================ */

.pricing-hero-new {
  padding: clamp(5rem, 10vw, 8rem) 0 clamp(4rem, 8vw, 6rem) !important;
  position: relative !important;
  overflow: hidden !important;
}

.pricing-hero-content-new {
  text-align: center !important;
  max-width: 900px !important;
  margin: 0 auto !important;
  padding: 0 clamp(1rem, 4vw, 2rem) !important;
}

.pricing-hero-title-new {
  font-size: clamp(2.5rem, 6vw, 4rem) !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  margin-bottom: 1.5rem !important;
  letter-spacing: -0.03em !important;
}

.pricing-hero-subtitle-new {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem) !important;
  color: #64748B !important;
  line-height: 1.7 !important;
  margin-bottom: 2rem !important;
  max-width: 700px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ============================================
   5. CARD ANIMATIONS - SMOOTH ENTRANCE
   ============================================ */

@keyframes pricingCardFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pricing-card-modern {
  animation: pricingCardFadeIn 0.6s ease-out !important;
  animation-fill-mode: both !important;
}

.pricing-card-modern:nth-child(1) {
  animation-delay: 0.1s !important;
}

.pricing-card-modern:nth-child(2) {
  animation-delay: 0.2s !important;
}

.pricing-card-modern:nth-child(3) {
  animation-delay: 0.3s !important;
}

.pricing-card-modern:nth-child(4) {
  animation-delay: 0.4s !important;
}

.pricing-card-modern:nth-child(5) {
  animation-delay: 0.5s !important;
}

/* ============================================
   6. MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .pricing-plans {
    padding: clamp(3rem, 6vw, 4rem) 0 !important;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    padding: 1.5rem 0 !important;
  }
  
  .pricing-hero-new {
    padding: clamp(3rem, 6vw, 4rem) 0 clamp(2rem, 4vw, 3rem) !important;
  }
}

/* ============================================
   7. ACCESSIBILITY
   ============================================ */

/* Better focus states */
.pricing-card-modern:focus-within {
  outline: 3px solid rgba(37, 99, 235, 0.5) !important;
  outline-offset: 4px !important;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .pricing-card-modern {
    animation: none !important;
  }
  
  #pricingLoading .loading-spinner {
    animation: none !important;
  }
}

