.signature-geography { margin: 1rem 0; }
#signForm .field-validation-error {
    display: block; margin-top: .4rem; padding: .45rem .65rem;
    border-left: 3px solid #b42318; border-radius: 4px;
    background: #fff1f0; color: #b42318 !important; font-size: .875rem; font-weight: 600;
}
#signForm :is(input, select, textarea, button).input-validation-error {
    border-color: #b42318 !important;
    box-shadow: 0 0 0 1px #b42318;
}
#signForm .btn-check.input-validation-error + label { box-shadow: 0 0 0 2px #b42318; }
.geography-field { margin-bottom: 1rem; }
.geography-label-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.geography-label-row .form-label { margin-bottom: .4rem; }
.geography-picker {
    display: flex; align-items: center; justify-content: space-between; gap: .75rem;
    width: 100%; min-height: 50px; padding: .75rem .9rem; text-align: left;
    border: 1px solid var(--ph-line, #dce2e8); border-radius: 8px;
    background: var(--ph-bg, #f7f9fc); color: var(--ph-muted, #667085); font: inherit; line-height: 1.4;
}
.geography-picker.has-selection { color: var(--ph-ink, #172033); }
.geography-picker:disabled { opacity: .75; cursor: default; }
.geography-picker-action { flex: 0 0 20px; color: var(--ph-accent, #3162aa); }
.geography-picker:hover:not(:disabled) { border-color: var(--ph-accent, #3162aa); }
.geography-picker:focus-visible, .geography-chip:focus-visible, .geography-option:focus-visible, .geography-close:focus-visible {
    outline: 2px solid var(--ph-accent, #3162aa); outline-offset: 2px;
}
.geography-suggestions { margin-top: .65rem; }
.geography-suggestions-label { color: var(--ph-muted, #667085); font-size: .75rem; line-height: 1.45; margin: .4rem 0; }
.geography-chip-list { display: flex; flex-wrap: wrap; gap: .4rem; }
.geography-chip {
    border: 1px solid var(--ph-line, #dce2e8); border-radius: 8px; background: var(--ph-paper, #fff);
    color: var(--ph-ink, #172033); padding: .55rem .75rem; min-height: 44px; max-width: 100%;
    font: inherit; font-size: .8rem; line-height: 1.4; text-align: left;
}
.geography-chip:hover { background: var(--ph-soft, #f1f5f9); border-color: var(--ph-accent, #3162aa); }
.geography-chip .geography-option-name { font-weight: 600; font-size: inherit; }
.geography-chip small { font-size: .65rem; }
#signatureSettlementDialog {
    box-sizing: border-box; width: min(560px, calc(100vw - 32px)); max-width: none;
    height: min(720px, calc(100dvh - 64px)); max-height: none; padding: 0;
    border: 1px solid var(--ph-line, #dce2e8); border-radius: 18px;
    color: var(--ph-ink, #172033); background: var(--ph-paper, #fff); overflow: hidden;
}
#signatureSettlementDialog::backdrop { background: rgb(15 23 42 / 50%); backdrop-filter: blur(2px); }
.geography-dialog-content { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.geography-dialog-header {
    flex: 0 0 auto; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
    padding: 24px 24px 18px;
}
.geography-eyebrow { color: var(--ph-accent, #3162aa); font-size: 10px; letter-spacing: .12em; font-weight: 750; margin-bottom: 6px; }
#signatureSettlementTitle { font-family: inherit; font-size: 20px; font-weight: 750; letter-spacing: -.025em; line-height: 1.3; margin: 0; }
.geography-dialog-context { color: var(--ph-muted, #667085); font-size: 13px; line-height: 1.45; margin-top: 6px; }
.geography-close {
    display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0;
    border: 1px solid var(--ph-line, #dce2e8); border-radius: 50%;
    background: var(--ph-bg, #f7f9fc); color: var(--ph-muted, #667085); font-size: 16px;
}
.geography-dialog-search { flex: 0 0 auto; padding: 0 24px 14px; border-bottom: 1px solid var(--ph-line, #dce2e8); }
.geography-search-box { display: flex; align-items: center; gap: 10px; border: 1px solid var(--ph-line, #dce2e8); border-radius: 10px; padding: 0 14px; background: var(--ph-bg, #f7f9fc); }
.geography-search-box:focus-within { border-color: var(--ph-accent, #3162aa); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ph-accent, #3162aa) 12%, transparent); }
.geography-search-box svg { flex-shrink: 0; color: var(--ph-muted, #667085); }
#signatureSettlementSearch {
    box-sizing: border-box; width: 100%; min-width: 0; height: 50px; padding: 0;
    border: 0; border-radius: 0; outline: none; box-shadow: none; background: transparent;
    font: inherit; font-size: 16px; line-height: 1.5; color: var(--ph-ink, #172033);
}
#signatureSettlementSearch::placeholder { color: var(--ph-muted, #667085); opacity: .85; }
.geography-search-status { color: var(--ph-muted, #667085); font-size: 12px; line-height: 1.45; margin-top: 10px; min-height: 18px; }
.geography-results { flex: 1 1 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 16px 16px; scrollbar-gutter: stable; }
.geography-results-heading { margin: 18px 12px 6px; font-family: inherit; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ph-muted, #667085); }
.geography-option {
    box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    width: 100%; height: auto; min-height: 64px; padding: 14px 12px; margin: 0;
    border: 0; border-bottom: 1px solid var(--ph-line, #e8edf2); border-radius: 0;
    background: transparent; color: var(--ph-ink, #172033); text-align: left;
    font: inherit; font-size: 16px; line-height: 1.4; white-space: normal; cursor: pointer;
}
.geography-option:hover, .geography-option:focus-visible { background: var(--ph-soft, #f1f5f9); border-radius: 8px; }
.geography-option[aria-pressed='true'] { background: var(--ph-tint, #edf4fa); border-radius: 8px; }
.geography-option-copy { display: block; min-width: 0; overflow-wrap: anywhere; }
.geography-option-name { display: block; font-weight: 600; line-height: 1.4; }
.geography-option-copy small { display: block; margin-top: 4px; color: var(--ph-muted, #667085); font-size: 12px; line-height: 1.4; }
.geography-option-arrow { flex: 0 0 20px; text-align: center; color: var(--ph-muted, #667085); font-size: 22px; line-height: 1; }
.geography-dialog-footer { flex: 0 0 auto; padding: 12px 24px; border-top: 1px solid var(--ph-line, #dce2e8); color: var(--ph-muted, #667085); font-size: 12px; line-height: 1.4; background: var(--ph-bg, #f7f9fc); }
.geography-dialog-open { overflow: hidden; }
@media (max-width: 600px) {
    #signatureSettlementDialog {
        position: fixed; inset: var(--geo-top, 0px) 0 auto; margin: 0; width: 100vw;
        height: var(--geo-height, 100dvh); max-height: 100dvh; border-radius: 0; border: 0 !important;
    }
    .geography-dialog-content { padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
    .geography-dialog-header { padding: 20px 20px 16px; }
    #signatureSettlementTitle { font-size: 20px; }
    .geography-dialog-search { padding: 0 20px 14px; }
    .geography-results { padding: 4px 8px 16px; }
    .geography-option { padding: 14px 12px; min-height: 68px; }
    .geography-dialog-footer { padding: 10px 20px; }
}
