:root {
  --bg: #f4f6f8;
  --card: #fff;
  --ink: #1a2430;
  --muted: #5a6b7b;
  --line: #e1e7ed;
  --brand: #002855; /* Marshall navy (exact brand color) */
  --brand-ink: #fff;
  --accent: #cfae5b; /* Marshall gold (CTA button color) */
  --ok: #137333;
  --err: #c5221f;
  --warn: #9a6700;
  --radius: 12px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 16px/1.5 "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
}
.wrap { max-width: 760px; margin: 0 auto; padding: 32px 20px 64px; }
.logo { display: block; height: 72px; width: auto; margin-bottom: 14px; }
.head h1 { margin: 0 0 4px; font-size: 28px; }
.sub { margin: 0 0 24px; color: var(--muted); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}
.card h2 { margin: 0 0 16px; font-size: 17px; }
.row { display: flex; gap: 14px; flex-wrap: wrap; }
.row > label { flex: 1 1 180px; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
select, input, textarea {
  width: 100%;
  margin-top: 5px;
  padding: 10px 12px;
  font-size: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
}
select:focus, input:focus, textarea:focus { outline: 2px solid var(--brand); border-color: var(--brand); }
.note { color: var(--muted); font-size: 14px; margin: 4px 0 0; }
.note.review { color: var(--warn); }
.add-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.line-preview { font-weight: 700; font-size: 18px; }
/* Marshall-style buttons: white-bordered filled blocks, uppercase, 3px radius.
   Secondary = navy fill; primary CTA = gold fill. Hover fades fill to 80%. */
.btn {
  border: 2px solid #fff;
  border-radius: 3px;
  padding: 11px 26px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 40, 85, 0.18);
  transition: background 0.15s ease;
}
.btn:hover { background: rgba(0, 40, 85, 0.8); }
.btn.primary { background: var(--accent); }
.btn.primary:hover { background: rgba(207, 174, 91, 0.8); }
.btn:disabled { opacity: 0.6; cursor: default; box-shadow: none; }
.quote-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.quote-table th, .quote-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.quote-table th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.num { text-align: right; }
.quote-table tfoot td { font-weight: 600; border-bottom: none; border-top: 2px solid var(--line); }
.total { font-size: 17px; color: var(--brand); }
.link-btn { background: none; border: 0; color: var(--err); cursor: pointer; font-size: 15px; }
.contact label { font-weight: 600; }
.form-msg { min-height: 20px; margin: 12px 0 0; font-size: 14px; font-weight: 600; }
.form-msg.ok { color: var(--ok); }
.form-msg.error { color: var(--err); }
.foot { color: var(--muted); font-size: 12px; text-align: center; margin-top: 8px; }
@media (max-width: 520px) {
  .add-row { flex-direction: column; align-items: stretch; }
  .quote-table { font-size: 13px; }
  /* Drop the Subtotal column on narrow screens — Cost already includes it. */
  .col-subtotal { display: none; }
  /* Tighten cell padding so the remaining columns fit without horizontal scroll. */
  .quote-table th, .quote-table td { padding: 8px 4px; }
}
