:root {
    --brand: #e93434;
    --brand-dark: #c92727;
    --brand-soft: #fff2f2;
    --ink: #20232b;
    --muted: #6f7480;
    --line: #e7e9ee;
    --line-strong: #d9dce3;
    --surface: #ffffff;
    --canvas: #f6f7fa;
    --success: #168a54;
    --success-soft: #edf9f2;
    --danger: #b4232d;
    --danger-soft: #fff0f1;
    --focus: rgba(233, 52, 52, 0.16);
    --shadow: 0 22px 70px rgba(32, 35, 43, 0.09);
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

html {
    background: var(--canvas);
    color: var(--ink);
    font-family: Tahoma, Arial, sans-serif;
    line-height: 1.5;
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    background:
        radial-gradient(circle at 10% 0%, rgba(233, 52, 52, 0.055), transparent 28rem),
        var(--canvas);
}

button,
input,
select,
textarea {
    color: inherit;
    font: inherit;
}

button,
summary,
select,
input[type="checkbox"],
input[type="file"] {
    cursor: pointer;
}

button:focus-visible,
summary:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}

.registration-page {
    width: min(100% - 28px, 820px);
    margin-inline: auto;
    padding-block: 28px 64px;
}

.registration-shell {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.registration-header {
    position: relative;
    padding: 28px 32px 26px;
    border-bottom: 1px solid var(--line);
    text-align: center;
}

.language-nav {
    display: flex;
    justify-content: flex-end;
    min-height: 38px;
}

.language-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 7px 14px;
    border: 1px solid #ffd4d6;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.language-link:hover {
    border-color: var(--brand);
}

.brand-logo {
    display: block;
    width: 150px;
    max-width: 48%;
    height: auto;
    margin: 2px auto 8px;
    object-fit: contain;
}

.eyebrow,
.form-kicker {
    margin: 0 0 7px;
    color: var(--brand-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.025em;
}

.registration-header h1 {
    margin: 0;
    font-size: clamp(1.55rem, 4vw, 2.05rem);
    line-height: 1.35;
}

.registration-subtitle {
    max-width: 630px;
    margin: 10px auto 0;
    color: var(--muted);
    font-size: 0.97rem;
    line-height: 1.9;
}

.important-notice,
.noscript-notice,
.error-summary {
    margin: 22px 28px 0;
    border-radius: 16px;
}

.important-notice {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 16px 17px;
    border: 1px solid #ffd5d7;
    border-inline-start: 4px solid var(--brand);
    background: var(--brand-soft);
}

.notice-icon {
    display: inline-flex;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-weight: 900;
}

.important-notice h2,
.error-summary h2 {
    margin: 0 0 5px;
    font-size: 0.96rem;
}

.important-notice p,
.error-summary p {
    margin: 0;
    color: #6f3a3d;
    font-size: 0.87rem;
    line-height: 1.75;
}

.noscript-notice,
.error-summary {
    padding: 15px 17px;
    border: 1px solid #f1b8bc;
    background: var(--danger-soft);
    color: var(--danger);
}

.error-summary ul {
    margin: 10px 0 0;
    padding-inline-start: 22px;
    font-size: 0.87rem;
    line-height: 1.8;
}

.registration-form {
    padding: 28px;
}

.registration-form[aria-busy="true"] {
    cursor: progress;
}

.honeypot {
    position: absolute !important;
    inset-inline-start: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.form-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.form-kicker {
    margin: 0;
}

.required-hint {
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
}

.required-hint span,
.required-mark {
    color: var(--brand-dark);
}

.form-section {
    margin-bottom: 22px;
    padding: 23px;
    border: 1px solid var(--line);
    border-radius: 19px;
    background: #fff;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 20px;
}

.section-number {
    display: inline-flex;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-weight: 900;
}

.section-heading h2 {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.4;
}

.section-caption {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.65;
}

.form-grid,
.upload-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
}

.account-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 4px;
}

.account-choice {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    min-height: 86px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.account-choice input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.account-choice:has(input:checked) {
    border-color: var(--brand);
    background: var(--brand-soft);
    box-shadow: 0 8px 22px rgba(233, 52, 52, .09);
}

.account-choice:has(input:focus-visible) {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}

.choice-icon {
    display: inline-flex;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #fff;
    font-size: 1.1rem;
}

.account-choice strong,
.account-choice small {
    display: block;
}

.company-block-heading {
    margin-top: 2px;
    padding: 12px 14px;
    border-inline-start: 4px solid var(--brand);
    border-radius: 10px;
    background: var(--brand-soft);
}

.company-block-heading h3 { margin: 0; font-size: .92rem; }
.company-block-heading .field-hint { margin-bottom: 0; }

.account-choice strong {
    margin-bottom: 3px;
    font-size: .86rem;
}

.account-choice small {
    color: var(--muted);
    font-size: .74rem;
    line-height: 1.6;
}

.field {
    min-width: 0;
    margin-bottom: 17px;
}

.form-grid > .field,
.upload-grid > .field,
.form-section > .field:last-child {
    margin-bottom: 0;
}

.field-full {
    grid-column: 1 / -1;
}

.field label,
.service-fieldset legend {
    display: block;
    margin-bottom: 8px;
    font-size: 0.86rem;
    font-weight: 800;
}

.label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.label-row label {
    margin: 0;
}

.optional-badge {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 600;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"],
select,
textarea,
input[type="file"] {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: #fff;
    padding: 12px 13px;
    outline: 0;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

textarea {
    min-height: 105px;
    resize: vertical;
    line-height: 1.65;
}

select[multiple] {
    min-height: 185px;
    padding: 8px;
}

select[multiple] option {
    margin-bottom: 2px;
    border-radius: 7px;
    padding: 8px;
}

input[type="file"] {
    min-height: 50px;
    background: #fafbfc;
    font-size: 0.8rem;
}

input[type="file"]::file-selector-button {
    margin-inline-end: 10px;
    border: 0;
    border-radius: 8px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    padding: 8px 11px;
    font: inherit;
    font-weight: 700;
}

input:hover,
select:hover,
textarea:hover {
    border-color: #c6c9d1;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--focus);
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"],
.service-fieldset[aria-invalid="true"] {
    border-color: var(--danger);
}

input:disabled,
select:disabled,
textarea:disabled {
    cursor: not-allowed;
    background: #f1f2f5;
    color: #8b8f99;
}

.field-hint,
.field-error,
.privacy-note,
.empty-state {
    margin: 7px 0 0;
    font-size: 0.76rem;
    line-height: 1.65;
}

.field-hint,
.privacy-note,
.empty-state {
    color: var(--muted);
}

.field-error {
    color: var(--danger);
    font-weight: 700;
}

.manual-area {
    margin-top: 12px;
    padding: 13px;
    border: 1px dashed #efb1b4;
    border-radius: 12px;
    background: #fffafa;
}

.manual-area label {
    font-size: 0.78rem;
}

.service-fieldset {
    min-width: 0;
    margin: 18px 0;
    padding: 0;
    border: 0;
}

.coverage-picker {
    display: grid;
    gap: 9px;
    max-height: 420px;
    overflow: auto;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fafbfc;
}

.coverage-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 12px;
    padding: 12px 13px;
    border: 1px solid #ffd5d7;
    border-radius: 12px;
    background: var(--brand-soft);
    color: #7f2429;
}

.coverage-note p {
    margin: 0;
    font-size: .77rem;
    line-height: 1.7;
}

.coverage-note-icon {
    display: inline-flex;
    flex: 0 0 25px;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 8px;
    background: #fff;
    color: var(--brand-dark);
    font-weight: 900;
}

.geo-step {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.geo-step > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 46px;
    padding: 11px 13px;
    list-style: none;
    font-size: .82rem;
    font-weight: 800;
}

.geo-step > summary::-webkit-details-marker { display: none; }
.geo-step > summary::after { content: ''; }
.geo-step[open] > summary { color: var(--brand-dark); background: var(--brand-soft); }
.geo-chevron { color: var(--brand-dark); font-size: 1.1rem; line-height: 1; }
.geo-options { display: grid; gap: 8px; padding: 9px; border-top: 1px solid var(--line); }
.geo-city-step { border-color: #eef0f4; }
.geo-city-step > summary { min-height: 40px; font-size: .78rem; }
.area-check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.geo-option { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: .76rem; line-height: 1.5; cursor: pointer; }
.geo-option:hover { border-color: #efb1b4; background: #fffafa; }
.geo-option input { flex: 0 0 auto; width: 17px; height: 17px; accent-color: var(--brand); }
.geo-option:has(input:checked) { border-color: #efb1b4; background: var(--brand-soft); }

.other-area-option {
    border-style: dashed;
    border-color: #efb1b4;
    color: var(--brand-dark);
    font-weight: 800;
}

.custom-service-area-entry {
    grid-column: 1 / -1;
    padding: 12px;
    border: 1px dashed #efb1b4;
    border-radius: 11px;
    background: #fffafa;
}

.custom-service-area-entry label {
    display: block;
    margin-bottom: 7px;
    font-size: .76rem;
    font-weight: 800;
}

.custom-service-area-entry .field-hint {
    margin-bottom: 0;
}

.service-fieldset legend {
    padding: 0;
}

.service-groups {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.service-group {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}

.service-group[open] {
    border-color: #f0babc;
    box-shadow: 0 8px 24px rgba(32, 35, 43, 0.05);
}

.service-group summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 52px;
    padding: 13px 15px;
    list-style: none;
    font-size: 0.88rem;
    font-weight: 800;
    user-select: none;
}

.service-group summary::-webkit-details-marker {
    display: none;
}

.service-group summary::after {
    content: "+";
    flex: 0 0 auto;
    color: var(--brand-dark);
    font-size: 1.25rem;
    line-height: 1;
}

.service-group[open] summary::after {
    content: "−";
}

.service-group-title {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.category-mark {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 5px var(--brand-soft);
}

.service-count {
    margin-inline-start: auto;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 600;
}

.service-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    padding: 4px 14px 15px;
    border-top: 1px solid #f0f1f4;
}

.service-option,
.consent-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
    padding: 11px;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.55;
    transition: border-color 150ms ease, background 150ms ease;
}

.service-option:hover,
.consent-card:hover {
    border-color: #efb1b4;
    background: #fffafa;
}

.service-option input,
.consent-card input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.selection-box {
    display: inline-flex;
    flex: 0 0 20px;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border: 1.5px solid #b9bdc7;
    border-radius: 6px;
    background: #fff;
}

.service-option input:checked + .selection-box,
.consent-card input:checked + .selection-box {
    border-color: var(--brand);
    background: var(--brand);
}

.service-option input:checked + .selection-box::after,
.consent-card input:checked + .selection-box::after {
    content: "✓";
    color: #fff;
    font-size: 0.78rem;
    font-weight: 900;
}

.service-option:has(input:checked),
.consent-card:has(input:checked) {
    border-color: #efb1b4;
    background: var(--brand-soft);
}

.service-option input:focus-visible + .selection-box,
.consent-card input:focus-visible + .selection-box {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}

.catalog-unavailable {
    margin: 0;
    border: 1px dashed var(--line-strong);
    border-radius: 12px;
    padding: 14px;
    text-align: center;
}

.upload-grid {
    align-items: start;
}

.upload-field {
    height: 100%;
    border: 1px dashed #d8dbe2;
    border-radius: 14px;
    background: #fafbfc;
    padding: 14px;
}

.consent-section {
    margin-top: 2px;
}

.consent-card {
    align-items: flex-start;
    padding: 16px;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.8;
}

.privacy-note {
    margin-inline: 4px;
}

.form-actions {
    margin-top: 23px;
    padding-top: 21px;
    border-top: 1px solid var(--line);
}

.submit-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 13px;
    font-weight: 900;
    transition: transform 150ms ease, filter 150ms ease, opacity 150ms ease;
}

.submit-button {
    background: var(--brand);
    box-shadow: 0 12px 26px rgba(233, 52, 52, 0.22);
    color: #fff;
}

.submit-button:hover:not(:disabled) {
    filter: brightness(0.96);
    transform: translateY(-1px);
}

.submit-button:disabled {
    cursor: wait;
    opacity: 0.68;
}

.loading-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 700ms linear infinite;
}

.success-panel {
    padding: 56px 28px;
    text-align: center;
}

.success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--success-soft);
    color: var(--success);
    font-size: 2.15rem;
    font-weight: 900;
    box-shadow: 0 0 0 10px rgba(22, 138, 84, 0.06);
}

.success-panel h2 {
    margin: 0;
    font-size: clamp(1.4rem, 4vw, 1.85rem);
}

.success-copy {
    max-width: 570px;
    margin: 11px auto 24px;
    color: var(--muted);
    line-height: 1.85;
}

.registration-result {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 560px;
    margin: 0 auto 22px;
}

.registration-result div {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fafbfc;
    padding: 14px;
}

.registration-result dt {
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 0.74rem;
}

.registration-result dd {
    overflow-wrap: anywhere;
    margin: 0;
    font-weight: 900;
}

.secondary-button {
    max-width: 560px;
    border: 1px solid #efb1b4;
    background: var(--brand-soft);
    color: var(--brand-dark);
}

.secondary-button:hover {
    border-color: var(--brand);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 680px) {
    .registration-page {
        width: min(100% - 18px, 820px);
        padding-block: 9px 28px;
    }

    .registration-shell {
        border-radius: 20px;
    }

    .registration-header {
        padding: 18px 17px 22px;
    }

    .important-notice,
    .noscript-notice,
    .error-summary {
        margin: 16px 16px 0;
    }

    .registration-form {
        padding: 18px 16px;
    }

    .form-section {
        padding: 18px 15px;
    }

    .form-grid,
    .upload-grid,
    .service-options,
    .registration-result,
    .account-choice-grid {
        grid-template-columns: 1fr;
    }
    .area-check-grid { grid-template-columns: 1fr; }

    .service-group summary {
        align-items: flex-start;
    }

    .service-count {
        display: none;
    }

    .form-intro {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .success-panel {
        padding: 44px 18px;
    }
}

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

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {
    body {
        background: #fff;
    }

    .registration-page {
        width: 100%;
        padding: 0;
    }

    .registration-shell {
        border: 0;
        box-shadow: none;
    }

    .language-nav,
    .form-actions {
        display: none;
    }
}
