/* Customer workflow component. Scoped so other pages retain their own layout. */
.customer-flow-section { padding-block: clamp(40px, 5vw, 72px); }
.customer-flow-heading { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 36px; }
.customer-flow-heading .eyebrow { color: #9f302b; margin-bottom: 12px; }
.customer-flow-heading h2 { font-size: clamp(2rem, 3vw, 2.7rem); line-height: 1.12; }
.customer-flow-heading > p { max-width: 430px; font-size: 1.04rem; line-height: 1.75; }
.customer-flow { margin: 0; }
.customer-flow-stages { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr); gap: 46px; }
.customer-flow-stage { min-width: 0; display: flex; flex-direction: column; }
.customer-flow-stage > h3 { display: flex; align-items: center; gap: 10px; min-height: 36px; margin: 0 0 18px; font-size: .94rem; line-height: 1.45; letter-spacing: -.01em; }
.customer-flow-stage > h3 > span { color: #a63028; font-size: .78rem; font-variant-numeric: tabular-nums; letter-spacing: .05em; }
.customer-flow-body { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 326px; gap: 12px; }
.customer-flow-stage:not(:last-child) .customer-flow-body::after { content: ''; position: absolute; top: 50%; right: -34px; width: 22px; height: 8px; border-top: 2px solid #94a3b8; transform: translateY(4px); }
.customer-flow-stage:not(:last-child) .customer-flow-body::before { content: ''; position: absolute; top: 50%; right: -34px; width: 8px; height: 8px; border-top: 2px solid #94a3b8; border-right: 2px solid #94a3b8; transform: rotate(45deg); }
.customer-flow-source.ui-panel { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 12px; box-shadow: none; }
.customer-flow-source > svg { flex: 0 0 26px; width: 26px; height: 26px; color: #a63028; }
.customer-flow-source strong, .customer-flow-actions strong { display: block; color: var(--navy); font-size: .96rem; line-height: 1.45; }
.customer-flow-source p, .customer-flow-actions p { margin-top: 4px; font-size: .81rem; line-height: 1.55; }
.customer-flow-record.ui-panel { width: 100%; padding: 24px; border-top: 3px solid var(--brand-accent); border-radius: 16px; box-shadow: 0 12px 30px rgb(15 23 42 / 9%); }
.customer-flow-record-top { display: flex; align-items: center; gap: 12px; }
.customer-flow-record-mark { flex: 0 0 36px; display: grid; place-items: center; width: 36px; height: 40px; color: #fff; }
.customer-flow-record-mark svg { width: 30px; height: 30px; }
.customer-flow-record .customer-flow-kicker { margin: 0 0 5px; color: #cbd5e1; font-size: .68rem; line-height: 1.5; }
.customer-flow-record h4 { margin: 0; color: #fff; font-size: 1.24rem; line-height: 1.3; font-weight: 700; letter-spacing: -.02em; }
.customer-flow-record-fields { list-style: none; padding: 0; margin: 22px 0 0; }
.customer-flow-record-fields li { padding: 12px 0; border-top: 1px solid #334155; }
.customer-flow-record-fields span { display: block; color: #f8fafc; font-size: .89rem; font-weight: 650; }
.customer-flow-record-fields small { display: block; margin-top: 2px; color: #cbd5e1; font-size: .76rem; line-height: 1.6; }
.customer-flow-record .customer-flow-record-foot { margin-top: 8px; color: #cbd5e1; font-size: .71rem; line-height: 1.6; }
.customer-flow-actions { position: relative; display: grid; gap: 26px; list-style: none; padding: 0; margin: 0; }
.customer-flow-actions::before { content: ''; position: absolute; top: 17px; bottom: 30px; left: 16px; width: 1px; background: #cbd5e1; }
.customer-flow-actions li { position: relative; display: flex; align-items: start; gap: 13px; min-width: 0; }
.customer-flow-action-dot { position: relative; flex: 0 0 34px; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #cbd5e1; border-radius: 50%; background: var(--background); color: var(--navy); font-size: .73rem; font-weight: 700; }
.customer-flow-actions li:first-child .customer-flow-action-dot { border-color: #9f302b; background: #fff1ef; color: #9f302b; }
.customer-flow-handover { display: flex; align-items: center; gap: 12px; margin-top: 28px; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.customer-flow-handover > svg { flex: 0 0 23px; width: 23px; height: 23px; color: #9f302b; }
.customer-flow-handover p { font-size: .88rem; line-height: 1.7; }
.customer-flow-handover strong { color: var(--navy); }
.customer-flow figcaption { margin-top: 14px; color: var(--text); font-size: .76rem; line-height: 1.7; }
.customer-flow-more { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; margin-top: 24px; }
.customer-flow-more > span { max-width: 560px; font-size: .83rem; line-height: 1.7; }
@media (max-width: 1150px) and (min-width: 1001px) {
  .customer-flow-stages { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 30px; }
  .customer-flow-stage:not(:last-child) .customer-flow-body::after { right: -24px; width: 18px; }
  .customer-flow-stage:not(:last-child) .customer-flow-body::before { right: -24px; }
  .customer-flow-source.ui-panel, .customer-flow-record.ui-panel { padding: 18px 14px; }
  .customer-flow-source { gap: 10px; }
  .customer-flow-record-top { gap: 6px; }
  .customer-flow-record-mark { display: none; }
}
@media (max-width: 1000px) {
  .customer-flow-heading { display: block; margin-bottom: 28px; }
  .customer-flow-heading > p { margin-top: 16px; }
  .customer-flow-stages { grid-template-columns: minmax(0, 1fr); gap: 52px; max-width: 540px; margin-inline: auto; }
  .customer-flow-stage > h3 { margin-bottom: 12px; }
  .customer-flow-body { min-height: 0; }
  .customer-flow-stage:not(:last-child) .customer-flow-body::after { top: auto; bottom: -29px; right: 50%; width: 1px; height: 18px; border: 0; background: #94a3b8; transform: none; }
  .customer-flow-stage:not(:last-child) .customer-flow-body::before { top: auto; bottom: -29px; right: calc(50% - 3px); width: 7px; height: 7px; border-top: 0; border-right: 2px solid #94a3b8; border-bottom: 2px solid #94a3b8; transform: rotate(45deg); }
  .customer-flow-source.ui-panel { min-height: 76px; }
  .customer-flow-record.ui-panel { padding: 24px; }
  .customer-flow-actions { gap: 24px; }
  .customer-flow-handover { align-items: start; }
  .customer-flow-handover strong { display: block; }
  .customer-flow-more { display: block; }
  .customer-flow-more > a { display: inline-flex; align-items: center; min-height: 44px; }
  .customer-flow-more > span { display: block; margin-top: 8px; }
}
