:root { --ink:#1f2937; --muted:#6b7280; --line:#d1d5db; --brand:#1a3a5c; --brand-dark:#0f2540; --accent:#2f6fb0; --bg:#f0f4f8; --card:#fff; --err:#b91c1c; }
@media (prefers-color-scheme: dark) {
  :root { --ink:#e5e7eb; --muted:#9ca3af; --line:#374151; --brand:#6aa6e0; --brand-dark:#0f2540; --accent:#6aa6e0; --bg:#0b1220; --card:#111827; --err:#f87171; }
}
* { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--ink); font:16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }

/* Cortec header band: the logo on the left, the client's logo (when they have one) on the right. */
.brand { background: linear-gradient(135deg, #1a3a5c 0%, #0f2540 100%); border-bottom: 3px solid #2f6fb0; }
.brand-in { max-width: 720px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { height: 40px; width: auto; display: block; }
.client-logo { background: #fff; border-radius: 8px; padding: 6px 10px; display: flex; align-items: center; }
.client-logo img { display: block; max-height: 36px; max-width: 160px; width: auto; height: auto; }

.wrap { max-width: 720px; margin: 0 auto; padding: 20px 16px 8px; }
.foot { max-width: 720px; margin: 0 auto; padding: 8px 16px 28px; text-align: center; font-size: .8rem; color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-top: 4px solid #1a3a5c; border-radius: 10px; padding: 20px; box-shadow: 0 1px 3px rgba(15, 37, 64, .08); }
@media (prefers-color-scheme: dark) { .card { border-top-color: #2f6fb0; } }
h1 { font-size: 1.4rem; margin: 0 0 4px; color: var(--brand); }
.intro, .ref, .help { color: var(--muted); margin: 4px 0 12px; font-size: .95rem; }
/* What is being approved: the facts, set apart from the questions. */
.summary { background: color-mix(in srgb, var(--accent) 9%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-left: 4px solid var(--accent); border-radius: 8px; padding: 12px 14px; margin: 12px 0; }
.summary h2 { font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; color: var(--brand); margin: 0 0 8px; }
.summary dl { margin: 0; }
.summary dt { font-size: .8rem; color: var(--muted); margin-top: 8px; }
.summary dt:first-child { margin-top: 0; }
.summary dd { margin: 2px 0 0; font-size: 1rem; font-weight: 500; overflow-wrap: anywhere; }
.alert { background: color-mix(in srgb, var(--err) 12%, transparent); border: 1px solid var(--err); color: var(--err); padding: 10px 12px; border-radius: 8px; }
.section { border: 0; border-top: 1px solid var(--line); margin: 20px 0 0; padding: 14px 0 0; }
.section legend { font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .8rem; color: var(--brand); padding: 0 8px 0 0; }
.field { margin: 12px 0; }
label { display: block; font-weight: 500; margin-bottom: 4px; }
input[type=text], input[type=email], input[type=tel], input[type=date], textarea {
  width: 100%; padding: 10px 12px; font: inherit; color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: 8px;
}
input[readonly] { background: var(--bg); color: var(--muted); }
select { width: 100%; padding: .55rem .6rem; font: inherit; color: var(--ink); border: 1px solid var(--line); border-radius: 6px; background: var(--card); }
select:focus, input:focus, textarea:focus, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.choices { border: 0; padding: 0; margin: 0; }
.choices legend { font-weight: 500; padding: 0; margin-bottom: 4px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; margin: 6px 0; }
.check input { margin-top: 5px; }
.req { color: var(--err); }
.err { color: var(--err); font-size: .9rem; margin: 4px 0 0; }
.has-error input, .has-error textarea { border-color: var(--err); }
.actions { margin-top: 24px; }
button { font: inherit; cursor: pointer; border-radius: 8px; padding: 12px 20px; border: 1px solid var(--brand); }
button.primary { background: #1a3a5c; border-color: #1a3a5c; color: #fff; width: 100%; font-weight: 600; }
button.primary:hover { background: #0f2540; }
button.secondary { background: transparent; color: var(--ink); border-color: var(--line); margin-top: 10px; }
.decline { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; color: var(--muted); }
.decline summary { cursor: pointer; }
.decline label { margin-top: 10px; }
[hidden] { display: none !important; }
