/* ============================================================
   CICA CALCULATOR — v2 theme (matches v2-pages.css palette)
   ============================================================ */

.cc-page {
  --hp-shell: 1320px;
  --hp-gutter: clamp(20px, 5vw, 64px);
}

.cc-page .v2-hero { padding-bottom: 40px !important; }
.cc-page .v2-lead + .v2-lead { margin-top: -8px; }
.cc-page .v2-hero__grid { align-items: center; gap: 48px; }
.cc-page .v2-hero__media > img {
  width: 100%;
  height: clamp(260px, 32vw, 380px);
  object-fit: cover;
  object-position: 68% center;
  border-radius: 18px;
}

.cc-hero-notes {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  max-width: 36rem;
}
.cc-hero-notes li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
  color: #16233f;
}
.cc-hero-notes img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex: none;
}

.cc-perks .hp-shell > ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cc-perks li { display: flex; gap: 12px; align-items: center; justify-content: center; }
.cc-perks .v2-ico { flex: none; }
.cc-perks li > span:not(.v2-ico) { display: block; min-width: 0; }
.cc-perks strong { display: block; color: #16233f; line-height: 1.3; }
.cc-perks small { display: block; margin-top: 2px; color: #5c6b82; font-size: 13px; line-height: 1.35; }

.cc-status { min-height: 50vh; display: grid; place-content: center; justify-items: center; gap: 14px; }
.cc-status__spinner { width: 36px; height: 36px; border: 3px solid #e4ebf3; border-top-color: #f97316; border-radius: 50%; animation: cc-spin 0.8s linear infinite; }
.cc-status__label { margin: 0; color: #5c6b82; }
.cc-status__label--error { color: #b42318; }
@keyframes cc-spin { to { transform: rotate(360deg); } }
@keyframes cc-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---- Workbench ---- */
.cc-workbench { background: #f4f7fb; }

.cc-alert {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #fff4e8;
  border: 1px solid #fbd3a8;
  color: #9a4a06;
  font-size: 14px;
  font-weight: 600;
}

.cc-workbench__console {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border: 1px solid #e4ebf3;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(22, 35, 63, 0.08);
  overflow: clip;
}
@media (min-width: 992px) {
  .cc-workbench__console { grid-template-columns: 72px minmax(0, 1.15fr) minmax(0, 0.85fr); }
  .cc-workbench__console.is-final { grid-template-columns: 72px minmax(0, 1fr); }
}

/* step rail */
.cc-rail {
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 36px 0;
  background: #12315c;
}
@media (min-width: 992px) { .cc-rail { display: flex; } }
.cc-rail__item { display: flex; flex-direction: column; align-items: center; }
.cc-rail__seg { width: 2px; height: 28px; margin: 6px 0; border-radius: 2px; background: rgba(255, 255, 255, 0.2); }
.cc-rail__seg.is-done { background: #f97316; }
.cc-rail__step {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 700;
}
.cc-rail__step.is-active { background: #f97316; border-color: #f97316; color: #fff; box-shadow: 0 0 0 5px rgba(249, 115, 22, 0.25); }
.cc-rail__step.is-done { background: #fff; border-color: #fff; color: #12315c; }

.cc-steps-mobile { display: flex; gap: 6px; padding: 16px 20px 0; }
.cc-steps-mobile span { flex: 1; height: 5px; border-radius: 4px; background: #e4ebf3; }
.cc-steps-mobile span.is-active { background: #f97316; }
.cc-steps-mobile span.is-done { background: #12315c; }
@media (min-width: 992px) { .cc-steps-mobile { display: none; } }

/* selection column */
.cc-select { padding: clamp(22px, 3.5vw, 40px); min-width: 0; }
.cc-select__title {
  margin: 0 0 6px;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #16233f;
}
.cc-select__hint { margin: 0 0 22px; font-size: 15.5px; line-height: 1.55; color: #5c6b82; }

.cc-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .cc-choice-grid { grid-template-columns: minmax(0, 1fr); } }
.cc-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 56px;
  padding: 12px 16px;
  border: 1.5px solid #d5dde8;
  border-radius: 12px;
  background: #fff;
  color: #16233f;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-align: start;
  cursor: pointer;
  animation: cc-in 0.35s ease both;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.cc-choice::after { content: '→'; flex: none; color: #0b2147; font-weight: 700; }
.cc-choice:hover, .cc-choice:focus-visible {
  border-color: #0b2147;
  background: #eef2f8;
  box-shadow: 0 6px 16px rgba(11, 33, 71, 0.12);
  outline: none;
}

.cc-back {
  margin-top: 22px;
  height: 44px;
  padding: 0 18px;
  border: 1.5px solid #d5dde8;
  border-radius: 10px;
  background: #fff;
  color: #16233f;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.cc-back::before { content: '← '; }
.cc-back:hover { border-color: #b7c3d4; }

/* context column */
.cc-context { padding: clamp(22px, 3.5vw, 36px); background: #f4f7fb; border-top: 1px solid #e4ebf3; min-width: 0; }
@media (min-width: 992px) { .cc-context { border-top: 0; border-left: 1px solid #e4ebf3; max-height: 760px; overflow-y: auto; } }
.injury-info-content h2, .selection-path h3 {
  margin: 0 0 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #16233f;
}
.cc-context__lead { margin: 0 0 18px; font-size: 15px; line-height: 1.6; color: #4b5870; }
.info-card { margin-bottom: 12px; padding: 16px 16px 8px; border: 1px solid #e4ebf3; border-radius: 12px; background: #fff; }
.info-title { margin: 0 0 6px; font-family: 'Poppins', sans-serif; font-size: 15px; font-weight: 700; color: #12315c; }
.info-description { margin: 0 0 10px; font-size: 14px; line-height: 1.55; color: #5c6b82; }
.info-note { margin-top: 16px; padding: 16px; border-radius: 12px; background: #e7f2fb; }
.info-note h4, .available-options h4 { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: #16233f; }
.info-note ul, .info-list { margin: 0; padding-left: 18px; }
.info-note li, .info-list li { margin-bottom: 8px; font-size: 14px; line-height: 1.5; color: #4b5870; }
.info-list { list-style: none; padding: 0; }
.info-list li { padding: 12px 14px; border: 1px solid #e4ebf3; border-radius: 10px; background: #fff; }
.info-list strong { color: #16233f; }
.selection-path { margin-bottom: 18px; }
.path-item { padding: 10px 14px; margin-bottom: 8px; border-left: 3px solid #f97316; border-radius: 0 10px 10px 0; background: #fff; }
.path-item strong { font-size: 14px; color: #16233f; }
.path-item p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.5; color: #5c6b82; }

/* results */
.selected-injury-header {
  margin: 0 0 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #f97316;
}
.selected-injury-card { margin-bottom: 20px; border: 1px solid #e4ebf3; border-radius: 14px; overflow: hidden; }
.injury-table { width: 100%; border-collapse: collapse; }
.injury-table th, .injury-table td { padding: 12px 16px; border-bottom: 1px solid #e4ebf3; vertical-align: top; font-size: 14.5px; line-height: 1.5; }
.injury-table tr:last-child th, .injury-table tr:last-child td { border-bottom: 0; }
.injury-table th { width: 30%; background: #f4f7fb; color: #5c6b82; font-weight: 600; text-align: start; }
.injury-table td { color: #16233f; }
.injury-desc { margin: 4px 0 0; color: #5c6b82; font-size: 13.5px; }
.injury-value { font-size: 18px; color: #12315c; }

.result-summary-box { margin: 8px 0 18px; padding: 24px; border-radius: 14px; background: #12315c; color: #fff; text-align: center; }
.result-summary-box h4 { margin: 0 0 8px; font-family: 'Poppins', sans-serif; font-size: clamp(34px, 5vw, 48px); font-weight: 700; letter-spacing: -0.03em; color: #fff; }
.result-summary-box h4::before { content: 'Estimated award'; display: block; margin-bottom: 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #f9a566; }
.result-breakdown p, .result-formula { margin: 0 0 6px; font-size: 14px; line-height: 1.55; color: rgba(255, 255, 255, 0.85); text-align: center !important; }
.result-disclaimer { padding: 16px 18px; border-radius: 12px; background: #fff4e8; border: 1px solid #fbd3a8; }
.result-disclaimer p { margin: 0; font-size: 13.5px; line-height: 1.6; color: #7a3c06; }
.cc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

@media (max-width: 640px) {
  .injury-table th { width: 38%; }
  .injury-table th, .injury-table td { padding: 10px 12px; }
}

@media (max-width: 980px) {
  .cc-perks .hp-shell > ul { grid-template-columns: 1fr 1fr; }
  .cc-perks li { justify-content: flex-start; }
  .cc-page .v2-hero__media > img { height: 300px; }
}
@media (max-width: 640px) {
  .cc-perks .hp-shell > ul { grid-template-columns: 1fr; }
  .cc-page .v2-hero__media > img { height: 220px; }
}
.cc-page .text-muted { color: #5c6b82; }
