/* ─────────────────────────────────────────────
   INUMC 2026 Workers' Compensation Worksheet
   styles.css
───────────────────────────────────────────── */

:root {
  --red:        #b5121b;
  --red-dark:   #8c0e15;
  --red-light:  #f9e9ea;
  --charcoal:   #222222;
  --mid-gray:   #555555;
  --light-gray: #f4f4f4;
  --border:     #ddd;
  --white:      #ffffff;
  --green:      #1e6b3e;
  --green-bg:   #eaf4ef;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Lato', sans-serif;
  background: #ebebeb;
  color: var(--charcoal);
  font-size: 15px;
  line-height: 1.5;
}

/* ─── BUTTONS ─── */
.site-header { background: var(--white); border-bottom: 4px solid var(--red); }
.header-inner {
  max-width: 1040px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 18px;
}
.logo-wrap { display: flex; align-items: center; gap: 13px; text-decoration: none; flex-shrink: 0; }
.logo-text .lt-top {
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--mid-gray);
}
.logo-text .lt-main {
  font-family: 'Merriweather', serif; font-size: 1.05rem;
  font-weight: 700; color: var(--charcoal); line-height: 1.2;
}
.logo-text .lt-main em { color: var(--red); font-style: normal; }
.hdr-divider { width: 1px; height: 46px; background: var(--border); flex-shrink: 0; }
.hdr-title { flex: 1; }
.hdr-title h1 {
  font-family: 'Merriweather', serif; font-size: 1.2rem;
  font-weight: 700; color: var(--charcoal); line-height: 1.25;
}
.hdr-title .sub { font-size: 0.78rem; color: var(--mid-gray); margin-top: 3px; }
.hdr-contact { text-align: right; font-size: 0.76rem; color: var(--mid-gray); line-height: 1.65; flex-shrink: 0; }
.hdr-contact a { color: var(--red); text-decoration: none; font-weight: 700; }

/* ─── BREADCRUMB ─── */
.breadcrumb { background: var(--light-gray); border-bottom: 1px solid var(--border); padding: 8px 0; font-size: 0.76rem; color: var(--mid-gray); }
.bc-inner { max-width: 1040px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 5px; }
.bc-inner a { color: var(--red); text-decoration: none; }
.bc-inner a:hover { text-decoration: underline; }
.bc-sep { color: #bbb; }

/* ─── PAGE LAYOUT ─── */
.page-wrap {
  max-width: 1040px; margin: 0 auto; padding: 28px 24px 80px;
  display: grid; grid-template-columns: 1fr 268px; gap: 24px; align-items: start;
}

/* ─── SIDEBAR ─── */
.sb-total {
  background: var(--red); border-radius: 2px; padding: 18px;
  text-align: center; color: #fff; margin-bottom: 18px;
  box-shadow: 0 2px 10px rgba(181,18,27,0.3);
}
.sb-total .sbt-lbl { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.75; }
.sb-total .sbt-amt { font-family: 'Merriweather', serif; font-size: 2rem; font-weight: 700; margin: 5px 0 2px; line-height: 1; }
.sb-total .sbt-sub { font-size: 0.73rem; opacity: 0.65; }

.deadline {
  background: #fff8e1; border: 1px solid #f0c040; border-left: 4px solid #e6a800;
  border-radius: 2px; padding: 11px 13px; font-size: 0.8rem;
  color: #5a4000; line-height: 1.6; margin-bottom: 18px;
}
.deadline strong { display: block; color: #3a2800; font-size: 0.83rem; margin-bottom: 3px; }

.sb-card {
  background: var(--white); border: 1px solid var(--border); border-top: 3px solid var(--red);
  border-radius: 2px; overflow: hidden; margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.sb-card-head {
  background: var(--light-gray); padding: 9px 14px; font-size: 0.72rem;
  font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--charcoal); border-bottom: 1px solid var(--border);
}
.sb-card-body { padding: 14px; font-size: 0.82rem; color: var(--mid-gray); line-height: 1.65; }
.sb-card-body a { color: var(--red); }
.sb-row { display: flex; justify-content: space-between; margin-bottom: 5px; font-size: 0.8rem; }
.sb-row:last-of-type { margin-bottom: 0; }
.sb-row strong { color: var(--charcoal); }
.sb-divider { border: none; border-top: 1px solid #eee; margin: 9px 0; }
.sb-total-row { display: flex; justify-content: space-between; font-size: 0.82rem; font-weight: 700; padding-top: 9px; }
.sb-total-row strong { color: var(--red); font-size: 0.9rem; }

/* ─── MAIN COLUMN ─── */
.main-col { min-width: 0; }

/* Step Navigation */
.step-nav {
  display: flex; background: var(--white); border: 1px solid var(--border);
  border-radius: 2px; overflow: hidden; margin-bottom: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.step-btn {
  flex: 1; padding: 12px 6px; text-align: center; font-size: 0.78rem;
  font-weight: 700; color: var(--mid-gray); cursor: pointer;
  border-right: 1px solid var(--border); background: var(--white);
  transition: background 0.15s; user-select: none;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.step-btn:last-child { border-right: none; }
.step-num {
  width: 22px; height: 22px; border-radius: 50%; background: var(--border);
  color: var(--mid-gray); font-size: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; transition: background 0.15s, color 0.15s;
}
.step-btn.active { background: var(--red); color: #fff; }
.step-btn.active .step-num { background: rgba(255,255,255,0.25); color: #fff; }
.step-btn.done { background: var(--green-bg); color: var(--green); }
.step-btn.done .step-num { background: var(--green); color: #fff; }
.step-btn:hover:not(.active):not(.done) { background: var(--light-gray); }

/* Cards */
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: 2px;
  overflow: hidden; margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  animation: fadeUp 0.22s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.card-head {
  background: var(--charcoal); padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.card-head h2 { font-size: 0.85rem; font-weight: 900; color: #fff; letter-spacing: 0.04em; text-transform: uppercase; }
.card-head .badge {
  background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.65);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 2px;
}
.card-body { padding: 20px; }

/* Form Grids */
.fg { display: flex; flex-direction: column; gap: 5px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fgrid.g3 { grid-template-columns: 1fr 1fr 1fr; }
.fg.full { grid-column: 1 / -1; }

/* Form Labels & Inputs */
label { font-size: 0.72rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.05em; color: var(--charcoal); }
label .note { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--mid-gray); font-size: 0.72rem; }
.hint { font-size: 0.73rem; color: var(--mid-gray); font-style: italic; line-height: 1.4; margin-top: 2px; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"] {
  border: 1px solid var(--border); border-radius: 2px; padding: 8px 11px;
  font-family: 'Lato', sans-serif; font-size: 0.9rem; color: var(--charcoal);
  background: #fff; width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(181,18,27,0.1); }
input.has-val { border-color: #b8c8d8; background: #fafcff; }

/* Currency wrapper */
.cw { position: relative; }
.cw::before {
  content: '$'; position: absolute; left: 10px; top: 50%;
  transform: translateY(-50%); color: var(--mid-gray);
  font-weight: 700; font-size: 0.85rem; pointer-events: none;
}
.cw input { padding-left: 22px; font-weight: 700; }

/* ─── SALARY TABLE ─── */
.sal-tbl { width: 100%; border-collapse: collapse; }
.sal-tbl thead tr { background: var(--light-gray); }
.sal-tbl th {
  padding: 9px 12px; text-align: left; font-size: 0.7rem;
  font-weight: 900; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--mid-gray); border-bottom: 2px solid var(--border);
}
.sal-tbl th:last-child { text-align: right; width: 175px; }
.sal-tbl td { padding: 10px 12px; border-bottom: 1px solid #eee; font-size: 0.86rem; vertical-align: middle; }
.sal-tbl td:last-child { text-align: right; }
.sal-tbl tbody tr:hover td { background: #fafafa; }
.rnum {
  display: inline-flex; width: 21px; height: 21px; align-items: center;
  justify-content: center; background: var(--red); color: #fff;
  font-size: 0.7rem; font-weight: 900; border-radius: 50%;
  margin-right: 7px; flex-shrink: 0;
}
.rdesc .rm { font-weight: 700; display: flex; align-items: center; }
.rdesc .rs { font-size: 0.76rem; color: var(--mid-gray); margin-top: 1px; padding-left: 28px; }

.total-bar {
  background: var(--charcoal);
  display: flex; align-items: center; justify-content: space-between; padding: 13px 20px;
}
.total-bar .tl { font-size: 0.78rem; font-weight: 700; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 0.05em; }
.total-bar .tl span { display: block; font-size: 0.68rem; font-weight: 400; color: rgba(255,255,255,0.35); text-transform: none; margin-top: 1px; }
.total-bar .tv { font-family: 'Merriweather', serif; font-size: 1.45rem; font-weight: 700; color: #fff; }

/* ─── PREMIUM TABLE ─── */
.prem-tbl { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.prem-tbl thead tr { background: var(--light-gray); }
.prem-tbl th {
  padding: 9px 12px; text-align: left; font-size: 0.7rem;
  font-weight: 900; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--mid-gray); border-bottom: 2px solid var(--border);
}
.prem-tbl th:not(:first-child) { text-align: right; }
.prem-tbl td { padding: 10px 12px; border-bottom: 1px solid #eee; }
.prem-tbl td:not(:first-child) { text-align: right; }
.prem-tbl tr:hover td { background: #fafafa; }
.chip {
  display: inline-block; background: var(--light-gray); color: var(--mid-gray);
  font-size: 0.7rem; font-weight: 700; padding: 1px 5px; border-radius: 2px; font-family: monospace;
}
.prem-tbl tfoot td { background: var(--light-gray); font-weight: 900; border-top: 2px solid var(--charcoal); border-bottom: none; padding: 12px; }

.disc-bar {
  background: var(--green-bg); border: 1px solid #b8dfc8; border-left: 4px solid var(--green);
  padding: 10px 14px; font-size: 0.8rem; color: var(--green);
  display: flex; align-items: center; gap: 8px; margin: 14px 0 10px;
}

/* ─── SUMMARY PAGE ─── */
.sum-info {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: 2px; overflow: hidden; margin-bottom: 14px;
}
.si-cell { background: #fff; padding: 13px 15px; }
.si-cell .sic-l { font-size: 0.68rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mid-gray); margin-bottom: 2px; }
.si-cell .sic-v { font-size: 0.96rem; font-weight: 700; color: var(--charcoal); }

.breakdown { border: 1px solid var(--border); border-radius: 2px; overflow: hidden; margin-bottom: 14px; }
.br-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 15px; border-bottom: 1px solid #eee; font-size: 0.86rem; }
.br-row:last-child { border-bottom: none; }
.br-row .brl { color: var(--mid-gray); }
.br-row .brv { font-weight: 700; color: var(--charcoal); }
.br-row.total { background: var(--red); }
.br-row.total .brl { color: rgba(255,255,255,0.8); font-weight: 700; }
.br-row.total .brv { color: #fff; font-family: 'Merriweather', serif; font-size: 1.2rem; }

.ach-box {
  background: #fff8e1; border: 1px solid #f0c040; border-left: 4px solid #e6a800;
  padding: 12px 15px; font-size: 0.8rem; color: #5a4000; line-height: 1.65; margin-bottom: 16px;
}
.ach-box strong { color: #3a2800; }

/* ─── BUTTONS ─── */
.btn-row {
  display: flex; gap: 9px; align-items: center; justify-content: flex-end;
  padding-top: 14px; border-top: 1px solid var(--border); margin-top: 14px; flex-wrap: wrap;
}
.btn {
  padding: 9px 22px; font-family: 'Lato', sans-serif; font-size: 0.82rem;
  font-weight: 700; border-radius: 2px; border: none; cursor: pointer;
  letter-spacing: 0.03em; transition: background 0.15s, transform 0.1s; text-transform: uppercase;
}
.btn:active { transform: scale(0.98); }
.btn-ghost { background: transparent; border: 2px solid var(--border); color: var(--mid-gray); }
.btn-ghost:hover { border-color: var(--charcoal); color: var(--charcoal); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 2px 6px rgba(181,18,27,0.25); }
.btn-primary:hover { background: var(--red-dark); }

/* Page visibility */
.page { display: none; }
.page.active { display: block; }

/* ─── FOOTER ─── */
.site-footer { background: var(--charcoal); color: rgba(255,255,255,0.5); font-size: 0.77rem; line-height: 1.7; }
.footer-inner { max-width: 1040px; margin: 0 auto; padding: 28px 24px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.fc h4 { color: rgba(255,255,255,0.85); font-size: 0.73rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.fc a { color: rgba(255,255,255,0.55); text-decoration: none; display: block; }
.fc a:hover { color: #fff; }
.footer-btm { background: #111; text-align: center; padding: 11px 24px; font-size: 0.71rem; color: rgba(255,255,255,0.3); }
.footer-btm a { color: var(--red); text-decoration: none; }

/* ─── RESPONSIVE ─── */
@media (max-width: 740px) {
  .page-wrap { grid-template-columns: 1fr; }
  .sidebar { order: -1; }
  .fgrid, .fgrid.g3 { grid-template-columns: 1fr; }
  .hdr-contact { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .step-lbl { display: none; }
}

/* ─── FIELD VALIDATION ─── */
.field-msg {
  font-size: 0.71rem; margin-top: 4px;
  display: flex; align-items: center; gap: 4px;
}
.field-msg.error { display: flex; color: #c0392b; }
.field-msg.ok    { display: flex; color: var(--green); }
.field-msg::before { font-size: 0.8rem; }
.field-msg.error::before { content: '✕'; font-weight: 700; }
.field-msg.ok::before    { content: '✓'; font-weight: 700; }
/* Override: hide when empty */
.field-msg:empty,
.field-msg:not(.error):not(.ok) { display: none !important; }

input.invalid {
  border-color: #c0392b !important;
  box-shadow: 0 0 0 3px rgba(192,57,43,0.1) !important;
}
input.valid {
  border-color: #1e6b3e !important;
  box-shadow: 0 0 0 3px rgba(30,107,62,0.08) !important;
}

/* ─── SUBMISSION CALLOUT ─── */
.submit-callout {
  display: flex; align-items: flex-start; gap: 12px;
  background: #eef4fb; border: 1px solid #b8d0ed; border-left: 4px solid #2563a8;
  border-radius: 2px; padding: 12px 15px; margin-top: 18px; font-size: 0.82rem;
  color: #1a3a5c; line-height: 1.6;
}
.sc-icon { font-size: 1.2rem; color: #2563a8; flex-shrink: 0; margin-top: 1px; }
.sc-body a { color: #2563a8; font-weight: 700; }

/* ─── EMAIL BUTTON ─── */
.btn-email {
  background: var(--charcoal); color: #fff; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}
.btn-email:hover { background: #111; color: #fff; }

/* ─── PRINT ─── */
/* All print / PDF export styles are in print.css */
.print-sal,
.print-val,
.church-print-table { display: none; }