/* ================================================================
   IT Downtime Cost Calculator — downtime_calculator.css
   ================================================================ */

.dt-wrap { font-family: inherit; color: #1a2236; }

/* ── Hero ── */
.dt-hero {
  background: linear-gradient(135deg, #18181b 0%, #7f1d1d 60%, #c2410c 100%);
  padding: 52px 24px 44px;
  text-align: center;
  position: relative; overflow: hidden;
}
.dt-hero::before {
  content: ''; position: absolute;
  width: 420px; height: 420px; border-radius: 50%;
  background: rgba(239,68,68,.07); top: -120px; right: -80px; pointer-events: none;
}
.dt-hero::after {
  content: ''; position: absolute;
  width: 280px; height: 280px; border-radius: 50%;
  background: rgba(255,255,255,.03); bottom: -60px; left: -40px; pointer-events: none;
}
.dt-hero-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.dt-hero-icon { width: 64px; height: 64px; margin: 0 auto 20px; filter: drop-shadow(0 4px 20px rgba(239,68,68,.4)); }
.dt-hero-icon svg { width: 100%; height: 100%; }
.dt-hero-title {
  margin: 0 0 14px; color: #fff;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800; line-height: 1.25;
  text-shadow: 0 2px 16px rgba(0,0,0,.35);
}
.dt-hero-sub { margin: 0; color: rgba(255,255,255,.75); font-size: 1rem; line-height: 1.65; }

/* ── Outer ── */
.dt-outer { max-width: 1080px; margin: 0 auto; padding: 0 20px 60px; }

/* ── Two-column layout ── */
.dt-main-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 20px;
  margin-top: -24px;
  align-items: start;
}
@media (max-width: 860px) { .dt-main-layout { grid-template-columns: 1fr; } }

/* ── Cards (shared) ── */
.dt-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
  margin-bottom: 16px;
}
.dt-card:last-child { margin-bottom: 0; }
.dt-card-heading {
  display: flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  color: #6b7280; margin-bottom: 18px;
}
.dt-card-heading svg { flex-shrink: 0; }

/* Fields */
.dt-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.dt-field:last-child { margin-bottom: 0; }
.dt-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .dt-field-row { grid-template-columns: 1fr; } }

.dt-label {
  font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; color: #6b7280;
}
.dt-label-hint {
  font-weight: 400; text-transform: none; letter-spacing: 0;
  color: #9ca3af; font-size: .72rem; cursor: help;
}
.dt-label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

/* Inputs */
.dt-input {
  padding: 10px 13px; border: 1.5px solid #d1d5db;
  border-radius: 8px; font-size: .95rem; color: #111827;
  background: #f9fafb; outline: none; box-sizing: border-box;
  transition: border-color .18s, box-shadow .18s; width: 100%;
}
.dt-input:focus { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,.1); background: #fff; }
.dt-input-sm { max-width: 100%; }
.dt-input-prefix-wrap { position: relative; display: flex; align-items: center; }
.dt-input-prefix {
  position: absolute; left: 12px;
  font-size: .85rem; font-weight: 700; color: #6b7280;
  pointer-events: none; z-index: 1;
}
.dt-input-prefixed { padding-left: 32px; }
.dt-select {
  padding: 10px 13px; border: 1.5px solid #d1d5db;
  border-radius: 8px; font-size: .9rem; color: #111827;
  background: #f9fafb; outline: none; cursor: pointer;
  width: 100%; box-sizing: border-box;
  transition: border-color .18s;
}
.dt-select:focus { border-color: #dc2626; }

/* Currency toggle */
.dt-currency-toggle {
  display: inline-flex; background: #f3f4f6;
  border: 1px solid #e5e7eb; border-radius: 6px; padding: 2px; gap: 2px;
}
.dt-ctgl {
  padding: 4px 10px; border: none; border-radius: 4px;
  background: transparent; font-size: .75rem; font-weight: 700;
  color: #6b7280; cursor: pointer; transition: background .15s, color .15s;
}
.dt-ctgl--on { background: #fff; color: #dc2626; box-shadow: 0 1px 3px rgba(0,0,0,.1); }

/* Sliders */
.dt-slider {
  -webkit-appearance: none; height: 5px; border-radius: 4px;
  background: #e5e7eb; outline: none; cursor: pointer; width: 100%;
}
.dt-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: #dc2626; box-shadow: 0 2px 6px rgba(220,38,38,.3);
  cursor: pointer; transition: transform .15s;
}
.dt-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
.dt-slider::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: #dc2626; border: none;
  box-shadow: 0 2px 6px rgba(220,38,38,.3); cursor: pointer;
}
.dt-slider-hint { font-size: .75rem; color: #9ca3af; margin-top: 2px; }
.dt-slider-sub  { font-size: .72rem; color: #9ca3af; }
.dt-slider-ticks-hours {
  display: flex; justify-content: space-between;
  font-size: .68rem; color: #9ca3af; margin-top: 2px;
}

.dt-duration-live {
  font-size: .9rem; font-weight: 700; color: #dc2626;
  font-variant-numeric: tabular-nums;
}
.dt-pct-live {
  font-size: .88rem; font-weight: 700; color: #374151;
}

/* Advanced panel */
.dt-card-advanced { padding: 0; overflow: hidden; }
.dt-advanced-toggle {
  width: 100%; padding: 18px 22px; border: none; background: transparent;
  display: flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 700; color: #6b7280;
  cursor: pointer; text-transform: uppercase; letter-spacing: .06em;
  transition: color .15s;
}
.dt-advanced-toggle:hover { color: #374151; }
.dt-advanced-toggle svg { transition: transform .2s; flex-shrink: 0; }
.dt-advanced-toggle--open svg { transform: rotate(180deg); }
.dt-advanced-body { display: none; padding: 0 22px 22px; }
.dt-advanced-body.dt-adv-open { display: block; }

/* ── Results column ── */
.dt-results-col { position: sticky; top: 20px; }
@media (max-width: 860px) { .dt-results-col { position: static; } }

/* Results hero */
.dt-results-hero {
  background: linear-gradient(135deg, #18181b 0%, #7f1d1d 100%);
  border-radius: 12px;
  padding: 28px 24px 20px;
  text-align: center;
  margin-bottom: 14px;
  box-shadow: 0 8px 32px rgba(127,29,29,.3);
}
.dt-results-label {
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: rgba(255,255,255,.5); margin-bottom: 8px;
}
.dt-results-total {
  font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 900;
  color: #fff; line-height: 1.1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 16px rgba(0,0,0,.3);
  margin-bottom: 6px;
}
.dt-results-duration { font-size: .82rem; color: rgba(255,255,255,.6); margin-bottom: 18px; }

/* Severity bar */
.dt-severity-bar-wrap {
  height: 6px; background: rgba(255,255,255,.12);
  border-radius: 4px; margin-bottom: 8px; overflow: hidden;
}
.dt-severity-bar {
  height: 100%; border-radius: 4px;
  transition: width .5s ease, background .5s;
}
.sev-low      { background: #22c55e; color: #16a34a; }
.sev-moderate { background: #f59e0b; color: #d97706; }
.sev-high     { background: #f97316; color: #ea580c; }
.sev-critical { background: #ef4444; color: #dc2626; }
.sev-severe   { background: #b91c1c; color: #991b1b; }

.dt-severity-bar.sev-low      { background: #22c55e; }
.dt-severity-bar.sev-moderate { background: #f59e0b; }
.dt-severity-bar.sev-high     { background: #f97316; }
.dt-severity-bar.sev-critical { background: #ef4444; }
.dt-severity-bar.sev-severe   { background: #b91c1c; }

.dt-severity-label {
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
}
.dt-severity-label.sev-low      { color: #22c55e; }
.dt-severity-label.sev-moderate { color: #fbbf24; }
.dt-severity-label.sev-high     { color: #fb923c; }
.dt-severity-label.sev-critical { color: #f87171; }
.dt-severity-label.sev-severe   { color: #fca5a5; }

/* Breakdown card */
.dt-breakdown-card {
  background: #fff; border: 1px solid #e5e7eb;
  border-radius: 12px; padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  margin-bottom: 14px;
}
.dt-breakdown-title {
  font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: #6b7280; margin-bottom: 14px;
}
.dt-breakdown-item { margin-bottom: 14px; }
.dt-breakdown-item:last-child { margin-bottom: 0; }
.dt-bi-header {
  display: flex; align-items: center; gap: 8px; margin-bottom: 5px;
}
.dt-bi-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.dt-bi-dot--revenue     { background: #ef4444; }
.dt-bi-dot--productivity{ background: #f97316; }
.dt-bi-dot--it          { background: #8b5cf6; }
.dt-bi-label { font-size: .82rem; color: #374151; flex: 1; }
.dt-bi-val   { font-size: .88rem; font-weight: 700; color: #111827; font-variant-numeric: tabular-nums; }

.dt-bi-bar-track {
  height: 4px; background: #f3f4f6; border-radius: 4px; overflow: hidden;
}
.dt-bi-bar {
  height: 100%; border-radius: 4px;
  transition: width .4s ease;
}
.dt-bi-bar--revenue      { background: #ef4444; }
.dt-bi-bar--productivity { background: #f97316; }
.dt-bi-bar--it           { background: #8b5cf6; }
.dt-bi-sub { font-size: .7rem; color: #9ca3af; margin-top: 3px; }

/* Rates card */
.dt-rates-card {
  background: #f9fafb; border: 1px solid #e5e7eb;
  border-radius: 12px; padding: 18px 20px;
  margin-bottom: 14px;
}
.dt-rate-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0; border-bottom: 1px solid #f3f4f6;
  font-size: .84rem;
}
.dt-rate-row:last-child { border-bottom: none; }
.dt-rate-row span { color: #6b7280; }
.dt-rate-row strong { color: #111827; font-variant-numeric: tabular-nums; }
.dt-rate-row--day strong { color: #dc2626; }
.dt-rate-row--annual strong { color: #7f1d1d; font-size: .88rem; }

.dt-copy-btn-full {
  width: 100%; padding: 11px;
  background: #f3f4f6; border: 1px solid #e5e7eb;
  border-radius: 8px; font-size: .84rem; font-weight: 700;
  color: #374151; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: background .15s;
}
.dt-copy-btn-full:hover { background: #e5e7eb; }

/* ── Comparison card ── */
.dt-compare-card {
  background: #fff; border: 1px solid #e5e7eb;
  border-radius: 12px; padding: 28px;
  margin-top: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.dt-compare-header { text-align: center; margin-bottom: 16px; }
.dt-compare-header h2 { margin: 0 0 8px; font-size: 1.1rem; font-weight: 800; color: #111827; }
.dt-compare-header p  { margin: 0; font-size: .88rem; color: #6b7280; }
.dt-compare-layers {
  display: flex; align-items: center; gap: 10px;
  justify-content: center; flex-wrap: wrap;
  margin: 0 0 20px;
}
.dt-layer {
  display: flex; align-items: center; gap: 8px;
  background: #f9fafb; border-radius: 8px;
  padding: 7px 14px; font-size: .8rem; color: #374151;
  border: 1px solid #e5e7eb;
}
.dt-layer--prevent { border-color: rgba(59,130,246,.3); background: #eff6ff; }
.dt-layer--recover { border-color: rgba(22,163,74,.3);  background: #f0fdf4; }
.dt-layer-badge {
  font-size: .67rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  padding: 2px 6px; border-radius: 4px; white-space: nowrap;
}
.dt-layer--prevent .dt-layer-badge { background: rgba(59,130,246,.12); color: #1d4ed8; }
.dt-layer--recover .dt-layer-badge { background: rgba(22,163,74,.12);  color: #15803d; }
.dt-layer-arrow { color: #9ca3af; font-size: 1.1rem; flex-shrink: 0; }
.dt-compare-cols {
  display: flex; align-items: center; gap: 20px;
  justify-content: center; flex-wrap: wrap;
}
.dt-compare-side {
  flex: 1 1 200px; max-width: 280px;
  border-radius: 12px; padding: 24px;
  text-align: center;
}
.dt-compare-side--cost  { background: #fef2f2; border: 1.5px solid #fca5a5; }
.dt-compare-side--backup{ background: #f0fdf4; border: 1.5px solid #86efac; }
.dt-compare-icon { width: 48px; height: 48px; margin: 0 auto 12px; }
.dt-compare-icon svg { width: 100%; height: 100%; }
.dt-compare-side-label { font-size: .76rem; font-weight: 600; color: #6b7280; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.dt-compare-side--cost  .dt-compare-side-val { color: #dc2626; }
.dt-compare-side--backup .dt-compare-side-val { color: #16a34a; }
.dt-compare-side-val { font-size: 1.5rem; font-weight: 900; line-height: 1.2; font-variant-numeric: tabular-nums; }
.dt-compare-side-sub { font-size: .72rem; color: #9ca3af; margin-top: 4px; }
.dt-compare-vs {
  font-size: 1rem; font-weight: 800; color: #9ca3af;
  flex-shrink: 0; padding: 0 4px;
}
.dt-compare-conclusion {
  margin-top: 20px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: .88rem;
  color: #0c4a6e;
  line-height: 1.6;
  text-align: center;
}
.dt-compare-conclusion strong { color: #1e3a5f; }

/* ── Benchmark table ── */
.dt-bench-card {
  background: #fff; border: 1px solid #e5e7eb;
  border-radius: 12px; padding: 28px;
  margin-top: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.dt-bench-title { margin: 0 0 6px; font-size: 1.1rem; font-weight: 700; color: #111827; }
.dt-bench-intro { margin: 0 0 18px; font-size: .88rem; color: #6b7280; }
.dt-bench-wrap  { overflow-x: auto; }
.dt-bench-table { width: 100%; border-collapse: collapse; min-width: 500px; font-size: .86rem; }
.dt-bench-table th {
  text-align: left; padding: 10px 14px;
  background: #f9fafb; border-bottom: 2px solid #e5e7eb;
  font-size: .76rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; color: #6b7280;
}
.dt-bench-table td { padding: 10px 14px; border-bottom: 1px solid #f3f4f6; color: #374151; }
.dt-bench-table tbody tr:hover { background: #fef2f2; }
.dt-bench-table tbody tr:last-child td { border-bottom: none; }

/* ── Info grid ── */
.dt-info-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 20px; margin-top: 28px;
}
@media (max-width: 680px) { .dt-info-grid { grid-template-columns: 1fr; } }
.dt-info-card {
  background: #fff; border: 1px solid #e5e7eb;
  border-radius: 12px; padding: 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.dt-info-card h2 { margin: 0 0 12px; font-size: 1rem; font-weight: 700; color: #111827; }
.dt-info-card p  { margin: 0 0 10px; font-size: .9rem; line-height: 1.7; color: #4b5563; }
.dt-info-card p:last-child { margin-bottom: 0; }
.dt-info-card strong { color: #111827; }
.dt-info-card em { font-style: normal; background: #f3f4f6; padding: 1px 5px; border-radius: 3px; font-family: 'Courier New', monospace; font-size: .84rem; }

/* ── CTA card ── */
.dt-cta-card {
  background: linear-gradient(135deg, #18181b 0%, #7f1d1d 100%);
  border-radius: 14px; padding: 36px;
  margin-top: 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
}
.dt-cta-content { flex: 1 1 280px; }
.dt-cta-content h2 { margin: 0 0 10px; color: #fff; font-size: 1.2rem; font-weight: 800; }
.dt-cta-content p  { margin: 0; color: rgba(255,255,255,.72); font-size: .9rem; line-height: 1.65; }
.dt-cta-actions { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }
.dt-cta-btn-primary {
  display: inline-block; padding: 13px 24px;
  background: #f05a28; color: #fff !important;
  border-radius: 8px; font-size: .9rem; font-weight: 700;
  text-decoration: none !important; white-space: nowrap; text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
  transition: transform .18s, box-shadow .18s;
}
.dt-cta-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(0,0,0,.28); }
.dt-cta-btn-secondary {
  display: inline-block; padding: 11px 24px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.85) !important;
  border-radius: 8px; font-size: .88rem; font-weight: 600;
  text-decoration: none !important; white-space: nowrap; text-align: center;
  transition: background .18s;
}
.dt-cta-btn-secondary:hover { background: rgba(255,255,255,.14); }

/* ── Toast ── */
.dt-toast {
  position: fixed; bottom: 28px; right: 28px;
  background: #111827; color: #fff; padding: 10px 20px;
  border-radius: 8px; font-size: .88rem; font-weight: 600;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
  opacity: 0; transform: translateY(8px);
  pointer-events: none; transition: opacity .25s, transform .25s; z-index: 9999;
}
.dt-toast--show { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 600px) {
  .dt-hero { padding: 40px 16px 36px; }
  .dt-outer { padding: 0 12px 40px; }
  .dt-card, .dt-compare-card, .dt-bench-card, .dt-info-card, .dt-cta-card { padding: 18px 16px; }
  .dt-cta-card { padding: 24px 16px; }
  .dt-compare-side { max-width: 100%; }
}
