/* --- تنظیمات کلی صفحه گارانتی --- */
body {
  overflow-x: hidden;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-gold {
  color: #ffd700;
}
.text-red {
  color: #c1121f;
}
.text-center {
  text-align: center;
}

/* --- 1. هدر گارانتی (Hero) --- */
.warranty-hero {
  padding: 100px 0 80px 0;
  background: radial-gradient(circle at top right, #1a0505, #0b0b0b 60%);
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.badge-gold {
  background: linear-gradient(45deg, #ffd700, #b8860b);
  color: #000;
  display: inline-block;
  padding: 8px 15px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.1rem;

  letter-spacing: 1px;
  margin-bottom: 20px;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.hero-title {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1.15rem;
  color: #ccc;
  margin-bottom: 30px;
  line-height: 1.7;
}

.trust-icons {
  display: flex;
  gap: 30px;
}

.t-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  color: #fff;
}

.t-icon {
  font-size: 1.5rem;
  color: #ffd700;
}

/* تصویر سه بعدی سپر (Shield) */
.hero-visual {
  position: absolute;
  top: 50%;
  left: 10%; /* سمت چپ تصویر */
  transform: translateY(-50%);
  z-index: 1;
}

.shield-3d {
  width: 250px;
  height: 300px;
  background: linear-gradient(135deg, #1e1e1e, #000);
  border: 2px solid #ffd700;
  border-radius: 0 0 125px 125px; /* شکل سپر */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 50px rgba(255, 215, 0, 0.15);
  animation: float-shield 4s ease-in-out infinite;
}

.shield-inner {
  text-align: center;
}

.shield-logo {
  font-size: 4rem;
  color: #ffd700;
  display: block;
}

.shield-text {
  font-size: 1.3rem;
  font-weight: bold;
  color: #fff;
  letter-spacing: 2px;
}

@keyframes float-shield {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* --- 2. کارت‌های پوشش (Coverage) --- */
.coverage-section {
  padding: 4rem 1.5rem;
  margin-top: 4rem;
}

.sec-header {
  margin-bottom: 2.3rem;
}
.sec-header h2 {
  font-size: 1.8rem;
  line-height: 1.4;
  margin-bottom: 10px;
}
.sec-header p {
  color: #888;
}

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.cov-card {
  background: #151515;
  border: 1px solid #333;
  padding: 30px;
  border-radius: 15px;
  transition: 0.3s;
}

.cov-card:hover {
  transform: translateY(-5px);
  border-color: #555;
}

.cov-card.included {
  border-top: 4px solid #4caf50;
} /* سبز برای شامل */
.cov-card.excluded {
  border-top: 4px solid #c1121f;
} /* قرمز برای عدم شامل */

.cov-icon {
  font-size: 2rem;
  margin-bottom: 15px;
}

.cov-card h3 {
  margin: 0 0 10px 0;
  color: #fff;
  font-size: 1.3rem;
}

.cov-card p {
  color: #b6b6b6;
  font-size: 1.3rem;
  line-height: 1.6;
  margin: 0;
}

/* --- 3. مراحل فرآیند (Process) --- */
.process-section {
  padding: 4rem 2rem;
  margin-top: 5rem;
  background-color: #0f0f0f;
}

.steps-wrapper {
  display: flex;
  justify-content: space-between;
  margin-top: 2.4rem;
  position: relative;
}

/* خط اتصال */
.steps-line {
  position: absolute;
  top: 25px;
  left: 0;
  right: 0;
  height: 2px;
  background: #333;
  z-index: 0;
}

.step-item {
  position: relative;
  z-index: 1;
  text-align: center;
  flex: 1;
  padding: 0 10px;
}

.step-circle {
  width: 50px;
  height: 50px;
  background: #1a1a1a;
  border: 2px solid #c1121f;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.3rem;
  margin: 0 auto 20px auto;
  transition: 0.3s;
}

.step-item:hover .step-circle {
  background: #c1121f;
  box-shadow: 0 0 15px rgba(193, 18, 31, 0.5);
}

.step-item h4 {
  color: #fff;
  margin-bottom: 10px;
  font-size: 1.3rem;
}
.step-item p {
  color: #b5b5b5;
  text-shadow: 0 0 10px #f7f7f7ab;
  font-size: 1.1rem;
}

/* --- 4. باکس فعال‌سازی --- */
.activation-section {
  padding: 80px 0;
}

.activation-box {
  background: linear-gradient(145deg, #1a1a1a, #252525);
  border: 1px solid #c1121f;
  border-radius: 20px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.act-text h3 {
  margin: 0 0 12px 0;
  font-size: 1.5rem;
  color: #ffd700;
}
.act-text p {
  margin: 0;
  line-height: 1.4;
  color: #ccc;
}

.act-form {
  display: flex;
  gap: 12px;
  flex: 1;
}

.act-form input {
  background: #0b0b0b;
  border: 1px solid #444;
  font-family: "vazirmatn";
  font-size: 1.1rem;
  padding: 15px;
  border-radius: 8px;
  color: #fff;
  width: 100%;
  outline: none;
}
.form {
  font-family: "vazirmatn";
}
.btn-gold {
  font-family: "vazirmatn";
  background: #ffd700;
  color: #000;
  border: none;
  padding: 10px 30px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.3s;
}

.btn-gold:hover {
  background: #e6c200;
  transform: translateY(-2px);
}

/* --- رسپانسیو --- */
@media (max-width: 992px) {
  .coverage-grid {
    grid-template-columns: 1fr;
  }

  .activation-box {
    flex-direction: column;
    text-align: center;
  }
  .act-form {
    flex-direction: column;
    width: 100%;
  }

  .hero-visual {
    display: none;
  } /* حذف سپر در تبلت و موبایل */
  .hero-content {
    text-align: center;
    margin: 0 auto;
  }
  .trust-icons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .steps-wrapper {
    flex-direction: column;
    gap: 30px;
  }
  .steps-line {
    width: 2px;
    height: 100%;
    top: 0;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
  .hero-title {
    font-size: 2.2rem;
  }
}

/* --- استایل سکشن مقایسه گارانتی --- */

.warranty-compare-section {
  padding: 1rem 0;
  margin-top: 3.5rem;
  background-color: #0d0d0d;
}

.compare-header {
  margin-bottom: 2.5rem;
}

.compare-header h2 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 10px;
}

.compare-header p {
  color: #888;
  font-size: 1.1rem;
}

/* کانتینر جدول برای اسکرول در موبایل */
.table-wrapper {
  overflow-x: auto;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid #333;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px; /* حداقل عرض برای خوانایی */
  background-color: #1a1a1a;
}

/* هدر جدول */
.compare-table th {
  padding: 20px;
  font-size: 1.3rem;
  color: #fff;
}

.criteria-col {
  background-color: #222;
  text-align: right;
  width: 30%;
}

.others-col {
  background-color: #2a2a2a;
  color: #aaa;
  width: 35%;
}

.automac-col {
  background: linear-gradient(145deg, #1a1a1a, #2b2b00); /* تم طلایی تیره */
  color: #ffd700 !important;
  width: 35%;
  border-top: 4px solid #ffd700;
  position: relative;
  font-weight: bold;
  font-size: 1.3rem;
}

.crown-icon {
  font-size: 1.5rem;
  margin-left: 5px;
}

/* بدنه جدول */
.compare-table td {
  padding: 15px 20px;
  border-bottom: 1px solid #333;
  color: #ccc;
  font-size: 1.3rem;
}

.compare-table tr:last-child td {
  border-bottom: none;
}

/* استایل سلول‌های مثبت و منفی */
.negative {
  color: #ff6b6b; /* قرمز روشن */
  background-color: rgba(255, 0, 0, 0.05);
  text-align: center;
}

.positive {
  color: #4caf50; /* سبز */
  background-color: rgba(76, 175, 80, 0.05);
  font-weight: bold;
  text-align: center;
  position: relative;
}

/* آیکون چک مارک محو در پس زمینه ستون مثبت */
.positive::after {
  content: "✔";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: rgba(76, 175, 80, 0.1);
  z-index: 0;
  pointer-events: none;
}

/* ردیف آخر */
.last-row td {
  border-bottom: none;
}

/* باکس دانلود شرایط */
.terms-download {
  margin-top: 30px;
  text-align: center;
  font-size: 1.1rem;

  color: #888;
}

.link-gold {
  color: #ffd700;
  text-decoration: none;
  border-bottom: 1px dashed #ffd700;
  margin-right: 10px;
  transition: 0.3s;
}

.link-gold:hover {
  color: #fff;
  border-color: #fff;
}

/* --- ریسپانسیو --- */
@media (max-width: 768px) {
  .compare-table th,
  .compare-table td {
    padding: 12px;
    font-size: 0.98rem;
  }

  .criteria-col {
    position: sticky;
    left: 0;
    background-color: #222;
    z-index: 2;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
  }
}

/* --- استایل سوالات متداول گارانتی --- */

.warranty-faq-section {
  padding: 80px 0;
  background-color: #0b0b0b; /* مشکی خالص */
  border-top: 1px solid #222;
}

.w-faq-header {
  margin-bottom: 50px;
}

.w-faq-header h2 {
  font-size: 2rem;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 10px;
}

.w-faq-header p {
  color: #888;
  font-size: 1.3rem;
}

.text-gold {
  color: #ffd700;
}

.w-faq-grid {
  max-width: 800px;
  margin: 0 auto;
}

.w-faq-item {
  margin-bottom: 15px;
  border: 1px solid #333;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  background-color: #151515;
}

/* دکمه سوال */
.w-faq-btn {
  width: 100%;
  padding: 20px;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #e0e0e0;
  font-size: 1.3rem;
  font-weight: bold;
  cursor: pointer;
  text-align: right;
  transition: 0.3s;
  font-family: inherit;
}

.w-icon {
  font-style: normal;
  font-size: 1.5rem;
  color: #ffd700; /* آیکون طلایی */
  transition: transform 0.3s ease;
}

/* هاور روی دکمه */
.w-faq-btn:hover {
  color: #fff;
  background-color: #1a1a1a;
}

/* محتوای جواب */
.w-faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  background-color: #111;
  border-top: 1px solid transparent;
}

.w-faq-content p {
  padding: 20px;
  margin: 0;
  color: #aaa;
  line-height: 1.8;
  font-size: 1.4rem;
}

.w-faq-content strong {
  color: #ffd700;
}

/* --- حالت فعال (Active) --- */
.w-faq-item.active {
  border-color: #ffd700; /* حاشیه طلایی وقتی باز است */
  box-shadow: 0 5px 20px rgba(255, 215, 0, 0.1);
}

.w-faq-item.active .w-faq-btn {
  color: #ffd700;
  background-color: rgba(255, 215, 0, 0.05);
}

.w-faq-item.active .w-icon {
  transform: rotate(45deg); /* چرخش مثبت به ضربدر */
}

.w-faq-item.active .w-faq-content {
  border-top-color: #333;
}

/* ریسپانسیو */
@media (max-width: 768px) {
  .w-faq-btn {
    font-size: 1.3rem;
    padding: 15px;
  }
  .w-faq-content p {
    font-size: 1.25rem;
  }
}
