/* ============================================================
   Served-documents flow styles
   Covers: served-documents.html, served-digitally.html,
           served-physically.html
   All colour/spacing values use design-system tokens only.
   ============================================================ */

/* ── Shared page wrapper ─────────────────────────────────── */

.served-page-wrap {
  padding-top: var(--space-6);       /* 24px */
  padding-bottom: var(--space-9);    /* 48px */
}

/* ── You've Been Served — choice panel ───────────────────── */
/* background, box-shadow, border-radius provided by portal-panel (components.css) */

.served-panel {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 16px;
  border-radius: var(--radius-md);
}

.served-panel-title {
  font-size: var(--type-title-size);
  line-height: var(--type-title-line);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin: 0 0 var(--space-2);
}

.served-panel-subtitle {
  font-size: var(--type-subtitle-size);
  line-height: var(--type-subtitle-line);
  color: var(--text-secondary);
  margin: 0 0 var(--space-7);
}

.served-options {
  display: flex;
  gap: var(--space-5);
  margin-bottom: var(--space-7);
}

.served-option-card {
  flex: 1;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 196px;
  background: var(--n-0);
  box-shadow: none;
  transition: none;
  transform: none;
}

.served-option-card:hover {
  border-color: var(--border-default);
  box-shadow: none;
  transform: none;
}

.served-option-title {
  font-size: var(--type-title-size);
  line-height: var(--type-title-line);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin: 0 0 var(--space-2);
}

.served-option-desc {
  font-size: var(--type-lg-body-size);
  line-height: var(--type-lg-body-line);
  color: var(--text-secondary);
  margin: 0 0 var(--space-5);
  flex: 1;
}

.served-option-card .btn,
.served-panel > .btn {
  --btn-height: 48px;
  --btn-px: 24px;
  --btn-font-size: var(--type-body-size);
  --btn-line-height: var(--type-body-line);
  --btn-radius: var(--radius-md);
}

/* ── Access-code flow panel ──────────────────────────────── */
/* background, box-shadow, border-radius provided by portal-panel (components.css) */

.access-code-panel {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 16px;
  border-radius: var(--radius-md);
}

.access-code-title {
  font-size: var(--type-title-size);
  line-height: var(--type-title-line);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin: 0 0 var(--space-2);
}

/* Progress bar reuses existing filing-review-progress pattern */
.access-code-progress {
  height: 6px;
  background: var(--n-20);
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-7);
  overflow: hidden;
}

.access-code-progress-bar {
  height: 100%;
  width: 50%;
  background: var(--primary-accent);
  border-radius: var(--radius-pill);
}

.access-code-intro {
  font-size: var(--type-lg-body-size);
  line-height: var(--type-lg-body-line);
  color: var(--text-secondary);
  margin-bottom: var(--space-5);
}

/* Notice boxes use the shared DS .callout component (components.css).
   .callout         → neutral/info  (served-digitally.html)
   .callout--attention → warning    (served-physically.html)
   Only context-specific vertical spacing is set here. */
.access-code-panel .callout {
  margin-bottom: var(--space-5);
  border-color: var(--n-80);
  border-radius: var(--radius-sm);
  background: var(--n-20);
  padding: var(--space-4);
}
.access-code-panel .callout--attention {
  margin-bottom: var(--space-7);   /* 32px — below warning notice */
  border-color: var(--border-attention);
  background: var(--attention-bg);
}

.access-code-panel .callout-title {
  font-size: var(--type-lg-body-size);
  line-height: var(--type-lg-body-line);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-1);
}

.access-code-panel .callout-body {
  font-size: var(--type-lg-body-size);
  line-height: var(--type-lg-body-line);
  color: var(--text-primary);
}

.access-code-field-label {
  font-size: var(--type-body-size);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-2h);
  display: block;
}

.access-code-inputs {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-7);
}

.access-code-inputs input {
  flex: 1;
  height: 48px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  font-size: var(--type-lg-body-size);
  text-align: center;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s;
  background: var(--n-0);
}

.access-code-inputs input:focus {
  border-color: var(--primary-accent);
  box-shadow: var(--focus-ring);
}

.access-code-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ── Respondent service confirmation flow ─────────────────── */

.served-access-panel {
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 16px 18px;
}

.served-access-title {
  margin: 0 0 12px;
  color: var(--text-primary);
  font-size: var(--type-lg-title-size);
  line-height: var(--type-lg-title-line);
  font-weight: var(--font-weight-bold);
}

.served-access-progress {
  height: 8px;
  margin-bottom: 34px;
  border-radius: var(--radius-pill);
  background: var(--n-30);
  overflow: hidden;
}

.served-access-progress div {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #4a90dd;
}

.served-access-details h2,
.served-access-confirm h2 {
  margin: 0 0 18px;
  color: var(--text-primary);
  font-size: var(--type-subtitle-size);
  line-height: var(--type-subtitle-line);
  font-weight: var(--font-weight-semibold);
}

.served-access-details dl {
  margin: 0 0 28px;
}

.served-access-details dl div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  min-height: 52px;
  align-items: center;
  border-bottom: 1px solid var(--border-primary);
}

.served-access-details dt,
.served-access-details dd {
  margin: 0;
  color: var(--text-primary);
  font-size: var(--type-body-size);
  line-height: var(--type-body-line);
}

.served-access-warning {
  margin-bottom: 36px;
  padding: 18px 16px;
  border: 1px solid var(--attention);
  border-radius: var(--radius-sm);
  background: var(--attention-bg);
  color: var(--text-primary);
  font-size: var(--type-body-size);
  line-height: var(--type-body-line);
}

.served-access-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 44px;
  color: var(--text-primary);
  font-size: var(--type-body-size);
  line-height: var(--type-body-line);
  font-weight: var(--font-weight-regular);
}

.served-access-checkbox input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #ffe500;
}

.served-access-error {
  min-height: 24px;
  margin: 0 0 8px;
  color: var(--error);
  font-size: var(--type-sm-body-size);
  line-height: var(--type-sm-body-line);
}

.served-access-actions {
  display: flex;
  justify-content: flex-end;
}

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 600px) {
  .served-options {
    flex-direction: column;
  }

  .served-panel,
  .access-code-panel,
  .served-access-panel {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  .access-code-inputs {
    flex-direction: column;
  }

  .served-access-details dl div {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 10px 0;
  }
}
