/* MEMS V5 Registration Sapphire R2 — presentation only, isolated scope */
.v5-registration{--r2-bg:#f3f6fc;--r2-card:#fff;--r2-raised:#f7f9ff;--r2-input:#f2f5fc;--r2-ink:#172b49;--r2-muted:#566a87;--r2-border:#d7e2f0;--r2-accent:#295fda;--r2-accent-text:#fff;max-width:740px!important;gap:10px!important;padding:8px 0 140px!important;font-size:14px!important;color:var(--r2-ink)!important;}
html.dark .v5-registration{--r2-bg:#0a1325;--r2-card:#14243e;--r2-raised:#192b47;--r2-input:#10203a;--r2-ink:#f0f5ff;--r2-muted:#b4c3db;--r2-border:#304663;--r2-accent:#4c85f7;--r2-accent-text:#07142b;}
.v5-registration .mems-shot-hero,.v5-registration .mems39-steps,.v5-registration .mems39-panel,.v5-registration .mems39-footer{background:var(--r2-card)!important;border:1px solid var(--r2-border)!important;color:var(--r2-ink)!important;border-radius:15px!important;box-shadow:none!important;}
.v5-registration .mems-shot-hero{padding:14px 15px!important;gap:8px!important;}
.v5-registration .mems-shot-eyebrow{margin:0!important;gap:4px!important;}
.v5-registration .mems-shot-chip{display:none!important;}
.v5-registration .mems-shot-count{font-size:12px!important;font-weight:750;color:var(--r2-muted)!important;}
.v5-registration .mems-shot-hero h2{font-size:clamp(19px,4.4vw,24px)!important;line-height:1.2!important;color:var(--r2-ink)!important;}
.v5-registration .mems-shot-hero>.v5-reg-muted{display:none!important;}
.v5-registration .v5-reg-back{font-size:12px!important;margin:0!important;padding:5px 0!important;color:var(--r2-muted)!important;}
.v5-registration .v5-reg-form{gap:10px!important;}
.v5-registration .v5-reg-modes{margin:0!important;padding:4px!important;gap:3px!important;border-color:var(--r2-border)!important;background:var(--r2-raised)!important;border-radius:11px!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;}
.v5-registration .v5-reg-mode{min-height:42px!important;padding:7px 5px!important;font-size:13px!important;border-radius:9px!important;color:var(--r2-muted)!important;}
.v5-registration .v5-reg-mode.selected,html.dark .v5-registration .v5-reg-mode.selected{background:var(--r2-accent)!important;color:#fff!important;box-shadow:none!important;}
/* 5 equal-width steps, no horizontal overflow */
.v5-registration .mems39-steps{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:2px!important;overflow:visible!important;padding:8px 5px!important;min-width:0!important;}
.v5-registration .mems39-tab{display:flex!important;flex-direction:column!important;gap:4px!important;align-items:center!important;justify-content:center!important;min-width:0!important;width:100%!important;min-height:52px!important;padding:2px 0!important;font-size:10px!important;text-align:center!important;}
.v5-registration .mems-shot-number{height:27px!important;width:27px!important;border-radius:50%!important;font-size:12px!important;background:var(--r2-raised)!important;color:var(--r2-muted)!important;border:1px solid var(--r2-border)!important;}
.v5-registration .mems39-tab.active .mems-shot-number{background:var(--r2-accent)!important;color:#fff!important;border-color:var(--r2-accent)!important;}
.v5-registration .mems-shot-step-label{white-space:normal!important;line-height:1.1!important;overflow-wrap:normal!important;color:var(--r2-muted)!important;font-size:10px!important;}
.v5-registration .mems39-tab.active .mems-shot-step-label{color:var(--r2-ink)!important;}
/* Repeated quick/complete explainer hidden: modes remain accessible */
.v5-registration .v5-reg-form>.v5-reg-muted{display:none!important;}
.v5-registration .mems39-panel{padding:15px!important;}
.v5-registration .mems39-panel>h3{margin:0 0 8px!important;font-size:18px!important;line-height:1.25!important;color:var(--r2-ink)!important;}
.v5-registration .mems39-help{font-size:12px!important;line-height:1.4!important;color:var(--r2-muted)!important;margin:0 0 10px!important;}
.v5-registration .v5-reg-groups{gap:11px!important;}
.v5-registration .v5-reg-section>h3{font-size:14px!important;margin:8px 0!important;color:var(--r2-ink)!important;}
.v5-registration .v5-reg-grid{gap:10px!important;}
.v5-registration .v5-reg-field{gap:5px!important;}
.v5-registration .v5-reg-field>span{font-size:13px!important;color:var(--r2-ink)!important;}
.v5-registration .v5-reg-field input,.v5-registration .v5-reg-section input,.v5-registration .v5-reg-section select,.v5-registration .v5-house-search,.v5-registration .v5-sponsor-choice-input,.v5-registration .v5-country-search,
html.dark .v5-registration input:not([type=file]),html:not(.dark) .v5-registration input:not([type=file]),html.dark .v5-registration select,html:not(.dark) .v5-registration select{
  background:var(--r2-input)!important;color:var(--r2-ink)!important;border:1px solid var(--r2-border)!important;border-radius:10px!important;min-height:44px!important;padding:9px 11px!important;font-size:16px!important;max-width:100%!important;}
.v5-registration input::placeholder{color:var(--r2-muted)!important;opacity:1!important;}
.v5-registration .v5-capture-document,.v5-registration .v5-profile-photo-capture,html.dark .v5-registration .v5-capture-document,html.dark .v5-registration .v5-profile-photo-capture{
 background:var(--r2-raised)!important;border:1px solid var(--r2-border)!important;color:var(--r2-ink)!important;border-radius:12px!important;padding:12px!important;margin:7px 0!important;}
.v5-registration .v5-capture-document h4,.v5-registration .v5-profile-photo-capture h3{font-size:14px!important;margin:0 0 5px!important;color:var(--r2-ink)!important;}
.v5-registration .v5-capture-document p,.v5-registration .v5-profile-photo-capture p{font-size:12px!important;line-height:1.4!important;color:var(--r2-muted)!important;}
.v5-registration .v5-capture-document label,.v5-registration .v5-profile-photo-capture label{border:1px dashed var(--r2-border)!important;border-radius:10px!important;padding:11px!important;margin:8px 0!important;font-size:12px!important;color:var(--r2-ink)!important;}
/* Step 2: remove four duplicate manual controls visually; retain OCR-bound DOM and values. */
.v5-registration .mems39-documents .v5-capture-document label:has(> input[aria-label="Passport Passport number"]),
.v5-registration .mems39-documents .v5-capture-document label:has(> input[aria-label="Passport Passport expiry"]),
.v5-registration .mems39-documents .v5-capture-document label:has(> input[aria-label="Work Permit Work permit number"]),
.v5-registration .mems39-documents .v5-capture-document label:has(> input[aria-label="Work Permit Work permit expiry"]){display:none!important;}
.v5-registration .v5-profile-photo-capture>label::before{width:56px!important;height:56px!important;font-size:30px!important;border-width:2px!important;margin-bottom:8px!important;}
.v5-registration .v5-capture-document>label::before{font-size:21px!important;margin-bottom:4px!important;}
.v5-registration input[type=file]{font-size:12px!important;margin:6px auto 0!important;}
.v5-registration input[type=file]::file-selector-button{background:var(--r2-accent)!important;color:#fff!important;border-radius:8px!important;padding:9px 11px!important;}
.v5-registration .mems39-footer{padding:9px!important;margin:0!important;gap:8px!important;}
.v5-registration .mems39-footer button{min-height:44px!important;font-size:13px!important;padding:8px 12px!important;border-radius:10px!important;}
.v5-registration .mems39-next,.v5-registration .mems39-review-step .v5-reg-primary,.v5-registration .mems39-review-step button[type=submit]{background:var(--r2-accent)!important;color:#fff!important;border:1px solid var(--r2-accent)!important;box-shadow:none!important;}
.v5-registration .mems39-previous{background:var(--r2-raised)!important;color:var(--r2-ink)!important;border-color:var(--r2-border)!important;}
.v5-registration .mems-shot-governance{font-size:12px!important;line-height:1.45!important;margin:10px 0!important;padding:11px!important;border-radius:10px!important;}
.v5-registration .v5-reg-summary{padding:10px!important;background:var(--r2-raised)!important;border-color:var(--r2-border)!important;}
.v5-registration .v5-reg-summary-row{padding:8px 0!important;font-size:12px!important;}
.v5-registration .v5-sponsor-choice-item,.v5-registration .v5-house-option,.v5-registration .v5-country-option{background:var(--r2-raised)!important;color:var(--r2-ink)!important;border-color:var(--r2-border)!important;}
@media(max-width:480px){.v5-registration .mems-shot-hero{padding:12px!important}.v5-registration .mems39-panel{padding:12px!important}.v5-registration .mems39-tab{min-height:50px!important}.v5-registration .mems-shot-step-label{font-size:9px!important}.v5-registration .v5-reg-mode{font-size:12px!important}.v5-registration .mems39-footer{padding:8px!important}}
