/* Linguist sign-up (registervendor.aspx) - on top of lt-auth.css (the sign-in card and background). Phone first: one
   column, 16px text in every field (an iPhone zooms into smaller text), 46px fields and buttons; from 1000px the "What
   happens next" panel sits next to the card. The steps, code boxes and address finder are driven by
   assets/js/lt-register.js through classes and data-state - nothing here is page-specific elsewhere. House style: the
   ltriks-ui skill. */

.reg-wrap { position: relative; z-index: 1; min-height: 100vh; padding: 32px 16px 40px; }
.reg-layout {
    display: grid;
    grid-template-columns: minmax(0, 620px) 300px;
    gap: 24px;
    justify-content: center;
    align-items: start;
    max-width: 944px;
    margin: 0 auto;
}
.reg-layout > * { min-width: 0; }

.reg-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .25), 0 2px 6px rgba(0, 0, 0, .10);
    padding: 30px 32px 24px;
    color: #1a2944;
}
.reg-logo { text-align: center; margin-bottom: 14px; }
    .reg-logo img { max-height: 56px; max-width: 220px; }
.reg-title { text-align: center; font-size: 23px; font-weight: 700; margin: 0 0 6px; color: #1a2944; line-height: 1.25; }
.reg-sub { text-align: center; color: #5b6b84; font-size: 14px; margin: 0 0 20px; }

/* ---- progress: three dots joined by a line ---- */
.reg-progress { display: flex; list-style: none; margin: 0 0 22px; padding: 0; counter-reset: none; }
    .reg-progress li {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        position: relative;
        font-size: 12px;
        font-weight: 600;
        color: #5b6b84;
        text-align: center;
    }
        .reg-progress li + li:before {
            content: "";
            position: absolute;
            top: 15px;
            right: 50%;
            width: 100%;
            height: 2px;
            background: #e2e7f0;
            z-index: 0;
        }
        .reg-progress li.is-done + li:before, .reg-progress li.is-done + li.is-active:before { background: #2c6bd1; }
.reg-dot {
    position: relative;
    z-index: 1;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef1f6;
    color: #6c7a90;
    font-weight: 700;
    font-size: 14px;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #e2e7f0;
}
.reg-progress li.is-active { color: #1a2944; }
    .reg-progress li.is-active .reg-dot { background: #2c6bd1; color: #fff; box-shadow: 0 0 0 4px rgba(44, 107, 209, .18); }
.reg-progress li.is-done { color: #1e7e48; }
    .reg-progress li.is-done .reg-dot { background: #1e7e48; color: #fff; box-shadow: none; font-size: 0; }
        .reg-progress li.is-done .reg-dot:before { content: "\f00c"; font-family: FontAwesome; font-size: 13px; }

/* ---- steps ---- */
.reg-step { display: none; }
    .reg-step.is-current { display: block; animation: regIn .18s ease-out; }
@keyframes regIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reg-step.is-current { animation: none; } }
.reg-step-title { font-size: 18px; font-weight: 700; margin: 0 0 4px; color: #1a2944; }
    .reg-step-title:focus { outline: none; }
.reg-lead { color: #5b6b84; font-size: 14px; margin: 0 0 18px; }
.reg-group {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: #5b6b84;
    margin: 8px 0 12px;
    padding-top: 14px;
    border-top: 1px solid #eef1f6;
}

/* ---- fields ---- */
.reg-field { margin: 0 0 16px; border: 0; padding: 0; min-width: 0; }
fieldset.reg-field > legend { border: 0; margin: 0 0 6px; padding: 0; width: auto; }
.reg-label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 700; color: #34495e; }
.reg-opt { font-weight: 400; color: #5b6b84; }
.reg-sublabel { display: block; margin: 0 0 4px; font-size: 12px; font-weight: 600; color: #5b6b84; }
.reg-half { max-width: calc(50% - 6px); }
.reg-card .form-control {
    height: 46px;
    border: 1px solid #d6dce8;
    border-radius: 8px;
    font-size: 15px;
    box-shadow: none;
    color: #1a2944;
    background-color: #fff;
    transition: border-color .15s, box-shadow .15s;
}
    .reg-card .form-control:focus { border-color: #2c6bd1; box-shadow: 0 0 0 3px rgba(44, 107, 209, .15); outline: none; }
    .reg-card .form-control.required,
    .reg-card .select2-container .select2-selection.required { border-color: #d9534f !important; box-shadow: 0 0 0 3px rgba(217, 83, 79, .12) !important; }
    .reg-card .form-control[readonly] { background: #f6f8fb; }
.reg-card select.form-control { padding-right: 28px; }
.reg-card input[type=date].form-control { line-height: 1.2; }
.reg-hint { font-size: 13px; color: #5b6b84; margin-top: 6px; }
.field-error { display: none; margin-top: 6px; color: #a8201a; font-size: 13px; font-weight: 600; }
    .field-error.show { display: block; }
    .field-error a { color: #a8201a; text-decoration: underline; }
.reg-summary { margin-bottom: 16px; }

.reg-row { display: flex; gap: 8px; align-items: stretch; }
    /* bootstrap gives a field width:100% - as a flex item it must share the line (basis 0), or it wraps under the
       country code on a phone */
    .reg-row > .form-control { flex: 1 1 0%; width: 1%; min-width: 0; }
.reg-grid { display: grid; gap: 0 12px; }
.reg-grid-2 { grid-template-columns: 1fr 1fr; }
.reg-grid-name { grid-template-columns: 110px 1fr 1fr; gap: 8px; }

/* ---- buttons ---- */
.reg-btn {
    flex: 0 0 auto;
    height: 46px;
    padding: 0 16px;
    border-radius: 8px;
    border: 1px solid #c9d2e3;
    background: #fff;
    color: #1a2944;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}
    .reg-btn:hover, .reg-btn:focus { background: #f4f6fa; color: #1a2944; }
    .reg-btn.is-primary { background: #2c6bd1; border-color: #2c6bd1; color: #fff; }
        .reg-btn.is-primary:hover, .reg-btn.is-primary:focus { background: #225aaf; color: #fff; }
    .reg-btn[disabled] { opacity: .6; cursor: not-allowed; }
    .reg-btn.is-busy { cursor: progress; }
.reg-link {
    background: none;
    border: 0;
    padding: 4px 0;
    color: #2c6bd1;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
}
    .reg-link:hover { text-decoration: underline; }
    .reg-link[disabled] { color: #5b6b84; cursor: default; text-decoration: none; }
.reg-links { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; color: #5b6b84; margin-top: 6px; }
/* a finger needs 44px: the small text links get room around them on touch screens */
@media (pointer: coarse) {
    .reg-link { min-height: 44px; padding: 10px 6px; }
    .reg-links { gap: 0 6px; }
}

.reg-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 22px; padding-top: 18px; border-top: 1px solid #eef1f6; }
    .reg-actions .btn-login { width: auto; min-width: 150px; padding: 0 22px; }
    .reg-actions .btn-login.is-secondary { margin-right: auto; min-width: 0; }

/* ---- the code boxes (data-state on .reg-field: "" | sent | confirmed | skipped; data-skip="1" offers carrying on) ---- */
.reg-codebox, .reg-done, .reg-skip { display: none; }
.reg-field[data-state=sent] .reg-codebox { display: block; margin-top: 12px; padding: 14px; background: #f6f8fb; border: 1px solid #e2e7f0; border-radius: 10px; }
.reg-field[data-state=confirmed] .reg-done,
.reg-field[data-state=skipped] .reg-done { display: flex; }
.reg-field[data-state=confirmed] .reg-row > .reg-btn,
.reg-field[data-state=skipped] .reg-row > .reg-btn,
.reg-field[data-state=sent] .reg-row > .reg-btn[data-send] { display: none; }
.reg-field[data-skip="1"] .reg-skip { display: block; margin-top: 4px; }
.reg-field[data-state=confirmed] .reg-skip, .reg-field[data-state=skipped] .reg-skip { display: none; }
.reg-field[data-state=confirmed] .reg-hint, .reg-field[data-state=skipped] .reg-hint, .reg-field[data-state=sent] .reg-hint { display: none; }
.reg-msg { margin: 0 0 10px; font-size: 13px; color: #34495e; }
.reg-status { margin: -4px 0 10px; font-size: 13px; color: #5b6b84; }
    .reg-status:empty { display: none; }
    .reg-status.is-ok { color: #1e7e48; }
    .reg-status.is-bad { color: #a8201a; font-weight: 600; }
.reg-code {
    max-width: 190px;
    font-size: 22px !important;
    letter-spacing: 6px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}
    .reg-code::placeholder { letter-spacing: 0; font-size: 15px; color: #8a99b3; }
    .reg-code::-webkit-input-placeholder { letter-spacing: 0; font-size: 15px; color: #8a99b3; }
.reg-done {
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1e7e48;
}
    .reg-done .fa { font-size: 18px; }
    .reg-done .reg-link { margin-left: auto; }
.reg-field[data-state=skipped] .reg-done { color: #846109; }

/* ---- country code in front of the mobile: the face shows flag + code, the real select lies over it (taps open the
   phone's own list) ---- */
.reg-dial { position: relative; flex: 0 0 auto; width: 104px; }
.reg-dial-face {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 46px;
    padding: 0 10px;
    border: 1px solid #d6dce8;
    border-radius: 8px;
    background: #fff;
    font-size: 15px;
    color: #1a2944;
    white-space: nowrap;
    overflow: hidden;
}
    .reg-dial-face .fa { margin-left: auto; color: #8a99b3; }
.reg-flag { width: 20px; height: 15px; border-radius: 2px; flex: 0 0 auto; background-size: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.reg-dial-select {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;   /* not "inset": iOS before 14.5 ignores it, and taps would miss the list */
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    font-size: 16px;
    border: 0;
}
.reg-dial:focus-within .reg-dial-face { border-color: #2c6bd1; box-shadow: 0 0 0 3px rgba(44, 107, 209, .15); }
.reg-field[data-state=confirmed] .reg-dial, .reg-field[data-state=skipped] .reg-dial { pointer-events: none; opacity: .75; }

/* ---- gender as chips ---- */
.reg-chips { display: flex; flex-wrap: wrap; gap: 8px; }
    .reg-chips input[type=radio] { position: absolute; opacity: 0; width: 1px; height: 1px; }
    .reg-chips label {
        display: inline-flex;
        align-items: center;
        height: 46px;
        padding: 0 16px;
        margin: 0;
        border: 1px solid #d6dce8;
        border-radius: 999px;
        background: #fff;
        font-weight: 600;
        font-size: 14px;
        color: #34495e;
        cursor: pointer;
    }
    .reg-chips input[type=radio]:checked + label { background: #eef4ff; border-color: #2c6bd1; color: #1d4fa3; }
    .reg-chips input[type=radio]:focus-visible + label { outline: 2px solid #2c6bd1; outline-offset: 2px; }

/* ---- address finder ---- */
.reg-finder-box { position: relative; }
    .reg-finder-box > .fa { position: absolute; left: 14px; top: 16px; color: #8a99b3; pointer-events: none; z-index: 2; }
    .reg-finder-box .form-control { padding-left: 38px; }
.reg-finder-list {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 50px;
    z-index: 20;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    background: #fff;
    border: 1px solid #d6dce8;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(16, 24, 40, .18);
    max-height: 300px;
    overflow-y: auto;
}
    .reg-finder-list.is-open { display: block; }
    .reg-finder-list li { padding: 10px 14px; cursor: pointer; line-height: 1.35; }
        .reg-finder-list li.is-active, .reg-finder-list li:hover { background: #eef4ff; }
        .reg-finder-list li strong { display: block; font-size: 14px; color: #1a2944; }
        .reg-finder-list li span { display: block; font-size: 12px; color: #6c7a90; }
        .reg-finder-list li.is-note { cursor: default; color: #6c7a90; font-size: 13px; }
            .reg-finder-list li.is-note:hover { background: none; }
        .reg-finder-list li.is-google { cursor: default; text-align: right; font-size: 11px; color: #8a99b3; padding-top: 4px; padding-bottom: 4px; }
            .reg-finder-list li.is-google:hover { background: none; }
.reg-address.is-collapsed { display: none; }

/* ---- tick boxes ---- */
.reg-checks { margin-bottom: 14px; }
.reg-check { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 10px; font-weight: 400; font-size: 14px; color: #34495e; cursor: pointer; }
    .reg-check input[type=checkbox] { width: 20px; height: 20px; margin: 0; flex: 0 0 auto; accent-color: #2c6bd1; }
    .reg-check > span:last-child { padding-top: 1px; }
    .reg-check.is-terms { font-weight: 600; }
/* the US text-message wording under the "text me" box (lined up with the box's text: 20px box + 10px gap) */
.reg-sms-terms { margin: -4px 0 10px 30px; font-size: 12.5px; line-height: 1.45; color: #5b6b84; }

/* the box only bots fill in */
.reg-hp { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

.reg-signin { text-align: center; margin: 18px 0 0; font-size: 14px; color: #5b6b84; }

/* ---- select2 (native language) in the card's look ---- */
.reg-card .select2-container .select2-selection--single { height: 46px; border: 1px solid #d6dce8; border-radius: 8px; }
.reg-card .select2-container .select2-selection--single .select2-selection__rendered { line-height: 44px; padding-left: 12px; color: #1a2944; font-size: 15px; }
.reg-card .select2-container .select2-selection--single .select2-selection__arrow { height: 44px; }
.reg-card .select2-container--focus .select2-selection--single,
.reg-card .select2-container--open .select2-selection--single { border-color: #2c6bd1; box-shadow: 0 0 0 3px rgba(44, 107, 209, .15); }
.select2-container--open .select2-dropdown { border-color: #d6dce8; border-radius: 8px; overflow: hidden; }
.select2-search--dropdown .select2-search__field { height: 40px; font-size: 16px; border-radius: 6px; }
.select2-results__option { padding: 9px 12px; }

/* ---- the panel beside the card ---- */
.reg-aside {
    background: rgba(255, 255, 255, .96);
    border-radius: 12px;
    padding: 22px 22px 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
    color: #34495e;
    position: sticky;
    top: 24px;
}
.reg-aside-title { font-size: 15px; font-weight: 700; margin: 0 0 12px; color: #1a2944; }
.reg-next { list-style: none; margin: 0; padding: 0; counter-reset: regnext; }
    .reg-next li { counter-increment: regnext; position: relative; padding: 0 0 14px 38px; font-size: 13px; line-height: 1.45; }
        .reg-next li:before {
            content: counter(regnext);
            position: absolute;
            left: 0;
            top: 0;
            width: 26px;
            height: 26px;
            border-radius: 50%;
            background: #eef4ff;
            color: #2c6bd1;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
        }
        .reg-next li strong { display: block; color: #1a2944; font-size: 14px; }
.reg-aside-note { margin: 4px 0 0; padding-top: 12px; border-top: 1px solid #eef1f6; font-size: 12px; color: #6c7a90; }

/* ---- narrower screens ---- */
@media (max-width: 999px) {
    .reg-layout { grid-template-columns: minmax(0, 620px); }
    .reg-aside { position: static; }
}
@media (max-width: 767px) {
    .reg-card .form-control, .reg-dial-face { font-size: 16px; }
    .reg-code { font-size: 22px !important; }
}
@media (max-width: 560px) {
    .reg-half { max-width: none; }
    .reg-wrap { padding: 16px 10px 28px; }
    .reg-card { padding: 22px 16px 18px; border-radius: 10px; }
    .reg-title { font-size: 20px; }
    .reg-grid-2 { grid-template-columns: 1fr; }
    .reg-grid-name { grid-template-columns: 1fr 1fr; }
        .reg-grid-name > div:first-child { grid-column: 1 / -1; max-width: 50%; }
    .reg-actions { flex-direction: column-reverse; }
        .reg-actions .btn-login, .reg-actions .btn-login.is-secondary { width: 100%; margin: 0; }
    /* the code button under the field when the row would be too tight */
    .reg-field[data-channel] > .reg-row { flex-wrap: wrap; }
        .reg-field[data-channel] > .reg-row > .reg-btn { flex: 1 1 100%; }
    .reg-codebox .reg-row > .reg-code { max-width: none; }
    .reg-aside { padding: 18px 16px 14px; }
}
@media (max-width: 360px) {
    .reg-dial { width: 92px; }
    .reg-progress .reg-dot-text { font-size: 11px; }
}
