/* ==========================================================================
   register.css - supplier registration.

   The page, top to bottom: a top bar that stays on screen, a navy heading band, then one white card
   that overlaps the band. The card first holds the data privacy statement (register-form.css) and,
   once that is accepted, the three-step form. The look matches the rest of the site: navy, gold, white.
   ========================================================================== */

/* An author `display` rule beats the browser's [hidden] { display:none }. This one line keeps every
   hidden element on this page hidden (the upload preview used to show a broken image and a PDF badge
   together because of it). */
[hidden] { display: none !important; }

/* a scrolled-to field must not land under the top bar */
html:has(body.reg-page) { scroll-padding-top: 92px; }

body.reg-page {
    background: #eef2f7;
    color: var(--text-dark);
    min-height: 100vh;
}

/* ------------------------------------------------------------------ top bar */
.reg-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--primary-navy);
}
.reg-bar-inner {
    /* as wide as the site's own header: the way out sits near the left edge, Sign In near the right */
    padding: 11px clamp(16px, 4.5vw, 88px);
    display: flex;
    align-items: center;
    gap: 18px;
}
.reg-back {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 20px 9px 14px;
    border: 1.5px solid var(--accent-gold);
    border-radius: 999px;
    color: var(--accent-gold);
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.reg-back svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.3;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .15s ease;
}
.reg-back:hover,
.reg-back:focus-visible { background: var(--accent-gold); color: var(--primary-navy-dark); }
.reg-back:hover svg,
.reg-back:focus-visible svg { transform: translateX(-3px); }
.reg-back:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

.reg-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding-left: 18px;
    border-left: 1px solid rgba(255, 255, 255, .18);
    color: #ffffff;
}
.reg-brand img {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: #ffffff;
    padding: 2px;
    object-fit: contain;
}
.reg-brand strong { display: block; font-size: 1rem; line-height: 1.1; letter-spacing: -.01em; }
.reg-brand span {
    display: block;
    margin-top: 2px;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--accent-gold);
}
.reg-signin {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #c4d0e2;
    font-size: .88rem;
    text-decoration: none;
    white-space: nowrap;
}
/* "Sign In" is a pill, like the Sign In button of the site header (an underline on an inline <b> was cut by the g) */
.reg-signin b {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border: 1.5px solid var(--accent-gold);
    border-radius: 10px;
    color: var(--accent-gold);
    font-weight: 700;
    line-height: 1.2;
    transition: background-color .15s ease, color .15s ease;
}
.reg-signin:hover b { background: var(--accent-gold); color: var(--primary-navy-dark, #060e1a); }
.reg-signin:focus-visible { outline: none; }
.reg-signin:focus-visible b { outline: 3px solid #ffffff; outline-offset: 2px; }

/* ------------------------------------------------------------- heading band */
.reg-hero {
    padding: 46px 20px 118px;
    text-align: center;
    color: #ffffff;
    background:
        radial-gradient(820px 300px at 82% -30%, rgba(229, 168, 35, .26), transparent 70%),
        linear-gradient(160deg, #13294b 0%, var(--primary-navy) 62%);
}
.reg-kicker {
    margin: 0 0 10px;
    color: var(--accent-gold);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}
.reg-hero h1 {
    margin: 0;
    font-size: clamp(1.9rem, 3.8vw, 2.7rem);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.15;
}
.reg-sub { margin: 12px auto 0; max-width: 640px; color: #b3c1d6; font-size: .95rem; line-height: 1.5; }

.reg-wrap {
    position: relative;
    max-width: 920px;
    margin: -80px auto 0;
    padding: 0 16px;
}

/* ---------------------------------------------------------------- the card */
.reg-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 38px 44px 36px;
    box-shadow: 0 34px 70px -36px rgba(10, 25, 47, .55), 0 0 0 1px rgba(10, 25, 47, .06);
}

/* --------------------------------------------------------------- step rail */
.progressbar {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 0 32px;
    padding: 0 0 28px;
    border-bottom: 1px solid #e6ebf2;
}
.progress-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}
/* the line into a step runs from the circle before it; it turns gold once that step is reached */
.progress-step + .progress-step::before {
    content: '';
    position: absolute;
    top: 19px;
    right: 50%;
    width: 100%;
    height: 3px;
    border-radius: 3px;
    background: #e2e8f0;
    transition: background-color .25s ease;
}
.progress-step.done::before,
.progress-step.current::before { background: var(--accent-gold); }

.step-dot {
    position: relative;
    z-index: 1;
    width: 41px;
    height: 41px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #ffffff;
    border: 3px solid #e2e8f0;
    color: #94a3b8;
    font-size: .95rem;
    font-weight: 800;
    transition: background-color .25s ease, border-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.step-ck {
    display: none;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.step-name { font-size: .84rem; font-weight: 700; line-height: 1.3; color: #94a3b8; max-width: 150px; }

.progress-step.current .step-dot {
    background: var(--primary-navy);
    border-color: var(--primary-navy);
    color: var(--accent-gold);
    box-shadow: 0 0 0 5px rgba(229, 168, 35, .28);
}
.progress-step.done .step-dot {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--primary-navy-dark);
}
.progress-step.done .step-n { display: none; }
.progress-step.done .step-ck { display: block; }
.progress-step.current .step-name,
.progress-step.done .step-name { color: var(--primary-navy); }

/* ------------------------------------------------------------- form steps */
.form-step { display: none; }
.form-step.active { display: block; animation: step-in .28s ease; }
@keyframes step-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}

.step-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -.015em;
    line-height: 1.3;
    color: var(--primary-navy);
}
.step-intro { margin: 0 0 24px; }
.step-desc {
    margin: 10px 0 0;
    padding: 14px 18px;
    border-radius: 12px;
    background: #fff9e8;
    color: #4b5563;
    font-size: .9rem;
    line-height: 1.6;
}
.step-desc strong { color: var(--primary-navy); }

/* a titled group of fields */
.form-section { margin-top: 28px; }
.form-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #64748b;
}
.form-section-title::after { content: ''; flex: 1; height: 1px; background: #e3e9f1; }
.step-title + .form-section { margin-top: 22px; }

/* ----------------------------------------------------------------- fields */
.fgrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 22px;
    align-items: start;
}
.fgrid .span-2 { grid-column: 1 / -1; }
.step-intro + .fgrid { margin-top: 4px; }
.step-title + .form-group { margin-top: 22px; }

.form-group { min-width: 0; }
.form-group > label {
    display: block;
    margin-bottom: 7px;
    font-size: .87rem;
    font-weight: 650;
    line-height: 1.35;
    color: #1e293b;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group select {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    font-size: .95rem;
    font-family: inherit;
    color: var(--text-dark);
    background: #f8fafc;
    border: 1.5px solid #d3dbe6;
    border-radius: 12px;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.form-group select {
    appearance: none;
    padding-right: 42px;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1.5 1.5 7 7l5.5-5.5' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
    text-overflow: ellipsis;
}
.form-group input::placeholder { color: #9aa7ba; }

/* The suggestions of a typed field (public/js/site/suggest.js): drawn under the field, in the form's own style, and
   scrollable, instead of the browser's own datalist pop-up, which cannot be styled and opens where it likes. */
.sg-wrap { position: relative; }
.form-group input.sg-input {
    padding-right: 42px;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1.5 1.5 7 7l5.5-5.5' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}
.sg-list {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 40;
    max-height: 300px;
    margin: 0;
    padding: 6px;
    overflow-y: auto;
    overscroll-behavior: contain;
    list-style: none;
    background: #ffffff;
    border: 1.5px solid #d3dbe6;
    border-radius: 12px;
    box-shadow: 0 14px 32px rgba(15, 23, 42, .16);
}
.sg-list[hidden] { display: none; }
.sg-opt {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: .92rem;
    line-height: 1.35;
    color: var(--text-dark);
    cursor: pointer;
}
.sg-opt:hover, .sg-opt.is-active { background: #eef2f8; }
.sg-opt[aria-selected="true"] { font-weight: 650; color: var(--primary-navy); }
.sg-opt.is-active { outline: 2px solid var(--primary-navy); outline-offset: -2px; }
.form-group input:hover,
.form-group select:hover { border-color: #b5c1d3; }
.form-group input:focus,
.form-group select:focus {
    outline: none;
    background-color: #ffffff;
    border-color: var(--primary-navy);
    box-shadow: 0 0 0 4px rgba(229, 168, 35, .3);
}

/* chosen file: a drop-box with a button, not the browser's bare control */
.form-group input[type="file"] {
    width: 100%;
    padding: 14px;
    font-size: .9rem;
    font-family: inherit;
    color: #475569;
    background: #f8fafc;
    border: 2px dashed #bfcbdb;
    border-radius: 14px;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}
.form-group input[type="file"]:hover { border-color: var(--primary-navy); background: #f2f6fb; }
.form-group input[type="file"]:focus-visible { outline: 3px solid var(--accent-gold); outline-offset: 2px; }
.form-group input[type="file"]::file-selector-button {
    margin-right: 14px;
    padding: 9px 18px;
    border: 0;
    border-radius: 9px;
    background: var(--primary-navy);
    color: #ffffff;
    font-family: inherit;
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
}
.form-group input[type="file"]::file-selector-button:hover { background: var(--primary-navy-light); }

.field-hint { display: block; margin: 7px 0 0; font-size: .8rem; line-height: 1.5; color: var(--text-muted); }
.field-error { display: block; margin-top: 6px; font-size: .8rem; font-weight: 650; color: #dc2626; }
.form-group .input-invalid,
.input-invalid {
    border-color: #ef4444 !important;
    background-color: #fff6f6 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .14) !important;
}

/* the password box and its Show / Hide button */
.pw-field { position: relative; display: flex; }
.pw-field input { flex: 1; padding-right: 78px !important; }
.pw-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    padding: 7px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--primary-navy);
    font-size: .84rem;
    font-weight: 700;
    cursor: pointer;
}
.pw-toggle:hover { background: #e8edf4; }
.pw-toggle:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 1px; }


/* ---------------------------------------- tick boxes and the numbers (step 2) */
.plain-fieldset,
.form-block {
    min-width: 0;
    margin: 28px 0 0;
    padding: 0;
    border: 0;
}
.form-block { padding-top: 24px; border-top: 1px solid #e3e9f1; }
/* a legend sits ON a fieldset's top edge; floated, it becomes an ordinary heading that carries the divider */
.plain-fieldset legend {
    float: left;
    width: 100%;
    padding: 24px 0 0;
    border-top: 1px solid #e3e9f1;
    margin-bottom: 4px;
    font-size: 1rem;
    font-weight: 750;
    color: var(--primary-navy);
}
.plain-fieldset legend .opt { font-weight: 500; font-size: .86rem; color: #64748b; }
.plain-fieldset legend + * { clear: both; }
.plain-fieldset > .field-hint { margin: 0 0 14px; }

/* Questions A and B of step 2: each has a letter in a circle, so they read as two different questions: A is one
   answer (who owns or runs the business), B is any number of groups. */
.q-block:not(fieldset) { margin: 28px 0 0; padding-top: 24px; border-top: 1px solid #e3e9f1; }
.q-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    margin: 0 0 12px;
    font-size: 1.05rem;
    font-weight: 750;
    color: var(--primary-navy);
}
.plain-fieldset legend.q-title { display: flex; }
.q-letter {
    flex: none;
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-navy);
    color: #ffffff;
    font-size: .85rem;
    font-weight: 800;
}
/* the box that opens under a list when "Other (type it)" is picked */
.other-box { margin-top: 10px; }
.other-box[hidden], .pick-desc[hidden] { display: none; }
.other-box label { font-size: .88rem; }
/* what the picked classification means, under the list (the options themselves show only the name) */
.pick-desc {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    background: #f1f5fb;
    color: #334155;
}

/* The lists (dropdowns) of the form open as a rounded menu in the form's own style, instead of the browser's plain
   grey list. This is the browser's own select made stylable (appearance: base-select), so the keyboard, a screen reader
   and the phone's touch still work as with any list. A browser that does not have it yet shows its usual list. */
@supports (appearance: base-select) {
    .form-group select,
    .form-group select::picker(select) { appearance: base-select; }
    .form-group select { display: flex; align-items: center; }
    .form-group select::picker-icon { display: none; }     /* the form's own arrow (background image) stays */
    .form-group select::picker(select) {
        margin-top: 6px;
        padding: 6px;
        max-height: 340px;
        overflow-y: auto;
        background: #ffffff;
        border: 1.5px solid #d3dbe6;
        border-radius: 14px;
        box-shadow: 0 14px 32px rgba(15, 23, 42, .16);
    }
    .form-group select option {
        padding: 11px 12px;
        border-radius: 9px;
        font-size: .95rem;
        line-height: 1.35;
        color: var(--text-dark);
        cursor: pointer;
    }
    .form-group select option[value=""] { display: none; }  /* "Choose one" is the empty field, not an answer */
    .form-group select option:hover,
    .form-group select option:focus-visible { background: #eef2f8; outline: none; }
    .form-group select option:checked { background: #fdf3dc; color: var(--primary-navy); font-weight: 650; }
    .form-group select option::checkmark { order: 1; margin-left: auto; color: var(--primary-navy); }
}

.check-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}
.check-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 13px 15px;
    border: 1.5px solid #e1e7ef;
    border-radius: 13px;
    background: #ffffff;
    line-height: 1.35;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.check-row:hover { border-color: #b9c5d6; background: #f8fafc; }
.check-row:has(input:checked) {
    border-color: var(--primary-navy);
    background: #fff9e8;
    box-shadow: inset 0 0 0 1px var(--primary-navy);
}
.check-row:has(input:focus-visible) { outline: 3px solid var(--accent-gold); outline-offset: 2px; }
.check-row input { flex: none; width: 19px; height: 19px; margin-top: 2px; accent-color: var(--primary-navy); cursor: pointer; }
.check-row strong { display: block; font-size: .92rem; font-weight: 650; color: #0f172a; }
.check-row small { display: block; margin-top: 2px; font-size: .8rem; font-weight: 400; line-height: 1.45; color: #64748b; }

.workforce-plain { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.workforce-plain input[type="number"] { height: 54px; font-size: 1.15rem; font-weight: 700; }

.headcount-feedback {
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: 11px;
    font-size: .84rem;
    line-height: 1.45;
}
.headcount-feedback.error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; font-weight: 600; }
.headcount-feedback.info { background: #f1f5f9; border: 1px solid #e2e8f0; color: #172a45; font-weight: 550; }

/* "Do you need any help?" (its markup is shared with the supplier profile) */
.assist-box { padding: 22px 22px 20px !important; margin-top: 26px; border: 1px solid #e3e9f1 !important; border-radius: 16px; background: #f8fafc; }
.assist-note-label { display: block; margin: 16px 0 6px; font-size: .87rem; font-weight: 650; color: #1e293b; }
.assist-box input[type="text"] {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    font: inherit;
    font-size: .93rem;
    background: #ffffff;
    border: 1.5px solid #d3dbe6;
    border-radius: 12px;
}
.assist-box input[type="text"]:focus { outline: none; border-color: var(--primary-navy); box-shadow: 0 0 0 4px rgba(229, 168, 35, .3); }

/* ------------------------------------------------------------ upload preview */
.upload-preview {
    margin-top: 14px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid #dbe3ee;
    border-radius: 14px;
    background: #f8fafc;
}
.upload-preview img {
    width: 104px;
    height: 104px;
    flex-shrink: 0;
    display: block;
    border-radius: 11px;
    border: 1px solid #d3dbe6;
    object-fit: cover;
    background: #ffffff;
}
.upload-preview-icon {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--primary-navy);
    color: var(--accent-gold);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .05em;
}
.upload-preview-doc { display: flex; align-items: center; gap: 12px; min-width: 0; }
.upload-preview-meta { flex: 1; min-width: 0; font-size: .86rem; color: #334155; overflow-wrap: anywhere; }
.upload-preview-remove {
    flex-shrink: 0;
    padding: 7px 11px;
    border: 0;
    border-radius: 8px;
    background: none;
    color: #dc2626;
    font-size: .84rem;
    font-weight: 700;
    cursor: pointer;
}
.upload-preview-remove:hover { background: #fee2e2; }

/* ----------------------------------------------------------- summary (step 3) */
.sum-card {
    margin-top: 28px;
    overflow: hidden;
    border: 1px solid #dbe3ee;
    border-radius: 16px;
    background: #ffffff;
}
.sum-title {
    margin: 0;
    padding: 14px 22px;
    background: var(--primary-navy);
    color: #ffffff;
    font-size: .98rem;
    font-weight: 750;
}
.sum-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.sum-grid > div { padding: 12px 22px; border-bottom: 1px solid #edf1f6; min-width: 0; }
.sum-grid > div:nth-child(odd):not(.span-2) { border-right: 1px solid #edf1f6; }
.sum-grid > div.span-2 { grid-column: 1 / -1; }
.sum-grid > div:last-child { border-bottom: 0; }
.sum-grid dt { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #64748b; }
.sum-grid dd { margin: 2px 0 0; font-size: .93rem; font-weight: 600; color: var(--text-dark); overflow-wrap: anywhere; }

/* ----------------------------------------------------------------- buttons */
.btn-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid #e3e9f1;
}
.reg-page .btn {
    height: 50px;
    padding: 0 28px;
    gap: 10px;
    border-radius: 13px;
    font-size: .96rem;
    font-weight: 700;
    letter-spacing: 0;
}
.reg-page .btn:focus-visible { outline: 3px solid var(--accent-gold); outline-offset: 3px; }
.reg-page .btn:disabled { opacity: .6; cursor: progress; transform: none !important; box-shadow: none !important; }

.btn-next {
    background: linear-gradient(180deg, #14305a 0%, var(--primary-navy) 100%);
    color: #ffffff !important;
    box-shadow: 0 10px 22px -10px rgba(10, 25, 47, .7);
}
.btn-next:hover:not(:disabled) { filter: brightness(1.12); }
.btn-next::after,
.btn-prev::before {
    content: '';
    width: 17px;
    height: 17px;
    background: currentColor;
    -webkit-mask: var(--arrow) center / contain no-repeat;
    mask: var(--arrow) center / contain no-repeat;
}
.btn-next::after {
    --arrow: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
    color: var(--accent-gold);
}
.btn-prev::before {
    --arrow: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M11 18l-6-6 6-6'/%3E%3C/svg%3E");
}
.btn-prev {
    background: #ffffff;
    color: #334155;
    border-color: #c9d3e0;
}
.btn-prev:hover:not(:disabled) { background: #f4f7fb; border-color: var(--primary-navy); color: var(--primary-navy); }

.btn-submit {
    background: var(--accent-gold);
    color: var(--primary-navy-dark) !important;
    box-shadow: 0 10px 22px -10px rgba(201, 146, 24, .8);
}
.btn-submit:hover:not(:disabled) { background: var(--accent-gold-hover); }

/* -------------------------------------------------------- result dialog (not alert()) */
/* register.js opens it by clearing the `hidden` attribute, so the CSS keys off that. */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(10, 25, 47, .6);
    backdrop-filter: blur(3px);
}
.modal-backdrop[hidden] { display: none; }
.modal-card {
    width: 100%;
    max-width: 480px;
    padding: 34px 30px 26px;
    text-align: center;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 30px 70px rgba(10, 25, 47, .4);
    animation: step-in .2s ease;
}
.modal-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.7rem;
    font-weight: 800;
}
.modal-icon.ok   { background: #f0fdf4; color: #15803d; }
.modal-icon.err  { background: #fee2e2; color: #b91c1c; }
.modal-icon.warn { background: #fef3c7; color: #b45309; }
.modal-card h3 { margin: 0 0 10px; font-size: 1.2rem; font-weight: 800; color: var(--primary-navy); }
.modal-card p { font-size: .92rem; line-height: 1.6; color: var(--text-muted); }
.modal-list {
    margin: 16px 0 0;
    padding: 13px 16px;
    text-align: left;
    list-style: none;
    font-size: .86rem;
    color: #7f1d1d;
    background: #fff5f5;
    border-radius: 10px;
}
.modal-list li { margin-bottom: 6px; line-height: 1.5; }
.modal-list li:last-child { margin-bottom: 0; }
.modal-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.reg-page .btn-modal {
    height: 46px;
    padding: 0 30px;
    border-radius: 12px;
    background: var(--primary-navy);
    color: #ffffff;
    font-size: .93rem;
}
.reg-page .btn-modal:hover { background: var(--primary-navy-light); }

/* BIGGER TEXT (2026-11-29 dry run, ALIA-02). The breakpoints below count screen pixels, but "Larger" and "Largest" text
   (html[data-a11y-text]) make the bar wider than they expect: at 150 percent on a 720-pixel screen the brand ran into
   "Already registered?" and Sign In was cut off the edge. The bar may wrap to a second line instead, and with bigger
   text "Sign In" stands alone, as it does on a phone. */
.reg-bar-inner { flex-wrap: wrap; row-gap: 8px; }
html[data-a11y-text="2"] .reg-signin span,
html[data-a11y-text="3"] .reg-signin span { display: none; }

/* ----------------------------------------------------------- smaller screens */
@media (max-width: 820px) {
    .reg-card { padding: 30px 26px 28px; border-radius: 18px; }
    .reg-hero { padding: 36px 18px 104px; }
    .reg-wrap { margin-top: -70px; }
}
@media (max-width: 700px) {
    .reg-bar-inner { gap: 12px; padding-top: 9px; padding-bottom: 9px; }
    .reg-brand { display: none; }
    .reg-back { padding: 8px 16px 8px 12px; font-size: .86rem; }
    .reg-signin { font-size: .82rem; }
    .reg-signin span { display: none; }
    .reg-signin b { padding: 7px 14px; }
    .reg-hero { padding: 30px 16px 96px; }
    .reg-wrap { padding: 0 12px; }
    .reg-card { padding: 24px 18px 24px; }
    .fgrid,
    .check-list,
    .sum-grid { grid-template-columns: 1fr; }
    .fgrid .span-2 { grid-column: auto; }
    .sum-grid > div:nth-child(odd):not(.span-2) { border-right: 0; }
    .workforce-plain { grid-template-columns: 1fr; }
    .step-name { font-size: .72rem; }
    .step-dot { width: 36px; height: 36px; }
    .progress-step + .progress-step::before { top: 16px; }
    .step-title { font-size: 1.2rem; }
    .btn-group { flex-direction: column-reverse; align-items: stretch; }
    .btn-group .btn { width: 100%; }
    .btn-group > div:empty { display: none; }
    .upload-preview { flex-direction: column; align-items: flex-start; }
}

/* the e-mail confirmation code (the panel's RSC of 5 October 2026) */
.email-verify { margin-top: 8px; }
.email-verify .email-verify-btn { background: #fff; border: 1.5px solid var(--primary-navy, #0a192f); border-radius: 8px; padding: 7px 14px; font-family: inherit; font-size: .85rem; font-weight: 700; line-height: 1.2; color: var(--primary-navy, #0a192f); cursor: pointer; }
.email-verify .email-verify-btn:hover:not(:disabled) { background: var(--primary-navy, #0a192f); color: #fff; }
.email-verify .email-verify-btn:disabled { opacity: .55; cursor: not-allowed; }
.email-verify-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.email-verify-row label { font-size: .85rem; font-weight: 700; flex-basis: 100%; }
.email-verify-row input { width: 9.5em; max-width: 100%; letter-spacing: .25em; font-variant-numeric: tabular-nums; }
.email-verify-row label { margin: 0; }
.email-verify .is-ok { color: #166534; font-weight: 700; }
.email-verify .is-bad { color: #b91c1c; }
.field-hint.is-ok { color: #166534; font-weight: 700; }
.field-hint.is-bad { color: #b91c1c; }
