/* ============================================================================
   SEPTIC CARE CALCULATORS — STYLES
   Scoped under .sx-calc so they sit inside any theme. No external
   requests (system font stack). Colors are a fresh family for this
   site: deep septic-green + warm sand, distinct from the other
   portfolio sites.
   ========================================================================== */

.sx-calc {
  --sx-ink: #1c2a21;
  --sx-muted: #5c6b60;
  --sx-green: #2e6b3e;
  --sx-green-dark: #1e4d2a;
  --sx-sand: #f4efe3;
  --sx-panel: #fbf9f3;
  --sx-line: #ddd5c0;
  --sx-accent: #c98a1b;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--sx-ink);
  line-height: 1.55;
  max-width: 1080px;
  margin: 0 auto;
}
.sx-calc *, .sx-calc *::before, .sx-calc *::after { box-sizing: border-box; }

.sx-disclosure {
  background: var(--sx-sand);
  border: 1px solid var(--sx-line);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.92rem;
  margin: 0 0 14px;
}
.sx-epa-line {
  border-left: 4px solid var(--sx-green);
  background: var(--sx-panel);
  padding: 12px 16px;
  font-size: 0.95rem;
  margin: 0 0 20px;
}

.sx-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(300px, 1.4fr);
  gap: 18px;
  align-items: start;
}
@media (max-width: 760px) {
  .sx-grid { grid-template-columns: 1fr; }
}

.sx-panel {
  background: var(--sx-panel);
  border: 2px solid var(--sx-line);
  border-radius: 14px;
  padding: 20px 22px;
  margin: 0 0 18px;
}
fieldset.sx-panel { min-width: 0; }
.sx-panel legend {
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0 6px;
}
.sx-group-num { color: var(--sx-accent); margin-right: 6px; }

.sx-field { margin-bottom: 18px; }
.sx-field:last-child { margin-bottom: 0; }
.sx-field-label { display: block; font-weight: 600; margin-bottom: 6px; }
.sx-field small { display: block; color: var(--sx-muted); margin-top: 6px; font-size: 0.85rem; }
.sx-field input[type="number"],
.sx-field select {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--sx-line);
  border-radius: 8px;
  font-size: 1rem;
  background: #fff;
  color: var(--sx-ink);
}
.sx-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; cursor: pointer; }
.sx-check input { margin-top: 4px; width: 18px; height: 18px; }

.sx-results-panel { border-color: var(--sx-green); }
.sx-results-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sx-green);
  margin: 0 0 8px;
}
.sx-verdict-main { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.sx-verdict-num { font-size: 2.2rem; font-weight: 800; color: var(--sx-green-dark); }
.sx-verdict-unit { font-weight: 600; color: var(--sx-muted); }
.sx-verdict-sub { margin-top: 6px; }

.sx-tiles { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.sx-tile {
  flex: 1 1 160px;
  background: #fff;
  border: 1px solid var(--sx-line);
  border-radius: 10px;
  padding: 12px 14px;
}
.sx-tile-value { display: block; font-size: 1.3rem; font-weight: 800; }
.sx-tile-label { display: block; font-size: 0.82rem; color: var(--sx-muted); margin-top: 2px; }

.sx-dose { margin-top: 16px; }
.sx-packages { margin: 8px 0 0; padding-left: 20px; }
.sx-note-block { margin-top: 14px; color: var(--sx-ink); }
.sx-note { font-size: 0.88rem; color: var(--sx-muted); }

.sx-cta {
  display: inline-block;
  margin-top: 16px;
  background: var(--sx-green);
  color: #fff;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 10px;
  text-decoration: none;
}
.sx-cta:hover { background: var(--sx-green-dark); }
.sx-cta-pending {
  background: var(--sx-sand);
  color: var(--sx-muted);
  border: 1px dashed var(--sx-line);
  cursor: default;
}

.sx-table-panel h3 { margin-top: 0; }
.sx-table-scroll { overflow-x: auto; }
.sx-table { width: 100%; border-collapse: collapse; background: #fff; }
.sx-table th, .sx-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--sx-line);
  vertical-align: top;
}
.sx-table thead th { background: var(--sx-sand); }
.sx-table .sx-row-active td { background: #eef5ee; }
.sx-table small { color: var(--sx-muted); }
.sx-pending { color: var(--sx-muted); font-size: 0.9rem; }

.sx-date { margin-top: 12px; }
.sx-detail p { margin: 8px 0; }

.sx-email { border-style: dashed; }
.sx-email h3 { margin-top: 0; }
.sx-email-form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.sx-email-form input {
  flex: 1 1 220px;
  padding: 10px 12px;
  border: 2px solid var(--sx-line);
  border-radius: 8px;
  font-size: 1rem;
}
.sx-email-form button {
  padding: 10px 20px;
  border: 0;
  border-radius: 8px;
  background: var(--sx-green);
  color: #fff;
  font-weight: 700;
  opacity: 0.55;
  cursor: not-allowed;
}

@media print {
  .sx-inputs, .sx-email, .sx-cta { display: none; }
}
