.ddm-registration-prefill,
.ddm-registration {
    --ddm-registration-border: rgba(33, 37, 41, 0.14);
    --ddm-registration-muted: rgba(33, 37, 41, 0.72);
    --ddm-registration-panel: rgba(248, 249, 250, 0.92);
    --ddm-registration-focus: rgba(13, 110, 253, 0.18);
    --ddm-registration-surface: var(--bs-body-bg, #fff);
    --ddm-registration-color: var(--bs-body-color, #212529);
    --ddm-registration-shadow: rgba(15, 23, 42, 0.08);
}

[data-bs-theme="dark"] .ddm-registration-prefill,
[data-bs-theme="dark"] .ddm-registration {
    --ddm-registration-border: rgba(248, 249, 250, 0.18);
    --ddm-registration-muted: rgba(248, 249, 250, 0.72);
    --ddm-registration-panel: rgba(248, 249, 250, 0.06);
    --ddm-registration-focus: rgba(110, 168, 254, 0.24);
    --ddm-registration-surface: #111827;
    --ddm-registration-color: #f1f5f9;
    --ddm-registration-shadow: rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] .ddm-registration-prefill,
[data-theme="dark"] .ddm-registration,
body.dark .ddm-registration-prefill,
body.dark .ddm-registration {
    --ddm-registration-border: rgba(248, 249, 250, 0.18);
    --ddm-registration-muted: rgba(248, 249, 250, 0.72);
    --ddm-registration-panel: rgba(248, 249, 250, 0.06);
    --ddm-registration-focus: rgba(110, 168, 254, 0.24);
    --ddm-registration-surface: #111827;
    --ddm-registration-color: #f1f5f9;
    --ddm-registration-shadow: rgba(0, 0, 0, 0.28);
}

@media (prefers-color-scheme: dark) {
    html[data-bs-theme="auto"] .ddm-registration-prefill,
    html[data-bs-theme="auto"] .ddm-registration {
        --ddm-registration-border: rgba(248, 249, 250, 0.18);
        --ddm-registration-muted: rgba(248, 249, 250, 0.72);
        --ddm-registration-panel: rgba(248, 249, 250, 0.06);
        --ddm-registration-focus: rgba(110, 168, 254, 0.24);
        --ddm-registration-surface: #111827;
        --ddm-registration-color: #f1f5f9;
        --ddm-registration-shadow: rgba(0, 0, 0, 0.28);
    }
}

.ddm-registration-prefill {
    width: min(100%, 760px);
    margin: clamp(1.5rem, 4vw, 3rem) auto clamp(1rem, 3vw, 2rem);
    padding: clamp(1rem, 3vw, 1.5rem);
    border: 1px solid var(--ddm-registration-border);
    border-radius: 8px;
    background: var(--ddm-registration-surface);
    color: var(--ddm-registration-color);
    box-shadow: 0 0.75rem 2rem var(--ddm-registration-shadow);
}

.ddm-registration-prefill .lead,
.ddm-registration-prefill p {
    margin-bottom: 0.75rem;
}

.ddm-registration-prefill form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: end;
}

.ddm-registration-prefill .form-control,
.ddm-registration-prefill .btn {
    min-height: 3rem;
}

.ddm-registration {
    margin-top: clamp(1.5rem, 4vw, 3rem);
    margin-bottom: clamp(2rem, 5vw, 4rem);
}

.ddm-registration > [class*="col-"] {
    width: 100%;
}

.ddm-registration-header {
    display: grid;
    gap: 0.35rem;
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
}

.ddm-registration-kicker {
    margin: 0;
    color: var(--bs-primary);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.ddm-registration-title {
    margin: 0;
    color: var(--ddm-registration-color);
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 750;
    line-height: 1.12;
}

.ddm-registration-subtitle {
    max-width: 760px;
    margin: 0;
    color: var(--ddm-registration-muted);
    font-size: 1rem;
}

.ddm-registration-form {
    padding: clamp(1rem, 3vw, 1.75rem);
    border: 1px solid var(--ddm-registration-border);
    border-radius: 8px;
    background: var(--ddm-registration-surface);
    color: var(--ddm-registration-color);
    box-shadow: 0 1rem 2.5rem var(--ddm-registration-shadow);
}

.ddm-registration-prefill p,
.ddm-registration-form p:not(.ddm-registration-review),
.ddm-registration-form h3,
.ddm-registration-form h4 {
    color: var(--ddm-registration-color);
}

.ddm-registration-form hr {
    margin: 1.5rem 0;
    border-color: var(--ddm-registration-border);
    opacity: 1;
}

.ddm-registration-grid {
    row-gap: 1.5rem;
}

.ddm-registration-column {
    display: flex;
    flex-direction: column;
}

.ddm-registration-section-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 1rem;
    color: var(--ddm-registration-color);
    font-size: 1.05rem;
    font-weight: 750;
    line-height: 1.25;
}

.ddm-registration-section-title::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: var(--bs-primary);
    flex: 0 0 auto;
}

.ddm-registration-subsection {
    margin-top: 1.35rem;
}

.ddm-registration-form label:not(.form-check-label) {
    margin-bottom: 0.35rem;
    color: var(--ddm-registration-color);
    font-size: 0.93rem;
    font-weight: 650;
}

.ddm-registration-form .form-control,
.ddm-registration-form .form-select,
.ddm-registration-form select.form-control {
    min-height: 3rem;
    margin-bottom: 0.85rem !important;
    padding: 0.68rem 0.82rem !important;
    border-color: var(--ddm-registration-border);
    border-radius: 8px;
    background-color: var(--ddm-registration-surface);
    color: var(--ddm-registration-color);
}

.ddm-registration-form textarea.form-control {
    min-height: 7rem;
}

.ddm-registration-form .form-control:focus,
.ddm-registration-form select.form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.22rem var(--ddm-registration-focus);
}

.ddm-registration-choice-panel,
.ddm-registration-info,
.ddm-registration-final .alert,
.ddm-registration-form .alert-light {
    border: 1px solid var(--ddm-registration-border);
    border-radius: 8px;
    background: var(--ddm-registration-panel);
    color: var(--ddm-registration-color);
}

.ddm-registration-choice-panel {
    padding: 1rem;
    margin-bottom: 1.25rem;
}

.ddm-registration-choice-panel label:first-child {
    margin-bottom: 0.65rem;
}

.ddm-registration-form .form-check-inline {
    display: inline-flex;
    align-items: center;
    min-height: 2.25rem;
    margin: 0 0.45rem 0.55rem 0;
    padding: 0.42rem 0.72rem;
    border: 1px solid var(--ddm-registration-border);
    border-radius: 8px;
    background: var(--ddm-registration-surface);
}

.ddm-registration-form .form-check-inline .form-check-input {
    margin-left: 0;
    margin-right: 0.45rem;
}

.ddm-registration-form input[type="radio"]:checked + .form-check-label,
.ddm-registration-form input[type="checkbox"]:checked + .form-check-label {
    color: var(--bs-primary);
    font-weight: 700;
}

.ddm-registration-form .alert input[type="checkbox"],
.ddm-registration-form .alert input[type="radio"] {
    width: 1.15rem;
    height: 1.15rem;
    margin-right: 0.35rem;
    vertical-align: -0.18rem;
}

.ddm-registration-info {
    padding: 1rem;
    margin: 1.25rem 0;
}

.ddm-registration-info .lead {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 750;
}

.ddm-registration-final {
    margin-top: 1.5rem;
}

.ddm-registration-review {
    margin: 1rem 0;
    color: var(--bs-danger);
    font-weight: 650;
}

.ddm-registration-submit {
    min-height: 3.25rem;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 750;
}

.ddm-registration #mimo_eu_info {
    display: inline-block;
    margin: 0.1rem 0 0.55rem;
    color: var(--ddm-registration-muted);
    font-size: 0.92rem;
}

.ddm-registration .is-invalid,
.ddm-registration .was-validated :invalid {
    scroll-margin-top: 6rem;
}

html[data-bs-theme="dark"] .ddm-registration-prefill,
html[data-bs-theme="dark"] .ddm-registration-form,
[data-theme="dark"] .ddm-registration-prefill,
[data-theme="dark"] .ddm-registration-form,
body.dark .ddm-registration-prefill,
body.dark .ddm-registration-form {
    background: #111827 !important;
    color: #f1f5f9 !important;
    border-color: rgba(248, 249, 250, 0.18) !important;
}

html[data-bs-theme="dark"] .ddm-registration-title,
html[data-bs-theme="dark"] .ddm-registration-section-title,
html[data-bs-theme="dark"] .ddm-registration-form h3,
html[data-bs-theme="dark"] .ddm-registration-form h4,
html[data-bs-theme="dark"] .ddm-registration-form label:not(.form-check-label),
html[data-bs-theme="dark"] .ddm-registration-form p:not(.ddm-registration-review),
html[data-bs-theme="dark"] .ddm-registration-prefill p,
[data-theme="dark"] .ddm-registration-title,
[data-theme="dark"] .ddm-registration-section-title,
[data-theme="dark"] .ddm-registration-form h3,
[data-theme="dark"] .ddm-registration-form h4,
[data-theme="dark"] .ddm-registration-form label:not(.form-check-label),
[data-theme="dark"] .ddm-registration-form p:not(.ddm-registration-review),
[data-theme="dark"] .ddm-registration-prefill p,
body.dark .ddm-registration-title,
body.dark .ddm-registration-section-title,
body.dark .ddm-registration-form h3,
body.dark .ddm-registration-form h4,
body.dark .ddm-registration-form label:not(.form-check-label),
body.dark .ddm-registration-form p:not(.ddm-registration-review),
body.dark .ddm-registration-prefill p {
    color: #f1f5f9 !important;
}

html[data-bs-theme="dark"] .ddm-registration-subtitle,
html[data-bs-theme="dark"] .ddm-registration #mimo_eu_info,
[data-theme="dark"] .ddm-registration-subtitle,
[data-theme="dark"] .ddm-registration #mimo_eu_info,
body.dark .ddm-registration-subtitle,
body.dark .ddm-registration #mimo_eu_info {
    color: #a7b4c6 !important;
}

html[data-bs-theme="dark"] .ddm-registration-choice-panel,
html[data-bs-theme="dark"] .ddm-registration-info,
html[data-bs-theme="dark"] .ddm-registration-final .alert,
html[data-bs-theme="dark"] .ddm-registration-form .alert-light,
html[data-bs-theme="dark"] .ddm-registration-form .form-check-inline,
[data-theme="dark"] .ddm-registration-choice-panel,
[data-theme="dark"] .ddm-registration-info,
[data-theme="dark"] .ddm-registration-final .alert,
[data-theme="dark"] .ddm-registration-form .alert-light,
[data-theme="dark"] .ddm-registration-form .form-check-inline,
body.dark .ddm-registration-choice-panel,
body.dark .ddm-registration-info,
body.dark .ddm-registration-final .alert,
body.dark .ddm-registration-form .alert-light,
body.dark .ddm-registration-form .form-check-inline {
    background: #0f172a !important;
    color: #f1f5f9 !important;
    border-color: rgba(248, 249, 250, 0.18) !important;
}

@media (prefers-color-scheme: dark) {
    html[data-bs-theme="auto"] .ddm-registration-prefill,
    html[data-bs-theme="auto"] .ddm-registration-form {
        background: #111827 !important;
        color: #f1f5f9 !important;
        border-color: rgba(248, 249, 250, 0.18) !important;
    }

    html[data-bs-theme="auto"] .ddm-registration-title,
    html[data-bs-theme="auto"] .ddm-registration-section-title,
    html[data-bs-theme="auto"] .ddm-registration-form h3,
    html[data-bs-theme="auto"] .ddm-registration-form h4,
    html[data-bs-theme="auto"] .ddm-registration-form label:not(.form-check-label),
    html[data-bs-theme="auto"] .ddm-registration-form p:not(.ddm-registration-review),
    html[data-bs-theme="auto"] .ddm-registration-prefill p {
        color: #f1f5f9 !important;
    }

    html[data-bs-theme="auto"] .ddm-registration-subtitle,
    html[data-bs-theme="auto"] .ddm-registration #mimo_eu_info {
        color: #a7b4c6 !important;
    }

    html[data-bs-theme="auto"] .ddm-registration-choice-panel,
    html[data-bs-theme="auto"] .ddm-registration-info,
    html[data-bs-theme="auto"] .ddm-registration-final .alert,
    html[data-bs-theme="auto"] .ddm-registration-form .alert-light,
    html[data-bs-theme="auto"] .ddm-registration-form .form-check-inline {
        background: #0f172a !important;
        color: #f1f5f9 !important;
        border-color: rgba(248, 249, 250, 0.18) !important;
    }
}

@media (max-width: 767.98px) {
    .ddm-registration-prefill form {
        grid-template-columns: 1fr;
    }

    .ddm-registration-form {
        padding: 1rem;
    }

    .ddm-registration-title {
        font-size: 1.65rem;
    }
}
