/* =========================================================
   ریحانه — Warranty Management System
   Public Website CSS v4.0.0 — Light Indigo Redesign
   Font: Vazirmatn (self-hosted, no CDN)
   ========================================================= */

@font-face { font-family:'Vazirmatn'; src:url('../fonts/Vazirmatn-Regular.woff2') format('woff2'); font-weight:400; font-display:swap; }
@font-face { font-family:'Vazirmatn'; src:url('../fonts/Vazirmatn-Medium.woff2') format('woff2'); font-weight:500; font-display:swap; }
@font-face { font-family:'Vazirmatn'; src:url('../fonts/Vazirmatn-Bold.woff2') format('woff2'); font-weight:700; font-display:swap; }
@font-face { font-family:'Vazirmatn'; src:url('../fonts/Vazirmatn-ExtraBold.woff2') format('woff2'); font-weight:800; font-display:swap; }

/* ─── Tokens ─────────────────────────────────────────── */
:root {
  --primary:       #4F46E5;
  --primary-hover: #4338CA;
  --primary-deep:  #3730A3;
  --primary-soft:  #E7E4FB;
  --secondary:     #6D63EE;
  --accent:        #F59E0B;
  --accent-light:  #FDE68A;
  --success:       #059669;
  --danger:        #DC2626;
  --warning:       #F59E0B;

  --bg:       #ECEBF6;
  --bg-white: #FBFAFF;
  --ink:      #241F3D;
  --ink-soft: #6E698C;
  --border:   #DEDBF0;

  --shadow-sm:    0 2px 10px rgba(49,41,92,.06);
  --shadow-md:    0 14px 32px -12px rgba(49,41,92,.16);
  --shadow-lg:    0 28px 60px -20px rgba(49,41,92,.26);
  --shadow-hover: 0 20px 44px -14px rgba(79,70,229,.28);

  --r-btn:  12px;
  --r-input:12px;
  --r-card: 18px;
  --r-lg:   22px;
  --r-img:  18px;

  --font: 'Vazirmatn', Tahoma, 'IRANSans', Arial, sans-serif;
  --mono: 'Courier New', monospace;
  --ease: cubic-bezier(.22,1,.36,1);
  --transition: .3s var(--ease);

  /* نام‌های قدیمی متغیرها (alias) برای سازگاری با کدهای دیگر پروژه */
  --white: #FFFFFF;
  --navy:  var(--primary);
  --navy-deep: #1A0E6B;
  --gold:  var(--accent);
  --green: var(--success);
  --red:   var(--danger);
}

/* ─── Reset ──────────────────────────────────────────── */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }

html { scroll-behavior:smooth; }

body {
  font-family: var(--font);
  font-size: clamp(15px, 2.2vw, 16px);
  line-height: 1.9;
  background: var(--bg);
  color: var(--ink);
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration:none; color:inherit; transition:color var(--transition); }
img { max-width:100%; display:block; }
button { font-family:var(--font); }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}

/* ─── Header ─────────────────────────────────────────── */
.site-header {
  background: rgba(251,250,255,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 500;
  transition: box-shadow var(--transition), background var(--transition);
}
.site-header.scrolled,
.site-header:hover { box-shadow: var(--shadow-sm); background: rgba(251,250,255,.97); }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 70px;
  gap: 36px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: clamp(17px, 3vw, 20px);
  color: var(--ink);
  letter-spacing: -.3px;
  flex-shrink: 0;
}
.brand img { height: 34px; width: auto; }
.brand .badge {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px;
  flex-shrink: 0;
  transition: transform var(--transition);
}
.brand:hover .badge { transform: rotate(-6deg) scale(1.06); }
.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.main-nav a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: 10px;
  transition: background var(--transition), color var(--transition);
  min-height: 44px;
  display: flex; align-items: center;
}
.main-nav a:hover { background: var(--primary-soft); color: var(--primary); }
.main-nav a.active { background: var(--primary-soft); color: var(--primary); font-weight: 700; }

/* همبرگر موبایل */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: var(--primary-soft);
  border: none; border-radius: 10px;
  cursor: pointer;
  flex-shrink: 0;
  margin-right: auto;
}
.nav-toggle span {
  width: 18px; height: 2px;
  background: var(--primary);
  margin: 0 auto;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--r-btn);
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
  line-height: 1;
  min-height: 44px;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--primary-hover); box-shadow: var(--shadow-hover); }

.btn-secondary {
  background: var(--bg-white);
  color: var(--primary);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { border-color: var(--primary); background: var(--primary-soft); }

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.45);
}
.btn-outline:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.7); }

/* دکمه‌ی outline خارج از هرو تیره (روی زمینه‌ی روشن) باید خوانا بماند */
.form-card .btn-outline,
.result-card .btn-outline,
.ticket + div .btn-outline,
.container > div > .btn-outline {
  color: var(--primary);
  border-color: var(--border);
}
.form-card .btn-outline:hover,
.result-card .btn-outline:hover,
.ticket + div .btn-outline:hover,
.container > div > .btn-outline:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
}

.btn-danger { background: var(--danger); color: #fff; box-shadow: 0 4px 14px rgba(220,38,38,.3); }
.btn-danger:hover { background: #B91C1C; }

.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 13.5px; border-radius: 10px; min-height: 38px; }
.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ─── Hero / Slider ──────────────────────────────────── */
.slider {
  position: relative;
  background: linear-gradient(180deg, #F1EDFC 0%, var(--bg) 100%);
  color: var(--ink);
  overflow: hidden;
  min-height: clamp(420px, 58vw, 520px);
}
.slider::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 95% 5%, rgba(79,70,229,.10) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 5% 95%, rgba(5,150,105,.08) 0%, transparent 60%);
}
.slide-track {
  display: flex;
  direction: ltr;
  transition: transform .6s var(--ease);
}
.slide-track .slide { direction: rtl; }
.slide {
  min-width: 100%;
  display: flex;
  align-items: center;
  min-height: clamp(420px, 58vw, 520px);
  padding: clamp(40px, 6vw, 80px) 0;
  position: relative; z-index: 1;
}
.slide-inner {
  display: flex;
  align-items: center;
  gap: clamp(24px, 5vw, 56px);
  width: 100%;
}
.slide-content { flex: 1; min-width: 0; }
.slide-image {
  flex: 0 0 clamp(280px, 42%, 460px);
  max-width: 460px;
  position: relative;
  animation: float 6s ease-in-out infinite;
}
.slide-image.has-photo {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-illustration { animation: float 6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .slide-image, .hero-illustration, .seal, .seal-ring { animation: none !important; }
}
.slide-image img { width: 100%; height: clamp(220px, 30vw, 340px); object-fit: cover; display: block; }
.slide-illustration {
  width: 100%;
  height: clamp(240px, 34vw, 380px);
  display: flex; align-items: center; justify-content: center;
}
.slide-illustration svg { width: 100%; height: 100%; }

/* نشان امضا — مهر متحرک «ضمانت رسمی» روی گوشه‌ی تصویر اسلاید (فقط وقتی تصویر کنار متن هست) */
.seal {
  position: absolute; z-index: 3; bottom: -26px; left: -26px;
  width: 116px; height: 116px; border-radius: 50%;
  background: var(--bg-white);
  box-shadow: 0 16px 30px -10px rgba(49,41,92,.24);
  display: flex; align-items: center; justify-content: center;
  transform: rotate(-8deg);
  transition: transform var(--transition);
  animation: sealBob 5s ease-in-out infinite;
}
.slide-image:hover .seal { transform: rotate(0deg) scale(1.05); }
.seal-ring {
  position: absolute; inset: 7px; border-radius: 50%;
  border: 1.5px dashed var(--success);
  animation: sealSpin 18s linear infinite;
}
@keyframes sealSpin { to { transform: rotate(360deg); } }
@keyframes sealBob { 0%,100% { transform: rotate(-8deg) translateY(0); } 50% { transform: rotate(-8deg) translateY(-8px); } }
.seal-inner {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--success); text-align: center;
}
.seal-inner svg { width: 24px; height: 24px; }
.seal-inner b { font-size: 12px; font-weight: 800; line-height: 1.3; }
.seal-inner span { font-size: 9.5px; color: #10B981; font-weight: 600; }
@media (max-width: 480px) { .seal { width: 88px; height: 88px; bottom: -16px; left: -16px; } .seal-inner svg{width:18px;height:18px} .seal-inner b{font-size:10px} .seal-inner span{font-size:8px} }

.slide[data-bg] { background-size: cover; background-position: center; }
.slide[data-bg]::after {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, rgba(55,48,163,.85) 0%, rgba(55,48,163,.55) 55%, transparent 100%);
}
.slide[data-bg] .slide-inner { position: relative; z-index: 1; }
.slide[data-bg] .slide-content,
.slide[data-bg] h1,
.slide[data-bg] p { color: #fff; }
.slide[data-bg] .slide-eyebrow { color: #fff; }

.slide-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}
.slide-eyebrow::before { content:''; width:16px; height:2px; background:var(--primary); border-radius:2px; }
.slide h1 {
  font-size: clamp(26px, 5.5vw, 46px);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 16px;
  letter-spacing: -.5px;
  color: var(--ink);
}
/* کلمه‌ی هایلایت‌شده داخل تیتر — استاندارد طراحی:
   متن اصلی مشکی (var(--ink))، فقط کلمه‌ی کلیدی با <em> یا <span class="hl"> آبی/ایندیگو می‌شود. */
.slide h1 em, .slide h1 .hl,
h1 em, h1 .hl, h2 em, h2 .hl {
  color: var(--primary);
  font-style: normal;
}
.slide[data-bg] h1 em, .slide[data-bg] h1 .hl { color: #A5B4FC; }
.slide p {
  font-size: clamp(14px, 2.2vw, 16.5px);
  color: var(--ink-soft);
  margin-bottom: 28px;
  max-width: 500px;
  line-height: 1.85;
}
.slide-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.slide-actions .btn { min-width: 150px; }
.slide-actions .btn-outline { color: var(--ink); border-color: var(--border); background: var(--bg-white); }
.slide-actions .btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }

/* فرم استعلام سریع داخل هرو — پست مستقیم به check.php */
.quick-check { display:flex; gap:10px; flex-wrap:wrap; max-width:480px; margin:18px 0 6px; }
.quick-check input {
  flex:1; min-width:130px; padding:13px 16px; border-radius:12px;
  border:1.5px solid var(--border); background:var(--bg-white);
  font-family:var(--font); font-size:14px; color:var(--ink);
  transition:border-color var(--transition), box-shadow var(--transition);
}
.quick-check input::placeholder { color:#A6A1C4; }
.quick-check input:focus { outline:none; border-color:var(--primary); box-shadow:0 0 0 4px var(--primary-soft); }
.quick-check button { flex-shrink:0; }
@media (max-width: 768px) { .quick-check { justify-content:center; margin-left:auto; margin-right:auto; } }

/* Slider controls */
.slider-dots {
  position: absolute;
  bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 2;
}
.slider-dots button {
  width: 8px; height: 8px;
  border-radius: 50%; border: none;
  background: var(--border);
  cursor: pointer; padding: 0;
  transition: background var(--transition), width var(--transition);
}
.slider-dots button.active { background: var(--primary); width: 26px; border-radius: 4px; }

.slider-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 2;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 1px solid var(--border);
  color: var(--ink-soft);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.slider-arrow:hover { border-color: var(--primary); color: var(--primary); }
.slider-arrow.prev { right: 24px; }
.slider-arrow.next { left: 24px; }

/* ─── Sections ───────────────────────────────────────── */
.section { padding: clamp(52px, 8vw, 88px) 0; }
.section-head { text-align: center; max-width: 600px; margin: 0 auto clamp(36px, 6vw, 56px); }

/* آیکون/ایلوستریشن مخصوص هر صفحه — بالای عنوان هر صفحه، برای تشخیص بصری صفحات از هم (بدون کادر/پس‌زمینه، تمام فضای ممکن را می‌گیرد) */
.page-icon {
  width: 100%;
  max-width: clamp(220px, 34vw, 340px);
  margin: 0 auto 24px;
  display: flex; align-items: center; justify-content: center;
}
.page-icon svg { width: 100%; height: auto; display: block; }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  justify-content: center;
}
.section-eyebrow::before { content:''; width:16px; height:2px; background:var(--primary); border-radius:2px; }
.section-head h2 {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 800;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 12px;
}
.section-head p { color: var(--ink-soft); font-size: clamp(14.5px, 2.2vw, 16px); }

/* ─── Features ───────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 3vw, 28px);
}
.feature-card {
  background: var(--bg-white);
  border-radius: var(--r-card);
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  display: flex; flex-direction: column;
}
.feature-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-6px); border-color: #C7BEF2; }
.feature-card .icon,
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 13px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.feature-card:hover .icon,
.feature-card:hover .feature-icon { background: var(--primary); color: #fff; transform: scale(1.06) rotate(-4deg); }
.feature-card h3 { font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.feature-card p  { color: var(--ink-soft); font-size: 14.5px; line-height: 1.8; margin: 0; }

/* ─── Statistics ─────────────────────────────────────── */
.stats-section {
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary) 100%);
  padding: clamp(48px, 7vw, 72px) 0;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.stat-block {
  color: #fff;
  text-align: center;
  padding: clamp(20px, 4vw, 32px);
  border-left: 1px solid rgba(255,255,255,.14);
  transition: background var(--transition);
}
.stat-block:last-child { border-left: none; }
.stat-block:hover { background: rgba(255,255,255,.06); }
.stat-number { font-size: clamp(36px, 6vw, 52px); font-weight: 800; line-height: 1; margin-bottom: 8px; }
.stat-label  { font-size: 14px; opacity: .8; font-weight: 500; }

/* ─── Products ───────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: clamp(14px, 2.5vw, 24px);
}
.product-card {
  background: var(--bg-white);
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
  text-align: center;
}
.product-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.product-card img { width: 100%; height: clamp(140px, 20vw, 180px); object-fit: cover; }
.product-placeholder {
  height: clamp(140px, 20vw, 180px);
  background: var(--primary-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 42px;
  color: var(--primary);
}
.product-card-body { padding: 18px 16px; }
.product-card h3 { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.product-card .cat {
  display: inline-block;
  font-size: 12px; font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 3px 12px; border-radius: 40px;
}

/* ─── Warranty Terms — سبک سند رسمی ───────────────────── */
.warranty-terms-section { background: var(--bg); }
.warranty-terms-box,
.section .form-card {
  background: var(--bg-white);
  border-radius: var(--r-lg);
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--border);
  position: relative;
}
.warranty-terms-box::before,
.section .form-card::before {
  content: '';
  position: absolute; inset: 10px;
  border: 1.5px dashed #C7BEF2;
  border-radius: 14px;
  pointer-events: none;
}
.warranty-terms-box p { color: var(--ink-soft); font-size: 15.5px; line-height: 2; position: relative; }

/* ─── Repair Features ────────────────────────────────── */
.repair-features-section { background: var(--bg-white); }

/* ─── Agents CTA ─────────────────────────────────────── */
.agents-cta-section {
  background: linear-gradient(135deg, var(--primary-deep) 0%, #1B1733 100%);
  color: #fff;
  padding: clamp(52px, 8vw, 80px) 0;
}
.agents-cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 48px);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-lg);
  padding: clamp(28px, 5vw, 48px);
  backdrop-filter: blur(6px);
}
.agents-cta-text h2 { font-size: clamp(20px, 3.5vw, 26px); font-weight: 800; margin-bottom: 10px; }
.agents-cta-text p  { color: rgba(255,255,255,.72); font-size: clamp(14px, 2vw, 15.5px); margin: 0; max-width: 500px; }
.agents-cta-box .btn-primary { flex-shrink: 0; }

/* ─── CTA Register ───────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: #fff;
  text-align: center;
  padding: clamp(60px, 9vw, 96px) 0;
}
.cta-section h2 { font-size: clamp(24px, 4.5vw, 36px); font-weight: 800; margin-bottom: 14px; }
.cta-section p  { font-size: clamp(14.5px, 2.2vw, 17px); opacity: .85; margin-bottom: 36px; }

/* ─── Content Sections (تصویر + متن قابل ویرایش) ───────── */
.content-section-block {
  padding: clamp(52px, 7vw, 80px) 0;
  background: var(--bg-white);
}
.content-section-block.cs-alt { background: var(--bg); }
.cs-inner {
  display: flex;
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
}
.cs-inner.cs-reverse { flex-direction: row-reverse; }
.cs-text { flex: 1; min-width: 0; }
.cs-title {
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 800;
  line-height: 1.4;
  margin: 12px 0 16px;
  color: var(--ink);
}
.cs-title strong, .cs-body strong { font-weight: 800; color: var(--ink); }
.cs-title .text-gray, .cs-body .text-gray { color: var(--ink-soft); font-weight: 500; }
.cs-title .text-accent, .cs-body .text-accent { color: var(--primary); font-weight: 700; }
.cs-title em, .cs-body em { font-style: normal; color: var(--primary); }
.cs-body {
  font-size: clamp(14.5px, 2.2vw, 16px);
  color: var(--ink-soft);
  line-height: 1.9;
}
.cs-media { flex: 0 0 clamp(240px, 42%, 480px); max-width: 480px; }
.cs-media img {
  width: 100%;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  object-fit: cover;
}
@media (max-width: 768px) {
  .cs-inner, .cs-inner.cs-reverse { flex-direction: column; gap: 28px; }
  .cs-media { flex: none; max-width: 100%; width: 100%; }
}

/* ─── Brands Slider ──────────────────────────────────── */
.brands-section {
  background: var(--bg-white);
  padding: clamp(36px, 6vw, 56px) 0;
  border-top: 1px solid var(--border);
  overflow: hidden;
}

/* ─── Forms ──────────────────────────────────────────── */
.form-section { background: var(--bg); }
.form-card {
  background: var(--bg-white);
  border-radius: var(--r-lg);
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  max-width: 700px;
  margin: 0 auto;
}
.form-card h1 { font-size: clamp(20px, 3.5vw, 24px); font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.form-card .sub { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 28px; }

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 14px; font-weight: 700; color: var(--ink);
  margin-bottom: 8px;
}
.req { color: var(--danger); margin-right: 2px; }
.hint { font-size: 12.5px; color: var(--ink-soft); margin-top: 6px; line-height: 1.7; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-input);
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  min-height: 48px;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
  background: var(--bg-white);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-row { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; }

/* جداکننده‌ی بخش داخل فرم (اختیاری، برای استفاده در آینده) */
.form-divider { display:flex; align-items:center; gap:12px; margin:32px 0 22px; color:var(--ink-soft); font-size:13px; font-weight:700; }
.form-divider::before,.form-divider::after { content:''; flex:1; height:1px; background:var(--border); }

/* Alerts */
.alert {
  padding: 15px 18px;
  border-radius: 14px;
  font-size: 14px;
  margin-bottom: 20px;
  border-right: 4px solid;
  line-height: 1.7;
}
.alert-error   { background: #FEF2F2; border-color: var(--danger);  color: #991B1B; }
.alert-success { background: #ECFDF5; border-color: var(--success); color: #065F46; }
.alert-warning { background: #FFFBEB; border-color: var(--warning); color: #92400E; }

/* Badges */
.badge-status {
  display: inline-flex; align-items: center;
  padding: 4px 12px;
  border-radius: 40px;
  font-size: 12.5px; font-weight: 700;
}
.badge-status.active  { background: #D1FAE5; color: #065F46; }
.badge-status.expired { background: #FEE2E2; color: #991B1B; }
.badge-status.pending { background: #FEF3C7; color: #92400E; }
.badge-status.inactive{ background: var(--bg); color: var(--ink-soft); }

/* ─── Ticket (پیام موفقیت پس از ثبت فرم) ─────────────── */
.ticket {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 48px);
  text-align: center;
}
.ticket .check {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg,#10B981,var(--success));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 800;
  margin: 0 auto 18px;
  box-shadow: 0 12px 30px rgba(5,150,105,.32);
}
.ticket h2 { font-size: 19px; font-weight: 800; margin-bottom: 8px; color: var(--ink); }
.ticket p { color: var(--ink-soft); font-size: 14px; margin-bottom: 18px; }
.ticket .code-box {
  font-family: var(--mono);
  font-size: 22px; font-weight: 800;
  letter-spacing: 2px;
  color: var(--primary-deep);
  background: var(--primary-soft);
  border: 1.5px dashed var(--primary);
  border-radius: 14px;
  padding: 14px 20px;
  margin-bottom: 16px;
  direction: ltr;
}
.ticket .meta { font-size: 13.5px; color: var(--ink-soft); line-height: 1.9; }

/* ─── File Drop (آپلود فاکتور) ───────────────────────── */
.file-drop {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center;
  border: 1.5px dashed var(--border);
  border-radius: 14px;
  padding: 28px 20px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.file-drop:hover, .file-drop.dragover { border-color: var(--primary); background: var(--primary-soft); }
.file-drop .icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px;
}
.file-drop .filename { font-size: 12.5px; font-weight: 700; color: var(--success); min-height: 16px; }
.file-drop input[type="file"] { display: none; }

/* ─── Result Card ────────────────────────────────────── */
.result-card {
  background: var(--bg-white);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(26px, 4vw, 36px) clamp(22px, 4vw, 42px);
}
.result-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff;
  padding: clamp(22px, 4vw, 32px);
  display: flex; align-items: center; gap: 16px;
  margin: calc(-1 * clamp(26px, 4vw, 36px)) calc(-1 * clamp(22px, 4vw, 42px)) 24px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.result-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0;
}
.result-body { padding: 0; }

.result-status { display:flex; align-items:center; gap:9px; font-weight:800; font-size:16px; margin-bottom:24px; }
.status-dot { width:10px; height:10px; border-radius:50%; background:var(--primary); box-shadow:0 0 0 4px var(--primary-soft); }
.status-dot.expired { background:var(--danger); box-shadow:0 0 0 4px #FEE2E2; }

/* روند ۵ مرحله‌ای تعمیر */
.repair-progress { display:flex; align-items:flex-start; justify-content:space-between; position:relative; padding:0 4px; }
.repair-progress::before { content:''; position:absolute; top:11px; right:6%; left:6%; height:2px; background:var(--border); z-index:0; }
.progress-step { position:relative; z-index:1; display:flex; flex-direction:column; align-items:center; gap:10px; flex:1; text-align:center; }
.progress-step .dot { width:24px; height:24px; border-radius:50%; background:var(--bg-white); border:2.5px solid var(--border); display:flex; align-items:center; justify-content:center; transition:all var(--transition); }
.progress-step .step-label { font-size:12px; color:var(--ink-soft); max-width:80px; line-height:1.5; transition:color var(--transition); }
.progress-step.done .dot { background:var(--success); border-color:var(--success); }
.progress-step.done .dot::after { content:''; width:6px; height:10px; border-inline-end:2px solid #fff; border-block-end:2px solid #fff; transform:rotate(45deg) translateY(-1px); }
.progress-step.current .dot { background:var(--primary); border-color:var(--primary); box-shadow:0 0 0 5px var(--primary-soft); animation:pulseDot 1.8s ease-in-out infinite; }
.progress-step.current .step-label { color:var(--primary); font-weight:700; }
.progress-step.done .step-label { color:var(--ink); }
@keyframes pulseDot { 0%,100%{box-shadow:0 0 0 5px var(--primary-soft)} 50%{box-shadow:0 0 0 9px var(--primary-soft)} }

.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.result-item {
  background: var(--bg);
  border-radius: 12px;
  padding: 14px 16px;
}
.result-item label {
  display: block;
  font-size: 12px; color: var(--ink-soft); margin-bottom: 4px;
}
.result-item span { font-weight: 700; font-size: 14.5px; color: var(--ink); }

/* ─── Captcha ─────────────────────────────────────────── */
.captcha-widget { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.captcha-image {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden; flex-shrink: 0; line-height: 0;
  background: var(--bg-white);
}
.captcha-image svg { width: 110px; height: 38px; display: block; }
.captcha-input {
  flex: 1; min-width: 110px;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: var(--font); font-size: 15px;
  outline: none; transition: border-color var(--transition), box-shadow var(--transition);
}
.captcha-input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }

/* ─── Support Widget ──────────────────────────────────── */
.support-widget { position: fixed; right: 24px; bottom: 24px; z-index: 200; }
.support-fab {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(79,70,229,.4);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}
.support-fab:hover { transform: scale(1.08); box-shadow: 0 14px 34px rgba(79,70,229,.5); }
.support-fab svg { width: 24px; height: 24px; }
.support-fab-icon { display: flex; align-items: center; }
.support-fab-icon-close { display: none; }
.support-widget.open .support-fab-icon-open  { display: none; }
.support-widget.open .support-fab-icon-close { display: flex; }
.support-fab-pulse {
  position: absolute; top: -2px; right: -2px;
  width: 13px; height: 13px;
  border-radius: 50%; background: var(--accent);
  border: 2px solid #fff;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.2); opacity: .8; }
}
.support-menu {
  position: absolute;
  bottom: 64px; right: 0;
  background: var(--bg-white);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  min-width: 230px;
  padding: 10px 0;
  opacity: 0; pointer-events: none;
  transform: translateY(12px) scale(.95);
  transform-origin: bottom right;
  transition: opacity var(--transition), transform var(--transition);
}
.support-widget.open .support-menu { opacity: 1; pointer-events: all; transform: none; }
.support-menu-title {
  font-size: 12px; font-weight: 700; color: var(--ink-soft);
  padding: 4px 16px 10px; border-bottom: 1px solid var(--border); margin-bottom: 6px;
}
.support-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 16px; font-size: 14px; font-weight: 500;
  color: var(--ink); transition: background var(--transition);
}
.support-item:hover { background: var(--bg); }
.support-item-icon {
  width: 34px; height: 34px;
  border-radius: 9px; background: var(--item-color, var(--ink-soft));
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  color: #fff;
}
.support-item-icon svg { width: 18px; height: 18px; }

/* ─── دکمه‌ی شناور اختصاصی ربات بله ─────────────────── */
.bale-bot-fab {
  position: fixed; left: 20px; bottom: 24px; z-index: 199;
  display: flex; align-items: center; gap: 10px;
  background: #2C9CDB; color: #fff;
  border-radius: 999px;
  padding: 12px 18px 12px 16px;
  box-shadow: 0 10px 26px rgba(44,156,219,.4);
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), padding var(--transition);
}
.bale-bot-fab:hover { transform: scale(1.04); box-shadow: 0 14px 32px rgba(44,156,219,.5); }
.bale-bot-fab-icon { display: flex; align-items: center; flex-shrink: 0; }
.bale-bot-fab-icon svg { width: 22px; height: 22px; }
.bale-bot-fab-label { font-size: 13px; font-weight: 700; white-space: nowrap; }
.bale-bot-fab-pulse {
  position: absolute; top: -3px; left: -3px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #FF5A5F; border: 2px solid #fff;
  animation: pulse 2s ease-in-out infinite;
}
@media (max-width: 600px) {
  .bale-bot-fab { left: 14px; bottom: 14px; padding: 12px; }
  .bale-bot-fab-label { display: none; }
}

/* ─── Footer ─────────────────────────────────────────── */
.site-footer {
  background: #1B1733;
  color: rgba(255,255,255,.65);
  padding: clamp(28px, 5vw, 44px) 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.8;
}
.footer-address { margin-bottom: 4px; }

/* ─── Agents / Representatives Directory ────────────────── */
.agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(14px, 2.5vw, 22px);
}
.agent-card {
  position: relative;
  background: var(--bg-white);
  border-radius: var(--r-card);
  border: 1px solid var(--border);
  padding: 22px 20px 20px;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.agent-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); border-color: #C7BEF2; }
.agent-card-main {
  border: 1.5px solid var(--primary);
  background: linear-gradient(180deg, var(--primary-soft) 0%, var(--bg-white) 60%);
}
.agent-card-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--bg);
  padding: 4px 12px;
  border-radius: 40px;
  margin-bottom: 12px;
}
.agent-card-badge-main {
  color: #fff;
  background: var(--primary);
}
.agent-card h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 12px;
}
.agent-card-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-bottom: 9px;
  line-height: 1.7;
}
.agent-card-row a { color: var(--ink-soft); transition: color var(--transition); }
.agent-card-row a:hover { color: var(--primary); }
.agent-card-icon {
  flex-shrink: 0; width: 20px; height: 20px; line-height: 20px; text-align: center;
  border-radius: 6px; background: var(--primary-soft); color: var(--primary); font-size: 12px;
}
.agent-card-contact { font-weight: 700; color: var(--ink); }
.agent-card-bale {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: #065F46;
  background: #E7F7F0;
  border: 1.5px solid #BBEBD3;
  padding: 6px 14px 6px 6px;
  border-radius: 40px;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.agent-card-bale:hover { background: var(--success); border-color: var(--success); color: #fff; }
.agent-card-bale-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #2C9CDB;
  color: #fff;
  flex-shrink: 0;
}
.agent-card-bale-icon svg { width: 14px; height: 14px; }

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

/* ─── Contact page (ارتباط با ما) ─────────────────────── */
.contact-grid { display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:center; }
.contact-row {
  display:flex; align-items:center; gap:14px;
  background:var(--bg-white); border:1px solid var(--border); border-radius:16px;
  padding:16px 18px; margin-bottom:12px; text-decoration:none; color:var(--ink);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.contact-row:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color:#C7BEF2; }
.contact-row-icon {
  width:42px; height:42px; border-radius:12px; background:var(--primary-soft); color:var(--primary);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.contact-row .txt { flex:1; }
.contact-row .txt .k { font-size:12px; color:var(--ink-soft); margin-bottom:2px; display:block; }
.contact-row .txt .v { font-size:14.5px; font-weight:700; display:block; }
.contact-row-arrow { color:var(--ink-soft); transition: transform var(--transition), color var(--transition); }
.contact-row:hover .contact-row-arrow { color:var(--primary); transform: translateX(-3px); }
@media (max-width: 860px) { .contact-grid { grid-template-columns:1fr; } }

/* ─── Responsive ──────────────────────────────────────── */
@media (max-width: 992px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .agents-cta-box { flex-direction: column; text-align: center; }
  .agents-cta-text p { max-width: 100%; }
}

@media (max-width: 768px) {
  .slide-inner { flex-direction: column-reverse; gap: 20px; }
  .slide-image { flex: none !important; max-width: 100% !important; width: 100%; }
  .slide-image img, .slide-illustration { height: 200px; }
  .slide-content { text-align: center; }
  .slide-eyebrow { justify-content: center; }
  .slide p { max-width: 100%; margin-left:auto; margin-right:auto; }
  .slide-actions { justify-content: center; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat-block { border-left: none; border-bottom: 1px solid rgba(255,255,255,.1); }
  .result-grid { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; }
  .repair-progress { flex-wrap: wrap; gap: 16px 0; }
  .repair-progress::before { display:none; }
  .progress-step { flex: 0 0 33%; }
}

/* منوی موبایل/تبلت — همبرگر
   سوییچ زودتر از حد معمول (۱۰۲۴px به‌جای ۷۶۸px) چون با ۷+ آیتم منو،
   روی عرض‌های میانی (تبلت/لپ‌تاپ کوچیک) جا برای همه‌ی لینک‌ها در یک خط نبود
   و می‌شکست/دوخط می‌شد. با این تغییر همیشه یا کامل باز می‌شود یا همبرگری. */
@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 70px; right: 0; left: 0;
    background: var(--bg-white);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 16px 20px;
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--border);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
    z-index: 400;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .main-nav a { padding: 13px 16px; font-size: 15px; border-radius: 12px; }
}

@media (min-width: 1025px) {
  .nav-toggle { display: none !important; }
}

@media (max-width: 576px) {
  .features-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: 1fr; }
  .stat-block { border: none; border-bottom: 1px solid rgba(255,255,255,.1); }
  .stat-block:last-child { border-bottom: none; }
  .slide-actions .btn { width: 100%; max-width: 280px; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .warranty-terms-box { padding: 22px 18px; }
  .form-card { padding: 22px 18px; }
  .result-body { padding: 18px 16px; }
  .result-card { padding: 22px 18px; }
}

@media (max-width: 390px) {
  .container { padding: 0 14px; }
  .main-nav a { padding: 6px 8px; font-size: 13px; }
}
