/**
 * PS Trade-In & BuyBack Pro - RTL Persian Stylesheet
 * Version: 1.0.11
 * Compatible with Sunnytoo Panda Theme & PrestaShop Classic/Hummingbird
 */
.pstradein-rtl-wrapper {
  direction: rtl;
  text-align: right;
  font-family: 'Vazirmatn', 'IRANSans', Tahoma, sans-serif;
  color: #0f172a;
  margin: 20px auto;
  max-width: 1180px;
  padding: 0 14px;
  box-sizing: border-box;
}
.pstradein-rtl-wrapper *, .pstradein-rtl-wrapper *::before, .pstradein-rtl-wrapper *::after {
  box-sizing: border-box;
}
.pstradein-hero {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  border-radius: 28px;
  padding: 40px 28px;
  text-align: center;
  margin-bottom: 32px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}
.pstradein-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr;
  gap: 24px;
  align-items: center;
}
@media (max-width: 960px) {
  .pstradein-hero-grid {
    grid-template-columns: 1fr;
  }
}
.pstradein-hero-mockup-col {
  display: flex;
  justify-content: center;
}
.pstradein-hero-center-col {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pstradein-phone-frame {
  width: 268px;
  background: #0f172a;
  border-radius: 36px;
  padding: 10px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.16);
  border: 4px solid #334155;
  position: relative;
}
.pstradein-phone-notch {
  width: 84px;
  height: 16px;
  background: #0f172a;
  border-radius: 0 0 12px 12px;
  margin: 0 auto -8px;
  position: relative;
  z-index: 2;
}
.pstradein-phone-screen {
  background: #f8fafc;
  border-radius: 26px;
  padding: 16px 12px 12px;
  text-align: right;
  font-size: 11px;
}
.pstradein-phone-status {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: bold;
  color: #64748b;
  margin-bottom: 10px;
  padding: 0 4px;
}
.pstradein-phone-card-emerald {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid #a7f3d0;
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 10px;
}
.pstradein-phone-card-blue {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  padding: 10px 12px;
  margin-bottom: 8px;
  text-align: center;
}
.pstradein-phone-card-title {
  font-weight: 800;
  font-size: 12px;
  color: #065f46;
  margin-bottom: 3px;
}
.pstradein-phone-card-sub {
  font-size: 10px;
  color: #047857;
  margin-bottom: 8px;
}
.pstradein-phone-voucher-box {
  background: #ffffff;
  border: 1px dashed #34d399;
  border-radius: 10px;
  padding: 6px 8px;
  text-align: center;
}
.pstradein-phone-voucher-box span {
  display: block;
  font-size: 9px;
  color: #64748b;
}
.pstradein-phone-voucher-box strong {
  font-family: monospace;
  font-size: 11px;
  color: #065f46;
}
.pstradein-phone-card-dark {
  background: #0f172a;
  color: #ffffff;
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 8px;
}
.pstradein-phone-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 10px;
}
.pstradein-phone-badge-emerald {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  text-align: center;
  border-radius: 8px;
  padding: 4px;
  font-weight: bold;
  font-size: 10px;
  margin-top: 6px;
}
.pstradein-phone-footer-note {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px;
  font-size: 10px;
  color: #334155;
  font-weight: bold;
}
.pstradein-phone-footer-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #10b981;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
}
.pstradein-phone-mini-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 8px 10px;
}
.pstradein-phone-mini-label {
  display: block;
  font-size: 9px;
  color: #64748b;
}
.pstradein-phone-mini-name {
  display: block;
  font-size: 11px;
  color: #0f172a;
  margin: 2px 0;
}
.pstradein-phone-mini-price {
  display: block;
  font-size: 11px;
  font-weight: 800;
}
.pstradein-phone-swap-divider {
  text-align: center;
  margin: -4px 0;
  position: relative;
  z-index: 2;
}
.pstradein-phone-swap-circle {
  display: inline-flex;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #2563eb;
  color: #ffffff;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  border: 2px solid #ffffff;
}
.pstradein-phone-bottom-bar {
  background: #0f172a;
  color: #ffffff;
  border-radius: 12px;
  padding: 8px 10px;
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
}
.pstradein-phone-bottom-bar strong {
  color: #34d399;
  font-size: 11px;
}
.pstradein-hero-title {
  font-size: 34px;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 8px;
}
.pstradein-hero-subtitle {
  font-size: 20px;
  font-weight: 700;
  color: #334155;
  margin: 0 0 14px;
}
.pstradein-hero-divider {
  width: 180px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #94a3b8, transparent);
  margin: 0 auto 16px;
}
.pstradein-hero-desc {
  max-width: 460px;
  margin: 0 auto 24px;
  font-size: 14px;
  line-height: 1.9;
  color: #475569;
}
.pstradein-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  background: #0f172a;
  color: #ffffff !important;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15);
}
.pstradein-btn-primary:hover {
  background: #1e293b;
  transform: translateY(-1px);
}
.pstradein-track-icon-box, .pstradein-wiz-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pstradein-wiz-icon-box {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}
.pstradein-wizard-card {
  background: #ffffff;
  border-radius: 28px;
  border: 1px solid #cbd5e1;
  padding: 28px;
  max-width: 1020px;
  margin: 0 auto 40px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
}
.pstradein-wizard-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid #e2e8f0;
}
.pstradein-wiz-heading {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 4px;
  color: #0f172a;
}
.pstradein-wiz-sub {
  font-size: 12px;
  color: #64748b;
}
.pstradein-mode-switch {
  display: flex;
  gap: 6px;
  background: #f1f5f9;
  padding: 5px;
  border-radius: 14px;
}
.pstradein-mode-btn {
  border: none;
  background: transparent;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pstradein-mode-btn.active {
  background: #ffffff;
  color: #2563eb;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}
.pstradein-field {
  margin-bottom: 16px;
}
.pstradein-field label {
  display: block;
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 6px;
  color: #1e293b;
}
.pstradein-input, .pstradein-select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-size: 13px;
  background: #fff;
  color: #0f172a;
}
.pstradein-opt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.pstradein-opt-btn {
  text-align: right;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  transition: all 0.15s ease;
}
.pstradein-opt-btn:hover {
  border-color: #94a3b8;
}
.pstradein-opt-btn.selected {
  border: 2px solid #2563eb;
  background: #eff6ff;
  font-weight: bold;
  color: #1e3a8a;
}
.pstradein-opt-radio {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pstradein-opt-btn.selected .pstradein-opt-radio {
  border-color: #2563eb;
  background: #2563eb;
}
.pstradein-opt-btn.selected .pstradein-opt-radio::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
}
.pstradein-ded-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}
.pstradein-ded-badge.zero {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}
.pstradein-ded-badge.deduct {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}
.pstradein-price-bar {
  background: #0f172a;
  color: #fff;
  padding: 16px 20px;
  border-radius: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.pstradein-variant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 8px;
}
.pstradein-variant-btn {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  cursor: pointer;
  text-align: right;
  transition: all 0.15s ease;
}
.pstradein-variant-btn.selected {
  border: 2px solid #2563eb;
  background: #eff6ff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
}
.pstradein-compare-box {
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 50%, #ecfdf5 100%);
  border: 2px solid #bfdbfe;
  border-radius: 22px;
  padding: 20px;
  margin-bottom: 22px;
}
.pstradein-compare-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
}
@media (max-width: 768px) {
  .pstradein-compare-grid {
    grid-template-columns: 1fr;
  }
}
.pstradein-compare-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 14px;
}
.pstradein-compare-swap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0f172a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  margin: 0 auto;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
}
.pstradein-settlement-bar {
  margin-top: 16px;
  background: #0f172a;
  color: #ffffff;
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.pstradein-prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.pstradein-prod-card {
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 16px;
  background: #fff;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.pstradein-prod-card.selected {
  border: 2px solid #2563eb;
  background: rgba(239, 246, 255, 0.45);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.1);
}
/* Wizard Footer Navigation Bar with 5 Circular Stepper Dots */
.pstradein-nav-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
  padding: 16px 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
}
.pstradein-stepper-circles {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pstradein-step-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pstradein-step-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}
.pstradein-step-circle.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 0 0 4px #e2e8f0;
}
.pstradein-step-circle.done {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
}
.pstradein-step-line {
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: #cbd5e1;
}
.pstradein-step-line.done {
  background: #10b981;
}
@media (max-width: 560px) {
  .pstradein-step-line {
    width: 12px;
  }
}

/* SECTION 3: 4 Value Cards ("هوشمندتر گوشی بخر، کمتر هزینه کن") */
.pstradein-values-section {
  max-width: 1080px;
  margin: 48px auto;
  padding: 10px 0;
}
.pstradein-section-header {
  text-align: center;
  margin-bottom: 32px;
}
.pstradein-section-title {
  font-size: 28px;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 10px;
}
.pstradein-section-subtitle {
  font-size: 14px;
  color: #475569;
  margin: 0 auto;
  max-width: 640px;
  line-height: 1.8;
}
.pstradein-value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 960px) {
  .pstradein-value-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .pstradein-value-grid {
    grid-template-columns: 1fr;
  }
}
.pstradein-value-card {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  padding: 28px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
  transition: all 0.2s ease;
}
.pstradein-value-card:hover {
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
  transform: translateY(-2px);
}
.pstradein-value-icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid #1e293b;
  background: #f8fafc;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.pstradein-value-card-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px;
}
.pstradein-value-card-desc {
  font-size: 12.5px;
  line-height: 1.9;
  color: #475569;
  margin: 0;
}

/* SECTION 4: 7-Step Process Timeline ("طرح معاوضه گوشی کارکرده با نو") */
.pstradein-timeline-section {
  max-width: 1080px;
  margin: 56px auto;
  padding: 12px 0;
}
.pstradein-timeline-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 900px) {
  .pstradein-timeline-grid {
    grid-template-columns: 1fr;
  }
}
.pstradein-timeline-info {
  padding-top: 8px;
}
.pstradein-timeline-heading {
  font-size: 28px;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 14px;
}
.pstradein-timeline-desc {
  font-size: 14px;
  line-height: 2;
  color: #475569;
  margin: 0 0 24px;
}
.pstradein-timeline-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pstradein-timeline-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
  transition: all 0.2s ease;
}
.pstradein-timeline-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}
.pstradein-timeline-card-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.pstradein-timeline-num {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 900;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pstradein-timeline-text {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.6;
}
.pstradein-timeline-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #f8fafc;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* SECTION 5: FAQ Accordion ("سوالات متداول") */
.pstradein-faq-section {
  max-width: 920px;
  margin: 56px auto 32px;
}
.pstradein-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pstradein-faq-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02);
}
.pstradein-faq-question {
  width: 100%;
  border: none;
  background: #ffffff;
  padding: 18px 22px;
  text-align: right;
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-family: inherit;
}
.pstradein-faq-question:hover {
  background: #f8fafc;
}
.pstradein-faq-chevron {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.pstradein-faq-item.open .pstradein-faq-chevron {
  background: #0f172a;
  color: #ffffff;
  transform: rotate(180deg);
}
.pstradein-faq-answer {
  display: none;
  padding: 0 22px 18px;
  border-top: 1px solid #f1f5f9;
  font-size: 13px;
  line-height: 2;
  color: #475569;
}
.pstradein-faq-item.open .pstradein-faq-answer {
  display: block;
  padding-top: 14px;
}
