
  :root{
    /* ✅ پالت آرام و روشن */
    --brand:#10b981;           /* سبز آرام */
    --brand-700:#059669;
    --bg:#f6f9fc;              /* پس‌زمینه کلی بسیار روشن */
    --panel:#ffffff;           /* پانل/هدر روشن */
    --card:#ffffff;
    --text:#0f172a;
    --muted:#64748b;
    --line:#e2e8f0;
    --radius:16px;
    --glow:0 0 0 3px rgba(16,185,129,.18);
    --header-grad:linear-gradient(135deg, rgba(16,185,129,.18), rgba(59,130,246,.10));
  }
  @media (prefers-color-scheme: dark){
    :root{
      --bg:#0b1220; --panel:#0f172a; --card:#0b1220;
      --text:#e5e7eb; --muted:#94a3b8; --line:#1f2937;
      --header-grad:linear-gradient(135deg, rgba(16,185,129,.18), rgba(59,130,246,.10));
    }
  }

  html,body{height:100%}
  body{
    margin:0;
    background: var(--bg);
    color:var(--text);
    font-family:"Vazirmatn", system-ui,-apple-system, Segoe UI, Tahoma, Arial, sans-serif;
    line-height:1.6;
  }

  header{
    padding:20px 16px 28px;
    background:
      var(--header-grad),
      linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0));
    border-bottom:1px solid var(--line);
  }
  .wrap{max-width:900px; margin:0 auto; padding:0 16px;}
  .brand{display:flex; align-items:center; gap:12px;}
  .brand-logo{
    width:46px; height:46px; border-radius:12px;
    background: radial-gradient(70% 70% at 30% 30%, #fff, #eefcf6 60%, #dcfce7);
    display:grid; place-items:center;
    box-shadow:0 6px 18px rgba(5,150,105,.25);
    color:var(--brand); font-weight:800; font-size:18px;
  }
  h1{margin:0; font-size:22px}
  .typing{
    position:relative; margin-top:6px; color:#0f766e; font-size:13px; min-height:1.4em;
    border-right:2px solid #0f766e; white-space:nowrap; overflow:hidden;
    animation: caret .9s step-end infinite;
  }
  @keyframes caret { 50%{ border-color:transparent } }
  @media (prefers-reduced-motion: reduce){
    .typing{ animation: none; border-right: 0 }
  }

  .wizard{
    background:var(--card); border:1px solid var(--line); border-radius:var(--radius);
    box-shadow:0 10px 30px rgba(2,8,23,.06); margin:18px 0; overflow:hidden;
  }

  /* Stepper معنایی‌تر */
  .steps{ display:flex; gap:6px; padding:10px; border-bottom:1px solid var(--line);
    background:linear-gradient(180deg, rgba(16,185,129,.08), transparent);
    overflow:auto; list-style:none; margin:0;
  }
  .step-dot{
    display:flex; align-items:center; gap:8px; padding:6px 10px; border-radius:999px;
    border:1px dashed #cbd5e1; font-size:12px; white-space:nowrap;
  }
  .step-dot.active{ background:#ecfdf5; border-color:#a7f3d0; }

  .slide{ display:none; padding:16px; }
  .slide.active{ display:block; animation: fade .25s ease }
  @keyframes fade{ from{opacity:.6; transform:translateY(4px)} to{opacity:1; transform:none} }
  .slide-head{ display:flex; align-items:flex-start; gap:12px }
  .robot{
    width:58px; height:58px; border-radius:14px; background:linear-gradient(135deg,#ecfeff,#e7fff5);
    display:grid; place-items:center; box-shadow:0 8px 24px rgba(16,185,129,.25); flex:0 0 58px;
  }
  .robot svg{ width:36px; height:36px; }
  .q-title{ font-weight:800; margin:0 0 4px; font-size:18px }
  .q-desc{ color:var(--muted); font-size:13px; margin:4px 0 10px }
  .row{ display:grid; grid-template-columns:1fr 1fr; gap:10px }
  @media (max-width:720px){ .row{ grid-template-columns:1fr } }

  select,input[type="number"],input[type="text"],input[type="tel"],textarea{
    width:100%; padding:10px 12px; border:1px solid var(--line); border-radius:10px;
    background:transparent; color:inherit; outline:none; transition:border-color .2s, box-shadow .2s;
  }
  select:focus, input:focus, textarea:focus{ border-color:var(--brand); box-shadow:var(--glow) }
  textarea{ min-height:80px; resize:vertical }

  .nav{
    display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:14px;
    border-top:1px dashed var(--line); padding-top:12px
  }
  .btn{ appearance:none; border:0; border-radius:12px; padding:10px 16px; cursor:pointer; font-weight:700 }
  .btn-primary{ background:var(--brand); color:#fff }
  .btn-primary:hover{ background:var(--brand-700) }
  .btn-muted{ background:#e2e8f0 }
  .btn:focus { outline: 2px solid #000; outline-offset: 2px; }

  .contact{ text-decoration:none; color:var(--brand); font-weight:700 }
  .contact:before{ content:"☎ "; opacity:.8 }

  table.summary{
    width:100%; border-collapse:collapse; border:1px solid var(--line); border-radius:12px; overflow:hidden;
  }
  table.summary th, table.summary td{ padding:10px; border-bottom:1px solid var(--line); text-align:right }
  table.summary th{ background:#f1f5f9 }
  @media (prefers-color-scheme: dark){
    table.summary th{ background:#111827 }
  }
  .tools{ display:flex; gap:8px; flex-wrap:wrap; margin-top:10px }
  .note{ font-size:12px; color:var(--muted) }

  /* ✅ ویجت چت پایین-راست */
  .chat-widget{
    position: fixed; right: 16px; bottom: 16px; z-index: 9999;
    display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
  }
  .chat-toggle{
    width:56px; height:56px; border-radius:50%; border:none; cursor:pointer;
    display:grid; place-items:center; box-shadow:0 8px 18px rgba(0,0,0,.15);
    background: var(--brand); color:#fff; font-weight:800; font-size:18px;
  }
  .chat-window{
    width: min(92vw, 360px);
    background: #fff; border:1px solid var(--line); border-radius:16px;
    box-shadow: 0 16px 40px rgba(2,8,23,.18);
    overflow: hidden; display: none;
  }
  .chat-window.open{ display:block; }
  .chat-head{
    padding:10px 12px; background:linear-gradient(135deg, rgba(16,185,129,.15), rgba(59,130,246,.08));
    border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; gap:8px;
  }
  .chat-title{ font-weight:800 }
  .chat-actions{ display:flex; gap:6px; }
  .icon-btn{
    width:36px; height:36px; border-radius:10px; border:1px solid var(--line); background:#fff;
    display:grid; place-items:center; cursor:pointer;
  }
  .chat-body{ max-height: 50vh; overflow:auto; padding:10px 12px; background:#fafafa; }
  .msg{ padding:8px 12px; border:1px solid var(--line); border-radius:12px; margin:6px 0; width:fit-content; max-width:90%; background:#fff; }
  .msg.me{ background:#ecfdf5; border-color:#a7f3d0; margin-inline-start:auto }
  .msg.bot{ background:#ffffff }
  .chat-foot{ display:flex; gap:8px; padding:10px 12px; border-top:1px solid var(--line); background:#fff; }
  .chat-foot input{ flex:1; }
  .chat-foot .small{ display:flex; align-items:center; gap:6px; font-size:12px; color:var(--muted); }

  @media (prefers-color-scheme: dark){
    .chat-window{ background: var(--panel); }
    .chat-body{ background:#0f172a; }
    .msg.bot{ background:#111827; }
  }
@keyframes pulse-shake {
  0% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.05) rotate(1deg); }
  50% { transform: scale(1.1) rotate(-1deg); }
  75% { transform: scale(1.05) rotate(1deg); }
  100% { transform: scale(1) rotate(0deg); }
}
