/* ==========================================================================
   Page: Request Submitted (request-submitted-en.html)
   Theme: quiet confirmation — a single narrow centred column on the canvas,
   led by a success mark. Calmer and more compact than the request form, which
   is what gives this page its own character within the same identity.
   Direction-agnostic (logical properties); submitted-ar.css imports it.

   Every measurement below comes from the reference PDF, whose design frame is
   1928px wide: content column 510px, header 163px, cards 140px and 147px tall.
   ========================================================================== */

/* ---------- Page-level tokens ----------
   This page uses the slate ramp the reference design applies here, which runs
   a shade cooler than the request form. Scoped to the page so the shared
   tokens stay untouched. */
.sb-main {
  --sb-heading: #0f172a;   /* PDF H1 */
  --sb-label:   #64748b;   /* PDF labels, dates, closing note — 4.76:1 on white */
  --sb-value:   #1f2638;   /* PDF field values */
  --sb-number:  #1e2a78;   /* PDF request number */
  --sb-pill-bg: #fff7ed;   /* PDF status pill background */
  /* PDF status text is #c94911 (4.45:1). Darkened one step to clear AA. */
  --sb-pill-fg: #c84810;

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-block: clamp(2.5rem, 8vw, 8.5rem) clamp(3rem, 9vw, 9rem);
  background:
    radial-gradient(45rem 24rem at 50% -8%, rgba(22, 163, 74, 0.05), transparent 62%),
    var(--dc-bg);
}

/* The whole page sits in one narrow column — 510px in the reference */
.sb-col {
  width: 100%;
  max-width: 31.875rem;   /* 510px */
  margin-inline: auto;
}

/* ---------- Header: centred logo only ---------- */
.sb-header .dc-header__inner {
  justify-content: center;
  min-height: 10.1875rem;  /* 163px in the reference */
}

/* ---------- Success mark ---------- */
.sb-mark {
  display: grid;
  place-items: center;
  width: 5.5rem;           /* 88px */
  height: 5.5rem;
  margin-inline: auto;
  border-radius: 50%;
  background: var(--dc-surface);
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.12);
}
.sb-mark svg { width: 2.75rem; height: 2.75rem; display: block; }
.sb-mark circle,
.sb-mark path {
  fill: none;
  stroke: var(--dc-success);
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Ring draws itself, then the tick — the one flourish on this page */
.sb-mark circle {
  stroke-dasharray: 63;
  stroke-dashoffset: 63;
  animation: sbRing 0.6s var(--ease) 0.15s forwards;
}
.sb-mark path {
  stroke-dasharray: 18;
  stroke-dashoffset: 18;
  animation: sbTick 0.45s var(--ease) 0.6s forwards;
}
@keyframes sbRing { to { stroke-dashoffset: 0; } }
@keyframes sbTick { to { stroke-dashoffset: 0; } }

/* A soft pulse radiating from the mark, once */
.sb-mark::after {
  content: '';
  position: absolute;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  border: 2px solid var(--dc-success);
  opacity: 0;
  animation: sbPulse 1.4s var(--ease) 0.55s;
}
.sb-mark { position: relative; }
@keyframes sbPulse {
  from { opacity: 0.45; transform: scale(1); }
  to   { opacity: 0; transform: scale(1.55); }
}

/* ---------- Headline ---------- */
.sb-title {
  margin-block: var(--sp-8) var(--sp-3);
  /* 30px reproduces the reference headline width (468px) on a single line */
  font-size: clamp(1.5rem, 1.05rem + 1.7vw, 1.875rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--sb-heading);
}
.sb-lede {
  color: var(--sb-label);
  font-size: var(--fs-md);
  margin-block-end: var(--sp-8);
}

/* ---------- Request number card ---------- */
.sb-card {
  background: var(--dc-surface);
  border: 1px solid var(--dc-border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  padding: var(--sp-6) var(--sp-5);
  transition: box-shadow var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}
.sb-card:hover { box-shadow: var(--sh-md); }
.sb-card + .sb-card { margin-block-start: 1.25rem; }   /* 20px in the reference */

.sb-ref__label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--sb-label);
}
/* Number and its copy button share one line, so the card keeps the height it
   has in the reference design. */
.sb-ref__line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  margin-block: 0.35rem 0.3rem;
  line-height: 1.25;   /* keeps the card at its reference height */
}
.sb-ref__number {
  /* 33px reproduces the reference number width (189px) */
  font-family: var(--dc-font-heading);
  font-size: clamp(1.625rem, 1.15rem + 1.8vw, 2.0625rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--sb-number);
  /* Request numbers stay left-to-right in both languages */
  direction: ltr;
  unicode-bidi: isolate;
}
.sb-ref__issued { font-size: var(--fs-sm); color: var(--sb-label); }

/* Copy-to-clipboard affordance, sized so it never changes the card height */
.sb-copy {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border: 1px solid var(--dc-border);
  border-radius: var(--r-md);
  background: var(--dc-surface);
  color: var(--sb-label);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
}
.sb-copy:hover { border-color: var(--dc-navy); color: var(--dc-navy); background: var(--dc-navy-50); }
.sb-copy.is-done { border-color: var(--dc-success); color: var(--dc-success); background: var(--dc-success-bg); }

/* ---------- Summary card: two columns, two rows ---------- */
.sb-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.875rem var(--sp-6);   /* 14px row gap, as measured in the reference */
  text-align: start;
  margin: 0;                   /* drop the browser default on <dl> */
}
.sb-summary dt {
  font-size: var(--fs-sm);
  font-weight: 400;
  line-height: 1.4;
  color: var(--sb-label);
  margin-block-end: 0;   /* reference stacks the line boxes with no gap */
}
.sb-summary dd {
  margin: 0;
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.4;
  color: var(--sb-value);
}

/* ---------- Status pill ---------- */
.sb-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3125rem 0.7rem;   /* 106 x 29 in the reference */
  border-radius: var(--r-sm);
  background: var(--sb-pill-bg);
  color: var(--sb-pill-fg);
  font-size: var(--fs-sm);
  font-weight: 700;
}
.sb-status::before {
  content: '';
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* ---------- Closing note ---------- */
.sb-note {
  margin-block-start: var(--sp-6);
  font-size: var(--fs-sm);
  color: var(--sb-label);
}

/* ---------- Actions (not in the PDF — see design-manifest.md) ---------- */
.sb-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3);
  margin-block-start: var(--sp-6);
}
.sb-actions .btn { min-width: 11.5rem; }
.sb-actions .btn-dc-primary:hover i { transform: translateX(3px); }

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
  .sb-summary { grid-template-columns: 1fr; gap: var(--sp-4); }
  .sb-mark, .sb-mark::after { width: 4.5rem; height: 4.5rem; }
  .sb-mark svg { width: 2.25rem; height: 2.25rem; }
  .sb-card { padding: var(--sp-5) var(--sp-4); }
  .sb-actions { flex-direction: column; }
  .sb-actions .btn { width: 100%; min-width: 0; }
}

/* Motion is decoration here: draw the mark instantly when motion is reduced */
@media (prefers-reduced-motion: reduce) {
  .sb-mark circle, .sb-mark path { stroke-dashoffset: 0; animation: none; }
  .sb-mark::after { display: none; }
}

/* ---------- Print ---------- */
/* Both buttons are screen-only affordances — one starts another request, the other is
   the print trigger itself — so neither belongs on the sheet it produces. The header,
   footer and nav are already dropped by the print block in base.css; this page only
   adds its own action row, the same way details-en.css drops .od-actions. */
@media print {
  .sb-actions { display: none !important; }
}

.sb-track-icon { width: 1.25rem; height: 1.25rem; }
