/* ── TARIFF CALCULATOR ─────────────────────────────────── */

.tc-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

/* ── STEP SHELL ── */
.tc-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--border);
  overflow: visible;
}

/* ── LEFT SIDEBAR ── */
.tc-sidebar {
  background: var(--green);
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.tc-sidebar-title {
  font-family: 'Source Serif 4', serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 8px;
}
.tc-sidebar-sub {
  font-size: 11px;
  color: rgba(255,255,255,.5);
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: 36px;
}
.tc-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.tc-step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  opacity: .3;
  transition: opacity .25s;
}
.tc-step-item:last-child { border-bottom: none; }
.tc-step-item.active { opacity: 1; }
.tc-step-item.done { opacity: .55; }
.tc-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,.5);
  flex-shrink: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: background .25s, border-color .25s, color .25s;
}
.tc-step-item.active .tc-step-num {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.5);
  color: white;
}
.tc-step-item.done .tc-step-num {
  background: var(--green-a);
  border-color: var(--green-a);
  color: white;
}
.tc-step-item.done .tc-step-num::after {
  content: '✓';
  font-size: 11px;
}
.tc-step-item.done .tc-step-num-inner { display: none; }
.tc-step-label {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255,255,255,.6);
  line-height: 1.5;
  padding-top: 3px;
}
.tc-step-item.active .tc-step-label { color: white; font-weight: 500; }

/* ── RIGHT PANEL ── */
.tc-panel {
  padding: 40px 40px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

/* ── STEP VIEWS ── */
.tc-view { display: none; flex-direction: column; flex: 1; }
.tc-view.active { display: flex; animation: tcFadeUp .3s ease both; }
@keyframes tcFadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.tc-step-eyebrow {
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--green-a);
  font-weight: 500;
  margin-bottom: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.tc-step-h {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -.3px;
  line-height: 1.25;
  margin-bottom: 8px;
}
.tc-step-sub {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.65;
  margin-bottom: 28px;
}

/* ── OPTION CARDS ── */
.tc-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.tc-option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  transition: border-color .15s, background .15s;
  text-align: left;
  width: 100%;
  border-radius: 2px;
}
.tc-option:hover {
  border-color: var(--green-a);
  background: rgba(13,61,40,.02);
}
.tc-option.selected {
  border-color: var(--green-a);
  background: rgba(30,122,80,.05);
}
.tc-option-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  flex-shrink: 0;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s;
}
.tc-option.selected .tc-option-radio {
  border-color: var(--green-a);
}
.tc-option.selected .tc-option-radio::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-a);
}
.tc-option-text { flex: 1; }
.tc-option-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  display: block;
  margin-bottom: 2px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.tc-option-desc {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.55;
}
.tc-option-badge {
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--green-a);
  border: 1px solid rgba(30,122,80,.3);
  padding: 2px 7px;
  border-radius: 1px;
  flex-shrink: 0;
  margin-top: 2px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ── PROGNOSIS SELECT ── */
.tc-select-wrap {
  margin-bottom: 20px;
}
.tc-select-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  display: block;
  margin-bottom: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.tc-select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: var(--white);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231E7A50' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  border-radius: 2px;
  transition: border-color .15s;
}
.tc-select:focus {
  outline: none;
  border-color: var(--green-a);
}

/* Live tariff preview */
.tc-tariff-preview {
  background: rgba(13,61,40,.04);
  border-left: 3px solid var(--green-a);
  padding: 14px 18px;
  margin-bottom: 24px;
  display: none;
}
.tc-tariff-preview.visible { display: block; }
.tc-tariff-preview-label {
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--green-a);
  font-weight: 500;
  margin-bottom: 4px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.tc-tariff-preview-val {
  font-family: 'Source Serif 4', serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--green);
  line-height: 1.1;
}
.tc-tariff-preview-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 400;
  line-height: 1.5;
}

/* Prognosis info note */
.tc-info-note {
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 12px 16px;
  margin-bottom: 24px;
  border-radius: 2px;
}
.tc-info-note p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
  font-weight: 400;
}
.tc-info-note strong { color: var(--body); font-weight: 500; }

/* ── FINANCIAL LOSSES INPUT ── */
.tc-losses-wrap {
  margin-bottom: 24px;
}
.tc-losses-input-row {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 2px;
  transition: border-color .15s;
}
.tc-losses-input-row:focus-within {
  border-color: var(--green-a);
}
.tc-losses-prefix {
  padding: 12px 14px;
  background: var(--cream);
  border-right: 1px solid var(--border);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  font-family: 'Plus Jakarta Sans', sans-serif;
  flex-shrink: 0;
}
.tc-losses-input {
  flex: 1;
  border: none;
  padding: 12px 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: transparent;
}
.tc-losses-input:focus { outline: none; }
.tc-losses-hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.5;
}

/* ── ATE TOGGLE ── */
.tc-ate-options {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.tc-ate-btn {
  padding: 9px 18px;
  border: 1px solid var(--border);
  background: var(--white);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  border-radius: 2px;
  transition: all .15s;
}
.tc-ate-btn:hover { border-color: var(--green-a); color: var(--ink); }
.tc-ate-btn.selected {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.tc-ate-input-row {
  display: none;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 2px;
  margin-bottom: 10px;
  transition: border-color .15s;
}
.tc-ate-input-row.visible { display: flex; }
.tc-ate-input-row:focus-within { border-color: var(--green-a); }
.tc-ate-not-sure {
  display: none;
  background: rgba(200,135,58,.06);
  border: 1px solid rgba(200,135,58,.2);
  border-left: 3px solid var(--amber);
  padding: 12px 16px;
  margin-bottom: 10px;
  border-radius: 2px;
}
.tc-ate-not-sure.visible { display: block; }
.tc-ate-not-sure p {
  font-size: 12px;
  color: var(--body);
  line-height: 1.65;
  margin: 0;
}

/* ── NAV BUTTONS ── */
.tc-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: auto;
  padding-top: 24px;
}
.tc-btn-next {
  background: var(--green);
  color: white;
  border: none;
  padding: 13px 28px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 2px;
  transition: background .15s, opacity .15s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tc-btn-next:hover { background: var(--green-m); }
.tc-btn-next:disabled { opacity: .35; cursor: not-allowed; }
.tc-btn-back {
  background: none;
  border: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  border-bottom: 1px solid rgba(0,0,0,.12);
  padding-bottom: 2px;
  transition: color .15s;
}
.tc-btn-back:hover { color: var(--ink); }

/* ── RESULT PANEL ── */
.tc-result {
  display: none;
  flex-direction: column;
}
.tc-result.active { display: flex; animation: tcFadeUp .35s ease both; }

.tc-result-header {
  background: var(--green);
  padding: 36px 40px 32px;
}
.tc-result-eyebrow {
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  font-weight: 500;
  margin-bottom: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.tc-result-h {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 400;
  color: white;
  line-height: 1.2;
  margin-bottom: 6px;
  letter-spacing: -.3px;
}
.tc-result-schedule {
  font-size: 11px;
  color: rgba(255,255,255,.45);
  font-weight: 400;
  line-height: 1.5;
}

.tc-result-body {
  padding: 36px 40px;
  background: var(--white);
}

/* Breakdown table */
.tc-breakdown {
  margin-bottom: 0;
}
.tc-breakdown-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}
.tc-breakdown-row:last-child { border-bottom: none; }
.tc-breakdown-row.tc-total-row {
  border-top: 2px solid var(--ink);
  border-bottom: none;
  padding-top: 16px;
  margin-top: 4px;
}
.tc-breakdown-row.tc-received-row {
  border-top: 2px solid var(--green-a);
  border-bottom: none;
  padding-top: 16px;
  margin-top: 4px;
  background: rgba(30,122,80,.04);
  padding: 16px 14px;
  margin: 0 -14px;
  border-radius: 2px;
}
.tc-breakdown-label {
  font-size: 13px;
  color: var(--body);
  font-weight: 400;
  line-height: 1.45;
  flex: 1;
}
.tc-breakdown-label small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.4;
}
.tc-breakdown-val {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
}
.tc-breakdown-val.positive { color: var(--green-a); }
.tc-breakdown-val.deduction { color: var(--amber); }
.tc-breakdown-val.total-val {
  font-size: 18px;
  color: var(--ink);
}
.tc-breakdown-val.received-val {
  font-family: 'Source Serif 4', serif;
  font-size: 26px;
  font-weight: 400;
  color: var(--green);
}
.tc-breakdown-section-head {
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  padding: 18px 0 6px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  border-bottom: 1px solid var(--border);
}

/* Divider between value and deductions */
.tc-breakdown-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

/* Key insight line */
.tc-insight {
  margin-top: 28px;
  padding: 18px 20px;
  background: var(--cream);
  border-left: 3px solid var(--green-a);
  border-radius: 0 2px 2px 0;
}
.tc-insight p {
  font-family: 'Source Serif 4', serif;
  font-size: 14px;
  font-style: italic;
  color: var(--ink);
  line-height: 1.6;
  margin: 0;
}
.tc-insight p em { color: var(--green-a); font-style: italic; }

/* Context note */
.tc-context {
  margin-top: 16px;
  padding: 16px 20px;
  background: var(--cream);
  border-radius: 2px;
}
.tc-context p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

/* Mixed injury notice */
.tc-mixed-notice {
  padding: 32px 40px;
  background: var(--white);
}
.tc-mixed-h {
  font-family: 'Source Serif 4', serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.3;
}
.tc-mixed-body {
  font-size: 14px;
  color: var(--body);
  line-height: 1.8;
  font-weight: 400;
  margin-bottom: 14px;
}
.tc-mixed-callout {
  background: rgba(200,135,58,.06);
  border-left: 3px solid var(--amber);
  padding: 14px 18px;
  margin: 16px 0;
  border-radius: 0 2px 2px 0;
}
.tc-mixed-callout p {
  font-size: 13px;
  color: var(--body);
  line-height: 1.7;
  margin: 0;
}

/* Result next steps */
.tc-next-steps {
  padding: 28px 40px 40px;
  background: var(--cream);
  border-top: 1px solid var(--border);
}
.tc-next-label {
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.tc-next-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tc-next-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
  gap: 12px;
}
.tc-next-link:hover {
  border-color: var(--green-a);
  box-shadow: 0 2px 8px rgba(13,61,40,.06);
}
.tc-next-link-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.tc-next-link-arrow {
  color: var(--green-a);
  font-size: 14px;
  flex-shrink: 0;
}

/* Reset link */
.tc-reset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  border-bottom: 1px solid rgba(0,0,0,.1);
  padding-bottom: 1px;
  margin-top: 20px;
  transition: color .15s;
}
.tc-reset:hover { color: var(--ink); }

/* OIC self note */
.tc-oic-note {
  margin-top: 16px;
  padding: 14px 18px;
  background: rgba(13,61,40,.04);
  border-left: 3px solid var(--green-a);
  border-radius: 0 2px 2px 0;
}
.tc-oic-note p {
  font-size: 12px;
  color: var(--body);
  line-height: 1.65;
  margin: 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .tc-wrap { padding: 40px 16px 72px; }
  .tc-shell { grid-template-columns: 1fr; }
  .tc-sidebar { padding: 24px 20px; }
  .tc-sidebar-title { font-size: 16px; margin-bottom: 6px; }
  .tc-sidebar-sub { margin-bottom: 20px; font-size: 11px; }
  .tc-steps { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .tc-step-item {
    flex-direction: row;
    padding: 6px 10px;
    border-bottom: none;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 20px;
    gap: 7px;
    opacity: .4;
  }
  .tc-step-item.active { opacity: 1; background: rgba(255,255,255,.1); }
  .tc-step-label { font-size: 11px; padding-top: 0; }
  .tc-panel { padding: 28px 20px; }
  .tc-result-header { padding: 28px 20px 24px; }
  .tc-result-body { padding: 24px 20px; }
  .tc-mixed-notice { padding: 24px 20px; }
  .tc-next-steps { padding: 24px 20px 36px; }
  .tc-tariff-preview-val { font-size: 24px; }
  .tc-breakdown-val.received-val { font-size: 22px; }
}
@media (max-width: 420px) {
  .tc-ate-options { flex-direction: column; }
  .tc-ate-btn { text-align: left; }
}
