/* ── CLAIM VALUE EXPLORER ──────────────────────────────── */
/* prefix: ce — all classes namespaced to avoid conflicts   */

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

/* ── INTRO STRIP ── */
.ce-intro {
  max-width: 660px;
  margin-bottom: 48px;
}
.ce-intro-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  font-family: 'Plus Jakarta Sans', sans-serif;
  margin-top: 20px;
  padding: 10px 14px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 2px;
}
.ce-intro-note::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-a);
  flex-shrink: 0;
}

/* ── SHELL ── */
.ce-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  background: var(--white);
  border: 1px solid var(--border);
  overflow: visible;
}

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

/* ── PANEL ── */
.ce-panel {
  padding: 40px;
  min-height: 440px;
  display: flex;
  flex-direction: column;
}

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

.ce-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;
}
.ce-step-h {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(19px, 2.4vw, 24px);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -.25px;
  line-height: 1.25;
  margin-bottom: 6px;
}
.ce-step-sub {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.65;
  margin-bottom: 26px;
}

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

/* ── SELECT ── */
.ce-select-wrap { margin-bottom: 18px; }
.ce-select-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  display: block;
  margin-bottom: 7px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.ce-select {
  width: 100%;
  padding: 11px 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;
}
.ce-select:focus { outline: none; border-color: var(--green-a); }

/* ── LIVE PREVIEW BLOCK ── */
.ce-preview {
  display: none;
  background: rgba(13,61,40,.04);
  border-left: 3px solid var(--green-a);
  padding: 14px 18px;
  margin-bottom: 22px;
  border-radius: 0 2px 2px 0;
}
.ce-preview.visible { display: block; }
.ce-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;
}
.ce-preview-val {
  font-family: 'Source Serif 4', serif;
  font-size: 26px;
  font-weight: 400;
  color: var(--green);
  line-height: 1.1;
}
.ce-preview-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
  font-weight: 400;
  line-height: 1.5;
}

/* ── CALLOUT NOTES ── */
.ce-callout {
  padding: 13px 17px;
  margin-bottom: 22px;
  border-radius: 2px;
}
.ce-callout.info {
  background: var(--cream);
  border-left: 3px solid var(--green-a);
}
.ce-callout.warn {
  background: rgba(200,135,58,.06);
  border-left: 3px solid var(--amber);
}
.ce-callout p {
  font-size: 12px;
  color: var(--body);
  line-height: 1.65;
  margin: 0;
}
.ce-callout strong { color: var(--ink); font-weight: 500; }

/* ── INPUT ROW ── */
.ce-input-row {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 2px;
  transition: border-color .15s;
  margin-bottom: 6px;
}
.ce-input-row:focus-within { border-color: var(--green-a); }
.ce-input-prefix {
  padding: 11px 13px;
  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;
  display: flex;
  align-items: center;
}
.ce-input {
  flex: 1;
  border: none;
  padding: 11px 13px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: transparent;
  min-width: 0;
}
.ce-input:focus { outline: none; }
.ce-input-hint {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

/* ── LOSSES GROUP ── */
.ce-losses-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
}
.ce-loss-item { display: flex; flex-direction: column; gap: 4px; }
.ce-loss-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.ce-loss-hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.45;
}

/* Documented vs estimated toggle */
.ce-doc-toggle {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.ce-doc-btn {
  font-size: 11px;
  font-weight: 500;
  font-family: 'Plus Jakarta Sans', sans-serif;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--muted);
  padding: 5px 11px;
  border-radius: 2px;
  cursor: pointer;
  transition: all .14s;
}
.ce-doc-btn.selected {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.ce-doc-btn:hover:not(.selected) { border-color: var(--green-a); color: var(--ink); }

/* ── ATE OPTIONS ── */
.ce-ate-options { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 10px; }
.ce-ate-btn {
  padding: 8px 16px;
  border: 1px solid var(--border);
  background: var(--white);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  border-radius: 2px;
  transition: all .14s;
}
.ce-ate-btn:hover { border-color: var(--green-a); color: var(--ink); }
.ce-ate-btn.selected { background: var(--green); border-color: var(--green); color: white; }

/* ── NAV ── */
.ce-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: auto;
  padding-top: 24px;
}
.ce-btn-next {
  background: var(--green);
  color: white;
  border: none;
  padding: 12px 26px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 2px;
  transition: background .15s, opacity .15s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ce-btn-next:hover { background: var(--green-m); }
.ce-btn-next:disabled { opacity: .35; cursor: not-allowed; }
.ce-btn-back {
  background: none;
  border: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12.5px;
  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;
}
.ce-btn-back:hover { color: var(--ink); }

/* ── VALIDATION ERROR ── */
.ce-error {
  display: none;
  padding: 10px 14px;
  background: rgba(200,135,58,.08);
  border-left: 3px solid var(--amber);
  border-radius: 0 2px 2px 0;
  margin-bottom: 12px;
}
.ce-error p {
  font-size: 12px;
  color: var(--body);
  margin: 0;
  line-height: 1.6;
}

/* ── RESULT PANEL ── */
.ce-result {
  display: none;
  flex-direction: column;
  border: 1px solid var(--border);
  background: var(--white);
}
.ce-result.active { display: flex; animation: ceFadeUp .35s ease both; }

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

/* ── BREAKDOWN TABLE ── */
.ce-result-body { padding: 36px 40px; }

.ce-section-label {
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  padding: 16px 0 7px;
  border-bottom: 1px solid var(--border);
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.ce-section-label:first-child { padding-top: 0; }

.ce-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}
.ce-row:last-child { border-bottom: none; }
.ce-row.ce-total-row {
  border-top: 2px solid var(--ink);
  border-bottom: none;
  padding-top: 15px;
  margin-top: 2px;
}
.ce-row-label {
  font-size: 13px;
  color: var(--body);
  font-weight: 400;
  line-height: 1.45;
  flex: 1;
}
.ce-row-label small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.4;
}
.ce-row-val {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
}
.ce-row-val.pos { color: var(--green-a); }
.ce-row-val.est {
  color: var(--muted);
  font-weight: 500;
  font-size: 13px;
  font-style: italic;
}
.ce-row-val.deduct { color: var(--amber); }
.ce-row-val.total  { font-size: 17px; color: var(--ink); }
.ce-row-val.saving { color: var(--green-a); font-size: 13px; font-weight: 600; }

/* ── RECEIVED BLOCK ── */
.ce-received-block {
  background: rgba(13,61,40,.04);
  border: 1px solid rgba(30,122,80,.14);
  border-left: 3px solid var(--green-a);
  padding: 20px 22px;
  margin-top: 20px;
  border-radius: 0 2px 2px 0;
}
.ce-received-label {
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--green-a);
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
  margin-bottom: 6px;
}
.ce-received-val {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 400;
  color: var(--green);
  line-height: 1.1;
}
.ce-received-note {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.55;
}

/* ── COMPARISON BLOCK (with / without solicitor) ── */
.ce-comparison {
  margin-top: 28px;
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.ce-comparison-head {
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
  padding: 12px 18px;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}
.ce-comparison-row {
  display: flex;
  align-items: center;
  padding: 16px 18px;
  gap: 16px;
  border-bottom: 1px solid var(--border);
}
.ce-comparison-row:last-child { border-bottom: none; }
.ce-comparison-row.highlighted { background: rgba(30,122,80,.04); }
.ce-comparison-route {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  flex: 1;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.ce-comparison-route small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 2px;
}
.ce-comparison-amount {
  font-family: 'Source Serif 4', serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--ink);
  white-space: nowrap;
}
.ce-comparison-amount.green { color: var(--green-a); }
.ce-comparison-diff {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  font-style: italic;
  padding: 10px 18px;
  border-top: 1px solid var(--border);
  background: var(--cream);
}

/* ── INSIGHT ── */
.ce-insight {
  margin-top: 24px;
  padding: 17px 20px;
  background: var(--cream);
  border-left: 3px solid var(--green-a);
  border-radius: 0 2px 2px 0;
}
.ce-insight p {
  font-family: 'Source Serif 4', serif;
  font-size: 14px;
  font-style: italic;
  color: var(--ink);
  line-height: 1.6;
  margin: 0;
}
.ce-insight p em { color: var(--green-a); font-style: normal; font-weight: 500; }

/* ── UNCERTAINTY NOTES ── */
.ce-uncertainty {
  margin-top: 20px;
  padding: 16px 18px;
  background: rgba(200,135,58,.05);
  border-left: 3px solid var(--amber);
  border-radius: 0 2px 2px 0;
}
.ce-uncertainty-label {
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--amber);
  font-family: 'Plus Jakarta Sans', sans-serif;
  margin-bottom: 6px;
}
.ce-uncertainty ul {
  margin: 0;
  padding: 0 0 0 14px;
}
.ce-uncertainty ul li {
  font-size: 12px;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 3px;
}

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

/* ── RESET ── */
.ce-reset-row {
  padding: 0 40px 28px;
  background: var(--cream);
}
.ce-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;
  transition: color .15s;
}
.ce-reset:hover { color: var(--ink); }

/* ── CONTEXT STRIP BELOW TOOL ── */
.ce-context-strip {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
  max-width: 680px;
}
.ce-context-strip p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.85;
  font-weight: 400;
  margin-bottom: 14px;
}
.ce-context-strip p:last-of-type { margin-bottom: 0; }

/* ── RESPONSIVE ── */
@media (max-width: 720px) {
  .ce-wrap { padding: 36px 16px 72px; }
  .ce-shell { grid-template-columns: 1fr; }
  .ce-sidebar { padding: 22px 18px; }
  .ce-sidebar-title { font-size: 15px; margin-bottom: 4px; }
  .ce-sidebar-sub { margin-bottom: 16px; font-size: 11px; }
  .ce-steps { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .ce-step-item {
    flex-direction: row;
    padding: 5px 10px;
    border-bottom: none;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 20px;
    gap: 7px;
    opacity: .35;
  }
  .ce-step-item.active { opacity: 1; background: rgba(255,255,255,.1); }
  .ce-step-label { font-size: 11px; padding-top: 0; }
  .ce-panel { padding: 26px 18px; min-height: auto; }
  .ce-result-header { padding: 26px 18px 22px; }
  .ce-result-body { padding: 22px 18px; }
  .ce-next { padding: 22px 18px 32px; }
  .ce-reset-row { padding: 0 18px 24px; }
  .ce-received-val { font-size: 26px; }
  .ce-comparison-amount { font-size: 18px; }
}
@media (max-width: 440px) {
  .ce-ate-options { flex-direction: column; }
  .ce-doc-toggle { flex-direction: column; }
}
