/* ========================================
   PRICING SECTION
======================================== */

.pricing-section {
  position: relative;
  padding: 10px 0;
  overflow: hidden;
}

.pricing-section::before {
  content: "";
  position: absolute;
  top: 15%;
  right: -150px;
  width: 350px;
  height: 350px;
  background: rgba(59, 130, 246, 0.09);
  filter: blur(100px);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

.pricing-section::after {
  content: "";
  position: absolute;
  bottom: 5%;
  left: -150px;
  width: 300px;
  height: 300px;
  background: rgba(6, 182, 212, 0.07);
  filter: blur(100px);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

.pricing-grid {
  position: relative;
}

/* کارت تعرفه */

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 30px 26px;
  overflow: hidden;
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 22px;
  background: rgba(12, 19, 36, 0.82);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(17, 29, 51, 0.95);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22);
}

/* کارت پیشنهادی */

.pricing-card.featured {
  border-color: rgba(34, 211, 238, 0.55);
  background:
    linear-gradient(
      160deg,
      rgba(30, 64, 110, 0.55),
      rgba(12, 19, 36, 0.94) 55%
    );
  box-shadow:
    0 0 35px rgba(59, 130, 246, 0.1),
    inset 0 1px 0 rgba(103, 232, 249, 0.12);
}

.pricing-card.featured:hover {
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.25),
    0 0 35px rgba(59, 130, 246, 0.15);
}

.pricing-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 7px;
  margin-bottom: 20px;
  padding: 7px 12px;
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 30px;
  background: rgba(6, 182, 212, 0.09);
  color: #67e8f9;
  font-size: 0.78rem;
  font-weight: 700;
}

.pricing-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 16px;
  background: rgba(59, 130, 246, 0.1);
  font-size: 1.65rem;
}

.pricing-card h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.8;
}

.pricing-description {
  min-height: 58px;
  margin-bottom: 25px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 2;
}

/* مبلغ */

.pricing-price {
  padding: 20px 0;
  margin-bottom: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.13);
  border-bottom: 1px solid rgba(148, 163, 184, 0.13);
}

.pricing-price-label {
  display: block;
  margin-bottom: 9px;
  color: #94a3b8;
  font-size: 0.85rem;
}

.pricing-price-value {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px;
}

.pricing-price-value strong {
  color: #f8fafc;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.5px;
}

.pricing-price-value span {
  color: #94a3b8;
  font-size: 0.85rem;
}

.pricing-custom-price {
  color: #67e8f9 !important;
  font-size: 1.4rem !important;
  line-height: 1.8;
}

/* امکانات هر بسته */

.pricing-features-title {
  margin-bottom: 17px;
  color: #e2e8f0;
  font-size: 0.92rem;
  font-weight: 700;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #cbd5e1;
  font-size: 0.87rem;
  line-height: 1.9;
}

.pricing-features li::before {
  content: "✓";
  flex-shrink: 0;
  color: #4ade80;
  font-weight: 800;
}

/* دکمه */

.pricing-button {
  width: 100%;
  margin-top: auto;
  text-align: center;
}

/* توضیح شرایط قیمت */

.pricing-disclaimer {
  max-width: 850px;
  margin: 35px auto 0;
  padding: 20px 24px;
  border: 1px solid rgba(96, 165, 250, 0.17);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.52);
}

.pricing-disclaimer p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 2.2;
}

.pricing-disclaimer strong {
  color: #e2e8f0;
}

/* معرفی برآوردگر */

.pricing-estimator-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-top: 45px;
  padding: 28px 30px;
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 20px;
  background:
    linear-gradient(
      110deg,
      rgba(37, 99, 235, 0.14),
      rgba(6, 182, 212, 0.06)
    );
}

.pricing-estimator-banner h3 {
  margin-bottom: 9px;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.8;
}

.pricing-estimator-banner p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 2;
}

/* واکنش‌گرایی */

@media (max-width: 767.98px) {
  .pricing-section {
    padding: 65px 0;
  }

  .pricing-card {
    padding: 25px 22px;
  }

  .pricing-description {
    min-height: auto;
  }

  .pricing-estimator-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 24px 20px;
  }

  .pricing-estimator-banner .btn-tech {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pricing-card {
    transition: none;
  }
}


/* ========================================
   PRICE ESTIMATOR
======================================== */

.estimator-section {
  position: relative;
  padding: 90px 0;
  overflow: hidden;
}

.estimator-wrapper {
  max-width: 1050px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 26px;
  background: rgba(12, 19, 36, 0.88);
  box-shadow:
    0 25px 70px rgba(0, 0, 0, 0.22),
    0 0 35px rgba(59, 130, 246, 0.06);
}

.estimator-header {
  padding: 30px;
  border-bottom: 1px solid rgba(96, 165, 250, 0.16);
  background: linear-gradient(
    110deg,
    rgba(37, 99, 235, 0.13),
    rgba(6, 182, 212, 0.05)
  );
}

.estimator-header h3 {
  margin-bottom: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.8;
}

.estimator-header p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 2;
}

.estimator-body {
  padding: 30px;
}

.estimator-step {
  margin-bottom: 32px;
}

.estimator-step:last-child {
  margin-bottom: 0;
}

.estimator-step-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.estimator-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 10px;
  background: rgba(6, 182, 212, 0.1);
  color: #67e8f9;
  font-size: 0.9rem;
  font-weight: 800;
}

.estimator-step-title h4 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.8;
}

.estimator-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.estimator-type-option {
  position: relative;
  display: block;
  cursor: pointer;
}

.estimator-type-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.estimator-type-card {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  height: 100%;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 15px;
  background: rgba(15, 23, 42, 0.48);
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.estimator-type-option:hover .estimator-type-card {
  border-color: rgba(96, 165, 250, 0.45);
}

.estimator-type-option input:checked + .estimator-type-card {
  border-color: #22d3ee;
  background: rgba(8, 145, 178, 0.12);
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.15);
}

.estimator-type-option input:focus-visible + .estimator-type-card {
  outline: 2px solid #67e8f9;
  outline-offset: 3px;
}

.estimator-type-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.1);
  font-size: 1.3rem;
}

.estimator-type-content strong {
  display: block;
  margin-bottom: 5px;
  color: #f1f5f9;
  font-size: 0.93rem;
  line-height: 1.8;
}

.estimator-type-content small {
  display: block;
  color: #94a3b8;
  font-size: 0.8rem;
  line-height: 1.9;
}

/* گزینه‌های امکانات */

.estimator-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.estimator-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 15px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 13px;
  background: rgba(15, 23, 42, 0.35);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.estimator-checkbox:hover {
  border-color: rgba(96, 165, 250, 0.35);
}

.estimator-checkbox:has(input:checked) {
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(6, 182, 212, 0.07);
}

.estimator-checkbox input {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 5px;
  accent-color: #06b6d4;
  cursor: pointer;
}

.estimator-checkbox span {
  color: #cbd5e1;
  font-size: 0.88rem;
  line-height: 1.9;
}

/* انتخاب سطح پروژه */

.estimator-select {
  width: 100%;
  min-height: 52px;
  padding: 12px 15px;
  border: 1px solid rgba(96, 165, 250, 0.25);
  border-radius: 12px;
  background-color: #0c1324;
  color: #f1f5f9;
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.8;
}

.estimator-select:focus {
  border-color: #22d3ee;
  outline: 2px solid rgba(34, 211, 238, 0.15);
}

.estimator-select option {
  background: #0c1324;
  color: #f1f5f9;
}

.estimator-field-label {
  display: block;
  margin-bottom: 12px;
  color: #e2e8f0;
  font-size: 0.92rem;
  font-weight: 700;
}

/* نتیجه محاسبه */

.estimator-result {
  margin-top: 35px;
  padding: 26px;
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 20px;
  background:
    linear-gradient(
      135deg,
      rgba(37, 99, 235, 0.14),
      rgba(6, 182, 212, 0.06)
    );
}

.estimator-result-label {
  display: block;
  margin-bottom: 12px;
  color: #cbd5e1;
  font-size: 0.92rem;
}

.estimator-result-price {
  display: block;
  margin-bottom: 12px;
  color: #67e8f9;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 900;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.estimator-result-description {
  margin: 0;
  color: #a8b4c7;
  font-size: 0.87rem;
  line-height: 2.1;
}

.estimator-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.estimator-reset {
  padding: 12px 20px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  background: transparent;
  color: #cbd5e1;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}

.estimator-reset:hover {
  background: rgba(148, 163, 184, 0.08);
}

.estimator-disclaimer {
  margin-top: 20px;
  color: #94a3b8;
  font-size: 0.8rem;
  line-height: 2.1;
}

@media (max-width: 767.98px) {
  .estimator-section {
    padding: 65px 0;
  }

  .estimator-header,
  .estimator-body {
    padding: 22px;
  }

  .estimator-type-grid,
  .estimator-options {
    grid-template-columns: 1fr;
  }

  .estimator-type-card {
    padding: 15px;
  }

  .estimator-result {
    padding: 20px;
  }

  .estimator-result-actions {
    flex-direction: column;
  }

  .estimator-result-actions > * {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .estimator-type-card,
  .estimator-checkbox {
    transition: none;
  }
}