/* Pricing Page Styles */

.pricing-hero {
  background: var(--primary-gradient);
  color: white;
  padding: 60px 0;
  text-align: center;
}

.pricing-hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.pricing-hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-weight: 600;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.3);
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}

input:checked + .slider {
  background-color: var(--secondary-color);
}

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

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.save-badge {
  background-color: var(--secondary-color);
  color: white;
  font-size: 0.8rem;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 5px;
}

.pricing-plans {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.pricing-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.pricing-card:hover {
  transform: translateY(-5px);
}

.pricing-card.popular {
  border: 2px solid var(--primary-color);
  position: relative;
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-color);
  color: white;
  padding: 5px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.pricing-header h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.pricing-price .period {
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.7;
}

.pricing-features {
  margin: 30px 0;
  flex-grow: 1;
}

.pricing-features ul {
  list-style-type: none;
  padding: 0;
}

.pricing-features li {
  margin-bottom: 10px;
  justify-content: center;
  text-align: left;
}

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

.pricing-features .fa-check {
  color: var(--success-color);
}

.pricing-features .fa-times {
  color: var(--error-color);
}

.pricing-features .disabled {
  opacity: 0.5;
}

.pricing-cta {
  margin-top: auto;
}

.pricing-cta .btn-outline,
.pricing-cta .btn-primary {
  display: inline-block;
  padding: 10px 20px;
  width: 100%;
  font-weight: 600;
  text-align: center;
}

.feature-comparison {
  padding: 80px 0;
}

.feature-comparison h2 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 10px;
}

.feature-comparison > p {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 40px;
  color: var(--text-light);
}

.comparison-table-wrapper {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}

.comparison-table th,
.comparison-table td {
  padding: 15px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.comparison-table th {
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  text-align: left;
  font-weight: 600;
}

.comparison-table .fa-check {
  color: var(--success-color);
}

.comparison-table .fa-times {
  color: var(--error-color);
}

.comparison-table .fa-check,
.comparison-table .fa-times {
  font-size: 1.2rem;
}

.faq-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.faq-section h2 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 40px;
}

.faq-grid {
  display: grid;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.faq-question {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question h3 {
  font-size: 1.1rem;
  margin: 0;
}

.faq-toggle {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 0 20px 20px;
  max-height: 1000px;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

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

  .pricing-toggle {
    flex-direction: column;
  }

  .comparison-table-wrapper {
    margin: 0 -20px;
  }

  .comparison-table {
    font-size: 0.9rem;
  }
}

