/* =========================================================
   صفحه قیمت‌گذاری - استایل‌های اختصاصی
   ========================================================= */

/* ===== سوییچ ماهانه/سالانه ===== */
.billing-toggle {
  position: relative;
  display: inline-flex;
  padding: 4px;
  background: rgb(255 255 255 / 8%);
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 999px;
}

.billing-option {
  position: relative;
  z-index: 2;
  padding: 0.65rem 1.5rem;
  background: transparent;
  border: none;
  color: rgb(255 255 255 / 55%);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
}

.billing-option.active {
  color: #10272e;
}

.discount-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  background: #b96835;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  border-radius: 999px;
}

.billing-option.active .discount-badge {
  background: #10272e;
  color: #e2a56f;
}

.billing-slider {
  position: absolute;
  top: 4px;
  bottom: 4px;
  right: 4px;
  width: calc(50% - 4px);
  background: #e2a56f;
  border-radius: 999px;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1;
}

.billing-toggle.yearly .billing-slider {
  transform: translateX(-100%);
}

/* ===== کارت قیمت ===== */
.pricing-card {
  position: relative;
  padding: 2.5rem 2rem;
  background: #fff;
  border: 1px solid rgb(23 52 60 / 10%);
  display: flex;
  flex-direction: column;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.pricing-card:hover {
  border-color: rgb(185 104 53 / 25%);
  box-shadow: 0 15px 40px rgb(12 31 38 / 6%);
  transform: translateY(-3px);
}

.pricing-card.featured {
  background: #10272e;
  color: #fff;
  border-color: #b96835;
  transform: scale(1.02);
  box-shadow: 0 20px 50px rgb(12 31 38 / 15%);
}

.pricing-card.featured:hover {
  transform: scale(1.02) translateY(-3px);
}

.popular-badge {
  position: absolute;
  top: -14px;
  right: 50%;
  transform: translateX(50%);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 1rem;
  background: #d58e55;
  color: #10272e;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.popular-badge i {
  font-size: 0.65rem;
}

.pricing-card-header {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgb(23 52 60 / 10%);
  margin-bottom: 1.5rem;
}

.pricing-card.featured .pricing-card-header {
  border-bottom-color: rgb(255 255 255 / 12%);
}

.pricing-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1.25rem;
  background: rgb(185 104 53 / 12%);
  color: #b96835;
  font-size: 1.35rem;
}

.pricing-card.featured .pricing-icon {
  background: rgb(226 165 111 / 15%);
  color: #e2a56f;
}

.pricing-name {
  color: #10272e;
  font-size: 1.5rem;
  font-weight: 900;
}

.pricing-card.featured .pricing-name {
  color: #fff;
}

.pricing-tagline {
  margin-top: 0.5rem;
  color: #748288;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.7;
}

.pricing-card.featured .pricing-tagline {
  color: rgb(255 255 255 / 55%);
}

/* ===== قیمت ===== */
.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.price-amount {
  color: #10272e;
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
  transition: color 0.4s ease;
}

.pricing-card.featured .price-amount {
  color: #fff;
}

.price-amount.custom-price {
  font-size: 2rem;
  color: #b96835;
}

.pricing-card.featured .price-amount.custom-price {
  color: #e2a56f;
}

.price-currency {
  color: #b96835;
  font-size: 0.85rem;
  font-weight: 800;
}

.pricing-card.featured .price-currency {
  color: #e2a56f;
}

.price-period {
  color: #9da8ab;
  font-size: 0.75rem;
  font-weight: 600;
}

.pricing-card.featured .price-period {
  color: rgb(255 255 255 / 45%);
}

.price-note {
  margin-bottom: 1.5rem;
  color: #748288;
  font-size: 0.75rem;
  font-weight: 600;
}

.pricing-card.featured .price-note {
  color: rgb(255 255 255 / 55%);
}

/* ===== دکمه CTA ===== */
.pricing-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.95rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.2s ease;
}

.pricing-cta.primary {
  background: #d58e55;
  color: #10272e;
}

.pricing-cta.primary:hover {
  background: #e6aa73;
}

.pricing-cta.secondary {
  background: transparent;
  border-color: rgb(23 52 60 / 20%);
  color: #17343c;
}

.pricing-cta.secondary:hover {
  border-color: #b96835;
  background: #b96835;
  color: #fff;
}

.pricing-cta i {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.pricing-cta:hover i {
  transform: translateX(-3px);
}

/* ===== لیست امکانات ===== */
.pricing-features {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(23 52 60 / 10%);
  flex: 1;
}

.pricing-card.featured .pricing-features {
  border-top-color: rgb(255 255 255 / 12%);
}

.features-title {
  color: #17343c;
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.pricing-card.featured .features-title {
  color: rgb(255 255 255 / 75%);
}

.pricing-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: #40575e;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.7;
}

.pricing-card.featured .pricing-features li {
  color: rgb(255 255 255 / 75%);
}

.pricing-features li i {
  flex-shrink: 0;
  margin-top: 0.25rem;
  color: #b96835;
  font-size: 0.75rem;
}

.pricing-card.featured .pricing-features li i {
  color: #e2a56f;
}

.pricing-features li.disabled {
  color: #a8b0b3;
  text-decoration: line-through;
}

.pricing-features li.disabled i {
  color: #c7cdd0;
}

.pricing-card.featured .pricing-features li.disabled {
  color: rgb(255 255 255 / 30%);
}

/* ===== محاسبه‌گر ===== */
.calculator-container {
  padding: 2rem;
  background: #fff;
  border: 1px solid rgb(23 52 60 / 10%);
}

@media (min-width: 640px) {
  .calculator-container {
    padding: 3rem;
  }
}

.calc-field {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgb(23 52 60 / 8%);
}

.calc-field:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.calc-field-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.calc-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #17343c;
  font-size: 0.85rem;
  font-weight: 800;
}

.calc-value {
  padding: 0.25rem 0.75rem;
  background: rgb(185 104 53 / 10%);
  color: #b96835;
  font-size: 0.75rem;
  font-weight: 800;
}

/* ===== اسلایدر سفارشی ===== */
.calc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: rgb(23 52 60 / 10%);
  outline: none;
  cursor: pointer;
  direction: ltr;
  border-radius: 999px;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  background: #b96835;
  cursor: pointer;
  border: 4px solid #fff;
  box-shadow: 0 2px 8px rgb(185 104 53 / 40%);
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.calc-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: #b96835;
  cursor: pointer;
  border: 4px solid #fff;
  box-shadow: 0 2px 8px rgb(185 104 53 / 40%);
  border-radius: 50%;
}

.calc-range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  color: #9da8ab;
  font-size: 0.7rem;
  font-weight: 600;
}

/* چک‌باکس محاسبه‌گر */
.calc-checkbox {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: #f8f6f0;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.calc-checkbox:hover {
  background: #ece6d9;
}

.calc-checkbox input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.calc-checkbox-custom {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
  border: 2px solid rgb(23 52 60 / 25%);
  background: #fff;
  flex-shrink: 0;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.calc-checkbox-custom::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 5px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.calc-checkbox input:checked ~ .calc-checkbox-custom {
  background: #b96835;
  border-color: #b96835;
}

.calc-checkbox input:checked ~ .calc-checkbox-custom::after {
  opacity: 1;
}

.calc-checkbox-label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
}

.calc-checkbox-label > span:first-child {
  color: #17343c;
  font-weight: 700;
}

.calc-item-price {
  color: #b96835;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

/* نتیجه محاسبه */
.calc-result {
  padding: 2rem;
  background: #10272e;
  color: #fff;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.calc-result::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgb(226 165 111 / 15%) 0%, transparent 70%);
  pointer-events: none;
}

.calc-result-header {
  position: relative;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgb(255 255 255 / 10%);
}

.calc-result-price {
  position: relative;
  margin: 2rem 0;
  text-align: center;
}

.calc-price-amount {
  display: block;
  font-size: 3rem;
  font-weight: 900;
  color: #e2a56f;
  line-height: 1;
  transition: transform 0.3s ease;
}

.calc-price-amount.updating {
  transform: scale(1.05);
}

.calc-price-currency {
  display: block;
  margin-top: 0.5rem;
  color: rgb(255 255 255 / 55%);
  font-size: 0.8rem;
  font-weight: 600;
}

.calc-result-breakdown {
  position: relative;
  padding: 1.5rem 0;
  border-top: 1px solid rgb(255 255 255 / 10%);
  border-bottom: 1px solid rgb(255 255 255 / 10%);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.breakdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgb(255 255 255 / 60%);
}

.breakdown-item.total {
  padding-top: 0.65rem;
  border-top: 1px dashed rgb(255 255 255 / 15%);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
}

.calc-result-footer {
  position: relative;
  margin-top: 1.5rem;
}

.calc-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem;
  background: #d58e55;
  color: #10272e;
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 0.25s ease;
}

.calc-cta:hover {
  background: #e6aa73;
}

/* ===== جدول مقایسه ===== */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid rgb(23 52 60 / 10%);
}

.comparison-table th,
.comparison-table td {
  padding: 1.1rem 1.25rem;
  text-align: center;
  vertical-align: middle;
  border-bottom: 1px solid rgb(23 52 60 / 8%);
  font-size: 0.85rem;
}

.comparison-table thead th {
  background: #f8f6f0;
  color: #10272e;
  font-weight: 900;
  padding: 1.75rem 1.25rem;
  border-bottom: 2px solid rgb(23 52 60 / 12%);
}

.comparison-table thead th.text-right {
  text-align: right;
}

.th-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.th-content i {
  font-size: 1.35rem;
  color: #b96835;
}

.th-content span:not(.th-badge) {
  font-size: 1.05rem;
}

.th-badge {
  position: absolute;
  top: -0.5rem;
  padding: 0.15rem 0.5rem;
  background: #d58e55;
  color: #10272e;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.comparison-table th.th-featured,
.comparison-table td.td-featured {
  background: rgb(185 104 53 / 5%);
  border-right: 2px solid #b96835;
  border-left: 2px solid #b96835;
}

.comparison-table thead th.th-featured {
  background: #b96835;
  color: #fff;
}

.comparison-table thead th.th-featured .th-content i {
  color: #fff;
}

.comparison-table tbody tr {
  transition: background-color 0.2s ease;
}

.comparison-table tbody tr:hover:not(.row-category) {
  background: #f8f6f0;
}

.comparison-table tbody td:first-child {
  text-align: right;
  color: #40575e;
  font-weight: 600;
}

.row-category td {
  padding: 1rem 1.25rem !important;
  background: #ece6d9 !important;
  text-align: right !important;
  border: none !important;
}

.row-category span {
  display: inline-block;
  color: #b96835;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.comparison-table tfoot td {
  padding: 1.5rem 1.25rem;
  background: #f8f6f0;
  border-top: 2px solid rgb(23 52 60 / 12%);
  border-bottom: none;
}

.comparison-table tfoot td.td-featured {
  background: rgb(185 104 53 / 8%);
}

.table-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.5rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}

.table-cta-btn.primary {
  background: #b96835;
  color: #fff;
}

.table-cta-btn.primary:hover {
  background: #a85d32;
}

.table-cta-btn.secondary {
  background: transparent;
  border: 1px solid rgb(23 52 60 / 25%);
  color: #17343c;
}

.table-cta-btn.secondary:hover {
  border-color: #b96835;
  color: #b96835;
}

/* ===== کارت خدمت تک‌قیمت ===== */
.service-price-card {
  padding: 1.75rem;
  background: #fff;
  border: 1px solid rgb(23 52 60 / 10%);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.service-price-card:hover {
  border-color: rgb(185 104 53 / 25%);
  box-shadow: 0 10px 25px rgb(12 31 38 / 6%);
  transform: translateY(-3px);
}

.service-price-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1.25rem;
  background: rgb(185 104 53 / 10%);
  color: #b96835;
  font-size: 1.05rem;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.service-price-card:hover .service-price-icon {
  background: #b96835;
  color: #fff;
}

.service-price-title {
  color: #10272e;
  font-size: 1rem;
  font-weight: 800;
}

.service-price-desc {
  margin-top: 0.5rem;
  color: #748288;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.9;
}

.service-price-value {
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  background: #f8f6f0;
  color: #40575e;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
}

.service-price-value strong {
  color: #b96835;
  font-size: 1.05rem;
  font-weight: 900;
}

.service-price-cta {
  display: block;
  margin-top: 1rem;
  padding: 0.75rem;
  background: transparent;
  border: 1px solid rgb(23 52 60 / 20%);
  color: #17343c;
  font-size: 0.8rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.service-price-cta:hover {
  background: #17343c;
  border-color: #17343c;
  color: #fff;
}

/* ===== کارت نظرات ===== */
.testimonial-card {
  padding: 2rem;
  background: #fff;
  border: 1px solid rgb(23 52 60 / 10%);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.testimonial-card:hover {
  border-color: rgb(185 104 53 / 25%);
  box-shadow: 0 12px 30px rgb(12 31 38 / 6%);
  transform: translateY(-3px);
}

.testimonial-rating {
  display: flex;
  gap: 0.25rem;
  color: #e2a56f;
  font-size: 0.9rem;
}

.testimonial-text {
  margin-top: 1.25rem;
  color: #40575e;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 2;
}

.testimonial-author {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgb(23 52 60 / 8%);
}

.testimonial-author strong {
  display: block;
  color: #10272e;
  font-size: 0.9rem;
  font-weight: 800;
}

.testimonial-author span {
  display: block;
  margin-top: 0.25rem;
  color: #748288;
  font-size: 0.72rem;
  font-weight: 600;
}

/* ===== FAQ (کپی از contact.css با کمی تنظیم) ===== */
.faq-item {
  background: #fff;
  border: 1px solid rgb(23 52 60 / 10%);
  overflow: hidden;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.faq-item:hover {
  border-color: rgb(185 104 53 / 20%);
}

.faq-item.open {
  border-color: #b96835;
  box-shadow: 0 8px 20px rgb(12 31 38 / 5%);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  color: #17343c;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  text-align: right;
  cursor: pointer;
  transition: color 0.25s ease;
}

.faq-question:hover {
  color: #b96835;
}

.faq-item.open .faq-question {
  color: #b96835;
}

.faq-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: rgb(185 104 53 / 10%);
  color: #b96835;
  font-size: 0.75rem;
  border-radius: 50%;
  flex-shrink: 0;
  transition:
    transform 0.35s ease,
    background-color 0.25s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: #b96835;
  color: #fff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 1.5rem 1.5rem;
  color: #607177;
  font-size: 0.85rem;
  line-height: 2;
}

/* ===== دکمه بازگشت به بالا ===== */
#scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ===== ریسپانسیو ===== */
@media (max-width: 1023px) {
  .pricing-card.featured {
    transform: scale(1);
  }

  .pricing-card.featured:hover {
    transform: translateY(-3px);
  }

  .comparison-table {
    font-size: 0.75rem;
  }
}

@media (max-width: 640px) {
  .billing-option {
    padding: 0.55rem 1rem;
    font-size: 0.75rem;
  }

  .price-amount {
    font-size: 2.1rem;
  }

  .calc-price-amount {
    font-size: 2.4rem;
  }
}

/* ===== کاهش حرکت ===== */
@media (prefers-reduced-motion: reduce) {
  .pricing-card,
  .service-price-card,
  .testimonial-card,
  .calc-slider::-webkit-slider-thumb,
  .billing-slider,
  .price-amount {
    transition: none;
    transform: none;
  }
}