:root {
    --pcw-bg: #f3f5f7;
    --pcw-surface: #ffffff;
    --pcw-surface-soft: #f8fafb;
    --pcw-ink: #17212b;
    --pcw-muted: #5f6b76;
    --pcw-border: #d6dce2;
    --pcw-border-strong: #aeb8c2;
    --pcw-primary: #175fac;
    --pcw-primary-dark: #114a87;
    --pcw-primary-soft: #eaf2fb;
    --pcw-teal: #087a68;
    --pcw-teal-soft: #e8f6f2;
    --pcw-amber: #9a5a00;
    --pcw-amber-soft: #fff5df;
    --pcw-danger: #bd3345;
    --pcw-danger-soft: #fff0f2;
    --pcw-shadow: 0 16px 40px rgba(29, 42, 55, 0.08);
    --pcw-focus: 0 0 0 3px rgba(23, 95, 172, 0.18);
    --pcw-radius: 8px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 104px;
}

body {
    background: var(--pcw-bg);
    color: var(--pcw-ink);
    letter-spacing: 0;
    overflow-x: hidden;
}

.pcw-app,
.pcw-app * {
    box-sizing: border-box;
}

.pcw-app {
    background: var(--pcw-bg);
    color: var(--pcw-ink);
    font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
    min-height: 100vh;
}

.pcw-app [hidden] {
    display: none !important;
}

.pcw-topbar {
    background: var(--pcw-surface);
    border-bottom: 1px solid var(--pcw-border);
    position: sticky;
    top: 0;
    z-index: 1040;
}

.pcw-topbar-inner {
    align-items: center;
    display: grid;
    gap: 20px;
    grid-template-columns: auto 1fr auto;
    margin: 0 auto;
    max-width: 1440px;
    min-height: 76px;
    padding: 12px 28px;
}

.pcw-brand {
    align-items: center;
    display: inline-flex;
    min-height: 44px;
}

.pcw-brand img {
    display: block;
    height: 40px;
    max-width: 180px;
    object-fit: contain;
    width: auto;
}

.pcw-topbar-title {
    border-left: 1px solid var(--pcw-border);
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    padding-left: 20px;
}

.pcw-topbar-title strong {
    color: var(--pcw-ink);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

.pcw-topbar-title span {
    color: var(--pcw-muted);
    font-size: 12px;
    line-height: 1.4;
}

.pcw-topbar-actions {
    align-items: center;
    display: flex;
    gap: 10px;
}

.pcw-uat-badge {
    align-items: center;
    background: var(--pcw-amber-soft);
    border: 1px solid #e7c98c;
    border-radius: 6px;
    color: #744300;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    gap: 7px;
    min-height: 36px;
    padding: 7px 11px;
    text-transform: uppercase;
}

.pcw-uat-badge.is-production {
    background: var(--pcw-teal-soft);
    border-color: #9ed8cc;
    color: #075e54;
}

.pcw-icon-button {
    align-items: center;
    background: var(--pcw-surface);
    border: 1px solid var(--pcw-border);
    border-radius: 6px;
    color: var(--pcw-muted);
    cursor: pointer;
    display: inline-flex;
    height: 40px;
    justify-content: center;
    padding: 0;
    transition: border-color 120ms ease-out, box-shadow 120ms ease-out, color 120ms ease-out;
    width: 40px;
}

.pcw-icon-button:hover {
    border-color: var(--pcw-border-strong);
    color: var(--pcw-primary);
}

.pcw-icon-button:focus-visible {
    border-color: var(--pcw-primary);
    box-shadow: var(--pcw-focus);
    outline: 0;
}

.pcw-follow-up-notice {
    background: #fff8e9;
    border-bottom: 1px solid #ead3a2;
    color: #684719;
}

.pcw-follow-up-inner {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    margin: 0 auto;
    max-width: 1440px;
    padding: 12px 28px;
}

.pcw-follow-up-inner > i {
    color: var(--pcw-amber);
    font-size: 18px;
    margin-top: 1px;
}

.pcw-follow-up-inner p {
    font-size: 12px;
    line-height: 1.55;
    margin: 0;
}

.pcw-follow-up-inner a {
    color: #744300;
    font-weight: 700;
    text-decoration: underline;
}

.pcw-mobile-progress {
    display: none;
}

.pcw-workspace {
    align-items: start;
    display: grid;
    gap: 0;
    grid-template-columns: 280px minmax(0, 1fr);
    margin: 0 auto;
    max-width: 1440px;
    min-height: calc(100vh - 166px);
    padding: 28px;
}

.pcw-step-rail {
    align-self: start;
    background: transparent;
    border-right: 1px solid var(--pcw-border);
    min-width: 0;
    padding: 8px 26px 24px 0;
    position: sticky;
    top: 132px;
}

.pcw-step-rail-heading {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.pcw-step-rail-heading span,
.pcw-step-rail-heading strong {
    font-size: 11px;
    line-height: 1.4;
    text-transform: uppercase;
}

.pcw-step-rail-heading span {
    color: var(--pcw-muted);
    font-weight: 600;
}

.pcw-step-rail-heading strong {
    color: var(--pcw-primary);
    font-weight: 700;
}

.pcw-step-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pcw-step-list li {
    margin: 0;
    padding: 0;
    position: relative;
}

.pcw-step-list li:not(:last-child)::after {
    background: var(--pcw-border);
    content: "";
    height: 22px;
    left: 17px;
    position: absolute;
    top: 45px;
    width: 1px;
}

.pcw-step-button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 7px;
    color: var(--pcw-muted);
    cursor: pointer;
    display: grid;
    gap: 11px;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    min-height: 54px;
    padding: 7px 8px 7px 0;
    text-align: left;
    transition: background-color 120ms ease-out, color 120ms ease-out;
    width: 100%;
}

.pcw-step-button:disabled {
    cursor: default;
    opacity: 0.62;
}

.pcw-step-button:not(:disabled):hover {
    background: rgba(255, 255, 255, 0.7);
}

.pcw-step-button:focus-visible {
    box-shadow: var(--pcw-focus);
    outline: 0;
}

.pcw-step-marker {
    align-items: center;
    background: var(--pcw-surface);
    border: 1px solid var(--pcw-border);
    border-radius: 50%;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    height: 36px;
    justify-content: center;
    position: relative;
    transition: background-color 180ms ease-out, border-color 180ms ease-out, color 180ms ease-out, transform 180ms ease-out;
    width: 36px;
    z-index: 1;
}

.pcw-step-marker i {
    display: none;
}

.pcw-step-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.pcw-step-copy strong {
    color: var(--pcw-ink);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.35;
}

.pcw-step-copy small {
    color: var(--pcw-muted);
    font-size: 10px;
    line-height: 1.3;
}

.pcw-step-button.is-active .pcw-step-marker {
    background: var(--pcw-primary);
    border-color: var(--pcw-primary);
    box-shadow: 0 5px 14px rgba(23, 95, 172, 0.22);
    color: #fff;
}

.pcw-step-button.is-active .pcw-step-copy strong {
    color: var(--pcw-primary-dark);
}

.pcw-step-button.is-complete .pcw-step-marker {
    background: var(--pcw-teal);
    border-color: var(--pcw-teal);
    color: #fff;
    transform: scale(1);
}

.pcw-step-button.is-complete .pcw-step-number {
    display: none;
}

.pcw-step-button.is-complete .pcw-step-marker i {
    display: inline-block;
}

.pcw-step-button.has-errors .pcw-step-marker {
    background: var(--pcw-danger-soft);
    border-color: var(--pcw-danger);
    color: var(--pcw-danger);
}

.pcw-step-error-count {
    align-items: center;
    background: var(--pcw-danger);
    border-radius: 10px;
    color: #fff;
    display: none;
    font-size: 10px;
    font-weight: 700;
    height: 20px;
    justify-content: center;
    min-width: 20px;
    padding: 0 5px;
}

.pcw-step-button.has-errors .pcw-step-error-count {
    display: inline-flex;
}

.pcw-security-note {
    align-items: flex-start;
    background: var(--pcw-teal-soft);
    border: 1px solid #b8ddd5;
    border-radius: var(--pcw-radius);
    color: #245c51;
    display: flex;
    gap: 10px;
    margin-top: 24px;
    padding: 13px;
}

.pcw-security-note i {
    color: var(--pcw-teal);
    margin-top: 2px;
}

.pcw-security-note p {
    font-size: 10px;
    line-height: 1.5;
    margin: 0;
}

.pcw-form-region {
    background: var(--pcw-surface);
    border: 1px solid var(--pcw-border);
    border-radius: var(--pcw-radius);
    box-shadow: var(--pcw-shadow);
    margin-left: 28px;
    min-width: 0;
    overflow: clip;
}

.pcw-step-alert {
    align-items: flex-start;
    background: var(--pcw-danger-soft);
    border-bottom: 1px solid #efbac1;
    color: #852433;
    display: flex;
    gap: 12px;
    padding: 15px 28px;
}

.pcw-step-alert > i {
    font-size: 19px;
    margin-top: 2px;
}

.pcw-step-alert strong {
    display: block;
    font-size: 13px;
    margin-bottom: 2px;
}

.pcw-step-alert p {
    font-size: 11px;
    line-height: 1.45;
    margin: 0;
}

.pcw-step {
    min-height: 620px;
    padding: 34px 40px 24px;
}

.pcw-step.is-active {
    display: block !important;
}

.pcw-step.is-entering-forward {
    animation: pcw-step-forward 220ms ease-out both;
}

.pcw-step.is-entering-back {
    animation: pcw-step-back 220ms ease-out both;
}

@keyframes pcw-step-forward {
    from { opacity: 0; transform: translateX(12px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pcw-step-back {
    from { opacity: 0; transform: translateX(-12px); }
    to { opacity: 1; transform: translateX(0); }
}

.pcw-step-heading {
    border-bottom: 1px solid var(--pcw-border);
    margin-bottom: 28px;
    padding-bottom: 22px;
}

.pcw-step-kicker {
    color: var(--pcw-primary);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 7px;
    text-transform: uppercase;
}

.pcw-step-heading h1,
.pcw-success h1 {
    color: var(--pcw-ink);
    font-size: 27px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 8px;
}

.pcw-step-heading > p:last-child,
.pcw-success > p {
    color: var(--pcw-muted);
    font-size: 13px;
    line-height: 1.65;
    margin: 0;
    max-width: 760px;
}

.pcw-section-band {
    align-items: flex-start;
    border: 1px solid var(--pcw-border);
    border-radius: var(--pcw-radius);
    display: flex;
    gap: 13px;
    margin-bottom: 24px;
    padding: 15px;
}

.pcw-section-band-highlight {
    background: var(--pcw-primary-soft);
    border-color: #bfd4eb;
}

.pcw-section-icon {
    align-items: center;
    background: var(--pcw-primary);
    border-radius: 6px;
    color: #fff;
    display: inline-flex;
    flex: 0 0 36px;
    height: 36px;
    justify-content: center;
}

.pcw-section-band strong {
    display: block;
    font-size: 13px;
    margin-bottom: 3px;
}

.pcw-section-band p {
    color: var(--pcw-muted);
    font-size: 11px;
    line-height: 1.5;
    margin: 0;
}

.pcw-section-heading {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin: 30px 0 18px;
}

.pcw-section-heading:first-child {
    margin-top: 0;
}

.pcw-section-heading h2,
.pcw-upload-panel-heading h2 {
    color: var(--pcw-ink);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 3px;
}

.pcw-section-heading p,
.pcw-upload-panel-heading p {
    color: var(--pcw-muted);
    font-size: 11px;
    line-height: 1.5;
    margin: 0;
}

.pcw-section-heading-compact {
    margin-top: 0;
}

.pcw-context-badge {
    align-items: center;
    background: var(--pcw-primary-soft);
    border-radius: 6px;
    color: var(--pcw-primary-dark);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 10px;
    font-weight: 700;
    gap: 6px;
    min-height: 30px;
    padding: 6px 9px;
    text-transform: uppercase;
}

.pcw-context-badge-teal {
    background: var(--pcw-teal-soft);
    color: #135f52;
}

.pcw-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(12, minmax(0, 1fr));
}

.pcw-nested-grid {
    padding-top: 4px;
}

.pcw-col-12 { grid-column: span 12; }
.pcw-col-8 { grid-column: span 8; }
.pcw-col-6 { grid-column: span 6; }
.pcw-col-4 { grid-column: span 4; }
.pcw-col-policy { max-width: 520px; }

.pcw-field {
    border: 0;
    margin: 0;
    min-width: 0;
    padding: 0;
    scroll-margin-top: 120px;
}

.pcw-label-row {
    align-items: baseline;
    display: flex;
    gap: 9px;
    justify-content: space-between;
    margin-bottom: 8px;
    min-height: 19px;
}

.pcw-label-row label,
.pcw-label-row > span:first-child,
.pcw-field legend > span:first-child {
    color: var(--pcw-ink);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.45;
    margin: 0;
}

.pcw-required,
.pcw-optional {
    flex: 0 0 auto;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
}

.pcw-required { color: var(--pcw-danger); }
.pcw-optional { color: #7b8792; }

.pcw-valid-indicator {
    align-items: center;
    color: var(--pcw-teal);
    display: none;
    flex: 0 0 auto;
    font-size: 9px;
    font-weight: 700;
    gap: 4px;
    line-height: 1.4;
    margin-left: auto;
    text-transform: uppercase;
}

.pcw-valid-indicator i {
    font-size: 12px;
}

.pcw-field.is-valid > .pcw-label-row > .pcw-required,
.pcw-field.is-valid > .pcw-label-row > .pcw-optional,
.pcw-signature.is-valid > .pcw-label-row > .pcw-required,
.pcw-upload-panel.is-valid .pcw-upload-panel-heading .pcw-required {
    display: none;
}

.pcw-field.is-valid > .pcw-label-row > .pcw-valid-indicator,
.pcw-signature.is-valid > .pcw-label-row > .pcw-valid-indicator,
.pcw-upload-panel.is-valid .pcw-upload-panel-heading .pcw-valid-indicator {
    display: inline-flex;
}

.pcw-field[data-field="verify"].is-valid > .pcw-valid-indicator {
    display: inline-flex;
    margin: 8px 0 0 34px;
}

.pcw-control-shell,
.pcw-select-shell {
    min-width: 0;
    position: relative;
}

.pcw-control-shell input,
.pcw-field textarea,
.pcw-select-shell select,
.pcw-field > select {
    background: var(--pcw-surface);
    border: 1px solid var(--pcw-border-strong);
    border-radius: 6px;
    color: var(--pcw-ink);
    font-family: inherit;
    font-size: 13px;
    letter-spacing: 0;
    line-height: 1.4;
    min-height: 46px;
    outline: 0;
    padding: 11px 13px;
    transition: background-color 120ms ease-out, border-color 120ms ease-out, box-shadow 120ms ease-out;
    width: 100%;
}

.pcw-field textarea {
    min-height: 112px;
    resize: vertical;
}

.pcw-control-shell input::placeholder,
.pcw-field textarea::placeholder {
    color: #8b96a1;
    opacity: 1;
}

.pcw-control-shell input:hover,
.pcw-field textarea:hover,
.pcw-select-shell select:hover {
    border-color: #82909e;
}

.pcw-control-shell input:focus,
.pcw-field textarea:focus,
.pcw-select-shell select:focus {
    border-color: var(--pcw-primary);
    box-shadow: var(--pcw-focus);
}

.pcw-control-shell input:read-only,
.pcw-control-shell input:disabled,
.pcw-field textarea:disabled,
.pcw-select-shell select:disabled {
    background: #eef1f4;
    color: #68737e;
    cursor: not-allowed;
}

.pcw-control-with-icon input {
    padding-left: 40px;
}

.pcw-control-icon {
    color: #768390;
    font-size: 15px;
    left: 14px;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: color 120ms ease-out;
    z-index: 2;
}

.pcw-control-with-icon:focus-within .pcw-control-icon {
    color: var(--pcw-primary);
}

.pcw-select-shell select {
    appearance: none;
    padding-right: 40px;
}

.pcw-select-shell > i {
    color: #75818c;
    font-size: 10px;
    pointer-events: none;
    position: absolute;
    right: 15px;
    top: 18px;
}

.pcw-helper {
    color: var(--pcw-muted);
    font-size: 10px;
    line-height: 1.5;
    margin: 6px 0 0;
}

.pcw-field-error {
    color: var(--pcw-danger);
    display: none;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.45;
    margin: 6px 0 0;
}

.pcw-field.has-error .pcw-field-error,
.pcw-upload-panel.has-error > .pcw-field-error,
.pcw-upload-panel.has-error [data-field$="_name"] > .pcw-field-error,
.pcw-signature.has-error > .pcw-field-error {
    display: block;
}

.pcw-field.has-error input,
.pcw-field.has-error textarea,
.pcw-field.has-error select,
.pcw-field.has-error .pcw-segmented,
.pcw-upload-panel.has-error .pcw-dropzone,
.pcw-upload-panel.has-error .pcw-file-name-input,
.pcw-signature.has-error .pcw-signature-canvas-wrap {
    border-color: var(--pcw-danger);
}

.pcw-field.has-error input:focus,
.pcw-field.has-error textarea:focus,
.pcw-field.has-error select:focus {
    box-shadow: 0 0 0 3px rgba(189, 51, 69, 0.15);
}

.pcw-field.is-valid input,
.pcw-field.is-valid textarea,
.pcw-field.is-valid select,
.pcw-field.is-valid .pcw-segmented,
.pcw-signature.is-valid .pcw-signature-canvas-wrap,
.pcw-upload-panel.is-valid .pcw-dropzone {
    border-color: var(--pcw-teal);
}

.pcw-segmented {
    background: #eef1f4;
    border: 1px solid var(--pcw-border);
    border-radius: 7px;
    display: grid;
    gap: 4px;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    min-height: 46px;
    padding: 4px;
    transition: border-color 120ms ease-out, box-shadow 120ms ease-out;
}

.pcw-segment-option {
    cursor: pointer;
    margin: 0;
    min-width: 0;
    position: relative;
}

.pcw-segment-option input {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.pcw-segment-label {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 5px;
    color: #4f5d69;
    display: flex;
    font-size: 12px;
    font-weight: 600;
    gap: 8px;
    justify-content: center;
    min-height: 36px;
    padding: 8px 12px;
    text-align: center;
    transition: background-color 120ms ease-out, border-color 120ms ease-out, color 120ms ease-out, box-shadow 120ms ease-out;
}

.pcw-segment-option input:checked + .pcw-segment-label {
    background: var(--pcw-surface);
    border-color: #c5cdd5;
    box-shadow: 0 2px 6px rgba(29, 42, 55, 0.08);
    color: var(--pcw-primary-dark);
}

.pcw-segment-option input:focus-visible + .pcw-segment-label {
    box-shadow: var(--pcw-focus);
}

.pcw-segmented-large {
    gap: 8px;
    min-height: 64px;
    padding: 6px;
}

.pcw-segmented-large .pcw-segment-label {
    font-size: 13px;
    min-height: 50px;
}

.pcw-segmented-large .pcw-segment-label i {
    font-size: 17px;
}

.pcw-conditional.is-revealing {
    animation: pcw-conditional-reveal 200ms ease-out both;
}

@keyframes pcw-conditional-reveal {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.pcw-empty-selection {
    align-items: center;
    background: var(--pcw-surface-soft);
    border: 1px dashed var(--pcw-border-strong);
    border-radius: var(--pcw-radius);
    color: var(--pcw-muted);
    display: flex;
    gap: 14px;
    margin-top: 24px;
    padding: 20px;
}

.pcw-empty-selection > i {
    color: var(--pcw-primary);
    font-size: 22px;
}

.pcw-empty-selection strong {
    color: var(--pcw-ink);
    display: block;
    font-size: 12px;
    margin-bottom: 3px;
}

.pcw-empty-selection p {
    font-size: 10px;
    margin: 0;
}

.pcw-context-panel {
    background: var(--pcw-surface-soft);
    border: 1px solid var(--pcw-border);
    border-radius: var(--pcw-radius);
    margin-top: 18px;
    padding: 22px;
}

.pcw-authorisation-copy,
.pcw-preview-notice,
.pcw-inline-warning {
    align-items: flex-start;
    border-radius: var(--pcw-radius);
    display: flex;
    gap: 13px;
    margin-bottom: 20px;
    padding: 16px;
}

.pcw-authorisation-copy {
    background: var(--pcw-primary-soft);
    border: 1px solid #c2d5ea;
    color: #294e72;
}

.pcw-authorisation-copy i,
.pcw-preview-notice i,
.pcw-inline-warning i {
    font-size: 18px;
    margin-top: 2px;
}

.pcw-authorisation-copy p,
.pcw-preview-notice p,
.pcw-inline-warning p {
    font-size: 11px;
    line-height: 1.65;
    margin: 0;
}

.pcw-preview-notice {
    background: var(--pcw-amber-soft);
    border: 1px solid #e7c98c;
    color: #744300;
}

.pcw-preview-notice strong {
    display: block;
    font-size: 12px;
    margin-bottom: 3px;
}

.pcw-inline-warning {
    background: var(--pcw-danger-soft);
    border: 1px solid #efbac1;
    color: #852433;
    margin-top: 16px;
}

.pcw-upload-overview {
    background: var(--pcw-surface-soft);
    border: 1px solid var(--pcw-border);
    border-radius: var(--pcw-radius);
    margin-bottom: 22px;
    padding: 15px 18px;
}

.pcw-upload-overview > div:first-child {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.pcw-upload-overview span,
.pcw-upload-overview strong {
    font-size: 11px;
}

.pcw-upload-overview strong {
    color: var(--pcw-primary-dark);
}

.pcw-upload-overview p {
    color: var(--pcw-muted);
    font-size: 10px;
    line-height: 1.5;
    margin: 8px 0 0;
}

.pcw-upload-meter {
    background: #dfe4e8;
    border-radius: 4px;
    height: 6px;
    margin-top: 10px;
    overflow: hidden;
}

.pcw-upload-meter span {
    background: var(--pcw-teal);
    display: block;
    height: 100%;
    transition: width 240ms ease-out;
    width: 0;
}

.pcw-upload-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pcw-upload-panel {
    border: 1px solid var(--pcw-border);
    border-radius: var(--pcw-radius);
    min-width: 0;
    padding: 18px;
}

.pcw-upload-panel-heading {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    min-height: 72px;
}

.pcw-upload-panel-icon {
    align-items: center;
    background: var(--pcw-primary-soft);
    border-radius: 6px;
    color: var(--pcw-primary);
    display: inline-flex;
    flex: 0 0 38px;
    height: 38px;
    justify-content: center;
}

.pcw-upload-panel-icon-teal {
    background: var(--pcw-teal-soft);
    color: var(--pcw-teal);
}

.pcw-upload-panel-heading .pcw-label-row {
    align-items: flex-start;
    margin: 0 0 3px;
}

.pcw-dropzone {
    align-items: center;
    background: var(--pcw-surface-soft);
    border: 1px dashed #98a5b1;
    border-radius: 7px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 14px 0;
    min-height: 170px;
    padding: 20px;
    text-align: center;
    transition: background-color 120ms ease-out, border-color 120ms ease-out, box-shadow 120ms ease-out;
}

.pcw-dropzone:hover,
.pcw-dropzone.is-dragging {
    background: var(--pcw-primary-soft);
    border-color: var(--pcw-primary);
}

.pcw-dropzone:focus-visible,
.pcw-dropzone:focus-within {
    border-color: var(--pcw-primary);
    box-shadow: var(--pcw-focus);
    outline: 0;
}

.pcw-dropzone input {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.pcw-dropzone-icon {
    align-items: center;
    background: var(--pcw-surface);
    border: 1px solid var(--pcw-border);
    border-radius: 50%;
    color: var(--pcw-primary);
    display: inline-flex;
    font-size: 20px;
    height: 46px;
    justify-content: center;
    margin-bottom: 10px;
    width: 46px;
}

.pcw-dropzone strong {
    color: var(--pcw-ink);
    font-size: 12px;
    margin-bottom: 4px;
}

.pcw-dropzone > span:last-child {
    color: var(--pcw-muted);
    font-size: 9px;
    line-height: 1.5;
    max-width: 290px;
}

.pcw-upload-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pcw-file-card {
    background: var(--pcw-surface);
    border: 1px solid var(--pcw-border);
    border-radius: 7px;
    display: grid;
    gap: 10px;
    grid-template-columns: 38px minmax(0, 1fr) 34px;
    padding: 11px;
}

.pcw-file-card.is-uploading {
    background: #f8fbfe;
}

.pcw-file-icon {
    align-items: center;
    background: var(--pcw-primary-soft);
    border-radius: 6px;
    color: var(--pcw-primary);
    display: inline-flex;
    font-size: 17px;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.pcw-file-preview {
    background: #eef2f5;
    overflow: hidden;
}

.pcw-file-preview img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.pcw-file-copy {
    min-width: 0;
}

.pcw-file-copy strong {
    color: var(--pcw-ink);
    display: block;
    font-size: 10px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pcw-file-copy > span {
    color: var(--pcw-muted);
    display: block;
    font-size: 9px;
    margin-top: 2px;
}

.pcw-file-name-input {
    background: #f8fafb;
    border: 1px solid var(--pcw-border);
    border-radius: 5px;
    color: var(--pcw-ink);
    font-family: inherit;
    font-size: 10px;
    margin-top: 8px;
    min-height: 36px;
    padding: 8px 10px;
    width: 100%;
}

.pcw-file-name-input:focus {
    border-color: var(--pcw-primary);
    box-shadow: var(--pcw-focus);
    outline: 0;
}

.pcw-file-remove {
    align-items: center;
    align-self: start;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 5px;
    color: #7d8790;
    cursor: pointer;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    padding: 0;
    width: 34px;
}

.pcw-file-remove:hover {
    background: var(--pcw-danger-soft);
    color: var(--pcw-danger);
}

.pcw-file-remove:focus-visible {
    box-shadow: var(--pcw-focus);
    outline: 0;
}

.pcw-file-progress {
    background: #dfe4e8;
    border-radius: 3px;
    grid-column: 2 / 4;
    height: 5px;
    overflow: hidden;
}

.pcw-file-progress span {
    background: var(--pcw-primary);
    display: block;
    height: 100%;
    transition: width 120ms linear;
    width: 0;
}

.pcw-file-card.is-ready .pcw-file-icon {
    background: var(--pcw-teal-soft);
    color: var(--pcw-teal);
}

.pcw-file-card.is-error {
    background: var(--pcw-danger-soft);
    border-color: #efbac1;
}

.pcw-signature {
    border: 1px solid var(--pcw-border);
    border-radius: var(--pcw-radius);
    margin-bottom: 28px;
    padding: 18px;
}

.pcw-signature-layout {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 2fr) minmax(200px, 1fr);
}

.pcw-signature-method {
    border: 0;
    margin: 0 0 14px;
    min-width: 0;
    padding: 0;
}

.pcw-signature-method legend {
    color: var(--pcw-muted);
    font-size: 10px;
    font-weight: 650;
    line-height: 1.4;
    margin: 0 0 6px;
    padding: 0;
}

.pcw-signature-method .pcw-segmented {
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(108px, 1fr));
    width: auto;
}

.pcw-signature-entry {
    min-width: 0;
}

.pcw-signature-canvas-wrap {
    background: #fff;
    border: 1px solid var(--pcw-border-strong);
    border-radius: 6px;
    height: 190px;
    overflow: hidden;
    position: relative;
}

#pcw-signature-pad {
    cursor: crosshair;
    display: block;
    height: 100%;
    touch-action: none;
    width: 100%;
}

#pcw-signature-pad:focus-visible {
    box-shadow: inset var(--pcw-focus);
    outline: 0;
}

.pcw-signature-type-panel {
    background: var(--pcw-surface-soft);
    border: 1px solid var(--pcw-border-strong);
    border-radius: 6px;
    min-height: 190px;
    padding: 22px;
    transition: border-color 120ms ease-out, box-shadow 120ms ease-out;
}

.pcw-signature-type-panel > label {
    color: var(--pcw-ink);
    display: block;
    font-size: 11px;
    font-weight: 650;
    margin-bottom: 7px;
}

.pcw-signature-type-panel input {
    background: #fff;
    border: 1px solid var(--pcw-border-strong);
    border-radius: 6px;
    color: var(--pcw-ink);
    font-family: inherit;
    font-size: 13px;
    letter-spacing: 0;
    min-height: 46px;
    outline: 0;
    padding: 11px 13px 11px 40px;
    transition: border-color 120ms ease-out, box-shadow 120ms ease-out;
    width: 100%;
}

.pcw-signature-type-panel input:focus {
    border-color: var(--pcw-primary);
    box-shadow: var(--pcw-focus);
}

.pcw-typed-signature-sample {
    align-items: center;
    border-bottom: 1px solid #aeb8c2;
    color: #172b3a;
    display: flex;
    font-family: "Snell Roundhand", "Segoe Script", "Brush Script MT", cursive;
    font-size: 25px;
    font-style: italic;
    height: 62px;
    justify-content: center;
    overflow: hidden;
    padding: 6px 14px 2px;
    text-align: center;
    white-space: nowrap;
}

.pcw-signature-line {
    border-top: 1px solid #aeb8c2;
    bottom: 24px;
    color: var(--pcw-muted);
    font-size: 8px;
    left: 8%;
    padding-top: 4px;
    pointer-events: none;
    position: absolute;
    text-align: center;
    width: 84%;
}

.pcw-signature-preview {
    align-items: center;
    background: var(--pcw-surface-soft);
    border: 1px dashed var(--pcw-border-strong);
    border-radius: 6px;
    display: flex;
    justify-content: center;
    min-height: 190px;
    overflow: hidden;
    padding: 14px;
    text-align: center;
}

.pcw-signature-preview-empty {
    color: var(--pcw-muted);
    font-size: 10px;
    line-height: 1.5;
}

.pcw-signature-preview img {
    height: auto;
    max-height: 145px;
    max-width: 100%;
}

.pcw-signature-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 12px;
}

.pcw-signature-status {
    color: var(--pcw-teal);
    font-size: 10px;
    font-weight: 650;
}

.pcw-signature.has-error .pcw-signature-type-panel {
    border-color: var(--pcw-danger);
}

.pcw-signature.has-error .pcw-signature-type-panel:focus-within {
    box-shadow: 0 0 0 3px rgba(189, 51, 69, 0.15);
}

.pcw-signature.is-valid .pcw-signature-type-panel {
    border-color: var(--pcw-teal);
}

.pcw-declaration-copy {
    background: var(--pcw-surface-soft);
    border-left: 3px solid var(--pcw-primary);
    color: #46535f;
    margin-bottom: 22px;
    padding: 15px 17px;
}

.pcw-declaration-copy p {
    font-size: 10px;
    line-height: 1.65;
    margin: 0 0 8px;
}

.pcw-declaration-copy p:last-child {
    margin-bottom: 0;
}

.pcw-declaration-copy a {
    color: var(--pcw-primary-dark);
    font-weight: 650;
    text-decoration: underline;
}

.pcw-declaration-check {
    align-items: flex-start;
    background: var(--pcw-surface-soft);
    border: 1px solid var(--pcw-border);
    border-radius: var(--pcw-radius);
    cursor: pointer;
    display: flex;
    gap: 12px;
    margin: 22px 0 0;
    padding: 15px;
}

.pcw-declaration-check > input {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.pcw-checkbox-visual {
    align-items: center;
    background: #fff;
    border: 1px solid var(--pcw-border-strong);
    border-radius: 4px;
    color: transparent;
    display: inline-flex;
    flex: 0 0 22px;
    height: 22px;
    justify-content: center;
    margin-top: 1px;
    transition: background-color 120ms ease-out, border-color 120ms ease-out, box-shadow 120ms ease-out;
}

.pcw-declaration-check > span:last-child {
    color: #46535f;
    font-size: 10px;
    line-height: 1.65;
}

.pcw-declaration-check input:checked + .pcw-checkbox-visual {
    background: var(--pcw-primary);
    border-color: var(--pcw-primary);
    color: #fff;
}

.pcw-declaration-check input:focus-visible + .pcw-checkbox-visual {
    box-shadow: var(--pcw-focus);
}

.pcw-captcha {
    margin-top: 22px;
}

.pcw-review {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.pcw-review-section {
    border-bottom: 1px solid var(--pcw-border);
    padding-bottom: 18px;
}

.pcw-review-section:last-child {
    border-bottom: 0;
}

.pcw-review-heading {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 11px;
}

.pcw-review-heading h2 {
    font-size: 14px;
    margin: 0;
}

.pcw-review-edit {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--pcw-primary);
    cursor: pointer;
    display: inline-flex;
    font-size: 10px;
    font-weight: 700;
    gap: 6px;
    min-height: 34px;
    padding: 6px;
}

.pcw-review-edit:focus-visible {
    box-shadow: var(--pcw-focus);
    outline: 0;
}

.pcw-review-grid {
    display: grid;
    gap: 0 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pcw-review-row {
    border-top: 1px solid #e8ecef;
    min-width: 0;
    padding: 9px 0;
}

.pcw-review-row span {
    color: var(--pcw-muted);
    display: block;
    font-size: 9px;
    line-height: 1.4;
    margin-bottom: 3px;
}

.pcw-review-row strong {
    color: var(--pcw-ink);
    display: block;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.pcw-navigation {
    align-items: center;
    background: #fff;
    border-top: 1px solid var(--pcw-border);
    bottom: 0;
    display: grid;
    gap: 14px;
    grid-template-columns: auto 1fr auto;
    min-height: 76px;
    padding: 14px 40px;
    position: sticky;
    z-index: 20;
}

.pcw-navigation-status {
    color: var(--pcw-muted);
    font-size: 10px;
    line-height: 1.4;
    text-align: center;
}

.pcw-button {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    gap: 9px;
    justify-content: center;
    letter-spacing: 0;
    min-height: 44px;
    min-width: 116px;
    padding: 10px 16px;
    transition: background-color 120ms ease-out, border-color 120ms ease-out, box-shadow 120ms ease-out, color 120ms ease-out;
}

.pcw-button:focus-visible {
    box-shadow: var(--pcw-focus);
    outline: 0;
}

.pcw-button:disabled {
    cursor: not-allowed;
    opacity: 0.56;
}

.pcw-button-primary {
    background: var(--pcw-primary);
    border-color: var(--pcw-primary);
    color: #fff;
}

.pcw-button-primary:not(:disabled):hover {
    background: var(--pcw-primary-dark);
    border-color: var(--pcw-primary-dark);
}

.pcw-button-secondary {
    background: #fff;
    border-color: var(--pcw-border-strong);
    color: #4c5965;
}

.pcw-button-secondary:not(:disabled):hover {
    background: #f5f7f8;
    border-color: #7d8995;
}

.pcw-button-success {
    background: var(--pcw-teal);
    border-color: var(--pcw-teal);
    color: #fff;
    min-width: 190px;
}

.pcw-button-success:not(:disabled):hover {
    background: #075f52;
    border-color: #075f52;
}

.pcw-button-small {
    font-size: 10px;
    min-height: 38px;
    min-width: 92px;
    padding: 8px 12px;
}

.pcw-button.is-loading {
    min-width: var(--pcw-loading-width, 180px);
}

.pcw-success {
    min-height: 650px;
    padding: 70px 40px;
    text-align: center;
}

.pcw-success-icon {
    align-items: center;
    background: var(--pcw-teal-soft);
    border: 1px solid #b8ddd5;
    border-radius: 50%;
    color: var(--pcw-teal);
    display: inline-flex;
    font-size: 28px;
    height: 76px;
    justify-content: center;
    margin-bottom: 20px;
    width: 76px;
}

.pcw-success .pcw-step-kicker {
    margin-bottom: 7px;
}

.pcw-success > p {
    margin: 0 auto;
}

.pcw-reference {
    background: var(--pcw-surface-soft);
    border: 1px solid var(--pcw-border);
    border-radius: var(--pcw-radius);
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    margin: 24px 0;
    min-width: 280px;
    padding: 14px 20px;
}

.pcw-reference span {
    color: var(--pcw-muted);
    font-size: 9px;
    text-transform: uppercase;
}

.pcw-reference strong {
    color: var(--pcw-primary-dark);
    font-size: 14px;
}

.pcw-page-footer {
    align-items: center;
    color: var(--pcw-muted);
    display: flex;
    gap: 12px;
    justify-content: center;
    min-height: 70px;
    padding: 16px;
}

.pcw-page-footer img {
    height: 24px;
    object-fit: contain;
    width: auto;
}

.pcw-page-footer span {
    border-left: 1px solid var(--pcw-border);
    font-size: 9px;
    padding-left: 12px;
}

/* Select2 is already provided by the host application. */
.pcw-app .select2-container {
    max-width: 100%;
    width: 100% !important;
}

.pcw-app .select2-container .select2-selection--single {
    align-items: center;
    background: #fff;
    border: 1px solid var(--pcw-border-strong);
    border-radius: 6px;
    display: flex;
    height: 46px;
    padding: 0 13px;
}

.pcw-app .select2-container--default.select2-container--focus .select2-selection--single,
.pcw-app .select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--pcw-primary);
    box-shadow: var(--pcw-focus);
}

.pcw-app .select2-container .select2-selection__rendered {
    color: var(--pcw-ink);
    font-size: 13px;
    line-height: 1.4;
    padding: 0 24px 0 0;
}

.pcw-app .select2-container .select2-selection__arrow {
    height: 44px;
    right: 7px;
}

@media (max-width: 1100px) {
    .pcw-workspace {
        grid-template-columns: 242px minmax(0, 1fr);
        padding: 22px;
    }

    .pcw-step-rail {
        padding-right: 18px;
    }

    .pcw-form-region {
        margin-left: 22px;
    }

    .pcw-step {
        padding-left: 30px;
        padding-right: 30px;
    }

    .pcw-navigation {
        padding-left: 30px;
        padding-right: 30px;
    }

    .pcw-upload-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991px) {
    .pcw-topbar-inner {
        padding-left: 20px;
        padding-right: 20px;
    }

    .pcw-follow-up-inner {
        padding-left: 20px;
        padding-right: 20px;
    }

    .pcw-mobile-progress {
        background: var(--pcw-surface);
        border-bottom: 1px solid var(--pcw-border);
        display: block;
        padding: 11px 20px 13px;
        position: sticky;
        top: 76px;
        z-index: 1030;
    }

    .pcw-mobile-progress-copy {
        align-items: center;
        display: flex;
        justify-content: space-between;
        margin-bottom: 8px;
    }

    .pcw-mobile-progress-copy span {
        color: var(--pcw-primary);
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
    }

    .pcw-mobile-progress-copy strong {
        color: var(--pcw-ink);
        font-size: 11px;
    }

    .pcw-progress-track {
        background: #dfe4e8;
        border-radius: 4px;
        height: 5px;
        overflow: hidden;
    }

    .pcw-progress-track span {
        background: var(--pcw-primary);
        display: block;
        height: 100%;
        transition: width 240ms ease-out;
        width: 14.28%;
    }

    .pcw-workspace {
        display: block;
        min-height: 0;
        padding: 18px;
    }

    .pcw-step-rail {
        display: none;
    }

    .pcw-step-alert {
        box-shadow: 0 6px 14px rgba(50, 24, 30, 0.08);
        position: sticky;
        top: 129px;
        z-index: 1020;
    }

    .pcw-field {
        scroll-margin-top: 220px;
    }

    .pcw-form-region {
        margin: 0;
    }

    .pcw-step {
        min-height: 560px;
    }

    .pcw-navigation {
        bottom: 0;
    }
}

@media (max-width: 700px) {
    .pcw-topbar-inner {
        gap: 12px;
        grid-template-columns: auto 1fr auto;
        min-height: 68px;
        padding: 10px 14px;
    }

    .pcw-brand img {
        height: 32px;
        max-width: 120px;
    }

    .pcw-topbar-title {
        padding-left: 12px;
    }

    .pcw-topbar-title strong {
        font-size: 13px;
    }

    .pcw-topbar-title span {
        display: none;
    }

    .pcw-uat-badge {
        font-size: 0;
        height: 38px;
        justify-content: center;
        min-height: 38px;
        padding: 0;
        width: 38px;
    }

    .pcw-uat-badge i {
        font-size: 14px;
    }

    .pcw-icon-button {
        height: 38px;
        width: 38px;
    }

    .pcw-follow-up-inner {
        padding: 10px 14px;
    }

    .pcw-follow-up-inner p {
        font-size: 10px;
    }

    .pcw-mobile-progress {
        padding-left: 14px;
        padding-right: 14px;
        top: 68px;
    }

    .pcw-workspace {
        padding: 10px;
    }

    .pcw-step-alert {
        padding: 13px 16px;
        top: 121px;
    }

    .pcw-step {
        min-height: 520px;
        padding: 24px 18px 18px;
    }

    .pcw-step-heading {
        margin-bottom: 22px;
        padding-bottom: 18px;
    }

    .pcw-step-heading h1,
    .pcw-success h1 {
        font-size: 22px;
    }

    .pcw-step-heading > p:last-child {
        font-size: 11px;
    }

    .pcw-col-8,
    .pcw-col-6,
    .pcw-col-4 {
        grid-column: span 12;
    }

    .pcw-grid {
        gap: 16px;
    }

    .pcw-section-heading {
        align-items: flex-start;
        flex-direction: column;
        margin-top: 24px;
    }

    .pcw-segmented {
        grid-auto-flow: row;
        grid-template-columns: 1fr;
    }

    .pcw-segmented:not(.pcw-segmented-large) {
        grid-auto-flow: column;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pcw-context-panel {
        padding: 16px;
    }

    .pcw-signature-layout {
        grid-template-columns: 1fr;
    }

    .pcw-signature-canvas-wrap,
    .pcw-signature-type-panel,
    .pcw-signature-preview {
        min-height: 170px;
    }

    .pcw-signature-canvas-wrap {
        height: 170px;
    }

    .pcw-review-grid {
        grid-template-columns: 1fr;
    }

    .pcw-navigation {
        gap: 8px;
        grid-template-columns: auto 1fr auto;
        min-height: 68px;
        padding: 10px 14px;
    }

    .pcw-navigation-status {
        font-size: 9px;
    }

    .pcw-button {
        min-height: 44px;
        min-width: 96px;
        padding: 9px 12px;
    }

    .pcw-button-success {
        min-width: 155px;
    }

    .pcw-success {
        min-height: 520px;
        padding: 48px 18px;
    }

    .pcw-reference {
        min-width: 0;
        width: 100%;
    }

    .pcw-captcha > div {
        max-width: 100%;
        transform: scale(0.92);
        transform-origin: left top;
    }
}

@media (max-width: 420px) {
    .pcw-topbar-actions {
        gap: 6px;
    }

    .pcw-topbar-title {
        border-left: 0;
        padding-left: 0;
    }

    .pcw-topbar-title strong {
        font-size: 11px;
    }

    .pcw-navigation-status {
        display: none;
    }

    .pcw-navigation {
        grid-template-columns: auto 1fr;
    }

    #pcw-next,
    #pcw-submit {
        justify-self: end;
    }

    .pcw-file-card {
        grid-template-columns: 34px minmax(0, 1fr) 32px;
        padding: 9px;
    }

    .pcw-file-icon {
        height: 34px;
        width: 34px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .pcw-app *,
    .pcw-app *::before,
    .pcw-app *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 1ms !important;
    }
}
