/* Pricing Page Styles */
.pricing-page {
  --primary-color: #0055b8;
  --primary-dark: #004494;
  --primary-light: #3378c5;
  --accent-color: #60b5ff;
  --accent-dark: #4a9fe8;
  --accent-light: #8ccaff;
  --gradient-start: var(--primary-color);
  --gradient-end: var(--accent-color);
}

/* Hero Section */
.pricing-hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  padding: 80px 0;
  overflow: hidden;
  margin-bottom: 60px;
}

.diagonal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.05) 20px,
    transparent 20px,
    transparent 40px
  );
}

.pricing-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.pricing-hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.pricing-hero h1:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%) skew(-20deg);
  width: 80px;
  height: 4px;
  background-color: white;
}

.pricing-hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Pricing Toggle */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 30px 0;
}

.toggle-label {
  font-size: 1rem;
  color: #666;
  margin: 0 10px;
  cursor: pointer;
  transition: color 0.3s;
}

.toggle-label.active {
  color: var(--primary-color);
  font-weight: 600;
}

.save-badge {
  display: inline-block;
  background-color: var(--accent-color);
  color: white;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 5px;
  transform: skew(-10deg);
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary-color);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

/* Pricing Cards */
.pricing-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin: 40px 0;
}

.pricing-card {
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.pricing-card.featured {
  transform: scale(1.05);
  border: 2px solid var(--accent-color);
  z-index: 2;
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-10px);
}

.popular-badge {
  position: absolute;
  top: 15px;
  right: -30px;
  background: var(--accent-color);
  color: white;
  padding: 5px 30px;
  font-size: 0.8rem;
  transform: rotate(45deg);
  z-index: 3;
}

.card-header {
  padding: 30px 20px;
  text-align: center;
  background-color: #f8f9fa;
  position: relative;
  overflow: hidden;
}

.diagonal-accent {
  position: absolute;
  top: 0;
  left: -10px;
  width: 30px;
  height: 100%;
  background-color: var(--accent-color);
  transform: skew(-20deg);
  opacity: 0.7;
}

.card-header h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary-color);
  position: relative;
  z-index: 2;
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
}

.price small {
  font-size: 1rem;
  font-weight: 400;
  color: #666;
}

.price .yearly {
  display: none;
}

.pricing-cards.yearly .price .yearly {
  display: block;
}

.pricing-cards.yearly .price .monthly {
  display: none;
}

.card-body {
  padding: 20px;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.features-list li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
}

.features-list li:last-child {
  border-bottom: none;
}

.features-list i {
  margin-right: 10px;
  color: var(--accent-color);
  font-size: 0.9rem;
}

.features-list i.fa-times {
  color: #ccc;
}

.card-footer {
  padding: 20px;
  text-align: center;
}

.btn-skewed {
  position: relative;
  overflow: hidden;
  transform: skew(-10deg);
  transition: all 0.3s;
}

.btn-skewed:hover {
  transform: skew(-10deg) translateY(-3px);
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-accent {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: white;
}

.btn-accent:hover {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Feature Comparison Table */
.feature-comparison {
  padding: 60px 0;
  background-color: #f8f9fa;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--primary-color);
  position: relative;
}

.section-title:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%) skew(-20deg);
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
}

.section-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 40px;
}

.table-container {
  overflow-x: auto;
  margin: 0 auto;
  max-width: 100%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
}

.comparison-table th,
.comparison-table td {
  padding: 15px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.comparison-table th {
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
}

.comparison-table th:first-child {
  text-align: left;
  border-top-left-radius: 8px;
}

.comparison-table th:last-child {
  border-top-right-radius: 8px;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--primary-dark);
}

.comparison-table tr:nth-child(even) {
  background-color: #f8f9fa;
}

.comparison-table i.fa-check {
  color: var(--accent-color);
}

.comparison-table i.fa-times {
  color: #ccc;
}

/* FAQ Section */
.faq-section {
  padding: 60px 0;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  padding: 20px;
  background-color: white;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s;
}

.faq-item.active .faq-question {
  background-color: #f8f9fa;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--primary-color);
}

.toggle-icon {
  color: var(--primary-color);
  transition: transform 0.3s;
}

.faq-item.active .toggle-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s;
}

.faq-item.active .faq-answer {
  padding: 0 20px 20px;
  max-height: 200px;
}

/* CTA Section */
.cta-section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  background-color: #f8f9fa;
}

.diagonal-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  transform: skewY(-3deg);
  transform-origin: top left;
  z-index: 1;
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .pricing-cards {
    flex-direction: column;
    align-items: center;
  }

  .pricing-card {
    width: 100%;
    max-width: 400px;
    margin-bottom: 30px;
  }

  .pricing-card.featured {
    transform: scale(1);
  }

  .pricing-card.featured:hover {
    transform: translateY(-10px);
  }
}

@media (max-width: 768px) {
  .pricing-hero h1 {
    font-size: 2.5rem;
  }

  .cta-content h2 {
    font-size: 2rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 10px;
  }
}

@media (max-width: 576px) {
  .pricing-hero h1 {
    font-size: 2rem;
  }

  .pricing-hero p {
    font-size: 1rem;
  }

  .cta-content h2 {
    font-size: 1.8rem;
  }

  .cta-content p {
    font-size: 1rem;
  }

  .btn {
    width: 100%;
    margin-bottom: 10px;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
}
