/* ELIDZ Skills Portal — Register (matches public landing and sign in) */

:root {
    --navy-950: #06142b;
    --navy-900: #0b1f3f;
    --navy-800: #12305a;
    --orange-500: #e9812b;
    --orange-600: #d26d18;
    --orange-300: #f7b46c;
    --sand-50: #fbf9f4;
    --sand-100: #f4f1e8;
    --ink: #13233a;
    --muted: #5a6878;
    --line: rgba(19, 35, 58, 0.1);
    --field-line: rgba(19, 35, 58, 0.16);
    --ok: #2f8a5b;
    --err: #c0392b;
    --white: #ffffff;
    --font: "Outfit", system-ui, sans-serif;
    --display: "Source Serif 4", Georgia, serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    min-height: 100vh;
    min-height: 100svh;
    font-family: var(--font);
    color: var(--ink);
    background: var(--sand-50);
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

:where(a, button, input, select, textarea):focus-visible {
    outline: 3px solid rgba(233, 129, 43, 0.55);
    outline-offset: 3px;
}

/* Loader */
#elidz-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    background: var(--navy-950);
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
#elidz-loader.hide { opacity: 0; visibility: hidden; }
#elidz-loader .el-dots { display: flex; gap: 8px; }
#elidz-loader .el-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--orange-500);
    animation: el-bounce 0.9s ease-in-out infinite;
}
#elidz-loader .el-dots span:nth-child(2) { animation-delay: 0.15s; background: var(--orange-300); }
#elidz-loader .el-dots span:nth-child(3) { animation-delay: 0.3s; background: var(--white); }
#elidz-loader .el-label {
    font: 600 0.78rem var(--font);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}
@keyframes el-bounce { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-9px); } }

/* Registrations closed */
#reg-closed-overlay {
    position: fixed;
    inset: 0;
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(6, 20, 43, 0.55);
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
#reg-closed-overlay.show { opacity: 1; pointer-events: auto; }
#reg-closed-box {
    width: min(100%, 440px);
    padding: 2.25rem;
    border-radius: 24px;
    background: var(--white);
    text-align: center;
    box-shadow: 0 30px 70px rgba(6, 20, 43, 0.3);
    transform: translateY(20px);
    transition: transform 0.35s var(--ease);
}
#reg-closed-overlay.show #reg-closed-box { transform: translateY(0); }
#reg-closed-head .rcl-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--sand-100);
    color: var(--orange-600);
    font-size: 1.3rem;
}
#reg-closed-head h2 {
    font-family: var(--display);
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--navy-900);
}
#reg-closed-head p { color: var(--muted); font-size: 0.85rem; margin-bottom: 1rem; }
#reg-closed-body p { color: var(--muted); line-height: 1.65; margin-bottom: 1.5rem; }
#reg-closed-body .rcl-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 999px;
    background: var(--orange-500);
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
}
#reg-closed-body .rcl-btn:hover { background: var(--orange-600); }

/* Shell */
.auth-shell {
    display: grid;
    grid-template-columns: minmax(320px, 0.7fr) minmax(0, 1.3fr);
    min-height: 100vh;
    min-height: 100svh;
}

/* Left: photo panel */
.info-panel {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(2rem, 3.5vw, 3rem);
    color: var(--white);
    background: var(--navy-950);
    overflow: hidden;
}
.info-bg { position: absolute; inset: 0; z-index: -2; }
.info-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.info-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(6, 20, 43, 0.55) 0%, rgba(6, 20, 43, 0.85) 50%, rgba(6, 20, 43, 0.97) 100%),
        radial-gradient(circle at 0% 100%, rgba(233, 129, 43, 0.3), transparent 50%);
}

.info-tag {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 0.55rem;
    padding: 0.4rem 0.9rem 0.4rem 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 500;
}
.info-tag-dot {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--orange-500);
    font-size: 0.65rem;
}

.info-body h2 {
    font-family: var(--display);
    font-size: clamp(2.2rem, 3.4vw, 3.1rem);
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -0.035em;
    margin-bottom: 1rem;
    text-wrap: balance;
}
.info-body h2 em { font-style: italic; color: var(--orange-300); }
.info-body > p { max-width: 40ch; color: rgba(255, 255, 255, 0.78); line-height: 1.7; }

.register-highlights {
    list-style: none;
    display: grid;
    gap: 0.75rem;
    margin-top: 1.75rem;
}
.register-highlights li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.93rem;
    color: rgba(255, 255, 255, 0.88);
}
.register-highlights i {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--orange-300);
    font-size: 0.85rem;
}

.register-privacy {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-top: 1.75rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.82rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.72);
}
.register-privacy i { color: var(--orange-300); margin-top: 0.2rem; }

/* Right: form panel */
.form-panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.5rem clamp(1rem, 4vw, 3rem) 1.5rem;
    background:
        radial-gradient(circle at 100% 0%, rgba(233, 129, 43, 0.08), transparent 30rem),
        var(--sand-50);
}

.form-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: min(100%, 760px);
    margin-inline: auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 1rem;
    color: var(--navy-900);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s ease;
}
.back-link i { font-size: 0.78rem; transition: transform 0.25s var(--ease); }
.back-link:hover { border-color: rgba(11, 31, 63, 0.3); }
.back-link:hover i { transform: translateX(-3px); }

.topbar-signin { font-size: 0.9rem; color: var(--muted); }
.topbar-signin a { color: var(--orange-600); font-weight: 600; text-decoration: none; }
.topbar-signin a:hover { text-decoration: underline; }

.card {
    width: min(100%, 760px);
    margin: 2rem auto 0;
}

.card-header { margin-bottom: 1.75rem; }

.register-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
    text-decoration: none;
}
.register-brand img { height: 42px; width: auto; max-width: 210px; object-fit: contain; }
.register-brand span {
    padding-left: 0.75rem;
    border-left: 1px solid var(--line);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--navy-900);
}

.card-header h1 {
    font-family: var(--display);
    font-size: clamp(2rem, 3.6vw, 2.7rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--navy-900);
    margin-bottom: 0.45rem;
}
.card-header > p { color: var(--muted); font-size: 1rem; }

/* Stepper */
.wizard-progress {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
    padding: 0.9rem 1.1rem;
    border-radius: 999px;
    background: var(--white);
    border: 1px solid var(--line);
}
.step-wrap { display: flex; align-items: center; gap: 0.55rem; }
.step-circle {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--sand-100);
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 700;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.step-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
    transition: color 0.3s ease;
}
.step-line {
    height: 2px;
    min-width: 12px;
    border-radius: 2px;
    background: var(--line);
    transition: background 0.3s ease;
}
.step-wrap.active .step-circle {
    background: var(--orange-500);
    color: var(--white);
    box-shadow: 0 0 0 4px rgba(233, 129, 43, 0.18);
}
.step-wrap.active .step-label { color: var(--navy-900); }
.step-wrap.done .step-circle { background: var(--navy-900); color: transparent; position: relative; }
.step-wrap.done .step-circle::after {
    content: "\f00c";
    position: absolute;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.75rem;
    color: var(--white);
}
.step-wrap.done .step-label { color: var(--navy-900); }
.step-line.done { background: var(--navy-900); }

/* Form body card */
.card-body,
.success-screen {
    padding: clamp(1.5rem, 3.5vw, 2.5rem);
    border-radius: 24px;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: 0 22px 50px rgba(11, 31, 63, 0.08);
}

.step-panel { display: none; }
.step-panel.active { display: block; animation: panelIn 0.4s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } }

.step-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.6rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy-900);
}
.step-title i {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--sand-100);
    color: var(--orange-600);
    font-size: 0.95rem;
}

/* Fields */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { position: relative; margin-bottom: 1.1rem; }
.form-group label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy-900);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    min-height: 50px;
    padding: 0.8rem 0.95rem;
    border: 1px solid var(--field-line);
    border-radius: 14px;
    background: var(--white);
    color: var(--ink);
    font: inherit;
    font-size: 0.95rem;
    -webkit-appearance: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.form-group select {
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235a6878' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}
.form-group textarea { min-height: 96px; resize: vertical; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: #a1abb6; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--orange-500);
    box-shadow: 0 0 0 4px rgba(233, 129, 43, 0.15);
}
.form-group .other-location-input { margin-top: 0.6rem; }
.form-group .other-location-input[hidden] { display: none !important; }

/* Validation */
.form-group input.err, .form-group select.err, .form-group textarea.err {
    border-color: var(--err) !important;
    background-color: #fff6f5 !important;
}
.form-group input.ok, .form-group select.ok, .form-group textarea.ok {
    border-color: var(--ok) !important;
}
.fmsg {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    min-height: 16px;
    margin-top: 0.3rem;
    font-size: 0.78rem;
    line-height: 1.3;
}
.fmsg.e { color: var(--err); }
.fmsg.s { color: var(--ok); }

.fi-wrap { position: relative; }
.fi-wrap .fi {
    position: absolute;
    right: 0.95rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.fi-wrap select ~ .fi { right: 2.4rem; }
.fi-wrap .fi.show { opacity: 1; }
.fi-wrap .fi.ok { color: var(--ok); }
.fi-wrap .fi.err { color: var(--err); }
.fi-wrap input, .fi-wrap textarea { padding-right: 2.4rem !important; }
.fi-wrap select { padding-right: 3.6rem !important; }

.pw-wrap { position: relative; }
.pw-wrap.fi-wrap input { padding-right: 4.4rem !important; }
.pw-toggle {
    position: absolute;
    right: 2.3rem;
    top: 50%;
    transform: translateY(-50%);
    color: #8a96a3;
    font-size: 0.95rem;
    cursor: pointer;
    transition: color 0.2s ease;
}
.pw-toggle:hover { color: var(--navy-900); }

.pw-str { margin-top: 0.45rem; }
.pw-str-bg { height: 5px; border-radius: 5px; background: var(--sand-100); overflow: hidden; }
.pw-str-bar { height: 100%; width: 0; border-radius: 5px; transition: width 0.3s ease, background 0.3s ease; }
.pw-str-lbl { min-height: 14px; margin-top: 0.25rem; font-size: 0.75rem; font-weight: 600; }

/* Employment Equity box */
.eea-box {
    margin-bottom: 0.25rem;
    padding: 1.1rem 1.2rem;
    border-radius: 16px;
    background: var(--sand-50);
    border: 1px dashed rgba(19, 35, 58, 0.18);
}
.eea-title {
    margin-bottom: 0.3rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--orange-600);
}
.eea-text { margin-bottom: 1rem; font-size: 0.85rem; line-height: 1.55; color: var(--muted); }
.eea-text strong { color: var(--navy-900); }

/* Location */
.location-options { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.form-group .location-choice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 0;
    margin: 0;
    padding: 1rem;
    border: 1px solid var(--field-line);
    border-radius: 16px;
    background: var(--white);
    font-weight: 400;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.location-choice:hover { border-color: var(--orange-500); }
.location-choice:has(input:checked) {
    border-color: var(--orange-500);
    background: #fff8f1;
    box-shadow: inset 0 0 0 1px var(--orange-500);
}
.location-choice input[type="radio"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: grid;
    place-items: center;
    flex: 0 0 20px !important;
    width: 20px !important;
    min-width: 20px !important;
    height: 20px !important;
    min-height: 20px !important;
    margin: 2px 0 0 !important;
    padding: 0 !important;
    border: 1.5px solid #a8b4bc !important;
    border-radius: 50% !important;
    background: var(--white) !important;
    box-shadow: none !important;
    cursor: pointer;
}
.location-choice input[type="radio"]:checked { border-color: var(--orange-500) !important; }
.location-choice input[type="radio"]:checked::after {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--orange-500);
}
.location-choice span { display: block; min-width: 0; }
.location-choice strong { display: block; color: var(--navy-900); font-size: 0.92rem; line-height: 1.4; }
.location-choice small { display: block; margin-top: 0.2rem; color: var(--muted) !important; font-size: 0.8rem; line-height: 1.45; }

.current-location-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.1rem;
    padding: 1rem 1.1rem;
    border-radius: 16px;
    background: var(--sand-50);
    border: 1px solid var(--line);
}
.current-location-copy { min-width: 0; }
.current-location-title {
    margin-bottom: 0.2rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--orange-600);
}
.current-location-text { color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.location-permission-help {
    margin-top: 0.6rem;
    padding: 0.6rem 0.75rem;
    border-left: 3px solid var(--orange-500);
    border-radius: 0 10px 10px 0;
    background: #fff8f1;
    color: #6f4a16;
    font-size: 0.8rem;
    line-height: 1.5;
}
.location-permission-help[hidden] { display: none; }
#useCurrentLocationBtn.location-detect-btn {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0.6rem 1.1rem;
    white-space: nowrap;
    background: var(--navy-900);
    box-shadow: none;
}
#useCurrentLocationBtn.location-detect-btn:hover { background: var(--navy-800); }

/* Consents */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0.75rem 0;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    background: var(--sand-50);
}
.checkbox-group input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 0.15rem;
    accent-color: var(--orange-500);
    cursor: pointer;
}
.checkbox-group label { font-size: 0.9rem; line-height: 1.55; color: var(--muted); cursor: pointer; }
.checkbox-group label a { color: var(--orange-600); font-weight: 600; text-decoration: none; }
.checkbox-group label a:hover { text-decoration: underline; }

/* Step navigation */
.step-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}
.btn-prev {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 50px;
    padding: 0 1.4rem;
    border: 1px solid rgba(11, 31, 63, 0.18);
    border-radius: 999px;
    background: var(--white);
    color: var(--navy-900);
    font: 600 0.95rem var(--font);
    cursor: pointer;
    transition: border-color 0.2s ease;
}
.btn-prev:hover { border-color: var(--navy-900); }

.btn-next,
.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 50px;
    padding: 0 1.8rem;
    margin-left: auto;
    border: 0;
    border-radius: 999px;
    background: var(--orange-500);
    color: var(--white);
    font: 600 0.97rem var(--font);
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(233, 129, 43, 0.26);
    transition: transform 0.25s var(--ease), background 0.25s ease, box-shadow 0.25s ease;
}
.btn-next { flex-direction: row-reverse; }
.btn-next:hover,
.btn-submit:hover { background: var(--orange-600); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(233, 129, 43, 0.32); }
.btn-next:disabled,
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }

.login-link {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.92rem;
    color: var(--muted);
}
.login-link a { color: var(--orange-600); font-weight: 600; text-decoration: none; }
.login-link a:hover { text-decoration: underline; }

/* Alerts */
.alert {
    display: none;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
    padding: 0.8rem 0.95rem;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 0.9rem;
    line-height: 1.5;
}
.alert.show { display: flex; }
.alert-error { color: #a93636; background: #fff3f1; border-color: #f2cbc6; }
.alert-success { color: #256547; background: #effaf3; border-color: #c4e3d1; }

/* Success */
.success-screen { display: none; text-align: center; padding-block: 3.5rem; }
.success-screen .icon {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    margin: 0 auto 1.4rem;
    border-radius: 50%;
    background: var(--orange-500);
    color: var(--white);
    font-size: 1.8rem;
    box-shadow: 0 0 0 10px rgba(233, 129, 43, 0.14);
}
.success-screen h2 {
    font-family: var(--display);
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--navy-900);
    margin-bottom: 0.6rem;
}
.success-screen p { max-width: 44ch; margin: 0 auto 1.75rem; color: var(--muted); line-height: 1.65; }
.btn-login {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.95rem 1.8rem;
    border-radius: 999px;
    background: var(--orange-500);
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(233, 129, 43, 0.26);
}
.btn-login:hover { background: var(--orange-600); }

.footer-credit {
    margin-top: auto;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.8rem;
    color: #8a96a3;
}
.footer-credit a { color: var(--muted); text-decoration: none; }
.footer-credit a:hover { color: var(--orange-600); }

/* Responsive */
@media (max-width: 1080px) {
    .auth-shell { grid-template-columns: 1fr; }
    .info-panel { display: none; }
}

@media (max-width: 640px) {
    .form-panel { padding: 1rem 0.85rem 1.25rem; }
    .topbar-signin span { display: none; }
    .card { margin-top: 1.5rem; }
    .register-brand { margin-bottom: 1.25rem; }
    .register-brand img { height: 36px; }

    .wizard-progress { padding: 0.7rem 0.9rem; gap: 0.4rem; }
    .step-label { display: none; }
    .step-wrap.active .step-label { display: inline; }

    .card-body,
    .success-screen { border-radius: 20px; padding: 1.4rem 1.1rem; }
    .form-row,
    .location-options { grid-template-columns: 1fr; gap: 0; }
    .location-options,
    .eea-box .form-row { gap: 0.9rem; }
    .current-location-box { flex-direction: column; align-items: stretch; }
    #useCurrentLocationBtn.location-detect-btn { width: 100%; }
    .btn-prev { padding: 0 1.1rem; }
    .btn-next, .btn-submit { flex: 1; padding: 0 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ── Email first & ID number gate ────────────────────────────────────────── */
.wizard-progress[hidden], #reg-email-overlay[hidden] { display: none !important; }
#reg-email-overlay {
    position: fixed;
    inset: 0;
    z-index: 99990;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(6, 20, 43, 0.55);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.35s ease;
    overflow-y: auto;
}
#reg-email-overlay.show { opacity: 1; }
.reg-gate-box {
    width: min(100%, 440px);
    padding: 2.25rem 2rem;
    border-radius: 24px;
    background: var(--white);
    box-shadow: 0 30px 70px rgba(6, 20, 43, 0.3);
    transform: translateY(20px);
    transition: transform 0.35s var(--ease);
}
#reg-email-overlay.show .reg-gate-box { transform: translateY(0); }
.reg-gate-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--sand-100);
    color: var(--orange-600);
    font-size: 1.3rem;
}
.reg-gate-box h2 {
    font-family: var(--display);
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--navy-900);
    text-align: center;
}
.reg-gate-lead { margin: 0.4rem 0 1.25rem; color: var(--muted); line-height: 1.6; text-align: center; overflow-wrap: anywhere; }
.reg-gate-sent { margin: 0 0 1.25rem; color: var(--ink); line-height: 1.6; overflow-wrap: anywhere; }
.reg-gate-btn { width: 100%; justify-content: center; }
.reg-gate-linkbtn {
    display: block;
    margin: 0.85rem auto 0;
    border: 0;
    background: none;
    color: var(--orange-600);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.reg-gate-linkbtn:hover { text-decoration: underline; }
.reg-gate-foot { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); text-align: center; font-size: 0.88rem; color: var(--muted); }
.reg-gate-foot a { color: var(--orange-600); font-weight: 600; text-decoration: none; }
.reg-gate-foot a:hover { text-decoration: underline; }

.gate-verified {
    display: flex;
    gap: 0.5rem;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
    padding: 0.7rem 0.9rem;
    border-radius: 12px;
    background: #effaf3;
    color: #256547;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}
.gate-lead { margin-bottom: 1.1rem; color: var(--muted); line-height: 1.6; }
.gate-taken {
    margin-bottom: 1.1rem;
    padding: 1rem 1.1rem;
    border: 1px solid #f2cbc6;
    border-radius: 14px;
    background: #fff3f1;
    color: #a93636;
    line-height: 1.55;
}
.gate-taken[hidden] { display: none; }
.gate-taken-links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.85rem; }
.gate-taken-links a { text-decoration: none; }
.field-note { display: block; margin-top: 0.3rem; font-size: 0.78rem; color: var(--muted); }
.form-group input[readonly], .form-group select:disabled { background: var(--sand-50); color: var(--muted); cursor: default; opacity: 1; }

@media (max-width: 480px) {
    .reg-gate-box { padding: 1.75rem 1.25rem; border-radius: 20px; }
    .reg-gate-box h2 { font-size: 1.45rem; }
    .gate-taken-links a { flex: 1 1 100%; justify-content: center; }
}
#regGateExists a.btn-submit { text-decoration: none; }
#regGateExists a.reg-gate-linkbtn { text-align: center; text-decoration: none; }
