/* onboarding.css: the look of "becoming a customer" (app/onboarding.py): the interest form, the
   application's steps with their progress bar, the signature pad, document uploads, and the staff
   review page. Colours only through style.css's tokens (--ok, --warn, --bad...), so light and dark
   both work. Linked from the onboarding templates themselves. */

/* The robot trap on the interest form: a box people never see (robots fill in every box). */
.trap { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ----- the progress on top of every step ----- */
.steps { margin-bottom: 1.25rem; }
.steps p { margin-bottom: .35rem; }
.steps progress { margin-bottom: .5rem; }
.steps ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.steps li { margin: 0; }
.steps li a { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: var(--text-s); text-decoration: none;
  background: var(--grey-bg); color: var(--grey); }
.steps li.done a { background: var(--ok-bg); color: var(--ok); }
.steps li.done a::before { content: "\2713  "; }
.steps li.current a { background: var(--accent); color: #fff; font-weight: 600; }

/* A step: short, one column, big buttons. "Save and continue" comes first in the page (Enter presses
   it) but shows on the right; "Back" on the left. */
.step-form small { display: block; margin-top: -.35rem; margin-bottom: .75rem; color: var(--muted); }
.step-buttons { display: flex; flex-direction: row-reverse; gap: .75rem; margin-top: 1rem; }
.step-buttons button { flex: 1; margin: 0; font-size: 1.08rem; padding: .8rem 1rem; }
.step-buttons button + button { margin-left: 0; }
.saved-secret { font-family: var(--pico-font-family-monospace); color: var(--ok); }
.choice-list label { padding: .55rem .75rem; border: 1px solid var(--control-border); border-radius: var(--radius); margin-bottom: .5rem; background: var(--surface); }
.choice-list label:has(input:checked) { border-color: var(--accent); background: var(--info-bg); }
/* the portal's blue information note ("Have these ready", "Dodo asked you to fix:"): a <p>, <ul> or <div>, never a
   <form> (the staff pages' "Add to the time line" and Daily report forms are form.note-box, laid out by style.css; this
   file loads on an account's page too) */
:not(form).note-box { padding: .9rem 1rem; border-radius: var(--radius); background: var(--info-bg); color: var(--text); border: 1px solid var(--border); }

/* The words people agree to: a box that scrolls, keeping its line breaks. */
.agreement-text { max-height: 22rem; overflow-y: auto; white-space: pre-line; padding: 1rem; border: 1px solid var(--border-strong);
  border-radius: var(--radius); background: var(--surface-2); font-size: var(--text-m); margin-bottom: 1rem; }

/* ----- the signature pad (signature.js): white like paper in light and dark ----- */
.signature-pad { margin-bottom: 1rem; }
.signature-pad canvas { display: block; width: 100%; height: 11rem; background: #fff; border: 2px dashed var(--control-border);
  border-radius: var(--radius); touch-action: none; cursor: crosshair; }
.signature-pad .pad-foot { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-top: .35rem; }
.signature-pad .pad-foot small { color: var(--muted); }
.signature-pad .pad-foot button { width: auto; margin: 0; }

/* ----- documents: one row per document, with its status ----- */
.doc-row { padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius-l); background: var(--surface); margin-bottom: 1rem; }
.doc-row h3 { margin-bottom: .25rem; font-size: 1.1rem; }
.doc-row form { margin: .5rem 0 0; }
.file-buttons { display: flex; flex-wrap: wrap; gap: .5rem; }
.file-buttons label { flex: 1 1 12rem; margin: 0; text-align: center; padding: .8rem 1rem; border-radius: var(--radius); cursor: pointer;
  background: var(--accent); color: #fff; font-weight: 600; }
.file-buttons label.secondary { background: var(--surface); color: var(--text); border: 1px solid var(--control-border); }
.file-buttons input[type=file] { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.file-buttons label:focus-within { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.doc-status { display: inline-block; padding: .1rem .6rem; border-radius: 999px; font-size: var(--text-xs); font-weight: 600; background: var(--grey-bg); color: var(--grey); }
.doc-status.received { background: var(--info-bg); color: var(--info); }
.doc-status.accepted { background: var(--ok-bg); color: var(--ok); }
.doc-status.rejected, .doc-status.missing { background: var(--bad-bg); color: var(--bad); }
.doc-status.needed { background: var(--warn-bg); color: var(--warn); }
/* never colour alone: green, amber and red get their shape in front, like style.css's .status pills (a screen reader skips it) */
.doc-status.accepted::before { content: '\25CF\00a0'; content: '\25CF\00a0' / ''; }
.doc-status.needed::before { content: '\25B2\00a0'; content: '\25B2\00a0' / ''; }
.doc-status:is(.rejected, .missing)::before { content: '\25A0\00a0'; content: '\25A0\00a0' / ''; }
.qr { text-align: center; }
.qr img { width: 13rem; height: 13rem; background: #fff; padding: .5rem; border-radius: var(--radius); }
/* The QR code and "text me a link" are for computers: on a phone, the camera is right there. */
.computer-only { display: none; }
@media (min-width: 768px) and (pointer: fine) { .computer-only { display: block; } }

/* ----- the setup agreement's budget choices ----- */
.budget-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .5rem; }
.budget-options label { margin: 0; }
.terms-summary dt { color: var(--muted); font-size: var(--text-s); }
.terms-summary dd { margin: 0 0 .6rem; font-weight: 600; }

/* ----- staff review ----- */
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 1rem; }
.review-grid > article { margin: 0; }
.answers th { width: 40%; white-space: normal; }
.answers form { display: inline; margin: 0 0 0 .5rem; }
.revealed { font-family: var(--pico-font-family-monospace); background: var(--warn-bg); color: var(--warn); padding: .1rem .4rem; border-radius: var(--radius-s); }
.missing-list li { color: var(--warn); }  /* (still to come: a look, not a stop) */
.copy-box { display: flex; gap: .5rem; }
.copy-box input { margin: 0; }
.copy-box button { width: auto; margin: 0; }
.doc-check { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: 0; }
.doc-check input { margin: 0; flex: 1 1 10rem; padding: .3rem .5rem; height: auto; }
.doc-check button { margin: 0; width: auto; }
.sha { font-family: var(--pico-font-family-monospace); font-size: var(--text-xs); word-break: break-all; }
