* { box-sizing: border-box; }

html { color-scheme: light; }

body {
    min-width: 0;
    margin: 0;
    overflow-x: hidden;
    background: #f4f7fb;
    color: #172033;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

button,
input,
select { font: inherit; }

.registration-shell {
    width: min(720px, calc(100% - 24px));
    margin-inline: auto;
}

.registration-header {
    background: #183153;
    color: #fff;
}

.registration-header-inner {
    display: flex;
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-block: 10px;
}

.registration-brand {
    min-width: 0;
    color: #fff;
    font-size: clamp(18px, 5vw, 23px);
    font-weight: 800;
    line-height: 1.1;
    text-decoration: none;
}

.registration-language {
    display: flex;
    min-width: 104px;
    align-items: center;
    gap: 8px;
}

.registration-language label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.registration-language select {
    width: 100%;
    min-height: 44px;
    border: 1px solid #fff;
    border-radius: 8px;
    background: #fff;
    color: #172033;
}

.registration-main { padding: 24px 0 48px; }

.registration-card {
    min-width: 0;
    padding: clamp(20px, 5vw, 40px);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 38px rgba(16, 34, 58, .09);
}

.registration-heading h1,
.registration-step h2,
.registration-success-card h1 { line-height: 1.15; }

.registration-heading h1 {
    margin: 4px 0 10px;
    font-size: clamp(30px, 8vw, 44px);
}

.registration-heading > p:last-child { margin: 0; }

.registration-eyebrow {
    margin: 0;
    color: #21689d;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.registration-progress {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 28px 0;
    padding: 0;
    list-style: none;
}

.registration-progress li {
    min-width: 0;
    color: #697386;
    font-size: 12px;
    text-align: center;
}

.registration-progress span {
    display: grid;
    width: 36px;
    height: 36px;
    margin: 0 auto 5px;
    place-items: center;
    border: 2px solid #b8c2d0;
    border-radius: 50%;
    background: #fff;
    font-weight: 800;
}

.registration-progress b {
    display: block;
    overflow-wrap: anywhere;
}

.registration-progress [aria-current="step"] { color: #183153; }
.registration-progress [aria-current="step"] span {
    border-color: #2774ae;
    background: #2774ae;
    color: #fff;
}

.registration-step h2 { margin: 0 0 20px; font-size: 25px; }

.registration-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.registration-field { min-width: 0; }
.registration-field-full { grid-column: 1 / -1; }

.registration-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
}

.registration-field input {
    width: 100%;
    min-height: 48px;
    padding: 11px 12px;
    border: 1px solid #aeb9c8;
    border-radius: 8px;
    color: #172033;
}

.registration-field input[readonly] { background: #eef2f7; }

.registration-checkbox {
    display: flex;
    min-height: 48px;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    font-weight: 700;
    cursor: pointer;
}

.registration-checkbox input {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    margin: 1px 0 0;
}

.registration-primary,
.registration-secondary,
.registration-start-over,
.registration-review button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
}

.registration-primary {
    margin-top: 24px;
    padding: 11px 20px;
    border: 0;
    background: #ffcf33;
    color: #172033;
}

.registration-primary:disabled { cursor: wait; opacity: .7; }

.registration-secondary {
    margin-top: 24px;
    padding: 10px 18px;
    border: 2px solid #2774ae;
    background: #fff;
    color: #174f79;
}

.registration-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
}

.registration-status,
.registration-notice,
.registration-error { margin-top: 14px; }

.registration-status { color: #41546d; }
.registration-notice {
    padding: 10px 12px;
    border-radius: 8px;
    background: #edf6fd;
    color: #174f79;
}

.registration-error {
    padding: 10px 12px;
    border-left: 4px solid #b42318;
    background: #fff0ee;
    color: #8a1c13;
}

.registration-review { margin: 0; }
.registration-review > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 12px;
    padding: 14px 0;
    border-bottom: 1px solid #dde3ec;
}

.registration-review dt { color: #56657a; font-size: 13px; font-weight: 700; }
.registration-review dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.registration-review button {
    grid-column: 2;
    grid-row: 1 / 3;
    padding: 8px 10px;
    border: 0;
    background: transparent;
    color: #145b8f;
    text-decoration: underline;
}

.registration-start-over {
    margin-top: 30px;
    padding: 8px 4px;
    border: 0;
    background: transparent;
    color: #8a1c13;
    text-decoration: underline;
}

.registration-help { margin: 22px 0 0; }
.registration-help a { color: #145b8f; font-weight: 800; }

.registration-success-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 18px;
}

.registration-success-card {
    width: min(560px, 100%);
    padding: clamp(24px, 7vw, 48px);
    border-radius: 16px;
    background: #fff;
    text-align: center;
    box-shadow: 0 12px 38px rgba(16, 34, 58, .1);
}

.registration-success-mark {
    display: grid;
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    place-items: center;
    border-radius: 50%;
    background: #e4f4e9;
    color: #14733c;
    font-size: 34px;
    font-weight: 800;
}

.registration-number-label { margin-bottom: 4px; font-weight: 700; }
.registration-number {
    margin: 0 0 20px;
    color: #183153;
    font-size: clamp(21px, 6vw, 29px);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.registration-success-card .registration-primary { margin-top: 12px; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid #2774ae;
    outline-offset: 3px;
}

@media (max-width: 520px) {
    .registration-fields { grid-template-columns: 1fr; }
    .registration-field-full { grid-column: auto; }
    .registration-card { border-radius: 12px; }
    .registration-progress b { font-size: 11px; }
    .registration-actions > * { flex: 1 1 130px; }
}

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; }
}
