/* =====================================================================
   qbwfileunlock.com - /document-unlock/ ("Document Unlock")
   ---------------------------------------------------------------------
   SCOPED HELPERS ONLY.

   The design system - tokens, buttons, cards, the drop zone, the top bar
   and the footer - comes from minimal_index.css, which this page loads
   FIRST. Nothing here redefines a design token or a component that
   already exists. Every rule below is namespaced "du-" so it cannot
   reach the home page, and the home page cannot reach it.

   Load order in the page:
       minimal_index.css   (the design system)
       document-unlock.css (this file)

   CACHE BUSTER: the page references this file with ?v=<content hash>.
   deploy_minimal_page.py re-stamps that hash on every deploy, because
   Cloudflare caches CSS for 4 hours and there is no purge token on
   this host. Do not hand-edit the hash in the built page.
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. Independence disclaimer strip
   --------------------------------------------------------------------- */
.du-strip {
  background: var(--m-bg-deep);
  border-bottom: 1px solid var(--m-border);
  padding: 0.5rem var(--m-gutter);
  text-align: center;
  font-size: var(--m-fs-xs);
  color: var(--m-muted);
  line-height: 1.5;
}
.du-strip strong { color: var(--m-ink); }

/* ---------------------------------------------------------------------
   2. Layout helpers
   --------------------------------------------------------------------- */
.du-narrow { max-width: 46rem; margin-inline: auto; }

.du-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--m-s3);
}
@media (min-width: 760px) {
  .du-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------------------------------------------------------------------
   3. The upload card's form fields
   --------------------------------------------------------------------- */
.du-field { margin-top: var(--m-s3); }

.du-label {
  display: block;
  font-size: var(--m-fs-sm);
  font-weight: 700;
  color: var(--m-ink);
  margin-bottom: 0.4rem;
}

.du-req { color: var(--m-red-ink); }

.du-input {
  width: 100%;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--m-border-soft);
  border-radius: var(--m-radius-sm);
  background: var(--m-panel-raised);
  color: var(--m-ink);
  font-family: inherit;
  font-size: var(--m-fs-sm);
  box-sizing: border-box;
}
.du-input::placeholder { color: var(--m-muted); }
.du-input:focus {
  outline: 2px solid var(--m-brand);
  outline-offset: 1px;
  border-color: var(--m-brand);
}

.du-hint {
  margin: 0.35rem 0 0;
  font-size: var(--m-fs-xs);
  color: var(--m-muted);
  line-height: 1.5;
}

/* Inline validation message (e.g. the two email addresses differ).
   Hidden with [hidden] until the script un-hides it. */
.du-error {
  color: #b3261e;
  font-weight: 600;
}
.du-error[hidden] { display: none; }

/* The declaration block (role + two tick boxes) */
.du-declaration {
  margin-top: var(--m-s3);
  padding-top: var(--m-s3);
  border-top: 1px solid var(--m-border-soft);
}

/* ---------------------------------------------------------------------
   4. Price + submit
   --------------------------------------------------------------------- */
.du-price-row {
  margin-top: var(--m-s3);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
}

.du-price {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--m-ink);
}

.du-price-note {
  font-size: var(--m-fs-xs);
  color: var(--m-muted);
}

.du-submit {
  width: 100%;
  margin-top: var(--m-s3);
  min-height: 3rem;
  font-size: var(--m-fs-body);
  /* .m-btn sets colour to the LIGHT brand blue, which fails contrast on
     the deep blue fill. Every primary button on this site overrides it
     this way (see .m-hero-cta .m-btn in minimal_index.css). */
  color: var(--m-surface);
}

/* ---------------------------------------------------------------------
   5. Status + progress
   --------------------------------------------------------------------- */
.du-status {
  margin-top: var(--m-s2);
  font-size: var(--m-fs-sm);
  color: var(--m-muted);
  min-height: 1.2em;
  line-height: 1.5;
}
.du-status.is-error { color: var(--m-red-ink); font-weight: 600; }
.du-status.is-ok { color: var(--m-green-ink); }

.du-progress {
  display: none;
  margin-top: 0.5rem;
  height: 6px;
  border-radius: 3px;
  background: var(--m-tint-soft);
  overflow: hidden;
}
.du-progress.is-on { display: block; }

.du-progress-inner {
  height: 100%;
  width: 0;
  background: var(--m-brand-fill);
  transition: width 0.18s linear;
}

/* ---------------------------------------------------------------------
   6. "Your file is with us" / pay panel
   --------------------------------------------------------------------- */
.du-pay-panel {
  margin-top: var(--m-s3);
  padding: var(--m-s3);
  border: 1px solid var(--m-green-line);
  background: var(--m-green-bg);
  border-radius: var(--m-radius-sm);
}
.du-pay-panel p {
  margin: 0 0 var(--m-s2);
  font-size: var(--m-fs-sm);
  color: var(--m-ink);
}
.du-pay-panel .m-btn { color: var(--m-surface); }

/* THE REFUSAL. Same panel, amber instead of green: the check has run and
   the answer is no - so there is no Pay button on this branch at all. The
   only control offered is deleting the uploaded copy. */
.du-refusal-panel {
  border-color: var(--m-amber-line);
  background: var(--m-amber-bg);
}
.du-refusal-panel > p:first-child { color: var(--m-amber-ink); }
.du-refusal-note {
  font-size: var(--m-fs-xs);
  color: var(--m-muted);
}

/* ---------------------------------------------------------------------
   7. How it works - three numbered steps
   --------------------------------------------------------------------- */
.du-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--m-s3);
}
@media (min-width: 760px) {
  .du-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.du-step {
  background: var(--m-panel);
  border: 1px solid var(--m-border);
  border-radius: var(--m-radius);
  padding: var(--m-s3);
}

.du-step-num {
  display: inline-grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--m-brand-fill);
  color: var(--m-surface);
  font-size: var(--m-fs-xs);
  font-weight: 700;
  margin-bottom: var(--m-s2);
}

.du-step h3 {
  margin: 0 0 0.4rem;
  font-size: var(--m-fs-h3);
  color: var(--m-ink);
}

.du-step p {
  margin: 0;
  font-size: var(--m-fs-sm);
  color: var(--m-muted);
}

/* ---------------------------------------------------------------------
   8. Tick / cross lists inside the two capability cards
   --------------------------------------------------------------------- */
.du-ticks {
  list-style: none;
  margin: var(--m-s2) 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.du-ticks li {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: 0.5rem;
  align-items: start;
  font-size: var(--m-fs-sm);
  color: var(--m-muted);
}

.du-ticks svg {
  width: 1rem;
  height: 1rem;
  margin-top: 0.15rem;
}

.du-ticks .is-yes svg { color: var(--m-brand); }
.du-ticks .is-no svg { color: var(--m-red-mark); }
.du-ticks strong { color: var(--m-ink); }

/* ---------------------------------------------------------------------
   9. The honest-limitation callout
   --------------------------------------------------------------------- */
.du-callout {
  margin-top: var(--m-s3);
  padding: var(--m-s3);
  border-left: 3px solid var(--m-amber-line);
  border-radius: 4px;
  background: var(--m-amber-bg);
}
.du-callout h3 {
  margin: 0 0 0.4rem;
  font-size: var(--m-fs-h3);
  color: var(--m-amber-ink);
}
.du-callout p {
  margin: 0 0 0.5rem;
  font-size: var(--m-fs-sm);
  color: var(--m-ink);
  line-height: 1.6;
}
.du-callout p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------------
   10. Recognise-this list
   --------------------------------------------------------------------- */
.du-recognise {
  margin-top: var(--m-s4);
  padding: var(--m-s3);
  border: 1px solid var(--m-border);
  border-radius: var(--m-radius);
  background: var(--m-panel);
  text-align: left;
}
.du-recognise h2 {
  margin: 0 0 var(--m-s2);
  font-size: var(--m-fs-h3);
  color: var(--m-ink);
}
.du-recognise ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.4rem;
  font-size: var(--m-fs-sm);
  color: var(--m-muted);
}
.du-recognise p {
  margin: var(--m-s2) 0 0;
  font-size: var(--m-fs-sm);
  color: var(--m-ink);
}

/* ---------------------------------------------------------------------
   11. FAQ
   --------------------------------------------------------------------- */
.du-faq { display: grid; gap: var(--m-s2); }

.du-faq details {
  background: var(--m-panel);
  border: 1px solid var(--m-border);
  border-radius: var(--m-radius-sm);
  padding: var(--m-s3);
}

.du-faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--m-ink);
  font-size: var(--m-fs-body);
  list-style-position: outside;
}

.du-faq details[open] summary { margin-bottom: var(--m-s2); }

.du-faq p {
  margin: 0 0 0.6rem;
  color: var(--m-muted);
  font-size: var(--m-fs-sm);
  line-height: 1.6;
}
.du-faq p:last-child { margin-bottom: 0; }
.du-faq strong { color: var(--m-ink); }
.du-faq a { color: var(--m-brand); }

/* ---------------------------------------------------------------------
   12. Footer small print
   --------------------------------------------------------------------- */
.du-foot-note {
  margin-top: var(--m-s3);
  font-size: var(--m-fs-xs);
  color: var(--m-muted);
}

/* ---------------------------------------------------------------------
   13. Symptom quotes - the exact words the application puts on screen
   --------------------------------------------------------------------- */
.du-quotes {
  list-style: none;
  margin: var(--m-s2) 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.du-quotes li {
  border-left: 3px solid var(--m-border-soft);
  padding: 0.1rem 0 0.1rem 0.8rem;
  font-size: var(--m-fs-sm);
  color: var(--m-ink);
  font-style: italic;
  line-height: 1.5;
}

/* ---------------------------------------------------------------------
   14. The chooser hub - one card per file format
   --------------------------------------------------------------------- */
.du-hub-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--m-s3);
  margin-top: var(--m-s4);
  text-align: left;
}
@media (min-width: 640px) {
  .du-hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1040px) {
  .du-hub-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.du-hub-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: var(--m-s3);
  background: var(--m-panel);
  border: 1px solid var(--m-border);
  border-radius: var(--m-radius);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.du-hub-card:hover,
.du-hub-card:focus-visible {
  border-color: var(--m-brand);
  transform: translateY(-2px);
}
.du-hub-card-tag {
  font-size: var(--m-fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--m-brand);
  font-weight: 700;
}
.du-hub-card h2 {
  margin: 0;
  font-size: var(--m-fs-h3);
  color: var(--m-ink);
}
.du-hub-card p {
  margin: 0;
  font-size: var(--m-fs-sm);
  color: var(--m-muted);
  line-height: 1.55;
}
.du-hub-card-go {
  margin-top: auto;
  padding-top: 0.4rem;
  font-size: var(--m-fs-sm);
  font-weight: 700;
  color: var(--m-brand);
}

/* ---- "Start again": the LOCAL way out, before any order exists -------
   Sat under the file name, where the customer is when they change their
   mind. Deliberately quieter than "Cancel and delete my file" (amber),
   because this one deletes nothing - there is nothing on the server yet. */
.du-startagain {
  margin: 0.25rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.75rem;
}
.du-startagain[hidden] { display: none; }
.du-startagain button {
  background: transparent;
  border: 1px solid var(--m-border);
  border-radius: 999px;
  padding: 0.34rem 0.85rem;
  font: inherit;
  font-size: var(--m-fs-sm);
  font-weight: 600;
  color: var(--m-ink);
  cursor: pointer;
}
.du-startagain button:hover {
  border-color: var(--m-brand);
  color: var(--m-brand);
}
.du-startagain button:focus-visible {
  outline: 2px solid var(--m-brand);
  outline-offset: 2px;
}
.du-startagain-note {
  font-size: var(--m-fs-xs);
  color: var(--m-muted);
  max-width: 46ch;
  line-height: 1.45;
}
