:root {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: #242a33;
    background: #f2f3f0;
    font-synthesis: none;
    --blue: #3269df;
    --muted: #68726d;
    --border: #d9dfda;
    --field-surface: #f4f6f3;
}

* { box-sizing: border-box; }
body { margin: 0; height: 100vh; height: 100dvh; overflow: hidden; position: relative; isolation: isolate; }
.registration-backdrop { position: fixed; inset: 0; z-index: 0; background: #f2f3f0; }
.registration-map-base { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.registration-map { position: absolute; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; }
.registration-page { position: relative; z-index: 1; display: flex; flex-direction: column; height: calc(100vh - 24px); height: calc(100dvh - 24px); overflow: hidden; }
.registration-form-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; scroll-padding-block: 16px; }
button, input, select { font: inherit; }
a { color: var(--blue); text-underline-offset: 3px; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.registration-header {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    max-width: 1120px;
    width: calc(100% - 48px);
    margin: 20px auto 24px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fffffff5;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 4px 16px #28382e0a;
}
.registration-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    padding: 4px 6px;
    border-radius: 6px;
}
.registration-brand img { display: block; width: 126px; height: 36px; }
.registration-header nav { display: flex; align-items: center; gap: 8px; }
.registration-header nav a { min-height: 44px; padding: 10px 16px; font-size: 13px; }
.registration-content {
    max-width: 642px;
    position: relative;
    margin: 0 auto 24px;
    padding: 36px 40px 40px;
    background: #fdfefcf7;
    border: 1px solid #d6ddd6;
    border-radius: 16px;
    box-shadow: 0 16px 48px #28382e14, 0 2px 6px #28382e08;
}
.registration-content h1 { margin: 0 0 24px; font-size: 27px; font-weight: 600; letter-spacing: -.7px; text-align: center; }
.registration-steps {
    display: flex;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
}
.registration-steps li {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    color: var(--muted);
    font-size: 13px;
    min-width: 0;
    padding: 0;
}
.registration-steps li:not(:last-child)::after { content: ""; position: absolute; top: 13px; left: calc(50% + 20px); width: calc(100% - 40px); height: 3px; border-radius: 2px; background: #dce1e6; }
.step-number { display: grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px; border: 1px solid #cbd2da; border-radius: 50%; background: #fff; color: #737d89; font-size: 12px; font-weight: 600; }
.registration-steps [aria-current=step] { color: #242a33; font-weight: 600; }
.registration-steps [aria-current=step] .step-number, .registration-steps .is-complete .step-number { color: #fff; background: var(--blue); border-color: var(--blue); }
.registration-steps [aria-current=step] .step-number { box-shadow: 0 0 0 4px #3269df16; }
.registration-steps .is-complete { color: var(--blue); }
.registration-steps li.is-complete::after { background: var(--blue); }
.registration-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.field-wide { grid-column: 1 / -1; }
.registration-field { min-width: 0; }
.registration-field label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 500; }
.optional { color: var(--muted); font-size: 12px; font-weight: 400; margin-left: 4px; }
.registration-field input, .registration-field select {
    width: 100%;
    height: 50px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 14px;
    background: var(--field-surface);
    color: #242a33;
    font-size: 16px;
}
.registration-field input::placeholder { color: #88938c; }
.registration-field input:hover:not(:disabled):not(:focus):not([aria-invalid=true]), .registration-field select:hover:not(:disabled):not(:focus):not([aria-invalid=true]) { border-color: #b7c2b9; }
.registration-field select { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: url('/img/widget/arrow_down_gray.svg'); background-repeat: no-repeat; background-position: right 16px center; background-size: 12px 12px; }
.registration-field input:focus, .registration-field select:focus { outline: none; background-color: #fff; border-color: var(--blue); box-shadow: 0 0 0 2px #3269df12; }
.registration-field [aria-invalid=true] { border-color: #c33340; }
.year-input { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; height: 50px; border: 1px solid var(--border); border-radius: 8px; background: var(--field-surface); }
.year-input:focus-within { border-color: var(--blue); box-shadow: 0 0 0 2px #3269df12; }
.year-input:has([aria-invalid=true]) { border-color: #c33340; }
.registration-field .year-input input { height: 100%; min-width: 0; padding: 0 4px; border: 0; border-radius: 0; background: transparent; text-align: center; line-height: normal; appearance: textfield; -moz-appearance: textfield; }
.registration-field .year-input input:focus { box-shadow: none; }
.year-input input::-webkit-inner-spin-button, .year-input input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.year-input button { display: grid; place-items: center; height: 100%; min-height: 0; padding: 0; border: 0; background: transparent; color: var(--muted); line-height: 1; }
.year-input button svg { display: block; width: 16px; height: 16px; }
.year-input button:first-child { border-right: 1px solid var(--border); border-radius: 7px 0 0 7px; }
.year-input button:last-child { border-left: 1px solid var(--border); border-radius: 0 7px 7px 0; }
.year-input button:hover:not(:disabled) { background: #3269df0d; color: var(--blue); }
.year-input button:disabled { cursor: not-allowed; opacity: .4; }
.input-wrap { position: relative; }
.input-wrap:has(.password-toggle) input { padding-right: 50px; }
.password-toggle { position: absolute; top: 1px; bottom: 1px; right: 1px; width: 46px; display: grid; place-items: center; border: 0; border-radius: 4px; background: transparent; }
.password-toggle:hover { background: #f3f5f8; }
.password-toggle svg { grid-area: 1 / 1; color: var(--muted); }
.password-visible-icon { display: none; }
.password-toggle[aria-pressed=true] .password-visible-icon { display: block; }
.password-toggle[aria-pressed=true] .password-hidden-icon { display: none; }
.field-hint { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 6px 0 0; }
.field-error { color: #b32d38; font-size: 12px; line-height: 1.5; margin: 6px 0 0; }
.form-message { background: #fff4f4; border-left: 2px solid #c33340; padding: 12px; margin: 0 0 20px; font-size: 13px; line-height: 1.5; color: #982c35; }
.form-actions { display: flex; gap: 12px; margin-top: 28px; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 24px; border-radius: 8px; font-size: 15px; font-weight: 600; text-decoration: none; }
.primary-button { color: white; background: var(--blue); border: 1px solid var(--blue); }
.primary-button:hover { background: #2659c3; }
.secondary-button { background: white; color: #343b46; border: 1px solid var(--border); }
.secondary-button:hover { background: var(--field-surface); }
.form-actions .primary-button { flex: 1; }
.vehicle-card { position: relative; min-width: 0; margin: 0 0 24px; border: 1px solid var(--border); border-radius: 10px; padding: 18px; background: #ffffffb3; }
.vehicle-card legend { padding: 0 6px; font-size: 14px; font-weight: 500; }
.remove-vehicle { display: block; margin: -4px 0 14px auto; padding: 4px 0; color: #b32d38; border: 0; background: none; font-size: 12px; }
.add-vehicle { display: block; padding: 4px 0; background: none; border: 0; color: var(--blue); font-size: 14px; }
.terms { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 24px 0 0; }
.company-name { margin: -16px 0 24px; color: var(--muted); font-size: 14px; }
.completion-description { font-size: 14px; line-height: 1.6; }
.completion-tasks { margin: 24px 0; }
.completion-tasks a { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid #eceef1; color: #343b46; text-decoration: none; font-size: 14px; }
.completion-tasks a:hover { color: var(--blue); }

@media (min-width: 601px) and (max-height: 850px) {
    .registration-header { margin: 12px auto 16px; padding: 8px 16px; }
    .registration-content { margin: 0 auto 16px; padding: 24px 32px; }
    .registration-content h1 { margin-bottom: 20px; }
    .registration-steps { margin-bottom: 24px; }
    .registration-grid { gap: 16px 20px; }
    .form-actions { margin-top: 20px; }
}

@media (max-width: 600px) {
    .registration-header { width: calc(100% - 24px); margin: 12px auto; padding: 8px; border-radius: 12px; }
    .registration-form-scroll { --registration-map-space: clamp(92px, calc(34vw - 12px), 136px); position: relative; padding-top: var(--registration-map-space); }
    .registration-backdrop { position: absolute; bottom: auto; height: clamp(190px, 60vw, 280px); pointer-events: none; }
    .registration-brand { padding: 4px; }
    .registration-brand img { width: 112px; height: 32px; }
    .registration-header nav { gap: 6px; }
    .registration-header nav a { padding: 8px 10px; font-size: 12px; }
    .registration-map-base, .registration-map { top: 0; height: 100%; }
    .registration-map { opacity: 1; }
    .registration-stop-icon { transform: scale(3); transform-origin: 0 0; }
    .registration-car-icon { transform: scale(2.5); transform-origin: 0 0; }
    .registration-map [data-ride-path] { stroke-width: 5px; }
    .registration-map mask path { stroke-width: 12px; }
    .registration-content { margin: 0 8px 24px; padding: 24px 20px; border-radius: 22px; background: #fdfefc; }
    .registration-content h1 { font-size: 24px; margin-bottom: 24px; }
    .registration-steps { margin-bottom: 24px; }
    .registration-steps li { font-size: 12px; gap: 6px; }
    .registration-grid { grid-template-columns: 1fr; gap: 18px; }
    .field-wide { grid-column: auto; }
    .registration-field input, .registration-field select { font-size: 16px; height: 50px; }
    .form-actions .primary-button { flex: 1; }
    .vehicle-card { padding: 16px; }
}

@media (max-width: 600px) and (max-height: 650px) {
    .registration-form-scroll { --registration-map-space: 60px; }
}

@media (max-width: 600px) and (max-height: 500px) {
    .registration-form-scroll { --registration-map-space: 0px; }
}

.registration-field .iti { width: 100%; }
.registration-field .iti input[type="tel"] { padding-left: 104px !important; padding-right: 12px; }
.registration-field .iti__selected-flag { width: 94px; padding: 0 10px; border-right: 1px solid var(--border); border-radius: 8px 0 0 8px; background: transparent; font-size: 13px; }
.registration-field .iti__selected-dial-code { margin-left: 7px; }
.registration-field .iti__arrow { margin-left: auto; width: 6px; height: 6px; border: 0; border-right: 1.5px solid #69717d; border-bottom: 1.5px solid #69717d; transform: translateY(-2px) rotate(45deg); }
.registration-field .iti__arrow--up { transform: translateY(1px) rotate(225deg); }
.registration-field .iti__country-list { z-index: 5; width: min(320px, calc(100vw - 48px)); max-height: 240px; margin-top: 6px; padding: 6px; border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 24px #242a331a; white-space: normal; font-size: 13px; }
.registration-field .iti__country { padding: 9px 8px; border-radius: 4px; }
.registration-field .iti__country.iti__highlight { background: #edf2ff; }
