/* Dockai ROI calculator: shared styles for the landing page section and the ROI page.
   Markup is rendered by roi-calc.js from a per-language roi-calc.<lang>.js. */

  .roi-section {
    padding: 96px 24px;
    background: var(--white);
  }

  .roi-section .section-label { text-align: center; }
  .roi-section .section-title { text-align: center; max-width: 100%; margin-left: auto; margin-right: auto; }
  .roi-section .section-desc { text-align: center; margin-left: auto; margin-right: auto; margin-bottom: 48px; }

  .calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: stretch;
    max-width: 980px;
    margin: 0 auto;
  }

  .calc-inputs {
    background: var(--slate-50);
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
    border: 1px solid #e8ecf1;
  }

  .calc-inputs h3 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--slate-500);
    font-weight: 600;
    margin-bottom: 28px;
  }

  .field { margin-bottom: 28px; }
  .field:last-child { margin-bottom: 0; }

  .field label {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--slate-800);
    margin-bottom: 10px;
  }

  .slider-row {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .slider-row input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: 4px;
    background: var(--slate-200);
    outline: none;
    cursor: pointer;
  }

  .slider-row input[type="range"]:focus-visible {
    outline: 2px solid var(--blue-600);
    outline-offset: 4px;
  }

  .slider-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--blue-600);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(40,102,171,0.3);
    border: 3px solid var(--white);
  }

  .slider-row input[type="range"]::-moz-range-thumb {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--blue-600);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(40,102,171,0.3);
    border: 3px solid var(--white);
  }

  .slider-value {
    min-width: 60px;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--slate-800);
    background: var(--white);
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid var(--slate-200);
  }

  .field-hint {
    font-size: 0.76rem;
    color: var(--slate-500);
    margin-top: 6px;
  }

  .divider {
    height: 1px;
    background: var(--slate-200);
    margin: 32px 0;
  }

  .calc-results { position: sticky; top: 88px; height: 100%; }

  .results-card {
    background: linear-gradient(155deg, var(--blue-900) 0%, var(--blue-700) 50%, var(--blue-600) 100%);
    border-radius: 20px;
    padding: 36px;
    color: var(--white);
    box-shadow: 0 8px 32px rgba(16,42,92,0.35);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .results-card h3 {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #93b4d8;
    font-weight: 600;
    margin-bottom: 16px;
  }

  .total-block {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(147,180,216,0.2);
  }

  .total-amount {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--green-400);
    line-height: 1;
    letter-spacing: -0.02em;
  }

  .total-label {
    font-size: 0.88rem;
    color: #93b4d8;
    margin-top: 6px;
    font-weight: 500;
  }

  .bars { display: flex; flex-direction: column; gap: 18px; margin-bottom: 28px; }

  .bar-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
    gap: 12px;
  }

  .bar-name { font-size: 0.82rem; color: #c5d9ee; font-weight: 500; }
  .bar-val { font-size: 0.95rem; font-weight: 700; color: var(--white); white-space: nowrap; }

  .bar-track {
    height: 12px;
    background: rgba(147,180,216,0.12);
    border-radius: 6px;
    overflow: hidden;
  }

  .bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.5s ease;
    min-width: 4px;
  }

  .bar-fill.personnel { background: var(--green-400); }
  .bar-fill.transport { background: #c4b5fd; }
  .bar-fill.scheduling { background: var(--teal); }

  .bar-sub { font-size: 0.72rem; color: #93b4d8; margin-bottom: 4px; font-weight: 500; }

  .calc-details {
    margin: 16px 0 24px;
    font-size: 0.82rem;
    color: #93b4d8;
  }

  .calc-details summary {
    cursor: pointer;
    text-align: center;
    padding: 8px 14px;
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
    font-weight: 500;
    color: #c5d9ee;
    transition: background 0.2s;
    list-style: none;
  }

  .calc-details summary::-webkit-details-marker { display: none; }
  .calc-details summary::before { content: '\25B8 '; display: inline; }
  .calc-details[open] summary::before { content: '\25BE '; }
  .calc-details summary:hover { background: rgba(255,255,255,0.08); }

  .calc-breakdown {
    margin-top: 12px;
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
    padding: 16px 18px;
    line-height: 1.7;
  }

  .calc-breakdown .cb-heading {
    font-weight: 600;
    color: #c5d9ee;
    margin: 10px 0 4px;
  }

  .calc-breakdown .cb-heading:first-child { margin-top: 0; }

  .calc-breakdown .cb-line {
    padding-left: 12px;
    color: #93b4d8;
  }

  .calc-breakdown .cb-total {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-weight: 600;
    color: #fff;
    font-size: 0.92rem;
  }

  .cta-btn {
    display: block;
    width: 100%;
    padding: 16px;
    background: var(--green-400);
    color: #0f2b14;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
  }

  .cta-btn:hover { background: var(--green-500); }
  .cta-btn:active { transform: scale(0.99); }
  .cta-btn:focus-visible { outline: 3px solid var(--green-400); outline-offset: 3px; }

  @media (max-width: 860px) {
    .calc-grid { grid-template-columns: 1fr; }
    .calc-results { position: static; }
  }
