/* ==========================================
   PRICING PAGE CUSTOM STYLES
========================================== */

/* Fix Price Size Inconsistency (Override global .price span) */
.price span.price-value {
  font-size: 3.25rem;
  font-weight: 800;
  color: #17153a;
  letter-spacing: -0.03em;
  margin-left: 0;
}

/* Billing Note under Price */
.billing-note {
  font-size: 0.8rem;
  color: #8c88ad;
  font-weight: 500;
  margin-top: -15px;
  margin-bottom: 25px;
  min-height: 18px;
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.billing-note.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Adjust Background Blobs to prevent cutting through cards */
.blob-2 {
  top: 950px;
  background: #ffd2e8;
  opacity: 0.45;
}

.blob-3 {
  bottom: 8%;
  background: #ffd8b7;
  opacity: 0.45;
}

/* Billing Toggle Switch */
.billing-toggle-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 30px;
  margin-bottom: 50px;
  font-weight: 600;
  font-size: 0.95rem;
}

.billing-toggle-label {
  color: #555273;
  cursor: pointer;
}

.billing-toggle-label.active {
  color: #17153a;
  font-weight: 700;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 30px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(23, 21, 58, 0.08);
  transition: .4s;
  border-radius: 34px;
  border: 1px solid rgba(23, 21, 58, 0.06);
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.toggle-switch input:checked + .toggle-slider {
  background-color: #d12984;
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(26px);
}

.discount-badge {
  background: rgba(209, 41, 132, 0.1);
  color: #d12984;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Feature Comparison Table */
.comparison-section {
  padding: 80px 0 100px;
  background: #ffffff;
}

.comparison-wrapper {
  max-width: 1100px;
  margin: 0 auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  margin-top: 40px;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(23, 21, 58, 0.02);
  border: 1px solid rgba(23, 21, 58, 0.06);
}

.comparison-table th, 
.comparison-table td {
  padding: 18px 24px;
  border-bottom: 1px solid rgba(23, 21, 58, 0.06);
  font-size: 0.9rem;
}

.comparison-table th {
  background: #faf9fc;
  font-weight: 700;
  color: #17153a;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.comparison-table td:first-child {
  font-weight: 600;
  color: #17153a;
  width: 35%;
}

.comparison-table td:not(:first-child) {
  text-align: center;
  width: 16.25%;
}

.comparison-table th:not(:first-child) {
  text-align: center;
}

.comparison-table tr:hover td {
  background-color: rgba(23, 21, 58, 0.01);
}

.comparison-table tr.category-row td {
  background: #fffbfd;
  font-weight: 700;
  color: #d12984;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 14px 24px;
}

.comparison-table i.fa-check {
  color: #10b981;
}

.comparison-table i.fa-minus {
  color: #d1d5db;
}

.comparison-table span.text-val {
  font-weight: 600;
  color: #555273;
}

@media (max-width: 768px) {
  .comparison-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Pricing Grid Override for 4 columns */
.pricing-grid {
  grid-template-columns: repeat(4, 1fr) !important;
}

@media (max-width: 1200px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Comparison Table Width Override for 4 plans */
.comparison-table td:not(:first-child),
.comparison-table th:not(:first-child) {
  width: 16.25% !important;
}

/* FAQ Show/Hide items animation and styling */
.faq-accordion-item.faq-hidden-item {
  display: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-accordion-item.faq-hidden-item.reveal-visible {
  display: block;
}

.faq-accordion-item.faq-hidden-item.animate-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Pricing Page Custom Container Width */
.pricing-hero-container {
  width: min(1500px, 95%);
}

@media (min-width: 1025px) {
  .pricing-hero-container {
    width: min(1500px, 88%);
  }
}
