@import url('/lib/security-pinned/fonts-d2aab09f86dd.css');

:root { --civic-blue:#1646a0; --civic-blue-dark:#0b2e6f; --civic-blue-soft:#eaf0fc; --civic-ink:#172033; --civic-body:#5c687b; --civic-line:#dfe5ed; --civic-red:#c43f4b; --civic-green:#197153; }
* { box-sizing:border-box; }
[hidden] { display:none!important; }
html { scrollbar-gutter:stable; }
body { min-height:100vh; margin:0; background:#f4f6fa; color:var(--civic-ink); font-family:"DM Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.bg { position:fixed; inset:0; z-index:-1; background:radial-gradient(circle at 88% 10%,rgba(93,137,215,.13),transparent 28%),linear-gradient(135deg,#f8faff 0%,#f3f5f9 52%,#eef2f7 100%); }
.main-viewport { min-height:100vh; padding:36px 0; }
.tech-wrapper { width:min(1120px,calc(100% - 48px)); min-height:690px; margin:auto; overflow:hidden; border:1px solid #dce3ed; border-radius:14px; background:#fff; box-shadow:0 18px 48px rgba(28,42,66,.1); }
.tech-wrapper .row { display:flex !important; flex-wrap:nowrap; min-height:690px; margin:0; }
.tech-wrapper .row > .panel-left,.tech-wrapper .row > .panel-right { width:100% !important; max-width:none !important; min-width:0; padding:0; }
.tech-wrapper .row > .panel-left { flex:0 0 45% !important; }
.tech-wrapper .row > .panel-right { flex:0 0 55% !important; }
.panel-left { position:relative; display:flex; background:var(--civic-blue-dark); color:#fff; }
.panel-left::after { position:absolute; right:-90px; bottom:-115px; width:320px; height:320px; border:1px solid rgba(255,255,255,.13); border-radius:50%; box-shadow:0 0 0 45px rgba(255,255,255,.025),0 0 0 90px rgba(255,255,255,.02); content:""; pointer-events:none; }
.glass-inner { position:relative; z-index:1; display:flex; width:100%; flex-direction:column; justify-content:center; padding:52px; }
.portal-brand { display:flex; align-items:center; gap:10px; margin-bottom:45px; }
.portal-brand img { width:34px; height:42px; object-fit:contain; }
.portal-brand span,.portal-brand strong,.portal-brand small { display:block; }
.portal-brand strong { font-size:17px; font-weight:750; letter-spacing:-.02em; }
.portal-brand small { margin-top:2px; color:#b9cdf3; font-size:9px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; }
.sys-label,.eyebrow { display:inline-block; width:fit-content; padding:5px 8px; border-radius:5px; font-size:9px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.sys-label { margin-bottom:14px; border:1px solid rgba(255,255,255,.2); color:#d7e4fa; }
.portal-title { max-width:360px; margin:0; color:#fff; font-size:clamp(34px,4vw,48px); font-weight:750; line-height:1.03; letter-spacing:-.05em; }
.tagline { max-width:370px; margin:19px 0 0; color:#d6e2f6; font-size:13px; line-height:1.65; }
.step-indicator { display:grid; gap:10px; margin-top:34px; padding-top:18px; border-top:1px solid rgba(255,255,255,.2); }
.step-indicator__item { display:flex; align-items:center; gap:10px; opacity:.48; }
.step-indicator__item.active,.step-indicator__item.done { opacity:1; }
.step-indicator__dot { display:grid; width:22px; height:22px; place-items:center; border:1px solid rgba(255,255,255,.36); border-radius:50%; color:#dbe6f8; font-size:9px; font-weight:800; }
.step-indicator__item.active .step-indicator__dot,.step-indicator__item.done .step-indicator__dot { border-color:#fff; background:#fff; color:var(--civic-blue-dark); }
.step-indicator__text { color:#dbe6f8; font-size:10.5px; font-weight:600; }
.step-indicator__line { width:1px; height:9px; margin-left:10px; background:rgba(255,255,255,.32); }
.panel-right { position:relative; z-index:1; display:flex; align-items:flex-start; justify-content:center; padding:44px 56px; background:#fff; overflow-x:hidden; overflow-y:auto; scrollbar-gutter:stable; overscroll-behavior:contain; }
.registration-form-panel { width:min(100%,440px); margin-block:auto; }
.top-part { display:flex; width:100%; min-height:63px; justify-content:flex-end; padding:10px; }.back-link { position:relative; z-index:2; display:inline-flex; min-height:44px; max-width:100%; align-items:center; justify-content:center; gap:8px; padding:0 18px; border:1px solid var(--civic-blue); border-radius:7px; background:transparent; color:var(--civic-blue)!important; font-size:10.5px; font-weight:800; letter-spacing:.05em; text-decoration:none; text-transform:uppercase; white-space:nowrap; cursor:pointer; pointer-events:auto; transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease; }.back-link:hover { border-color:var(--civic-blue-dark); color:var(--civic-blue)!important; transform:translateY(-1px); }.back-link:focus-visible { outline:3px solid rgba(22,70,160,.22); outline-offset:3px; }.back-link-arrow { font-size:16px; line-height:1; transition:transform .16s ease; }.back-link:hover .back-link-arrow { transform:translateX(-2px); }
.eyebrow { margin-bottom:13px; background:var(--civic-blue-soft); color:var(--civic-blue); }
.step-title { margin:0 0 22px; color:var(--civic-ink); font-size:27px; font-weight:760; letter-spacing:-.04em; }
.form-text-label { display:block; margin-bottom:7px; color:#687488; font-size:9px; font-weight:800; letter-spacing:.07em; text-transform:uppercase; }
.tech-input { width:100%; min-height:44px; border:1px solid #d9e0e9; border-radius:7px; background:#fbfcfd; color:var(--civic-ink); font-size:12px; }
input.tech-input { padding:0 13px; }
.tech-select { padding:0 13px; }
.tech-input:focus { border-color:var(--civic-blue); box-shadow:0 0 0 3px rgba(22,70,160,.09); }
.phone-wrapper { display:flex; align-items:center; gap:9px; }
.phone-prefix { color:#536075; font-size:12px; font-weight:750; }
.optional-tag { color:#8994a6; font-size:9px; font-weight:600; text-transform:none; letter-spacing:0; }
.pw-wrapper { position:relative; }
.pw-wrapper .tech-input { padding-right:46px; }
.pw-toggle { position:absolute; top:50%; right:12px; display:grid; width:24px; height:24px; place-items:center; padding:0; border:0; background:transparent; color:#7c8799; transform:translateY(-50%); }
.pw-toggle:hover { color:var(--civic-blue); }
.tech-validation,.text-danger,.custom-duplicate-error { display:block; margin-top:5px; color:var(--civic-red); font-size:9.5px; line-height:1.4; }
.tech-validation-summary:not(:empty) { margin:0 0 17px; padding:10px 11px; border:1px solid #efcbd0; border-radius:7px; background:#fbecef; color:var(--civic-red); font-size:10px; }
.cta { min-height:44px; padding:0 16px; border:1px solid var(--civic-blue); border-radius:7px; background:var(--civic-blue); color:#fff; font-size:10.5px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; transition:background .16s ease,border-color .16s ease,transform .16s ease; }
.cta:hover { border-color:var(--civic-blue-dark); background:var(--civic-blue-dark); transform:translateY(-1px); }
.cta:disabled { cursor:not-allowed; opacity:.65; transform:none; }
.cta-back { min-height:44px; padding:0 16px; border:1px solid #d9e0e9; border-radius:7px; background:#fff; color:var(--civic-blue); font-size:10.5px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; }
.cta-back:hover { border-color:var(--civic-blue); background:var(--civic-blue-soft); }
.tech-link { color:var(--civic-blue); font-size:10px; font-weight:750; text-decoration:none; }
.tech-link:hover { color:var(--civic-blue-dark); text-decoration:underline; }
.sign-in-note { color:var(--civic-body); font-size:10px; }
.privacy-agreement-card { padding:18px; border:1px solid #dfe5ed; border-radius:9px; background:#fbfcff; }
.registration-section-card { padding:18px; border:1px solid #dfe5ed; border-radius:9px; background:#fbfcff; }
.section-card-title { margin:0 0 16px; color:var(--civic-ink); font-size:15px; font-weight:750; }
.choice-row { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:14px; }
.choice-card { display:flex; min-height:44px; align-items:center; gap:9px; padding:0 13px; border:1px solid #d9e0e9; border-radius:7px; background:#fff; color:#46546a; font-size:11px; cursor:pointer; }
.choice-card:has(input:checked) { border-color:var(--civic-blue); background:var(--civic-blue-soft); color:var(--civic-blue-dark); font-weight:700; }
.choice-card input,.choice-grid input { accent-color:var(--civic-blue); }
.conditional-fields { margin:4px 0 14px; padding:14px; border-left:3px solid #91afe5; border-radius:0 7px 7px 0; background:#fff; }
.choice-grid { display:grid; gap:8px; color:#536075; font-size:10.5px; }
.choice-grid label { display:flex; align-items:center; gap:8px; }
.field-note { margin:6px 0 0; color:#7b8799; font-size:9.5px; line-height:1.45; }
.file-control { padding:9px 11px!important; }
.temporary-address-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.field-sublabel { display:block; margin:0 0 5px; color:#65738a; font-size:9px; font-weight:750; letter-spacing:.055em; text-transform:uppercase; }
.locked-address { background:#f1f4f8!important; color:#536075!important; cursor:not-allowed; }
.address-help { margin:7px 0 0; color:#68758a; font-size:9.5px; line-height:1.45; }
.proof-address-note { display:flex; gap:10px; align-items:flex-start; margin:9px 0 0; padding:10px 11px; border:1px solid #efcf91; border-radius:7px; background:#fff9e9; color:#6b4600; }
.proof-address-note>span { display:grid; width:20px; height:20px; flex:0 0 20px; place-items:center; border-radius:50%; background:#d68700; color:#fff; font-size:12px; font-weight:900; }
.proof-address-note p { margin:0; font-size:9.5px; line-height:1.45; }
.proof-address-note strong { display:block; margin-bottom:2px; color:#563800; font-size:10px; }
.proof-capture-buttons { margin-top:7px; }
.file-requirements { margin:0 0 8px; color:#65738a; font-size:9.5px; }
.proof-preview { min-height:108px; }
.proof-document-preview { display:flex; max-width:80%; align-items:center; gap:10px; color:#334158; font-size:10px; overflow-wrap:anywhere; }
.proof-document-preview span { display:grid; min-width:42px; height:48px; place-items:center; border-radius:5px; background:#c9424d; color:#fff; font-size:10px; font-weight:850; }
.verification-stage-heading { display:flex; align-items:flex-start; gap:11px; margin-bottom:17px; padding-bottom:14px; border-bottom:1px solid #e4e9f0; }
.verification-stage-heading h4 { margin:0 0 3px; color:var(--civic-ink); font-size:15px; font-weight:750; }
.verification-stage-heading p { margin:0; color:var(--civic-body); font-size:10px; line-height:1.45; }
.stage-number { display:grid; width:26px; min-width:26px; height:26px; place-items:center; border-radius:50%; background:var(--civic-blue); color:#fff; font-size:10px; font-weight:800; }
.ocr-progress { display:flex; align-items:center; gap:9px; margin:12px 0; padding:11px; border-radius:7px; background:var(--civic-blue-soft); color:var(--civic-blue-dark); font-size:10px; font-weight:650; }
.ocr-spinner { width:16px; height:16px; border:2px solid #b9cae8; border-top-color:var(--civic-blue); border-radius:50%; animation:spin .8s linear infinite; }
.ocr-retry-panel { display:flex; align-items:center; gap:10px; margin:10px 0; color:var(--civic-body); font-size:9.5px; }
.ocr-retry-panel .cta-back { padding:8px 12px; }
.ocr-retry-panel .cta-back:disabled { opacity:.55; cursor:not-allowed; }
.locked-field-label { display:inline-block; margin-left:6px; padding:2px 6px; border-radius:10px; background:#e7edf8; color:var(--civic-blue-dark); font-size:8px; letter-spacing:.04em; text-transform:uppercase; }
.locked-ocr-field { background:#eef2f7 !important; color:#48556a; cursor:not-allowed; resize:none; }
.locked-field-note { display:block; margin-top:5px; color:var(--civic-body); font-size:9px; }
.inline-alert { margin:12px 0; padding:10px 11px; border-radius:7px; font-size:10px; line-height:1.5; }
.inline-alert-error { border:1px solid #efcbd0; background:#fbecef; color:var(--civic-red); }
.extracted-details-card { margin-top:15px; padding:16px; border:1px solid #cbd9ef; border-radius:9px; background:#f8faff; }
.extracted-details-header { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:14px; }
.extracted-details-header h4 { margin:0 0 3px; font-size:13px; font-weight:750; }
.extracted-details-header p { margin:0; color:var(--civic-body); font-size:9.5px; line-height:1.4; }
.validated-badge { flex:none; padding:4px 7px; border-radius:999px; background:#e5f5ef; color:var(--civic-green); font-size:8px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; }
.extracted-grid { display:grid; grid-template-columns:1fr 1fr; gap:11px; }
.extracted-grid .full-width { grid-column:1 / -1; }
.extracted-grid textarea.tech-input { min-height:64px; padding:10px 13px; resize:vertical; }
.ocr-date-field { position:relative; }
.ocr-date-field input[type="date"] { display:block; width:100%; padding-right:48px; text-align:left; }
.ocr-date-field input[type="date"]::-webkit-date-and-time-value { min-height:1.4em; margin:0; text-align:left; }
.ocr-date-field input[type="date"]::-webkit-calendar-picker-indicator { position:absolute; right:10px; width:26px; height:26px; margin:0; opacity:0; cursor:pointer; }
.ocr-date-picker { position:absolute; top:50%; right:7px; z-index:2; display:grid; width:34px; height:34px; padding:0; place-items:center; border:0; border-radius:6px; background:transparent; color:var(--civic-blue); font-size:17px; line-height:1; transform:translateY(-50%); cursor:pointer; }
.ocr-date-picker:hover,.ocr-date-picker:focus-visible { background:var(--civic-blue-soft); }
.privacy-agreement__header { margin-bottom:14px; padding-bottom:12px; border-bottom:1px solid #e7ebf1; }
.privacy-agreement__title { margin:0 0 3px; color:var(--civic-ink); font-size:13px; font-weight:750; letter-spacing:-.01em; }
.privacy-agreement__subtitle { margin:0; color:#687488; font-size:9px; font-weight:800; letter-spacing:.07em; text-transform:uppercase; }
.privacy-agreement__intro { margin:0 0 12px; color:var(--civic-body); font-size:10.5px; line-height:1.5; }
.privacy-terms { display:grid; gap:8px; max-height:224px; margin-bottom:14px; padding-right:5px; overflow-y:auto; }
.privacy-term { display:flex; gap:8px; padding:9px; border-left:2px solid #91afe5; background:#fff; color:var(--civic-body); font-size:9.5px; line-height:1.45; }
.privacy-term strong { color:#3a4b65; }
.term-icon { width:15px; min-width:15px; height:15px; margin-top:1px; color:var(--civic-blue); }
.privacy-agreement__consent { width:100%; padding-top:12px; border-top:1px solid #e7ebf1; }
.consent-checkbox { display:flex; width:100%; align-items:flex-start; gap:10px; }
.consent-checkbox input[type="checkbox"] {
    appearance:none;
    -webkit-appearance:none;
    width:18px;
    min-width:18px;
    height:18px;
    flex:0 0 18px;
    margin:0;
    border:1.5px solid #8795aa;
    border-radius:4px;
    background:#fff;
    cursor:pointer;
}
.consent-checkbox input[type="checkbox"]:checked {
    border-color:var(--civic-blue);
    background-color:var(--civic-blue);
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.2' d='m3 8 3 3 7-7'/%3E%3C/svg%3E");
    background-position:center;
    background-repeat:no-repeat;
    background-size:14px 14px;
}
.consent-checkbox input[type="checkbox"]:focus-visible { outline:3px solid rgba(22,70,160,.2); outline-offset:2px; }
.consent-checkbox input[type="checkbox"]:disabled { cursor:not-allowed; opacity:.6; }
.consent-label { min-width:0; flex:1; margin-left:0!important; color:#536075; font-size:10px; line-height:1.45; cursor:pointer; }
#privacyConsentError { margin-left:24px; }
.file-drop-zone { position:relative; min-height:106px; padding:18px; border:1px dashed #9aa9bd; border-radius:8px; background:#fbfcfd; color:#687488; text-align:center; cursor:pointer; }
.file-drop-zone:hover { border-color:var(--civic-blue); background:var(--civic-blue-soft); }
.file-input { position:absolute; width:1px; height:1px; overflow:hidden; opacity:0; pointer-events:none; }
.file-drop-zone__icon { display:block; width:28px; height:28px; margin:0 auto 8px; color:var(--civic-blue); }
.file-drop-zone__text { font-size:10px; font-weight:650; }
.camera-container-neo { display:grid; min-height:180px; place-items:center; overflow:hidden; border:1px solid #d9e0e9; border-radius:8px; background:#f7f9fc; }
#capturedCanvas { display:block; width:100%; max-height:260px; object-fit:contain; transform:scaleX(-1); }
#capturedCanvas { display:none; }
.selfie-preview-placeholder { display:grid; gap:7px; place-items:center; padding:22px; color:#687488; font-size:10px; text-align:center; }
.selfie-preview-icon { color:var(--civic-blue); font-size:27px; line-height:1; }
.camera-controls { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:9px; margin-top:11px; }
.btn-camera-text { min-height:34px; padding:0 12px; border:1px solid #d9e0e9; border-radius:6px; background:#fff; color:var(--civic-blue); font-size:9px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; }
.btn-camera-text:hover { border-color:var(--civic-blue); background:var(--civic-blue-soft); }
.btn-capture-round { display:grid; width:38px; height:38px; place-items:center; padding:0; border:2px solid #fff; border-radius:50%; background:var(--civic-blue); box-shadow:0 0 0 1px var(--civic-blue); }
.btn-capture-round .inner { width:12px; height:12px; border-radius:50%; background:#fff; }
.selfie-status { min-height:15px; margin-top:8px; color:#687488; font-size:9.5px; text-align:center; }
.selfie-status.success,.pw-rule.met { color:var(--civic-green); }
.selfie-status.error,.pw-rule { color:var(--civic-red); }
.face-check-card { overflow:hidden; border:1px solid #dce4ef; border-radius:11px; background:linear-gradient(180deg,#fff 0%,#f8faff 100%); box-shadow:0 8px 22px rgba(23,55,112,.06); }
.face-check-card__header { display:flex; align-items:center; gap:10px; padding:14px 15px; border-bottom:1px solid #e7ecf3; }
.face-check-card__icon { display:grid; width:34px; min-width:34px; height:34px; place-items:center; border-radius:9px; background:var(--civic-blue-soft); color:var(--civic-blue); }
.face-check-card__icon svg { width:20px; height:20px; }
.face-check-card__copy { display:grid; min-width:0; flex:1; gap:2px; }
.face-check-card__copy strong { color:var(--civic-ink); font-size:11px; font-weight:800; }
.face-check-card__copy small { color:#6b778a; font-size:9px; line-height:1.35; }
.face-check-card__badge { padding:4px 7px; border:1px solid #b9e1cc; border-radius:999px; background:#eefaf3; color:#197146; font-size:8px; font-weight:850; letter-spacing:.06em; text-transform:uppercase; }
.face-liveness-open { overflow:hidden; }
.face-liveness-modal { position:fixed; inset:0; z-index:10000; display:grid; place-items:center; padding:28px; background:rgba(9,20,43,.76); backdrop-filter:blur(7px); }
.face-liveness-modal[hidden] { display:none; }
.face-liveness-modal__panel { display:flex; width:min(950px,100%); height:min(830px,calc(100dvh - 56px)); min-height:0; flex-direction:column; overflow-x:hidden; overflow-y:auto; padding:22px; border:1px solid rgba(255,255,255,.24); border-radius:18px; background:#fff; box-shadow:0 28px 80px rgba(4,12,28,.38); }
.face-liveness-modal__heading { display:flex; flex:0 0 auto; align-items:center; justify-content:space-between; min-height:70px; margin-bottom:14px; padding:0 2px; }
.face-liveness-modal__heading span { display:grid; gap:3px; }
.face-liveness-modal__heading strong { color:var(--civic-ink); font-size:17px; font-weight:800; letter-spacing:-.02em; }
.face-liveness-modal__heading small { color:#6b778a; font-size:11px; line-height:1.45; }
.face-liveness-modal .amplify-button--primary { min-height:44px; padding:0 20px; border:1px solid var(--civic-blue)!important; border-radius:7px; background:var(--civic-blue)!important; color:#fff!important; font-size:10.5px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; box-shadow:none; transition:background .16s ease,border-color .16s ease,transform .16s ease,box-shadow .16s ease; }
.face-liveness-modal .amplify-button--primary:hover { border-color:var(--civic-blue-dark)!important; background:var(--civic-blue-dark)!important; box-shadow:0 7px 16px rgba(22,70,160,.18); transform:translateY(-1px); }
.face-liveness-modal .amplify-button--primary:focus-visible { outline:3px solid rgba(22,70,160,.22); outline-offset:3px; }
.face-liveness-modal .amplify-liveness-cancel-container { display:none; }
.aws-liveness-shell:empty { display:none; }
.aws-liveness-shell:not(:empty) { width:min(100%,430px); margin:14px auto 0; padding:0 14px; }
.face-liveness-modal .aws-liveness-shell:not(:empty) { flex:1 0 auto; width:100%; min-height:0; margin:0; overflow:visible; padding:0; }
.aws-liveness-shell,.aws-liveness-shell button,.aws-liveness-shell [class*="amplify-liveness"] { font-family:"DM Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.aws-liveness-shell .amplify-liveness-camera-module { overflow:hidden; width:100%; min-height:0; aspect-ratio:4 / 3; border:3px solid #fff; border-radius:13px; background:#0b1220; box-shadow:0 0 0 3px #e7a933,0 12px 26px rgba(15,35,72,.16); transition:box-shadow .25s ease; transform:translateZ(0); }
.aws-liveness-shell[data-guidance="ready"] .amplify-liveness-camera-module { box-shadow:0 0 0 3px #27a768,0 0 0 7px rgba(39,167,104,.14),0 12px 26px rgba(15,35,72,.16); }
.aws-liveness-shell[data-guidance="error"] .amplify-liveness-camera-module { box-shadow:0 0 0 3px #cc3d4a,0 0 0 7px rgba(204,61,74,.13),0 12px 26px rgba(15,35,72,.16); }
.aws-liveness-shell .amplify-liveness-video,.aws-liveness-shell .amplify-liveness-video-anchor { width:100%; height:100%; object-fit:cover; }
.aws-liveness-shell .amplify-liveness-instruction-overlay { background:transparent; color:#fff; font-family:"DM Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; font-size:clamp(13px,3vw,17px); font-weight:700; line-height:1.3; letter-spacing:-.01em; }
.aws-liveness-shell .amplify-liveness-hint__text { padding:7px 12px; border:1px solid rgba(255,255,255,.3); border-radius:8px; background:rgba(15,23,42,.78); box-shadow:0 5px 16px rgba(0,0,0,.18); color:#fff; font-family:"DM Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important; font-size:clamp(13px,3vw,17px)!important; font-weight:700; line-height:1.3; letter-spacing:-.01em; text-align:center; backdrop-filter:blur(5px); }
.aws-liveness-shell[data-guidance="adjust"] .amplify-liveness-hint__text { background:rgba(151,97,10,.88); }
.aws-liveness-shell[data-guidance="ready"] .amplify-liveness-hint__text { background:rgba(20,119,72,.9); }
.aws-liveness-shell[data-guidance="error"] .amplify-liveness-hint__text { background:rgba(162,35,49,.9); }
.aws-liveness-shell .amplify-liveness-cancel-button { top:12px; right:12px; width:36px; height:36px; border:1px solid rgba(255,255,255,.65); border-radius:50%; background:rgba(255,255,255,.94); color:var(--civic-blue-dark); box-shadow:0 5px 14px rgba(15,23,42,.18); }
.aws-liveness-shell .amplify-liveness-recording-icon-container { color:#fff; }
@media (min-width:601px) {
    /* Keep the complete AWS flow—including its start/retry controls—inside the
       desktop dialog instead of clipping everything below the camera. */
    .face-liveness-modal .aws-liveness-shell:not(:empty) { width:min(100%,760px); margin:0 auto; }
}
.face-check-card .camera-controls { margin:0; padding:16px 15px 8px; }
.face-check-start { display:flex; min-height:39px; align-items:center; justify-content:center; gap:11px; padding:0 17px; border:1px solid var(--civic-blue); border-radius:7px; background:var(--civic-blue); color:#fff; font-size:9px; font-weight:850; letter-spacing:.06em; text-transform:uppercase; transition:background .16s ease,transform .16s ease,box-shadow .16s ease; }
.face-check-start:hover { background:var(--civic-blue-dark); box-shadow:0 7px 16px rgba(22,70,160,.18); transform:translateY(-1px); }
.face-check-card.is-loading .face-check-start { cursor:wait; opacity:.65; }
.face-check-card.is-active .camera-controls,.face-check-card.is-verified .camera-controls { display:none; }
.face-check-card.is-verified { border-color:#b9e1cc; background:linear-gradient(180deg,#fff 0%,#f1fbf6 100%); }
.face-verification-success { display:flex; align-items:center; gap:11px; margin:14px; padding:13px 14px; border:1px solid #b9e1cc; border-radius:9px; background:#eefaf3; color:var(--civic-green); }
.face-verification-success[hidden] { display:none; }
.face-verification-success__icon { display:grid; width:31px; min-width:31px; height:31px; place-items:center; border-radius:50%; background:var(--civic-green); color:#fff; font-size:17px; font-weight:800; }
.face-verification-success span:last-child { display:grid; gap:2px; }
.face-verification-success strong { font-size:11px; font-weight:800; }
.face-verification-success small { color:#4e6c60; font-size:9.5px; line-height:1.4; }
.face-check-guide { margin:13px 15px 0; padding:11px 12px; border:1px solid #dce5f2; border-radius:8px; background:#f7f9fd; color:#56647a; }
.face-check-guide strong { display:block; margin-bottom:6px; color:var(--civic-ink); font-size:10px; font-weight:800; }
.face-check-guide ul { display:grid; gap:4px; margin:0; padding-left:17px; font-size:9px; line-height:1.4; }
.face-check-card.is-active .face-check-guide,.face-check-card.is-verified .face-check-guide { display:none; }
.face-check-card .selfie-status { padding:0 15px; }
.face-check-card__privacy { margin:8px 15px 13px; color:#7a8698; font-size:8.5px; line-height:1.4; text-align:center; }
.face-check-card__privacy::before { content:'●'; margin-right:6px; color:var(--civic-green); font-size:7px; }
.pw-guidelines { display:grid; gap:4px; margin-top:10px; padding:10px; border:1px solid #e7ebf1; border-radius:7px; background:#fbfcfd; }
.pw-rule { font-size:9px; line-height:1.35; }
.pw-rule-icon { display:inline-block; width:12px; font-weight:800; }
.registration-loading-modal,.registration-result-modal { display:none; position:fixed; inset:0; z-index:9999; align-items:center; justify-content:center; padding:18px; background:rgba(15,23,42,.62); backdrop-filter:blur(3px); }
.registration-loading-modal { flex-direction:column; gap:14px; }
.registration-loading-modal p { margin:0; color:#fff; font-size:10px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.registration-loading-indicator { display:grid; width:64px; height:64px; place-items:center; border:1px solid #d8e0eb; border-radius:50%; background:#fff; }
.registration-loading-indicator div { width:32px; height:32px; border:3px solid #dce6f8; border-top-color:var(--civic-blue); border-radius:50%; animation:spin .85s linear infinite; }
.registration-result-card { width:min(100%,400px); padding:28px; border:1px solid #d8e0eb; border-radius:11px; background:#fff; box-shadow:0 24px 60px rgba(15,23,42,.24); text-align:center; }
.registration-result-icon { display:grid; min-height:64px; place-items:center; margin-bottom:10px; }
.registration-result-icon .svg-icon { width:60px; height:60px; }
.registration-result-card h3 { margin:0 0 8px; color:var(--civic-ink); font-size:18px; letter-spacing:-.02em; }
.registration-result-card p { margin:0 0 19px; color:var(--civic-body); font-size:11px; line-height:1.55; }
.registration-result-button { width:auto; min-width:130px; }
.camera-capture-modal { position:fixed; inset:0; z-index:10000; display:none; align-items:center; justify-content:center; padding:24px; background:rgba(15,23,42,.72); backdrop-filter:blur(4px); }
.camera-capture-modal.is-open { display:flex; }
.camera-capture-dialog { width:min(100%,560px); max-height:calc(100dvh - 48px); overflow-y:auto; padding:28px; border-radius:16px; background:#fff; box-shadow:0 28px 70px rgba(15,23,42,.34); }
.camera-capture-header { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.camera-capture-header .eyebrow { margin-bottom:8px; }
.camera-capture-header h2 { margin:0; color:var(--civic-ink); font-size:22px; font-weight:760; letter-spacing:-.035em; }
.camera-close-button { display:grid; width:34px; min-width:34px; height:34px; place-items:center; border:1px solid #d9e0e9; border-radius:50%; background:#fff; color:#536075; font-size:24px; line-height:1; }
.camera-close-button:hover { border-color:var(--civic-blue); color:var(--civic-blue); }
.camera-capture-help { margin:10px 0 17px; color:var(--civic-body); font-size:11px; line-height:1.5; }
.camera-capture-viewport { position:relative; display:grid; width:min(100%,420px); aspect-ratio:3 / 4; max-height:62dvh; margin:auto; place-items:center; overflow:hidden; border-radius:14px; background:#111827; }
#cameraOverlayBackdrop { position:absolute; inset:-20px; width:calc(100% + 40px); height:calc(100% + 40px); object-fit:cover; opacity:.58; filter:blur(16px); transform:scaleX(-1); }
#cameraOverlayFeed { position:relative; z-index:1; display:block; width:100%; height:100%; object-fit:contain; transform:scaleX(-1); }
.face-guide { position:absolute; z-index:2; width:56%; height:70%; border:2px solid rgba(255,255,255,.92); border-radius:50%; box-shadow:0 0 0 999px rgba(15,23,42,.12); pointer-events:none; }
.camera-capture-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:18px; }
.camera-torch-button.is-active { border-color:#d68700; background:#fff7df; color:#8a5700; }

/* ── ID scan/upload ───────────────────────────────────────────────── */
.id-type-help { margin:0 0 10px; color:var(--civic-body); font-size:10.5px; line-height:1.5; }
.id-capture-checklist { margin:0 0 14px; padding-left:18px; color:var(--civic-body); font-size:10px; line-height:1.6; }
.id-capture-slot { margin-bottom:14px; }
.id-capture-slot:last-child { margin-bottom:0; }
.id-capture-buttons { display:flex; flex-wrap:wrap; gap:9px; margin-bottom:8px; }
.id-capture-preview { position:relative; display:grid; min-height:64px; place-items:center; overflow:hidden; border:1px dashed #9aa9bd; border-radius:8px; background:#fbfcfd; }
.id-capture-preview.has-photo { border-style:solid; border-color:#d9e0e9; }
.id-capture-preview img { display:block; width:100%; max-height:160px; object-fit:contain; }
.id-preview-placeholder { padding:14px; color:#687488; font-size:9.5px; text-align:center; }
.id-preview-remove { position:absolute; top:6px; right:6px; display:flex; width:22px; height:22px; align-items:center; justify-content:center; border:0; border-radius:50%; background:rgba(23,32,51,.72); color:#fff; font-size:13px; line-height:1; cursor:pointer; }
.id-preview-remove:hover { background:#c43f4b; }
@media (max-width:640px) { .temporary-address-grid { grid-template-columns:1fr; } }
.id-capture-status { min-height:14px; margin-top:6px; color:#687488; font-size:9.5px; }
.id-capture-status.success { color:var(--civic-green); }
.id-capture-status.error { color:var(--civic-red); }
#idOverlayBackdrop { position:absolute; inset:-20px; width:calc(100% + 40px); height:calc(100% + 40px); object-fit:cover; opacity:.58; filter:blur(16px); }
#idOverlayFeed { position:relative; z-index:1; display:block; width:100%; height:100%; object-fit:contain; }
.camera-capture-modal.document-capture #idOverlayBackdrop { display:none; }
.camera-capture-modal.document-capture #idOverlayFeed { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.id-guide { position:absolute; z-index:2; width:80%; aspect-ratio:var(--id-ratio, 1.585); border:2px solid rgba(255,255,255,.92); border-radius:12px; box-shadow:0 0 0 999px rgba(15,23,42,.12); pointer-events:none; }
.id-guide.document-guide { width:62%; border-radius:8px; }
@keyframes spin { to { transform:rotate(360deg); } }
@media (min-width:861px) {
    .tech-wrapper { height:min(860px,calc(100dvh - 72px)); }
    .tech-wrapper .row { height:100%; min-height:0; }
    .panel-left,.panel-right { height:100%; min-height:0; }
}
@media (max-width:860px) { .main-viewport { padding:28px 0; } .tech-wrapper { width:min(540px,calc(100% - 32px)); min-height:0; } .tech-wrapper .row { display:block !important; min-height:0; } .glass-inner { padding:32px; } .portal-brand { margin-bottom:29px; } .portal-title { max-width:none; font-size:34px; } .tagline { max-width:460px; } .step-indicator { display:none; } .tech-wrapper .row > .panel-right { padding:34px 28px; max-height:none; overflow:visible; } .top-part { width:100%; } }
@media (max-width:480px) {
    body { background:#f4f6fa; }
    .main-viewport { display:block!important; padding:0; }
    .tech-wrapper { width:100%; margin:0; border-right:0; border-left:0; border-radius:0; box-shadow:0 18px 48px rgba(28,42,66,.1); }
    .panel-left { min-height:0; }
    .panel-left::after { right:-90px; bottom:-115px; width:320px; height:320px; }
    .glass-inner { min-height:0; justify-content:center; padding:26px 20px; }
    .portal-brand { margin-bottom:25px; }
    .portal-brand img { width:34px; height:42px; }
    .portal-brand strong { font-size:17px; }
    .portal-brand small { font-size:9px; }
    .sys-label { display:inline-block; }
    .portal-title,.tagline { display:block; }
    .portal-title { font-size:31px; }
    .tech-wrapper .row > .panel-right { padding:31px 20px; }
    .registration-form-panel { width:100%; margin:0; }
    .top-part { width:100%; min-height:63px; margin-bottom:0; padding:10px; }
    .back-link { width:auto; min-height:44px; padding:0 18px; font-size:10.5px; }
    .step-title { margin-bottom:17px!important; font-size:27px; line-height:1.15; }
    .form-text-label { line-height:1.35; }
    .tech-input { min-height:45px; font-size:12px; }
    .tech-input::placeholder { font-size:12px; }
    .phone-prefix { font-size:12px; }
    .privacy-agreement-card,.registration-section-card { padding:13px; }
    .section-card-title { margin-bottom:13px; font-size:14px; }
    .choice-row { grid-template-columns:1fr; gap:8px; }
    .choice-card { min-height:46px; }
    .conditional-fields { padding:12px 0 12px 12px; border-left-width:2px; }
    .temporary-address-grid { grid-template-columns:1fr; gap:9px; }
    .proof-address-note { gap:8px; padding:9px; }
    .id-capture-buttons,.proof-capture-buttons { display:grid; grid-template-columns:1fr 1fr; }
    .btn-camera-text { min-height:42px; padding:0 8px; }
    .id-capture-preview img { max-height:210px; }
    .verification-stage-heading { gap:9px; }
    .verification-stage-heading h4 { font-size:14px; }
    .extracted-details-card { padding:13px; }
    .extracted-grid { grid-template-columns:1fr; gap:9px; }
    .extracted-grid .full-width { grid-column:auto; }
    .extracted-details-header { display:block; }
    .validated-badge { display:inline-block; margin-top:8px; }
    .privacy-terms { max-height:190px; }
    .consent-label { font-size:9.5px; }
    .face-check-card__header { flex-wrap:wrap; padding:12px; }
    .face-check-card__copy { flex-basis:calc(100% - 46px); }
    .face-check-card__copy small { max-width:none; }
    .face-check-card__badge { margin-left:44px; }
    .face-check-guide { margin:11px 12px 0; }
    .face-check-start { width:100%; }
    .face-verification-success { margin:12px; }
    #step2>.d-flex { flex-wrap:wrap; gap:9px!important; }
    #step2>.d-flex .cta-back { flex:1 1 92px; }
    #step2>.d-flex .cta { flex:2 1 180px!important; }
    .camera-capture-modal { padding:0; }
    .camera-capture-dialog { width:100%; min-height:100dvh; max-height:100dvh; padding:20px 16px; border-radius:0; }
    .camera-capture-header h2 { font-size:19px; line-height:1.2; }
    .camera-capture-help { margin-bottom:12px; }
    .camera-capture-viewport { width:min(100%,390px); max-height:55dvh; }
    .camera-capture-actions { position:sticky; bottom:-20px; padding:12px 0 2px; background:#fff; }
    .camera-capture-actions button { flex:1; }
    .registration-result-card { padding:22px 17px; }
    .aws-liveness-shell:not(:empty) { margin-top:12px; padding:0 10px; }
    .aws-liveness-shell .amplify-liveness-camera-module { border-radius:10px; }
}
.age-notice { display:grid; gap:4px; margin:0 0 14px; padding:11px 13px; border:1px solid #d7e2f4; border-radius:9px; background:#f5f8ff; color:#33476b; font-size:11px; line-height:1.45; }
.age-notice strong { color:#1646a0; font-size:12px; }
.adult-confirmation { display:flex; align-items:flex-start; gap:9px; padding:11px 13px; border:1px solid #d7e2f4; border-radius:9px; background:#f8faff; color:#33415c; font-size:11px; line-height:1.45; }
.adult-confirmation input { width:17px; height:17px; flex:0 0 auto; margin-top:1px; accent-color:#1646a0; }

@media (max-width:600px) {
    .face-liveness-modal { padding:0; background:#fff; }
    .face-liveness-modal__panel { width:100%; height:100dvh; min-height:100dvh; max-height:100dvh; overflow:visible; padding:20px 14px; border:0; border-radius:0; box-shadow:none; contain:none; }
    .face-liveness-modal__heading { min-height:60px; margin-bottom:10px; padding:0 4px; }
    .face-liveness-modal__heading strong { font-size:15px; }
    .face-liveness-modal__heading small { max-width:260px; font-size:10px; }
    .face-liveness-modal .aws-liveness-shell:not(:empty) { margin:0; padding:0; }
    .face-liveness-modal .amplify-liveness-camera-module--mobile,
    .face-liveness-modal .amplify-liveness-oval-canvas--mobile,
    .face-liveness-modal .amplify-liveness-freshness-canvas { inset:0!important; width:100vw!important; height:100dvh!important; max-width:none!important; max-height:none!important; margin:0!important; transform:none!important; }
}

@supports (-webkit-touch-callout:none) {
    input.tech-input, select.tech-input, textarea.tech-input { font-size:12px; }
    .ocr-date-field input[type="date"] { min-height:45px; padding:0 48px 0 13px; text-align:left!important; -webkit-appearance:none; appearance:none; }
    .ocr-date-field input[type="date"]::-webkit-date-and-time-value { display:flex; min-height:43px; align-items:center; justify-content:flex-start; padding:0; text-align:left!important; }
    .face-liveness-modal__panel { -webkit-transform:none; transform:none; contain:none; }
}

@media (max-width:380px) {
    .id-capture-buttons,.proof-capture-buttons { grid-template-columns:1fr; }
    .camera-capture-dialog { padding-right:max(12px,env(safe-area-inset-right)); padding-left:max(12px,env(safe-area-inset-left)); }
    .face-liveness-modal__panel { padding-right:max(10px,env(safe-area-inset-right)); padding-left:max(10px,env(safe-area-inset-left)); }
}

@media (hover:none) and (pointer:coarse) {
    .face-liveness-modal .amplify-liveness-camera-module--mobile,
    .face-liveness-modal .amplify-liveness-oval-canvas--mobile,
    .face-liveness-modal .amplify-liveness-freshness-canvas { inset:0!important; width:100vw!important; height:100dvh!important; max-width:none!important; max-height:none!important; margin:0!important; transform:none!important; }
}
