:root {
    --brand-blue: #171780;
    --brand-red: #cb151d;
    color-scheme: light;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    color: #253247;
    background: #fff;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; padding: 48px 20px; background: #fff; }
.registration-card {
    position: relative;
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    padding: 0 36px 28px;
    border: 1px solid #dcdcea;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 8px #17178003, 0 16px 48px #17178008;
}
.registration-card::before { content: ''; position: absolute; top: -1px; left: 15px; right: 15px; height: 4px; background: linear-gradient(to right, var(--brand-blue) 0 75%, var(--brand-red) 75%); border-radius: 0 0 4px 4px; }
.form-header { padding: 27px 0 23px; border-bottom: 1px solid #e8ecf0; }
.brand-logo { display: block; width: 100%; max-width: 440px; height: auto; margin: 0 auto 14px; }
.form-caption { margin: 7px 0 0; font-size: 10px; font-weight: 600; letter-spacing: 1.6px; color: var(--brand-blue); }
.form-intro { padding: 26px 0 22px; }
h1 { margin: 0 0 12px; color: var(--brand-blue); font-size: 28px; line-height: 1.3; font-weight: 650; letter-spacing: -.8px; }
.form-intro > p { margin: 0; color: #657087; font-size: 13px; line-height: 1.8; }
.form-guidance { display: flex; align-items: center; gap: 12px; margin-top: 19px; padding: 13px 15px; background: #f8f8fd; border: 1px solid #e5e5f2; border-radius: 9px; }
.guidance-mark { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; border: 1px solid #dcdcf0; border-radius: 8px; background: #fff; color: var(--brand-blue); font-size: 14px; font-weight: 650; }
.form-guidance p { margin: 0; color: #657087; font-size: 11px; line-height: 1.8; }
.form-guidance strong { color: var(--brand-blue); font-size: 12px; font-weight: 600; }
.form-intro .required-note { margin-top: 13px; font-size: 11px; }
.required-note span, .required { color: var(--brand-red); }
.required { margin-left: 2px; }
.form-section { min-width: 0; margin: 0 0 24px; padding: 0; border: 0; }
.form-section legend { display: flex; align-items: center; gap: 9px; width: 100%; padding: 0 0 14px; margin-bottom: 18px; border-bottom: 1px solid #e8ecf0; color: var(--brand-blue); font-size: 12px; font-weight: 600; }
.section-number { display: inline-grid; place-items: center; width: 25px; height: 25px; border: 1px solid #e0e0f0; border-radius: 7px; font-size: 10px; font-weight: 600; color: var(--brand-blue); background: #f5f5fc; }
.optional-label { margin-left: auto; color: #7b8593; font-size: 10px; font-weight: 400; }
.optional-personal { margin-top: 18px; }
.optional-personal .field { margin-bottom: 0; }
.field { min-width: 0; margin-bottom: 18px; }
.form-section > .field:last-child { margin-bottom: 0; }
.field label { display: block; margin-bottom: 7px; font-size: 12px; line-height: 1.5; font-weight: 500; color: #4b586b; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.input-wrap { position: relative; }
input, select, textarea {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 11px 12px;
    border: 1px solid #dce1e7;
    border-radius: 8px;
    background: #fff;
    color: #253247;
    font: inherit;
    font-size: 13px;
    line-height: 1.5;
    box-shadow: 0 1px 2px #1e293b03;
    transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 86px; resize: vertical; }
select { padding-right: 24px; }
input::placeholder, textarea::placeholder { color: #a0a8b3; font-size: 12px; }
select:has(option:checked[value=""]) { color: #8a95a3; }
input:hover, select:hover, textarea:hover { border-color: #b6c0cd; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-blue); box-shadow: 0 0 0 3px #17178012; }
.input-prefix { position: absolute; left: 12px; top: 13px; color: #8a95a3; font-size: 12px; pointer-events: none; }
.has-prefix input { padding-left: 38px; }
.field-hint { margin: -10px 0 0; color: #657087; font-size: 11px; line-height: 1.5; }
.submit-button {
    display: flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    margin-top: 6px;
    padding: 12px 16px;
    gap: 12px;
    border: 1px solid var(--brand-red);
    border-radius: 8px;
    background: var(--brand-red);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 3px 8px #cb151d18;
    transition: background .15s;
}
.submit-button:hover { background: #ae1018; border-color: #ae1018; }
.button-arrow { font-size: 18px; line-height: 1; }
.submit-button:disabled { opacity: .6; cursor: wait; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 3px; }
.privacy-note { margin: 16px auto 0; max-width: 390px; color: #657087; font-size: 11px; line-height: 1.8; text-align: center; }
input[aria-invalid], select[aria-invalid], textarea[aria-invalid] { border-color: #b91c1c; }
.field-error { margin: 6px 0 0; color: #b91c1c; font-size: 12px; line-height: 1.5; }
.error-summary { margin-bottom: 22px; padding: 12px; border: 1px solid #e4bcbc; border-radius: 8px; color: #991b1b; font-size: 13px; }
.error-summary p { margin: 5px 0 0; }
.success { padding-top: 28px; text-align: center; }
.success p { margin-bottom: 24px; color: #7b8593; font-size: 14px; line-height: 1.6; }

@media (max-width: 480px) {
    body { padding: 18px 12px; }
    .registration-card { padding: 0 20px 23px; border-radius: 12px; }
    .form-header { padding: 22px 0 20px; }
    .form-intro { padding-top: 22px; }
    h1 { font-size: 25px; }
    .optional-personal { gap: 18px; }
    .field-grid { grid-template-columns: 1fr; gap: 0; }
    input, select, textarea { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}
