/* Imported from the standalone index.html by
   app/bin/import_tool_html.php. Every selector is scoped to .tool-body so
   the tool cannot restyle the shared header and footer, and its custom
   properties cannot leak out of its own subtree. Edit this file, not the
   original document. */

.tool-body {
  --green:#E61933;
  --green-light:#FE233E;
  --bg-page:#F3F4F1;
  --bg-card:#FFFFFF;
  --text-primary:#1A1A18;
  --text-secondary:#5F5E5A;
  --text-tertiary:#888780;
  --border:rgba(0,0,0,0.09);
  --border-strong:rgba(0,0,0,0.16);
  --danger-bg:#FAECE7; --danger-text:#712B13; --danger-sub:#993C1D;
  --warn-bg:#FAEEDA; --warn-text:#633806; --warn-sub:#854F0B;
  --good-bg:#EAF3DE; --good-text:#27500A; --good-sub:#3B6D11;
  --radius-md:10px; --radius-lg:16px;
}
.tool-body * {box-sizing:border-box;margin:0;padding:0}
.tool-body {height:100%}
.tool-body {
  font-family:'Vazirmatn', Tahoma, sans-serif;
  background:var(--bg-page);
  color:var(--text-primary);
  -webkit-font-smoothing:antialiased;
  line-height:1.6;
  padding-bottom:env(safe-area-inset-bottom);
}
.tool-body .page {margin:0 auto;min-height:100vh;background:var(--bg-card);box-shadow:0 0 40px rgba(0,0,0,0.06)}
.tool-body .w {padding:1.5rem 1.25rem 2.5rem}

.tool-body .brand {display:flex;align-items:center;gap:10px;margin-bottom:1.75rem;padding-bottom:1.25rem;border-bottom:1px solid var(--border)}
.tool-body .brand-logo {width:42px;height:42px;border-radius:12px;background:linear-gradient(135deg,var(--green-light),var(--green));display:flex;align-items:center;justify-content:center;color:#fff;font-size:15px;font-weight:700;flex-shrink:0}
.tool-body .brand-name {font-size:16px;font-weight:700;color:var(--text-primary)}
.tool-body .brand-sub {font-size:12.5px;color:var(--text-secondary);margin-top:1px}

.tool-body .tool-heading {display:flex;align-items:flex-start;gap:12px;margin-bottom:1.75rem}
.tool-body .tool-thumb {width:58px;height:58px;border-radius:14px;overflow:hidden;flex:0 0 58px;background:#fff;border:1px solid var(--border);box-shadow:0 2px 8px rgba(0,0,0,0.08)}
.tool-body .tool-thumb img {width:100%;height:100%;display:block;object-fit:cover;object-position:center top}
.tool-body .tool-heading-copy {min-width:0;flex:1}
.tool-body .tool-title {font-size:19px;font-weight:700;color:var(--text-primary);margin-bottom:5px;line-height:1.45}
.tool-body .tool-sub {font-size:13.5px;color:var(--text-secondary);margin-bottom:0;line-height:1.8}


/* ===== Stage 1 UI/UX — discount tool ===== */
.tool-body .eco-brandbar {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 0 16px;margin-bottom:22px;border-bottom:1px solid var(--border)}
.tool-body .eco-brand-main {display:flex;align-items:center;gap:10px;min-width:0}
.tool-body .eco-brand-mark {width:38px;height:38px;border-radius:12px;background:linear-gradient(135deg,var(--green-light),var(--green));color:#fff;display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:800;flex:0 0 38px;box-shadow:0 4px 12px rgba(230,25,51,.18)}
.tool-body .eco-brand-name {font-size:15px;font-weight:800;line-height:1.4;color:var(--text-primary)}
.tool-body .eco-brand-sub {font-size:11px;color:var(--text-secondary);line-height:1.6;margin-top:1px}
.tool-body .eco-tool-tag {font-size:11px;font-weight:700;color:var(--green);background:#FFF0F2;border:1px solid #FFD4DA;border-radius:999px;padding:6px 10px;white-space:nowrap}
.tool-body .form-intro {background:linear-gradient(180deg,#FFF9FA 0%,#fff 100%);border:1px solid #F1D9DE;border-radius:18px;padding:18px 18px 16px;margin-bottom:18px}
.tool-body .form-intro-title {display:flex;align-items:center;gap:8px;font-size:15px;font-weight:800;line-height:1.7;margin-bottom:5px}
.tool-body .form-intro-title i {color:var(--green);font-size:18px}
.tool-body .form-intro-sub {font-size:12.5px;color:var(--text-secondary);line-height:1.9}
.tool-body .flow-stepper {display:flex;align-items:center;gap:8px;margin:0 0 18px;padding:0 2px}
.tool-body .flow-step {display:flex;align-items:center;gap:7px;min-width:0}
.tool-body .flow-step-dot {width:28px;height:28px;border-radius:50%;border:1.5px solid #D8D7D1;background:#fff;color:#777;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:800;flex:0 0 28px;transition:.2s}
.tool-body .flow-step-label {font-size:11.5px;color:#777;white-space:nowrap;font-weight:600}
.tool-body .flow-step.active .flow-step-dot {background:var(--green);border-color:var(--green);color:#fff;box-shadow:0 3px 10px rgba(230,25,51,.18)}
.tool-body .flow-step.active .flow-step-label {color:var(--text-primary)}
.tool-body .flow-line {height:1px;background:#E5E4DE;flex:1;min-width:18px}
.tool-body .flow-line.done {background:#F0A4AE}
.tool-body .ux-step {display:none}
.tool-body .ux-step.active {display:block;animation:stepIn .22s ease}
@keyframes stepIn {from {opacity:.3;transform:translateY(5px)}to {opacity:1;transform:none}}
.tool-body .step-kicker {font-size:11px;font-weight:800;color:var(--green);margin-bottom:5px}
.tool-body .step-title {font-size:18px;font-weight:800;line-height:1.65;margin-bottom:5px}
.tool-body .step-help {font-size:12.5px;color:var(--text-secondary);line-height:1.9;margin-bottom:16px}
.tool-body .field-card {background:#fff;border:1px solid #E6E5DF;border-radius:16px;padding:16px;box-shadow:0 4px 16px rgba(20,20,18,.035)}
.tool-body .field-card .input-group {margin-bottom:0}
.tool-body .step-nav {display:flex;gap:9px;margin-top:14px}
.tool-body .step-nav .nav-btn {flex:1;min-height:48px;border-radius:12px;border:1.5px solid var(--border-strong);background:#fff;color:var(--text-secondary);font-family:inherit;font-size:14px;font-weight:700;cursor:pointer}
.tool-body .step-nav .nav-btn.primary {background:linear-gradient(135deg,var(--green-light),var(--green));color:#fff;border-color:transparent;box-shadow:0 4px 14px rgba(230,25,51,.18)}
.tool-body .step-nav .nav-btn:active {transform:scale(.985)}
.tool-body .calc-btn.stage1-submit {margin-top:14px}
.tool-body .result-toolbar {display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}
.tool-body .result-toolbar-title {font-size:12px;color:var(--text-secondary);font-weight:600}
.tool-body .result-toolbar-btn {border:1px solid var(--border);background:#fff;border-radius:10px;padding:7px 10px;font-family:inherit;font-size:11.5px;font-weight:700;color:var(--text-secondary);cursor:pointer}

/* ─── input form ─── */
.tool-body .input-group {margin-bottom:1.25rem}
.tool-body .input-label {font-size:13px;color:var(--text-secondary);margin-bottom:8px;display:flex;align-items:center;gap:6px;font-weight:500}
.tool-body .input-label i {color:var(--green-light);font-size:15px}
.tool-body .input-row {display:flex;align-items:center;gap:8px}
.tool-body .inp {
  flex:1;border:1.5px solid var(--border-strong);border-radius:var(--radius-md);
  padding:13px 14px;font-size:16px;font-family:'Vazirmatn',sans-serif;color:var(--text-primary);
  background:#fff;direction:ltr;text-align:left;width:100%;
  -webkit-appearance:none;appearance:none;
  transition:border-color 0.15s, box-shadow 0.15s;
}
.tool-body .inp:focus {outline:none;border-color:var(--green-light);box-shadow:0 0 0 3px rgba(29,158,117,0.12)}
.tool-body .inp-suffix {font-size:13px;color:var(--text-secondary);font-weight:500;white-space:nowrap;background:#F4F4F1;border:1.5px solid var(--border-strong);border-radius:var(--radius-md);padding:13px 12px;flex-shrink:0}
.tool-body .field-error {font-size:12px;color:var(--danger-text);margin-top:6px;display:none}
.tool-body .field-error.show {display:block}

.tool-body .hint-box {background:#F4F4F1;border-radius:var(--radius-md);padding:12px 14px;margin-bottom:1.5rem;display:flex;gap:10px;align-items:flex-start}
.tool-body .hint-box i {color:var(--green-light);font-size:16px;margin-top:2px;flex-shrink:0}
.tool-body .hint-box p {font-size:12.5px;color:var(--text-secondary);line-height:1.8}

.tool-body .calc-btn {
  width:100%;padding:15px;border-radius:var(--radius-md);font-size:15px;font-weight:700;font-family:'Vazirmatn',sans-serif;
  cursor:pointer;border:none;background:linear-gradient(135deg,var(--green-light),var(--green));color:#fff;
  box-shadow:0 4px 14px rgba(15,110,86,0.28);transition:opacity 0.15s, transform 0.1s;
  display:flex;align-items:center;justify-content:center;gap:8px;
}
.tool-body .calc-btn:active {transform:scale(0.98)}

/* ─── result ─── */
.tool-body .result {display:none}
.tool-body .result.show {display:block;animation:fadeIn 0.35s ease}
@keyframes fadeIn {from {opacity:0;transform:translateY(8px)}to {opacity:1;transform:translateY(0)}}

/* ─── new impact hero ─── */
.tool-body .impact-hero {border-radius:var(--radius-lg);overflow:hidden;margin-bottom:1.25rem}
.tool-body .impact-hero-top {padding:24px 20px;text-align:center}
.tool-body .impact-hero-top.danger {background:linear-gradient(135deg,#7B1D1D,#D85A30)}
.tool-body .impact-hero-top.warn {background:linear-gradient(135deg,#7A3A0A,#C47A1E)}
.tool-body .impact-hero-top.ok {background:linear-gradient(135deg,#1B4D0A,#3B8A12)}
.tool-body .impact-hero-label {font-size:12.5px;color:rgba(255,255,255,0.8);margin-bottom:8px;direction:rtl}
.tool-body .impact-hero-num {font-size:52px;font-weight:700;color:#fff;line-height:1;margin-bottom:6px;direction:ltr}
.tool-body .impact-hero-sub {font-size:13.5px;color:rgba(255,255,255,0.9);line-height:1.7;margin-bottom:0}
.tool-body .impact-hero-condition {font-size:12px;color:rgba(255,255,255,0.75);margin-top:10px;padding-top:10px;border-top:1px solid rgba(255,255,255,0.2);line-height:1.7}
.tool-body .impact-hero-bottom {padding:12px 16px;display:flex;align-items:center;gap:10px}
.tool-body .impact-hero-bottom.danger {background:var(--danger-bg)}.tool-body .impact-hero-bottom.warn {background:var(--warn-bg)}.tool-body .impact-hero-bottom.ok {background:var(--good-bg)}
.tool-body .verdict-badge {display:flex;align-items:center;gap:6px;font-size:13px;font-weight:700}
.tool-body .verdict-badge.danger {color:var(--danger-sub)}.tool-body .verdict-badge.warn {color:var(--warn-sub)}.tool-body .verdict-badge.ok {color:var(--good-sub)}
.tool-body .verdict-badge i {font-size:16px}
.tool-body .verdict-desc {font-size:12px;line-height:1.7;margin-right:auto}
.tool-body .verdict-desc.danger {color:var(--danger-text)}.tool-body .verdict-desc.warn {color:var(--warn-text)}.tool-body .verdict-desc.ok {color:var(--good-text)}

/* legacy (unused but kept) */
.tool-body .verdict-hero {border-radius:var(--radius-lg);padding:22px 20px;text-align:center;margin-bottom:1.25rem}
.tool-body .verdict-hero-icon {width:56px;height:56px;border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto 12px;font-size:26px;color:#fff}
.tool-body .verdict-hero-title {font-size:19px;font-weight:700;margin-bottom:8px}
.tool-body .verdict-hero-body {font-size:13.5px;line-height:1.85}
.tool-body .v-danger {background:var(--danger-bg);color:var(--danger-text)} .tool-body .v-danger .verdict-hero-icon {background:#D85A30}
.tool-body .v-warn {background:var(--warn-bg);color:var(--warn-text)} .tool-body .v-warn .verdict-hero-icon {background:#BA7517}
.tool-body .v-ok {background:var(--good-bg);color:var(--good-text)} .tool-body .v-ok .verdict-hero-icon {background:#639922}

/* metric cards */
.tool-body .metrics-title {font-size:13px;font-weight:700;color:var(--text-secondary);margin-bottom:10px}
.tool-body .metrics-grid {display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:1.25rem}
.tool-body .metric-card {background:#F4F4F1;border-radius:var(--radius-md);padding:14px 12px}
.tool-body .metric-label {font-size:11.5px;color:var(--text-secondary);margin-bottom:4px;display:flex;align-items:center;gap:5px}
.tool-body .metric-label i {font-size:13px}
.tool-body .metric-value {font-size:18px;font-weight:700;color:var(--text-primary)}
.tool-body .metric-value.danger {color:var(--danger-sub)}
.tool-body .metric-value.warn {color:var(--warn-sub)}
.tool-body .metric-value.ok {color:var(--good-sub)}
.tool-body .metric-sub {font-size:11px;color:var(--text-tertiary);margin-top:3px}

/* gauge */
.tool-body .gauge-wrap {background:#F4F4F1;border-radius:var(--radius-lg);padding:16px;margin-bottom:1.25rem}
.tool-body .gauge-title {font-size:13px;font-weight:700;margin-bottom:12px;display:flex;align-items:center;gap:6px}
.tool-body .gauge-title i {color:var(--green);font-size:16px}
.tool-body .gauge-track {height:10px;background:#DEDEDD;border-radius:10px;overflow:hidden;position:relative;margin-bottom:8px}
.tool-body .gauge-fill {height:100%;border-radius:10px;transition:width 0.6s ease;max-width:100%}
.tool-body .gauge-labels {display:flex;justify-content:space-between;font-size:11px;color:var(--text-tertiary)}

/* comparison table */
.tool-body .compare-table {width:100%;border-collapse:collapse;margin-bottom:1.25rem}
.tool-body .compare-table th {font-size:12px;font-weight:700;color:var(--text-secondary);padding:8px 10px;background:#F4F4F1;text-align:right}
.tool-body .compare-table td {font-size:13px;padding:10px 10px;border-bottom:1px solid var(--border)}
.tool-body .compare-table tr:last-child td {border-bottom:none}
.tool-body .badge {display:inline-block;padding:2px 8px;border-radius:20px;font-size:11.5px;font-weight:600}
.tool-body .badge-danger {background:var(--danger-bg);color:var(--danger-text)}
.tool-body .badge-warn {background:var(--warn-bg);color:var(--warn-text)}
.tool-body .badge-ok {background:var(--good-bg);color:var(--good-text)}

.tool-body .next-steps {background:#F4F4F1;border-radius:var(--radius-lg);padding:16px;margin-bottom:1.25rem}
.tool-body .next-steps-title {font-size:15px;font-weight:800;color:#C92A2A;margin-bottom:10px;display:flex;align-items:center;gap:6px}
.tool-body .next-steps-title i {color:#C92A2A;font-size:18px}
.tool-body .next-steps ul {list-style:none;display:flex;flex-direction:column;gap:10px;margin:0;padding:0}
.tool-body .next-steps li {font-size:12.5px;line-height:1.9;display:flex;flex-direction:row;align-items:flex-start;gap:9px;color:var(--text-primary);direction:rtl;text-align:right}
.tool-body .next-steps li::before {content:none}
.tool-body .next-step-number {width:24px;height:24px;min-width:24px;border-radius:50%;background:#C92A2A;color:#fff;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:800;line-height:1;direction:rtl;margin-top:1px}

.tool-body .divider {border:none;border-top:1px solid var(--border);margin:1.25rem 0}

.tool-body .actions {display:flex;gap:8px;flex-wrap:wrap}
.tool-body .act-btn {
  flex:1;min-width:120px;border:1.5px solid var(--border-strong);background:#fff;color:var(--text-secondary);
  font-size:13.5px;font-weight:600;padding:12px 12px;border-radius:var(--radius-md);cursor:pointer;
  font-family:'Vazirmatn',sans-serif;display:flex;align-items:center;justify-content:center;gap:6px;
  transition:background 0.15s;
}
.tool-body .act-btn:active {background:#F4F4F1}
.tool-body .act-btn.primary {background:linear-gradient(135deg,var(--green-light),var(--green));color:#fff;border-color:transparent}

.tool-body .watermark {text-align:center;font-size:12px;color:var(--text-secondary);margin-top:1.5rem;padding-top:1.25rem;border-top:1px solid var(--border)}
.tool-body .watermark span {color:var(--green);font-weight:700}

.tool-body .toast {
  position:fixed;bottom:24px;left:50%;transform:translateX(-50%) translateY(20px);
  background:var(--text-primary);color:#fff;padding:10px 18px;border-radius:30px;font-size:13px;
  opacity:0;pointer-events:none;transition:opacity 0.25s, transform 0.25s;z-index:50;
}
.tool-body .toast.show {opacity:1;transform:translateX(-50%) translateY(0)}

.tool-body .modal-overlay {
  position:fixed;inset:0;background:rgba(20,20,18,0.55);display:none;
  align-items:flex-end;justify-content:center;z-index:100;padding:0;
}
.tool-body .modal-overlay.show {display:flex;animation:fadeIn 0.2s ease}
.tool-body .modal-sheet {
  background:#fff;width:100%;max-width:480px;border-radius:20px 20px 0 0;
  padding:1.5rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom));
  animation:slideUp 0.25s ease;position:relative;
}
@keyframes slideUp {from {transform:translateY(100%)}to {transform:translateY(0)}}
.tool-body .modal-title {font-size:16px;font-weight:700;margin-bottom:6px;display:flex;align-items:center;gap:8px}
.tool-body .modal-title i {color:var(--green);font-size:19px}
.tool-body .modal-sub {font-size:13px;color:var(--text-secondary);line-height:1.8;margin-bottom:1.25rem}
.tool-body .modal-actions {display:flex;gap:8px;margin-top:1.25rem}
.tool-body .modal-actions .act-btn {margin:0}
.tool-body .modal-close {position:absolute;top:14px;left:14px;background:none;border:none;color:var(--text-secondary);font-size:18px;cursor:pointer;padding:6px}

.tool-body .pdf-render-area {position:fixed;left:-9999px;top:0}

@media (max-width:360px) {.tool-body .w {padding:1.25rem 1rem 2rem}}


/* =========================================================
   RESPONSIVE / MOBILE-FIRST READABILITY PASS
   ========================================================= */
.tool-body {font-size:16px;overflow-x:hidden}
.tool-body {font-size:16px;overflow-x:hidden;min-width:0}
.tool-body .page {width:100%;max-width:680px;margin:0 auto;min-height:100vh;overflow:hidden}
.tool-body .w {width:100%;max-width:680px;margin:0 auto;padding:28px 22px 40px}

/* Result section hierarchy — intentionally larger than form microcopy */
.tool-body .result {font-size:16px}
.tool-body .metrics-title {font-size:17px;font-weight:700;line-height:1.65;color:var(--text-primary);margin:0 0 12px}
.tool-body .impact-hero-label {font-size:14px;line-height:1.7}
.tool-body .impact-hero-num {font-size:clamp(48px,14vw,62px);line-height:1.05}
.tool-body .impact-hero-sub {font-size:15px;line-height:1.85}
.tool-body .impact-hero-condition {font-size:13.5px;line-height:1.85}
.tool-body .verdict-badge {font-size:14px;line-height:1.7}
.tool-body .verdict-badge i {font-size:18px}
.tool-body .verdict-desc {font-size:13.5px;line-height:1.9}
.tool-body .metrics-grid {gap:10px}
.tool-body .metric-card {padding:16px 14px;min-width:0}
.tool-body .metric-label {font-size:13px;line-height:1.7;align-items:flex-start}
.tool-body .metric-label i {font-size:15px;margin-top:2px;flex-shrink:0}
.tool-body .metric-value {font-size:20px!important;line-height:1.4}
.tool-body .metric-sub {font-size:12px;line-height:1.7}
.tool-body .gauge-wrap {padding:18px;margin-bottom:20px}
.tool-body .gauge-title {font-size:16px;line-height:1.7;margin-bottom:14px}
.tool-body .gauge-title i {font-size:18px}
.tool-body .gauge-labels {font-size:12px}
.tool-body #gauge-note {font-size:13.5px!important;line-height:1.9!important}
.tool-body .compare-table th {font-size:13px;padding:10px 9px;line-height:1.6}
.tool-body .compare-table td {font-size:13.5px;padding:11px 9px;line-height:1.7}
.tool-body .badge {font-size:12px;padding:3px 8px}
.tool-body .next-steps {padding:18px;margin-bottom:20px}
.tool-body .next-steps-title {font-size:16px;line-height:1.7;margin-bottom:12px}
.tool-body .next-steps-title i {font-size:18px}
.tool-body .next-steps ul {gap:10px}
.tool-body .next-steps li {font-size:13.5px;line-height:1.95;gap:9px}
.tool-body .next-steps li::before {width:6px;height:6px;margin-top:9px}
.tool-body .actions {gap:10px}
.tool-body .act-btn {font-size:14px;min-height:48px;padding:12px 14px;line-height:1.6}
.tool-body .watermark {font-size:13px;line-height:1.8}

/* Form readability */
.tool-body .tool-title {font-size:21px;line-height:1.6}
.tool-body .tool-sub {font-size:14.5px;line-height:1.95}
.tool-body .input-label {font-size:14px;line-height:1.7}
.tool-body .inp {font-size:17px;min-height:50px;padding:12px 14px}
.tool-body .inp-suffix {font-size:14px;padding:12px 11px;min-height:50px;display:flex;align-items:center}
.tool-body .hint-box {padding:14px;margin-bottom:20px}
.tool-body .hint-box p {font-size:13.5px;line-height:1.9}
.tool-body .calc-btn {font-size:16px;min-height:52px;padding:14px 16px}

/* Never let long labels or numbers force horizontal overflow */
.tool-body .tool-title, .tool-body .tool-sub, .tool-body .impact-hero-sub, .tool-body .impact-hero-condition, .tool-body .verdict-desc, .tool-body .metric-label, .tool-body .metric-value, .tool-body .metric-sub, .tool-body .gauge-title, .tool-body #gauge-note, .tool-body .next-steps li, .tool-body .act-btn, .tool-body .modal-title, .tool-body .modal-sub {overflow-wrap:anywhere;word-break:normal}

@media (max-width:520px) {
  .tool-body .w {padding:22px 17px 34px}
  .tool-body .tool-heading {gap:10px;margin-bottom:22px}
  .tool-body .tool-thumb {width:52px;height:52px;flex-basis:52px;border-radius:12px}
  .tool-body .tool-title {font-size:20px}
  .tool-body .tool-sub {font-size:14px}
  .tool-body .impact-hero {margin-bottom:18px}
  .tool-body .impact-hero-top {padding:22px 16px}
  .tool-body .impact-hero-bottom {padding:13px 14px;align-items:flex-start;gap:8px;flex-direction:column}
  .tool-body .verdict-desc {margin-right:0}
  .tool-body .metrics-grid {grid-template-columns:1fr 1fr;gap:9px}
  .tool-body .metric-card {padding:14px 11px}
  .tool-body .metric-label {font-size:12.5px}
  .tool-body .metric-value {font-size:19px!important}
  .tool-body .compare-table th, .tool-body .compare-table td {padding-left:7px;padding-right:7px}
  .tool-body .actions {flex-direction:column}
  .tool-body .actions .act-btn {width:100%;min-width:0;flex:none}
  .tool-body .modal-sheet {padding-left:17px;padding-right:17px}
}

@media (max-width:390px) {
  .tool-body .w {padding:20px 14px 30px}
  .tool-body .tool-heading {align-items:flex-start}
  .tool-body .tool-thumb {width:48px;height:48px;flex-basis:48px}
  .tool-body .tool-title {font-size:19px}
  .tool-body .tool-sub {font-size:13.5px}
  .tool-body .input-label {font-size:13.5px}
  .tool-body .inp {font-size:16px}
  .tool-body .metrics-title {font-size:16px}
  .tool-body .metric-card {padding:13px 10px}
  .tool-body .metric-label {font-size:12px}
  .tool-body .metric-value {font-size:18px!important}
  .tool-body .metric-sub {font-size:11.5px}
  .tool-body .compare-table th {font-size:12px}
  .tool-body .compare-table td {font-size:12.5px}
  .tool-body .next-steps-title {font-size:15.5px}
  .tool-body .next-steps li {font-size:13px}
}

/* At very narrow widths, convert the scenario table into readable cards. */
@media (max-width:360px) {
  .tool-body .compare-table, .tool-body .compare-table tbody, .tool-body .compare-table tr, .tool-body .compare-table td {display:block;width:100%}
  .tool-body .compare-table thead {display:none}
  .tool-body .compare-table tbody {display:flex;flex-direction:column;gap:8px;padding:4px}
  .tool-body .compare-table tr {display:grid;grid-template-columns:1fr 1fr;background:#fff;border:1px solid var(--border);border-radius:10px;overflow:hidden}
  .tool-body .compare-table td {border:0;padding:9px 10px;font-size:12.5px}
  .tool-body .compare-table td:first-child {grid-column:1/-1;font-weight:700;background:#F4F4F1;border-bottom:1px solid var(--border)}
  .tool-body .compare-table td:nth-child(2), .tool-body .compare-table td:nth-child(3), .tool-body .compare-table td:nth-child(4) {text-align:right!important}
}

@media (min-width:681px) {
  .tool-body {padding-top:24px;padding-bottom:24px}
  .tool-body .page {border-radius:20px}
}


.tool-body .intent-lead-modal {display:none;position:fixed;inset:0;z-index:3200;align-items:center;justify-content:center;padding:16px;box-sizing:border-box}
.tool-body .intent-lead-modal.open {display:flex}
.tool-body .intent-lead-backdrop {position:absolute;inset:0;background:rgba(0,0,0,.48)}
.tool-body .intent-lead-card {position:relative;z-index:1;width:min(420px,100%);box-sizing:border-box;background:#fff;border-radius:18px;padding:22px 20px 20px;box-shadow:0 18px 60px rgba(0,0,0,.2);direction:rtl;text-align:right}
.tool-body .intent-lead-close {position:absolute;left:12px;top:10px;width:32px;height:32px;border:0;background:#F4F4F1;border-radius:50%;font-size:22px;line-height:1;cursor:pointer}
.tool-body .intent-lead-title {font-size:18px;font-weight:900;margin-bottom:7px;padding-left:35px}
.tool-body .intent-lead-text {font-size:12.5px;line-height:1.9;color:#666;margin-bottom:14px}
.tool-body .intent-lead-label {display:block;font-size:12px;font-weight:800;margin:10px 0 6px}
.tool-body .intent-lead-input {width:100%;height:48px;box-sizing:border-box;border:1px solid #D8D8D2;border-radius:11px;padding:10px 12px;font-family:inherit;font-size:16px;outline:none}
.tool-body .intent-lead-input.mobile {direction:ltr;text-align:left}
.tool-body .intent-lead-input:focus {border-color:#E61933;box-shadow:0 0 0 3px rgba(230,25,51,.10)}
.tool-body .intent-lead-error {min-height:22px;color:#C92A2A;font-size:11.5px;line-height:1.8;margin-top:5px}
.tool-body .intent-lead-submit {width:100%;min-height:46px;border:0;border-radius:11px;background:#E61933;color:#fff;font-family:inherit;font-size:13px;font-weight:800;cursor:pointer;margin-top:8px}
.tool-body .intent-lead-submit:disabled {opacity:.55;cursor:wait}


/* ===== Stage 1 final mobile polish ===== */
@media (max-width:520px) {
  .tool-body .eco-brandbar {padding-bottom:14px;margin-bottom:18px}
  .tool-body .eco-brand-mark {width:36px;height:36px;flex-basis:36px}
  .tool-body .eco-brand-name {font-size:14px}
  .tool-body .eco-brand-sub {font-size:10.5px}
  .tool-body .eco-tool-tag {font-size:10px;padding:5px 8px}
  .tool-body .form-intro {padding:15px 14px;margin-bottom:15px;border-radius:15px}
  .tool-body .form-intro-title {font-size:14px}
  .tool-body .form-intro-sub {font-size:11.5px}
  .tool-body .flow-step-label {font-size:10.5px}
  .tool-body .step-title {font-size:17px}
  .tool-body .step-help {font-size:12px}
  .tool-body .field-card {padding:14px;border-radius:14px}
  .tool-body .step-nav {position:sticky;bottom:8px;z-index:5;background:rgba(255,255,255,.94);backdrop-filter:blur(8px);padding:8px;border:1px solid var(--border);border-radius:14px;box-shadow:0 8px 24px rgba(20,20,18,.08)}
}


/* ===== shared brand header ===== */
.tool-body .eco-header {direction:rtl;display:flex;justify-content:flex-start;align-items:center;margin:0 0 12px;padding:4px 0 14px;border-bottom:1px solid var(--border)}
.tool-body .eco-header-brand-wrap {display:flex;direction:rtl;align-items:center;gap:12px}
.tool-body .eco-header-logo {width:92px;height:auto;max-height:30px;object-fit:contain;object-position:center;display:block;flex:0 0 auto}
.tool-body .eco-header-brand-block {text-align:right;min-width:0}
.tool-body .eco-header-brand {font-size:21px;font-weight:900;line-height:1.3;color:var(--text-primary)}
.tool-body .eco-header-tagline {font-size:12px;color:var(--text-secondary);line-height:1.6;margin-top:1px}
.tool-body .tool-title {font-size:20px;font-weight:900;line-height:1.5;color:var(--text-primary);margin:0 0 3px;text-align:right;direction:rtl}
.tool-body .tool-sub {font-size:13px;color:var(--text-secondary);line-height:1.8;margin:0 0 18px;text-align:right;direction:rtl}
@media(max-width:560px) {
  .tool-body .eco-header {padding-bottom:11px;margin-bottom:10px}
  .tool-body .eco-header-logo {width:82px;max-height:27px}
  .tool-body .eco-header-brand {font-size:19px}
  .tool-body .eco-header-tagline {font-size:11px}
  .tool-body .tool-title {font-size:18px}
  .tool-body .tool-sub {font-size:12.5px;margin-bottom:14px}
}


.tool-body .goal-options {display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:14px}
.tool-body .goal-option {width:100%;min-height:52px;border:1.5px solid var(--border-strong);background:#fff;border-radius:14px;padding:12px 13px;display:flex;align-items:flex-start;gap:10px;text-align:right;direction:rtl;font-family:'Vazirmatn',sans-serif;font-size:13px;font-weight:600;line-height:1.75;color:var(--text-primary);cursor:pointer}
.tool-body .goal-option.selected {border-color:var(--green-light);background:#F2FAF6;box-shadow:0 0 0 2px rgba(230,25,51,.07)}
.tool-body .goal-radio {width:19px;height:19px;border:2px solid var(--border-strong);border-radius:50%;flex:0 0 19px;position:relative;margin-top:2px}
.tool-body .goal-option.selected .goal-radio {border-color:var(--green-light)}
.tool-body .goal-option.selected .goal-radio:after {content:'';position:absolute;inset:3px;border-radius:50%;background:var(--green-light)}
.tool-body .decision-goal-card {background:#FFF8F6;border:1px solid #F2D5CE;border-radius:16px;padding:18px 17px;margin-bottom:12px}
.tool-body .decision-goal-kicker {font-size:11px;color:var(--text-secondary);font-weight:700;margin-bottom:5px}
.tool-body .decision-goal-title {font-size:16px;font-weight:900;margin-bottom:12px}
.tool-body .decision-goal-question {font-size:17px;font-weight:900;color:#B42318;margin-bottom:8px}
.tool-body .decision-goal-message {font-size:13px;line-height:2;color:#4B5563}
.tool-body .brand-impact-card {background:#FFFAEB;border:1px solid #FEDF89;border-radius:16px;padding:17px;margin-bottom:18px}
.tool-body .brand-impact-title {font-size:14px;font-weight:900;color:#854F0B;display:flex;align-items:center;gap:7px;margin-bottom:7px}
.tool-body .brand-impact-text {font-size:12.8px;line-height:2;color:#633806}
@media(max-width:560px) {.tool-body .goal-options {grid-template-columns:1fr}.tool-body .goal-option {min-height:50px}.tool-body .decision-goal-question {font-size:16px}}

/* ===== KASBMAN VISUAL RESKIN — presentation layer only ===== */
.tool-body {
  --green:#0D47A1;
  --green-light:#1976D2;
  --bg-page:#F1F3F6;
  --bg-card:#FFFFFF;
  --text-primary:#172033;
  --text-secondary:#5E6878;
  --text-tertiary:#8993A3;
  --border:rgba(13,71,161,.12);
  --border-strong:rgba(13,71,161,.22);
}
.tool-body {
  font-family:'IranYekan','IRANYekan','Vazirmatn',Tahoma,sans-serif;
  background:#F1F3F6;
}
.tool-body .inp, .tool-body .goal-option, .tool-body .calc-btn, .tool-body .act-btn, .tool-body .step-nav .nav-btn {
  font-family:'IranYekan','IRANYekan','Vazirmatn',Tahoma,sans-serif;
}
.tool-body .page {background:#FFFFFF;}
.tool-body .w {background:#FFFFFF;}

.tool-body .eco-header {
  padding:8px 0 16px;
  margin-bottom:16px;
  border-bottom:1px solid rgba(13,71,161,.12);
}
.tool-body .eco-header-brand-wrap {
  gap:14px;
}
.tool-body .eco-header-logo {
  width:116px;
  height:72px;
  max-height:72px;
  object-fit:contain;
  object-position:center;
  flex:0 0 116px;
  border-radius:0;
}
.tool-body .eco-header-brand-block {
  text-align:right;
}
.tool-body .eco-header-brand {
  color:#0D47A1;
  font-size:22px;
  font-weight:900;
}
.tool-body .eco-header-tagline {
  color:#5E6878;
  font-size:12px;
}
.tool-body .tool-title {color:#0D47A1;}

.tool-body .form-intro {
  background:linear-gradient(180deg,#F5F9FE 0%,#FFFFFF 100%);
  border-color:rgba(25,118,210,.16);
}
.tool-body .form-intro-title i, .tool-body .step-kicker, .tool-body .input-label i, .tool-body .hint-box i, .tool-body .modal-title i {
  color:#1976D2;
}
.tool-body .flow-step-dot {
  border-color:#D6E1EF;
}
.tool-body .flow-step.active .flow-step-dot {
  background:#1976D2;
  border-color:#1976D2;
  box-shadow:0 3px 10px rgba(25,118,210,.18);
}
.tool-body .flow-step.active .flow-step-label {color:#172033;}
.tool-body .flow-line.done {background:#64B5F6;}

.tool-body .field-card {
  border-color:rgba(13,71,161,.12);
  box-shadow:0 4px 16px rgba(13,71,161,.04);
}
.tool-body .inp:focus {
  border-color:#1976D2;
  box-shadow:0 0 0 3px rgba(25,118,210,.12);
}
.tool-body .inp-suffix {
  background:#F1F3F6;
}
.tool-body .hint-box {
  background:#F1F3F6;
}
.tool-body .calc-btn, .tool-body .step-nav .nav-btn.primary, .tool-body .act-btn.primary, .tool-body .intent-lead-submit {
  background:linear-gradient(135deg,#1976D2,#0D47A1);
  box-shadow:0 4px 14px rgba(25,118,210,.22);
}
.tool-body .calc-btn:hover, .tool-body .step-nav .nav-btn.primary:hover, .tool-body .act-btn.primary:hover, .tool-body .intent-lead-submit:hover {
  background:#0D47A1;
}
.tool-body .eco-tool-tag {
  color:#0D47A1;
  background:#EEF5FD;
  border-color:#CFE1F7;
}
.tool-body .goal-option.selected {
  border-color:#1976D2;
  background:#EEF5FD;
  box-shadow:0 0 0 2px rgba(25,118,210,.07);
}
.tool-body .goal-option.selected .goal-radio {
  border-color:#1976D2;
}
.tool-body .goal-option.selected .goal-radio:after {background:#1976D2;}

.tool-body .decision-goal-card {
  background:#F5F8FC;
  border-color:#D7E5F5;
}
.tool-body .decision-goal-question {color:#0D47A1;}

.tool-body .brand-impact-card {
  background:#FFFAEB;
  border-color:#FEDF89;
}
.tool-body .brand-impact-title {color:#854F0B;}

.tool-body .metric-card, .tool-body .gauge-wrap {
  background:#F1F3F6;
}
.tool-body .gauge-title i {color:#1976D2;}
.tool-body .next-steps {
  background:#F1F3F6;
}
.tool-body .next-steps-title, .tool-body .next-steps-title i {color:#0D47A1;}
.tool-body .next-step-number {
  background:#1976D2;
}
.tool-body .result-toolbar-btn {
  border-color:rgba(13,71,161,.14);
}
.tool-body .watermark span {color:#0D47A1;}

.tool-body .intent-lead-input:focus {
  border-color:#1976D2;
  box-shadow:0 0 0 3px rgba(25,118,210,.10);
}
.tool-body .intent-lead-submit {background:#1976D2;}

@media(max-width:560px) {
  .tool-body .eco-header-logo {
    width:100px;
    height:62px;
    max-height:62px;
    flex-basis:100px;
  }
  .tool-body .eco-header-brand {font-size:19px;}
  .tool-body .eco-header-tagline {font-size:11px;}
}
