/* ══════════════════════════════════════════════════════════════
   کوچ — استایل اختصاصی «ارزیابی رایگان» (consultation.css)
   پیش‌نیاز: assets/css/base.css
   ══════════════════════════════════════════════════════════════ */

.consult-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: start; }

/* ═══ ویزارد ═══ */
.wizard-card { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 40px; box-shadow: var(--shadow-lg); }
.wizard-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.wizard-steps li { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; color: var(--muted); }
.ws-num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line); font-size: 15px; font-weight: 900; flex-shrink: 0; transition: all .3s; }
.wizard-steps li.active { color: var(--ink); }
.wizard-steps li.active .ws-num { background: linear-gradient(135deg, var(--teal), #14a89a); border-color: transparent; color: #fff; box-shadow: 0 8px 20px rgba(46,196,182,.35); }
.wizard-steps li.done .ws-num { background: var(--primary); border-color: transparent; color: #fff; }
.wizard-bar { margin-top: 18px; height: 8px; border-radius: 99px; background: var(--bg-soft); overflow: hidden; }
.wizard-bar span { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(to left, var(--teal), var(--teal-deep)); transition: width .5s cubic-bezier(.22,1,.36,1); }

.wstep { display: none; margin-top: 28px; animation: fadeUp .45s ease; }
.wstep.active { display: block; }
.wizard-nav { margin-top: 28px; display: flex; justify-content: space-between; gap: 12px; }

/* بازبینی */
.review-hint { font-size: 13.5px; font-weight: 700; color: var(--muted); margin-bottom: 16px; }
.review-list { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.review-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 18px; font-size: 13.5px; }
.review-list > div:nth-child(odd) { background: color-mix(in srgb, var(--bg-soft) 55%, transparent); }
.review-list dt { font-weight: 700; color: var(--muted); }
.review-list dd { font-weight: 800; text-align: left; }
.agree-row { margin-top: 18px; display: flex; align-items: center; gap: 12px; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.agree-row input { position: absolute; opacity: 0; pointer-events: none; }
.agree-row a { color: var(--teal-deep); text-decoration: underline; }
html[data-theme="dark"] .agree-row a { color: var(--teal-bright); }
.agree-row .req { color: var(--danger); }
.doc-box { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--line); background: var(--card); color: transparent; flex-shrink: 0; transition: all .25s; }
.agree-row.on .doc-box { background: linear-gradient(135deg, var(--teal), #14a89a); border-color: transparent; color: #fff; }
.agree-err { display: none; margin-top: 8px; font-size: 12.5px; color: var(--danger); font-weight: 700; }
.agree-err.show { display: block; }

/* موفقیت */
.wizard-success { text-align: center; padding: 20px 0 10px; }
.success-icon { display: grid; place-items: center; width: 88px; height: 88px; margin-inline: auto; border-radius: 50%; background: linear-gradient(135deg, #10b981, #059669); color: #fff; box-shadow: 0 18px 44px rgba(16,185,129,.4); animation: pop-in .5s cubic-bezier(.22,1.4,.36,1); }
@keyframes pop-in { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.wizard-success h3 { margin-top: 20px; font-size: 22px; font-weight: 900; }
.wizard-success p { margin-top: 10px; font-size: 14.5px; line-height: 2.1; color: var(--muted); }
.wizard-success strong { color: var(--teal-deep); font-size: 17px; }
html[data-theme="dark"] .wizard-success strong { color: var(--teal-bright); }

/* ═══ ستون کناری ═══ */
.consult-side { display: flex; flex-direction: column; gap: 20px; }
.side-card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 28px; box-shadow: var(--shadow); }
.side-card h3 { font-size: 16px; font-weight: 900; margin-bottom: 16px; }
.side-card .check-list li { font-size: 13.5px; }
.side-dark { background: linear-gradient(160deg, var(--primary), #12335f); border-color: transparent; color: #fff; text-align: center; }
html[data-theme="dark"] .side-dark { background: linear-gradient(160deg, #0b172e, #12294d); border-color: var(--line); }
.side-dark .card-icon { margin-inline: auto; }
.side-dark h3 { margin-top: 14px; margin-bottom: 8px; }
.side-tel { font-size: 24px; font-weight: 900; color: var(--gold-soft); }
.side-dark p { margin-top: 6px; font-size: 12.5px; color: rgba(255,255,255,.7); }
.mini-steps { display: flex; flex-direction: column; gap: 12px; font-size: 13.5px; font-weight: 700; color: var(--ink-soft); }
.mini-steps strong { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-left: 8px; border-radius: 8px; background: rgba(46,196,182,.12); color: var(--teal-deep); font-size: 13px; }
html[data-theme="dark"] .mini-steps strong { color: var(--teal-bright); }

@media (max-width: 960px) {
  .consult-grid { grid-template-columns: 1fr; }
  .wizard-card { padding: 28px 20px; }
  .ws-label { display: none; }
  .wizard-steps li { justify-content: center; }
}


/* اصلاح آیکن های select فرم */
.field {position:relative;}
.field select {appearance:none;-webkit-appearance:none;padding-left:42px;}
.field:has(select)::after {content:"⌄";position:absolute;left:16px;bottom:14px;font-size:18px;font-weight:900;color:var(--muted);pointer-events:none;}

/* المان تکمیلی زیر فرم */
.form-bottom-card {margin-top:24px;padding:24px;border-radius:24px;background:linear-gradient(135deg,rgba(46,196,182,.08),rgba(242,184,75,.08));border:1px solid var(--line);display:flex;align-items:flex-start;gap:18px;}
.form-bottom-icon {width:54px;height:54px;flex-shrink:0;display:grid;place-items:center;border-radius:16px;background:linear-gradient(135deg,var(--teal),var(--teal-deep));color:#fff;}
.form-bottom-card h3 {margin:0 0 8px;font-size:17px;font-weight:900;}
.form-bottom-card p {margin:0;color:var(--muted);font-size:13.5px;line-height:2;}
.form-bottom-items {margin-top:14px;display:flex;flex-wrap:wrap;gap:10px;}
.form-bottom-items span {display:flex;align-items:center;gap:5px;padding:7px 12px;border-radius:99px;background:var(--card);border:1px solid var(--line);font-size:12px;font-weight:700;}
.form-bottom-items svg {color:var(--teal-deep);}
@media(max-width:640px){.form-bottom-card{flex-direction:column;}}

/* اصلاح کامل آیکن select فرم */
.field {
  position: relative;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-left: 45px !important;
  background-image: none !important;
}

/* فقط برای select ها فلش نمایش بده */
.field:has(select)::after {
  content: "⌄";
  position: absolute;
  left: 18px;
  bottom: 22px;
  font-size: 16px;
  font-weight: 900;
  color: var(--muted);
  pointer-events: none;
  line-height: 1;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-left: 45px !important;
  background-image: none !important;
}

.field select:focus {
  outline: none;
}