/* ============================================================
   Shared look for the example demos.
   These stand in for a customer's own app, so they deliberately
   do NOT use the Precise Impact brand: each demo sets its own
   --accent to feel like a different business's tool.
   ============================================================ */
:root {
  --accent: #0f766e; --accent-soft: #e3f3f1; --accent-ink: #0b4f4a;
  --ink: #1f2933; --muted: #5f6b76; --line: #dfe5ea; --bg: #f5f7f9; --white: #fff;
  --bad: #b42318; --bad-soft: #fdecea; --good: #067647; --good-soft: #e5f5ea;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { display: flow-root; background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.45;
       font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
h1, h2, h3 { margin: 0 0 8px; line-height: 1.25; }
h2 { font-size: 17px; } h3 { font-size: 15px; }
p { margin: 0 0 10px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.app-head { display: flex; align-items: center; gap: 10px; padding: 12px 20px; background: var(--white); border-bottom: 1px solid var(--line); }
.app-logo { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: var(--white);
            display: grid; place-items: center; font-weight: 700; font-size: 15px; flex: none; }
.app-title { font-weight: 700; }
.app-sub { margin-left: auto; font-size: 13px; color: var(--muted); text-align: right; }
.app-main { padding: 20px; }

.panel { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.note { font-size: 12px; color: var(--muted); margin: 14px 0 0; }

.field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.label { display: block; font-weight: 600; font-size: 13px; margin: 0 0 8px; padding: 0; }
.input { width: 100%; font: inherit; color: inherit; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }

/* Pill options: a real radio/checkbox under a styled label */
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.opt span { display: block; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-size: 14px; }
.opt input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn { display: block; width: 100%; font: inherit; font-weight: 600; border: 0; border-radius: 8px; padding: 11px 16px;
       background: var(--accent); color: var(--white); cursor: pointer; text-align: center; }
.btn:hover { filter: brightness(1.08); }
.btn-plain { background: none; color: var(--accent-ink); width: auto; padding: 6px 0; text-decoration: underline; }

.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.pill-good { background: var(--good-soft); color: var(--good); }
.pill-bad { background: var(--bad-soft); color: var(--bad); }

.demo-flag { font-size: 12px; background: #fff7e0; color: #7a5300; border: 1px solid #f1dfa6; border-radius: 8px; padding: 8px 10px; margin: 0 0 14px; }
[hidden] { display: none !important; }

/* The contact step that really sends (demo.js, aidContactStep, APP-574):
   the server's answer shown inside the step it came from. */
.form-error { background: var(--bad-soft); color: var(--bad); border-radius: 8px; padding: 10px 12px; margin: 0 0 14px; font-size: 14px; }
.form-error p { margin: 0 0 6px; }
.form-error p:last-child { margin: 0; }
.form-error ul { margin: 0; padding-left: 18px; }
.field-error { display: block; color: var(--bad); font-size: 13px; margin-top: 6px; }
.input[aria-invalid="true"] { border-color: var(--bad); }
.step-intro { font-size: 14px; color: var(--muted); }
.privacy { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.privacy a { color: var(--accent-ink); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn:disabled { opacity: .6; cursor: progress; }
