/* pricing.css */

.pricing-page-wrapper {
  padding: 3rem 1rem;
  display: flex;
  justify-content: center;
  font-family: 'Inter', system-ui, sans-serif;
  background-color: #f8f9fa;
  min-height: calc(100vh - 80px);
}

.pricing-main-container {
  max-width: 1200px;
  width: 100%;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0,0,0,0.05);
  padding: 4rem 3rem;
  position: relative;
  overflow: hidden;
  
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  animation: containerEntrance 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes containerEntrance {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.pricing-main-container::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(238,119,82,0.1) 0%, rgba(231,60,126,0.05) 25%, rgba(35,166,213,0.05) 50%, rgba(255,255,255,0) 70%);
  animation: blobRotate 20s linear infinite;
  z-index: 0;
  pointer-events: none;
}

@keyframes blobRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.pricing-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 1;
}

.pricing-header h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #1a202c;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.pricing-header p {
  font-size: 1.2rem;
  color: #4a5568;
  max-width: 600px;
  margin: 0 auto;
}

.pricing-grid {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
  align-items: stretch;
}

.pricing-card {
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.2));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: 100%;
  max-width: 400px;
  margin-bottom: 1rem;
  position: relative;
  color: #2d3748;
  display: flex;
  flex-direction: column;
  
  opacity: 0;
  transform: translateY(30px);
}

.pricing-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pricing-card.is-visible:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: #cbd5e0;
}

.free-plan {
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
}

.pro-plan {
  background: linear-gradient(135deg, #d4e6f1, #a9cce3);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  animation: gradient-animation 5s ease infinite, breathing-shadow 3s infinite alternate;
  background-size: 200% 200%;
}

.pro-plan.is-visible {
  transform: scale(1.05);
}

.pro-plan.is-visible:hover {
  transform: scale(1.08) translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

.pro-plan::before {
  content: "Most Popular";
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ffc107;
  color: #fff;
  padding: 5px 15px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.pricing-card .card-body {
  padding: 2.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pricing-card .card-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #1a202c;
  text-align: center;
}

.pricing-card h3 {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
  color: #2b6cb0;
}

.features-list {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
  flex: 1;
}

.features-list li {
  margin-bottom: 1rem;
  opacity: 0;
  transition: transform 0.3s;
  display: flex;
  align-items: center;
  font-size: 1.1rem;
}

.features-list li i {
  margin-right: 10px;
  font-size: 1.2rem;
}

.features-list li i.fa-check {
  color: #48bb78;
}

.features-list li i.fa-times {
  color: #f56565;
}

/* Staggered fadeIn for all features-list items */
.pricing-card.is-visible .features-list li:nth-child(1) {
  animation: fadeIn 0.5s ease-in-out forwards 0.4s;
}
.pricing-card.is-visible .features-list li:nth-child(2) {
  animation: fadeIn 0.5s ease-in-out forwards 0.6s;
}
.pricing-card.is-visible .features-list li:nth-child(3) {
  animation: fadeIn 0.5s ease-in-out forwards 0.8s;
}

/* Float animation only for pro-plan features with staggered delays */
.pro-plan.is-visible .features-list li:nth-child(1) {
  animation: fadeIn 0.5s ease-in-out forwards 0.4s, float-animation 2s ease-in-out infinite alternate 0s;
}
.pro-plan.is-visible .features-list li:nth-child(2) {
  animation: fadeIn 0.5s ease-in-out forwards 0.6s, float-animation 2s ease-in-out infinite alternate 0.2s;
}
.pro-plan.is-visible .features-list li:nth-child(3) {
  animation: fadeIn 0.5s ease-in-out forwards 0.8s, float-animation 2s ease-in-out infinite alternate 0.4s;
}

.pro-plan.is-visible:hover .features-list li {
  transform: translateX(5px);
}

.btn-primary {
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  text-align: center;
  padding: 1rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  background-color: #3182ce;
  color: white;
  border: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-top: auto;
}

.pricing-card form.button_to {
  margin-top: auto;
  width: 100%;
}

.pricing-card form.button_to .btn-primary {
  margin-top: 0;
}

.btn-primary:hover {
  background-color: #2b6cb0;
  transform: translateY(-2px);
  color: white;
}

.pro-plan .btn-primary {
  animation: pulse 1.5s infinite;
  background-color: #dd6b20;
}

.pro-plan .btn-primary:hover {
  background-color: #c05621;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(221, 107, 32, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 10px 10px rgba(221, 107, 32, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(221, 107, 32, 0);
  }
}

@keyframes gradient-animation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes breathing-shadow {
  0% { box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); }
  50% { box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2); }
  100% { box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); }
}

@keyframes float-animation {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-3px); }
  100% { transform: translateY(0px); }
}

@media (max-width: 768px) {
  .pricing-main-container {
    padding: 2rem 1.5rem;
  }
  .pricing-header h1 {
    font-size: 2.2rem;
  }
  .pro-plan.is-visible {
    transform: scale(1);
  }
  .pro-plan.is-visible:hover {
    transform: scale(1.02) translateY(-4px);
  }
}
