/* STG v100 — New Employee Registration (professional layout) */
.er-page{max-width:1180px;margin:0 auto;padding-left:clamp(14px,3vw,28px);padding-right:clamp(14px,3vw,28px)}
.er-page *{box-sizing:border-box}
.er-i{flex:none;display:block}
/* hero */
.er-hero{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:clamp(18px,3vw,34px);align-items:center;padding:clamp(22px,3.4vw,38px);border-radius:22px;color:#fff;background:radial-gradient(90% 120% at 0% 0%,rgba(65,119,219,.45),transparent 60%),linear-gradient(140deg,#0a2352 0%,#123a7c 60%,#0a2352 100%);box-shadow:0 18px 44px rgba(10,35,82,.22);margin-bottom:22px}
.er-kicker{display:inline-block;font-size:.72rem;font-weight:800;letter-spacing:.12em;color:#f6d477;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);padding:5px 12px;border-radius:999px}
.er-hero h1{margin:12px 0 10px;color:#fff !important;font-size:clamp(1.55rem,3.4vw,2.35rem);line-height:1.15;-webkit-text-fill-color:#fff}
.er-hero p{margin:0;color:#dce8fb !important;line-height:1.65;font-size:.98rem}
.er-chips{list-style:none;margin:18px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.er-chips li{display:inline-flex;align-items:center;gap:7px;padding:7px 12px;border-radius:999px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);color:#f2f6ff;font-size:.8rem;font-weight:600}
.er-chips svg{color:#f6d477}
.er-steps{list-style:none;margin:0;padding:0;display:grid;gap:10px;counter-reset:s}
.er-steps li{display:flex;gap:12px;align-items:center;padding:12px 14px;border-radius:14px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16)}
.er-steps li.on{background:rgba(246,212,119,.16);border-color:rgba(246,212,119,.55)}
.er-steps b{flex:none;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;font-size:.9rem;background:rgba(255,255,255,.14);color:#fff}
.er-steps li.on b{background:#e3b93c;color:#102447}
.er-steps strong{display:block;color:#fff;font-size:.93rem}
.er-steps small{display:block;color:#c6d6f3;font-size:.78rem;margin-top:1px}
/* alerts */
.er-alert{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;border-radius:14px;margin-bottom:18px;line-height:1.5;font-size:.93rem}
.er-alert-err{background:#fff2f2;border:1px solid #f3b8b8;color:#8a1c1c}
.er-alert svg{margin-top:2px}
/* grid */
.er-grid{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:22px;align-items:start}
.er-form{grid-column:1;grid-row:1;display:grid;gap:18px;min-width:0}
.er-aside{grid-column:2;grid-row:1;position:sticky;top:84px;display:grid;gap:16px;min-width:0}
.er-card{background:#fff;border:1px solid #dfe6f2;border-radius:18px;box-shadow:0 8px 26px rgba(20,42,78,.07)}
/* progress */
.er-progress{background:#fff;border:1px solid #dfe6f2;border-radius:16px;padding:14px 18px;box-shadow:0 6px 18px rgba(20,42,78,.05)}
.er-progress-top{display:flex;justify-content:space-between;align-items:center;font-size:.9rem;color:#14213d}
.er-progress-top span{font-weight:800;color:#0d2b6b}
.er-bar{height:8px;border-radius:99px;background:#e6ecf7;overflow:hidden;margin:9px 0 6px}
.er-bar i{display:block;height:100%;width:0;border-radius:99px;background:linear-gradient(90deg,#1f55c9,#e3b93c);transition:width .35s}
.er-progress small{color:#55627d;font-size:.78rem}
/* sections */
.er-sec{padding:clamp(18px,2.6vw,26px)}
.er-sec-h{display:flex;gap:14px;align-items:flex-start;padding-bottom:16px;margin-bottom:18px;border-bottom:1px solid #e8edf6}
.er-num{flex:none;width:36px;height:36px;border-radius:12px;display:grid;place-items:center;font-weight:800;color:#fff;background:linear-gradient(135deg,#0d2b6b,#1f55c9);box-shadow:0 6px 14px rgba(13,43,107,.28)}
.er-sec-h h2{margin:0;font-size:1.12rem;color:#0d2b6b}
.er-sec-h p{margin:3px 0 0;color:#55627d;font-size:.85rem;line-height:1.5}
.er-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 18px}
.er-field{display:flex;flex-direction:column;gap:6px;min-width:0}
.er-full{grid-column:1/-1}
.er-field label{font-weight:700;font-size:.86rem;color:#14213d}
.er-req{color:#d33;font-style:normal;font-weight:800}
.er-opt{color:#7a869c;font-style:normal;font-weight:500;font-size:.78rem}
.er-form input[type=text],.er-form input[type=email],.er-form input[type=tel],.er-form select,.er-form textarea{width:100%;min-height:46px;padding:11px 14px;font:inherit;font-size:.95rem;color:#14213d;background:#fbfcff;border:1.5px solid #cdd7ea;border-radius:12px;transition:border-color .2s,box-shadow .2s,background .2s;appearance:none;-webkit-appearance:none}
.er-form select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2355627d' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;padding-right:38px}
.er-form textarea{resize:vertical;min-height:110px;line-height:1.5}
.er-form input:focus,.er-form select:focus,.er-form textarea:focus{outline:0;border-color:#1f55c9;background:#fff;box-shadow:0 0 0 4px rgba(31,85,201,.14)}
.er-form .is-bad{border-color:#d33 !important;box-shadow:0 0 0 4px rgba(221,51,51,.1) !important}
.er-hint{color:#6a768d;font-size:.78rem;line-height:1.4}
.er-count{text-align:right}
.er-msg{color:#c22;font-size:.8rem;min-height:0;line-height:1.35}
.er-msg:empty{display:none}
/* upload cards */
.er-drops{display:grid;gap:14px}
.er-drop{position:relative}
.er-drop input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;z-index:2;font-size:0}
.er-drop-in{display:flex;align-items:center;gap:14px;padding:16px;border:2px dashed #b7c6e2;border-radius:16px;background:#f7f9fe;transition:border-color .2s,background .2s}
.er-drop:hover .er-drop-in,.er-drop.drag .er-drop-in{border-color:#1f55c9;background:#eef4ff}
.er-drop.ok .er-drop-in{border-style:solid;border-color:#2e9e6b;background:#f0faf5}
.er-drop.bad .er-drop-in{border-color:#d33;background:#fff5f5}
.er-drop-ic{position:relative;flex:none;width:54px;height:54px;border-radius:14px;display:grid;place-items:center;color:#1f55c9;background:#e5eeff;overflow:hidden}
.er-drop.ok .er-drop-ic{color:#1f8a5b;background:#d9f3e6}
.er-prev{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.er-drop-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.er-drop-t strong{font-size:.94rem;color:#14213d}
.er-drop-t small{color:#6a768d;font-size:.78rem}
.er-file{font-size:.82rem;color:#0d2b6b;font-weight:600;word-break:break-word}
.er-drop-btn{flex:none;display:inline-flex;align-items:center;gap:7px;padding:9px 14px;border-radius:10px;font-size:.82rem;font-weight:700;color:#0d2b6b;background:#fff;border:1.5px solid #b7c6e2}
.er-drop .er-msg{display:block;margin-top:6px;padding-left:4px}
.er-drop .er-msg:empty{display:none}
/* consent / actions */
.er-consent{display:flex;gap:12px;align-items:flex-start;margin:18px 0 12px;padding:14px 16px;border-radius:14px;background:#f1f6ff;border:1px solid #d3e1fb;color:#26406f}
.er-consent svg{color:#1f55c9;margin-top:2px}
.er-consent p{margin:0;font-size:.86rem;line-height:1.55}
.er-agree{display:flex;gap:11px;align-items:flex-start;cursor:pointer;font-size:.9rem;line-height:1.5;color:#14213d}
.er-agree input{flex:none;width:20px;height:20px;margin-top:2px;accent-color:#0d2b6b}
.er-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-top:20px}
.er-submit{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:50px;padding:0 26px;font-size:1rem}
.er-submit[disabled]{opacity:.7;cursor:progress}
.er-btn-ghost{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 18px;border-radius:12px;font-weight:700;font-size:.9rem;text-decoration:none;color:#0d2b6b;background:#fff;border:1.5px solid #b7c6e2}
.er-btn-ghost:hover{background:#eef4ff;border-color:#1f55c9}
/* aside */
.er-guide summary{list-style:none;display:flex;align-items:center;gap:12px;padding:16px 18px;cursor:pointer;font-weight:800;color:#0d2b6b;font-size:.98rem}
.er-guide summary::-webkit-details-marker{display:none}
.er-guide summary::after{content:"";margin-left:auto;width:9px;height:9px;border-right:2.5px solid #55627d;border-bottom:2.5px solid #55627d;transform:rotate(45deg);transition:transform .2s}
.er-guide[open] summary::after{transform:rotate(-135deg)}
.er-ico{flex:none;width:34px;height:34px;border-radius:10px;display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,#0d2b6b,#1f55c9)}
.er-guide-body{padding:0 18px 18px;border-top:1px solid #e8edf6}
.er-guide-body h3,.er-help h3{margin:16px 0 8px;font-size:.84rem;letter-spacing:.04em;text-transform:uppercase;color:#0d2b6b}
.er-check,.er-dots,.er-contact{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.er-check li{display:flex;gap:9px;align-items:flex-start;font-size:.86rem;line-height:1.5;color:#26324d}
.er-check svg{color:#1f8a5b;margin-top:2px}
.er-dots li{position:relative;padding-left:16px;font-size:.84rem;line-height:1.5;color:#26324d}
.er-dots li::before{content:"";position:absolute;left:2px;top:.55em;width:6px;height:6px;border-radius:50%;background:#e3b93c}
.er-table{width:100%;border-collapse:collapse;font-size:.8rem;border:1px solid #dfe6f2;border-radius:10px;overflow:hidden}
.er-table th{background:#eef3fb;color:#0d2b6b;text-align:left;padding:8px 9px;font-size:.74rem}
.er-table td{padding:8px 9px;border-top:1px solid #e8edf6;color:#26324d;vertical-align:top}
.er-help{padding:6px 18px 18px}
.er-contact li{display:flex;gap:9px;align-items:center;font-size:.88rem}
.er-contact a{color:#0d2b6b;font-weight:700;text-decoration:none;word-break:break-all}
.er-contact svg{color:#1f55c9}
/* success */
.er-done{max-width:680px;margin:6px auto 10px;text-align:center;padding:clamp(24px,4vw,40px);background:#fff;border:1px solid #cfe9dc;border-radius:22px;box-shadow:0 14px 38px rgba(20,42,78,.1)}
.er-done-ic{display:inline-grid;place-items:center;width:72px;height:72px;border-radius:50%;color:#fff;background:linear-gradient(135deg,#1f8a5b,#37c086);box-shadow:0 10px 24px rgba(31,138,91,.35)}
.er-done h2{margin:16px 0 8px;color:#0d2b6b}
.er-done p{margin:0 auto;max-width:520px;color:#44516b;line-height:1.6}
.er-done-list{list-style:none;margin:20px 0 0;padding:0;display:grid;gap:10px;text-align:left}
.er-done-list li{display:flex;gap:12px;align-items:flex-start;padding:12px 14px;border-radius:12px;background:#f4f8ff;color:#26406f;font-size:.88rem;line-height:1.5}
.er-done-list svg{color:#1f55c9;margin-top:2px}
.er-done-act{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin-top:22px}
/* responsive */
@media(max-width:980px){
 .er-hero{grid-template-columns:1fr}
 .er-steps{grid-template-columns:repeat(2,minmax(0,1fr))}
 .er-grid{grid-template-columns:1fr}
 .er-aside{grid-column:1;grid-row:1;position:static}
 .er-form{grid-column:1;grid-row:2}
}
@media(max-width:620px){
 .er-hero{padding:20px 16px;border-radius:18px}
 .er-steps{grid-template-columns:1fr}
 .er-fields{grid-template-columns:1fr}
 .er-drop-in{flex-wrap:wrap}
 .er-drop-btn{width:100%;justify-content:center}
 .er-actions>*{width:100%}
 .er-sec{padding:16px 14px}
 .er-form input[type=text],.er-form input[type=email],.er-form input[type=tel],.er-form select,.er-form textarea{font-size:16px} /* stops iOS zoom */
}
@media(prefers-reduced-motion:reduce){.er-bar i,.er-drop-in{transition:none}}
/* dark mode */
html:not(#dm1):not(#dm2)[data-theme="dark"] .er-card,
html:not(#dm1):not(#dm2)[data-theme="dark"] .er-progress,
html:not(#dm1):not(#dm2)[data-theme="dark"] .er-done{background:#101a2e !important;border-color:#31456a !important;box-shadow:0 10px 30px rgba(0,0,0,.4) !important}
html:not(#dm1):not(#dm2)[data-theme="dark"] .er-sec-h{border-color:#2a3b5e}
html:not(#dm1):not(#dm2)[data-theme="dark"] .er-sec-h h2,
html:not(#dm1):not(#dm2)[data-theme="dark"] .er-done h2,
html:not(#dm1):not(#dm2)[data-theme="dark"] .er-guide summary,
html:not(#dm1):not(#dm2)[data-theme="dark"] .er-guide-body h3,
html:not(#dm1):not(#dm2)[data-theme="dark"] .er-help h3,
html:not(#dm1):not(#dm2)[data-theme="dark"] .er-progress-top span{color:#9fc0ff !important;-webkit-text-fill-color:#9fc0ff !important}
html:not(#dm1):not(#dm2)[data-theme="dark"] .er-field label,
html:not(#dm1):not(#dm2)[data-theme="dark"] .er-progress-top,
html:not(#dm1):not(#dm2)[data-theme="dark"] .er-drop-t strong,
html:not(#dm1):not(#dm2)[data-theme="dark"] .er-agree,
html:not(#dm1):not(#dm2)[data-theme="dark"] .er-check li,
html:not(#dm1):not(#dm2)[data-theme="dark"] .er-dots li,
html:not(#dm1):not(#dm2)[data-theme="dark"] .er-table td{color:#e6edf9 !important;-webkit-text-fill-color:#e6edf9 !important}
html:not(#dm1):not(#dm2)[data-theme="dark"] .er-sec-h p,
html:not(#dm1):not(#dm2)[data-theme="dark"] .er-hint,
html:not(#dm1):not(#dm2)[data-theme="dark"] .er-drop-t small,
html:not(#dm1):not(#dm2)[data-theme="dark"] .er-progress small,
html:not(#dm1):not(#dm2)[data-theme="dark"] .er-done p{color:#aebdd8 !important;-webkit-text-fill-color:#aebdd8 !important}
html:not(#dm1):not(#dm2)[data-theme="dark"] .er-form input[type=text],
html:not(#dm1):not(#dm2)[data-theme="dark"] .er-form input[type=email],
html:not(#dm1):not(#dm2)[data-theme="dark"] .er-form input[type=tel],
html:not(#dm1):not(#dm2)[data-theme="dark"] .er-form select,
html:not(#dm1):not(#dm2)[data-theme="dark"] .er-form textarea{background:#0b1424 !important;color:#eef3fb !important;-webkit-text-fill-color:#eef3fb !important;border-color:#3a5080 !important}
html:not(#dm1):not(#dm2)[data-theme="dark"] .er-drop-in{background:#0e1a30 !important;border-color:#3a5080}
html:not(#dm1):not(#dm2)[data-theme="dark"] .er-drop.ok .er-drop-in{background:#0f2a22 !important;border-color:#2e9e6b}
html:not(#dm1):not(#dm2)[data-theme="dark"] .er-drop.bad .er-drop-in{background:#2a1215 !important;border-color:#d33}
html:not(#dm1):not(#dm2)[data-theme="dark"] .er-drop-ic{background:#1a2c52 !important;color:#9fc0ff}
html:not(#dm1):not(#dm2)[data-theme="dark"] .er-drop-btn,
html:not(#dm1):not(#dm2)[data-theme="dark"] .er-btn-ghost{background:#142038 !important;color:#cfe0ff !important;-webkit-text-fill-color:#cfe0ff !important;border-color:#3a5080 !important}
html:not(#dm1):not(#dm2)[data-theme="dark"] .er-file{color:#f2cf6b !important;-webkit-text-fill-color:#f2cf6b !important}
html:not(#dm1):not(#dm2)[data-theme="dark"] .er-consent,
html:not(#dm1):not(#dm2)[data-theme="dark"] .er-done-list li{background:#13223f !important;border-color:#2f4673 !important;color:#cfe0ff !important;-webkit-text-fill-color:#cfe0ff !important}
html:not(#dm1):not(#dm2)[data-theme="dark"] .er-table th{background:#1f3358 !important;color:#fff !important}
html:not(#dm1):not(#dm2)[data-theme="dark"] .er-table,html:not(#dm1):not(#dm2)[data-theme="dark"] .er-table td{border-color:#2a3b5e !important;background:transparent !important}
html:not(#dm1):not(#dm2)[data-theme="dark"] .er-bar{background:#22314f}
html:not(#dm1):not(#dm2)[data-theme="dark"] .er-contact a{color:#9fc0ff !important;-webkit-text-fill-color:#9fc0ff !important}
html:not(#dm1):not(#dm2)[data-theme="dark"] .er-alert-err{background:#2a1215;border-color:#7a2c33;color:#ffc9cd}
html:not(#dm1):not(#dm2)[data-theme="dark"] .er-guide-body{border-color:#2a3b5e}

/* ---- overrides vs. global site-core rules (label grid, li/table colours, reveal animation) ---- */
.er-page .er-field>label{display:block !important;color:#14213d !important}
.er-page .er-req{display:inline !important}
.er-page .er-agree{display:flex !important}
.er-page .er-chips li{color:#f2f6ff !important;-webkit-text-fill-color:#f2f6ff !important;list-style:none}
.er-page .er-steps li{color:#fff !important}
.er-page .er-steps strong{color:#fff !important;-webkit-text-fill-color:#fff !important}
.er-page .er-steps small{color:#c6d6f3 !important;-webkit-text-fill-color:#c6d6f3 !important}
.er-page .er-hero p{color:#dce8fb !important;-webkit-text-fill-color:#dce8fb !important}
.er-page .er-table{opacity:1 !important;transform:none !important;visibility:visible !important;table-layout:auto}
.er-page .er-table th{background:#eef3fb !important;color:#0d2b6b !important;border:0}
.er-page .er-table td{background:#fff !important;color:#26324d !important;font-size:.8rem}
.er-page .er-table tr:hover td{background:#f3f7ff !important}
.er-page .er-guide,.er-page .er-help,.er-page .er-card,.er-page .er-progress,.er-page .er-done{opacity:1 !important;transform:none !important}
.er-page .er-check li,.er-page .er-dots li{color:#26324d !important}
.er-page .er-sec-h h2{color:#0d2b6b !important;-webkit-text-fill-color:#0d2b6b !important;background:none !important}
.er-page .er-done h2{color:#0d2b6b !important;-webkit-text-fill-color:#0d2b6b !important}
.er-page .er-drop-t strong{color:#14213d !important}
.er-page .er-file{color:#0d2b6b !important}
.er-page .er-btn-ghost{color:#0d2b6b !important}
.er-page .er-guide summary{color:#0d2b6b !important}
.er-page .er-submit{color:#fff !important}
/* dark re-assertions (same selectors, higher specificity than the light overrides above) */
html:not(#dm1):not(#dm2)[data-theme="dark"] .er-page .er-field>label,
html:not(#dm1):not(#dm2)[data-theme="dark"] .er-page .er-drop-t strong,
html:not(#dm1):not(#dm2)[data-theme="dark"] .er-page .er-check li,
html:not(#dm1):not(#dm2)[data-theme="dark"] .er-page .er-dots li{color:#e6edf9 !important;-webkit-text-fill-color:#e6edf9 !important}
html:not(#dm1):not(#dm2)[data-theme="dark"] .er-page .er-sec-h h2,
html:not(#dm1):not(#dm2)[data-theme="dark"] .er-page .er-done h2,
html:not(#dm1):not(#dm2)[data-theme="dark"] .er-page .er-guide summary{color:#9fc0ff !important;-webkit-text-fill-color:#9fc0ff !important}
html:not(#dm1):not(#dm2)[data-theme="dark"] .er-page .er-file{color:#f2cf6b !important;-webkit-text-fill-color:#f2cf6b !important}
html:not(#dm1):not(#dm2)[data-theme="dark"] .er-page .er-btn-ghost,
html:not(#dm1):not(#dm2)[data-theme="dark"] .er-page .er-drop-btn{color:#cfe0ff !important;-webkit-text-fill-color:#cfe0ff !important}
html:not(#dm1):not(#dm2)[data-theme="dark"] .er-page .er-table th{background:#1f3358 !important;color:#fff !important}
html:not(#dm1):not(#dm2)[data-theme="dark"] .er-page .er-table td{background:#142038 !important;color:#e6edf9 !important}
html:not(#dm1):not(#dm2)[data-theme="dark"] .er-page .er-table tr:hover td{background:#1b2c4d !important}
html:not(#dm1):not(#dm2)[data-theme="dark"] .er-form ::placeholder{color:#7f90b0 !important;-webkit-text-fill-color:#7f90b0 !important;opacity:1}
.er-form ::placeholder{color:#8a96ab;opacity:1}
