/* CS-2b §312k cancellation pages (resources/views/cancellation/*).
 *
 * Same-origin, dependency-free static stylesheet — the errors.css pattern.
 * MUST stay a plain file in public/: the cancellation CSP branch is
 * `style-src 'self'` with no 'unsafe-inline' (and the strict fallback the
 * page originally fell through to blocked styles entirely), which is how
 * the page shipped unstyled to real browsers while curl and the test suite
 * saw healthy markup (2026-08-20).
 *
 * Colors mirror the marketing design tokens
 * (frontend-marketing/src/styles/index.css) — dark-first like the SPA,
 * light via prefers-color-scheme since these pages ship no JS. Update both
 * if the marketing palette changes.
 */
:root {
    color-scheme: dark light;
    --canvas: #06070A;
    --card: #14171D;
    --surface: #0F1116;
    --border: #272B33;
    --text: #F4F5F7;
    --text-muted: #9BA0A8;
    --accent: #2563EB;
    --critical: #FF4757;
    --critical-press: #E13A49;
    --err-bg: rgba(255, 71, 87, 0.12);
    --note-border: #C9A24A;
    --note-bg: rgba(201, 162, 74, 0.10);
    --note-text: #E8C76C;
}
@media (prefers-color-scheme: light) {
    :root {
        --canvas: #FAFAFB;
        --card: #FFFFFF;
        --surface: #F2F4F7;
        --border: #E1E5EB;
        --text: #0A0B0D;
        --text-muted: #5A6069;
        --accent: #2563EB;
        --critical: #DC2626;
        --critical-press: #B91C1C;
        --err-bg: rgba(220, 38, 38, 0.08);
        --note-border: #B8902F;
        --note-bg: rgba(184, 144, 47, 0.08);
        --note-text: #6B5900;
    }
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
    color: var(--text);
    background: var(--canvas);
}
.kb-wrap { max-width: 40rem; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
.kb-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.75rem;
}
h1 { font-size: 1.5rem; letter-spacing: -0.01em; margin: 0 0 0.5rem; }
.kb-scope { font-size: 0.95rem; color: var(--text-muted); margin: 0 0 1.5rem; }
label { display: block; font-weight: 600; margin: 1.1rem 0 0.35rem; }
.kb-hint { font-weight: 400; color: var(--text-muted); font-size: 0.85rem; }
input[type="text"], input[type="email"], input[type="date"], textarea {
    width: 100%;
    padding: 0.6rem 0.7rem;
    font: inherit;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    color: inherit;
}
input:focus-visible, textarea:focus-visible, .kb-submit:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
textarea { min-height: 5rem; resize: vertical; }
fieldset { border: 1px solid var(--border); border-radius: 6px; margin: 1.1rem 0 0; padding: 0.75rem 1rem 1rem; }
legend { font-weight: 600; padding: 0 0.35rem; }
.kb-radio { display: flex; align-items: flex-start; gap: 0.5rem; margin-top: 0.6rem; font-weight: 400; }
.kb-radio input { margin-top: 0.25rem; accent-color: var(--accent); }
.kb-submit {
    margin-top: 1.75rem;
    width: 100%;
    padding: 0.85rem 1rem;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: var(--critical);
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    transition: background 140ms ease;
}
.kb-submit:hover { background: var(--critical-press); }
.kb-error { color: var(--critical); font-size: 0.85rem; margin: 0.3rem 0 0; }
.kb-errsummary {
    border: 1px solid var(--critical);
    background: var(--err-bg);
    color: var(--text);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin: 0 0 1.25rem;
}
.kb-errsummary ul { margin: 0.4rem 0 0; padding-left: 1.1rem; }
/* Closing note on the confirmation page (spacing was an inline style=""
   attribute, which style-src 'self' blocks just like <style> blocks). */
.kb-after { margin-top: 1.5rem; }
.kb-review { border: 1px dashed var(--note-border); background: var(--note-bg); color: var(--note-text); font-size: 0.8rem; border-radius: 6px; padding: 0.5rem 0.75rem; margin-top: 1.5rem; }
dl.kb-summary { margin: 0; }
dl.kb-summary dt { font-weight: 600; margin-top: 0.75rem; }
dl.kb-summary dd { margin: 0.15rem 0 0; color: var(--text-muted); }
