/* Styles for #progress-view (the full-viewport "check in progress" takeover), shared between
   customer.html (the real thing) and progress_demo.html (an admin-only, no-token loop of the
   same markup for visually testing changes to this file). Keeping this in one file instead of
   copy-pasted into both templates means a real change here is what the demo page shows too —
   the whole reason the demo page exists is to test this view without drift from the real one. */

.progress-view {
  position: fixed; inset: 0; z-index: 200; background: var(--jp-navy); color: var(--jp-paper);
  display: flex; flex-direction: column; overflow-y: auto;
  opacity: 0; transition: opacity 700ms ease;
}
.progress-view.visible { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .progress-view { transition: none; } }
.progress-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 32px; border-bottom: 1px solid rgba(254, 254, 254, 0.15); flex-shrink: 0;
}
.progress-brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.progress-brand img { width: 26px; }
.progress-brand span { font-family: var(--jp-font-ui); font-weight: 700; font-size: 1.05rem; }
.progress-free-checks { font-size: 0.85rem; color: rgba(254, 254, 254, 0.72); }
.progress-body {
  flex: 1; display: flex; gap: 48px; justify-content: space-between;
  padding: 56px 32px; flex-wrap: wrap;
}
/* Both columns stretch to the row's full height (default align-items: stretch) so the
   divider between them runs edge to edge, then each centers its own content vertically
   within that height — matching the mockup rather than pinning content to the top. */
.progress-main { flex: 1 1 480px; min-width: 0; max-width: 720px; display: flex; flex-direction: column; justify-content: center; }
.progress-eyebrow {
  font-family: var(--jp-font-ui); font-weight: 700; font-size: 0.78rem;
  letter-spacing: var(--jp-label-tracking); text-transform: uppercase;
  color: var(--jp-yellow); margin: 0 0 14px;
}
.progress-role { font-family: var(--jp-font-ui); font-weight: 700; font-size: 1.4rem; margin: 0 0 10px; }
.progress-percent {
  font-family: var(--jp-font-ui); font-weight: 700; color: var(--jp-yellow); line-height: 1;
  font-size: clamp(64px, 13vw, 208px); margin: 0 0 20px; font-variant-numeric: tabular-nums;
}
.progress-status { font-family: var(--jp-font-ui); font-weight: 500; font-size: 1.5rem; line-height: 1.3; margin: 0 0 18px; text-wrap: balance; }
.progress-time { color: rgba(254, 254, 254, 0.72); font-size: 0.9rem; margin: 0 0 10px; }
/* Not a real backend milestone feed (see customer.html's showProgress()) — this label is derived
   from the same honest elapsed-time estimate as the percent above it, purely to keep the wait
   visually alive, same spirit as a generic multi-phase loading message. */
.progress-stage {
  font-family: var(--jp-font-ui); font-weight: 700; font-size: 0.85rem;
  letter-spacing: var(--jp-label-tracking); text-transform: uppercase; color: var(--jp-yellow); margin: 0;
}
.progress-facts {
  /* Wide enough that the retention note stays on one line and a long real filename
     (e.g. "adebayo_oghunukgegbe_2_final.pdf") has room to sit next to its label. */
  flex: 0 1 440px; min-width: 340px; display: flex; flex-direction: column; justify-content: center;
  border-left: 1px solid rgba(254, 254, 254, 0.2); padding-left: 40px;
}
.progress-fact {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid rgba(254, 254, 254, 0.15); font-size: 0.92rem;
}
.progress-fact span { color: rgba(254, 254, 254, 0.68); }
.progress-fact strong { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.progress-retention-note { color: rgba(254, 254, 254, 0.55); font-size: 0.82rem; margin: 16px 0 0; }
.progress-cancel-row { padding: 0 32px 16px; flex-shrink: 0; }
button.progress-cancel {
  border: 1px solid var(--jp-paper); background: transparent; color: var(--jp-paper);
  font-family: var(--jp-font-ui); font-weight: 700; font-size: 0.72rem; letter-spacing: var(--jp-label-tracking);
  text-transform: uppercase; padding: 0 20px; min-height: var(--jp-hit-desktop); cursor: pointer;
}
/* Destructive actions hover red — house rule. */
button.progress-cancel:hover { border-color: var(--jp-red); background: var(--jp-red); }
/* Full-bleed determinate strip pinned edge-to-edge at the viewport bottom, per the design pass. */
.progress-bar { height: 8px; background: rgba(254, 254, 254, 0.12); overflow: hidden; flex-shrink: 0; }
.progress-bar-fill { height: 100%; background: var(--jp-yellow); width: 0%; transition: width 500ms ease; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 680px) {
  .progress-body { padding: 32px 20px; gap: 32px; }
  .progress-topbar { padding: 16px 20px; }
  .progress-cancel-row { padding: 0 20px 14px; }
  /* Stacked columns (flex-wrap already puts .progress-facts below .progress-main at this
     width) need a horizontal divider instead of the desktop vertical one. */
  .progress-facts { border-left: none; padding-left: 0; border-top: 1px solid rgba(254, 254, 254, 0.2); padding-top: 24px; }
}
