.scd-ma {
    --scd-bg: #eef6f8;
    --scd-panel-blue: #c5dff1;
    --scd-panel-blue-strong: #a8cadc;
    --scd-panel-white: #ffffff;
    --scd-text: #104f5a;
    --scd-text-soft: #386f77;
    --scd-line: #2d6972;
    --scd-focus: #0d7d87;
    --scd-success-bg: #e7f6ef;
    --scd-success-text: #185b3c;
    --scd-error-bg: #fff0ed;
    --scd-error-text: #873327;
    color: var(--scd-text);
    container-type: inline-size;
    font-family: inherit;
    left: auto;
    margin: 0 auto;
    max-width: none;
    position: relative;
    transform: translateX(var(--scd-align-offset, 0px));
    width: min(1220px, calc(100vw - 32px));
}

.scd-ma *,
.scd-ma *::before,
.scd-ma *::after {
    box-sizing: border-box;
}

.scd-ma__form {
    background: var(--scd-bg);
    box-shadow: 0 18px 45px rgba(16, 79, 90, 0.08);
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
}

.scd-ma {
    scroll-margin-top: 110px;
}

.scd-ma__layout {
    display: grid;
    grid-template-columns: minmax(330px, 1.08fr) minmax(300px, 1fr) minmax(300px, 1fr);
    min-height: 720px;
}

.scd-ma__required-note {
    color: var(--scd-text-soft);
    font-size: 0.9rem;
    margin: 0;
    padding: 0;
    text-align: left;
}

.scd-ma__required {
    color: #b33626;
    display: inline;
    font-weight: 800;
}

.scd-ma__linked-heading {
    text-align: center;
}

.scd-ma__panel {
    padding: 42px 40px;
    min-width: 0;
}

.scd-ma__panel--blue {
    background-color: var(--scd-panel-blue);
}

.scd-ma__panel--white {
    background-color: var(--scd-panel-white);
}

.scd-ma h2,
.scd-ma h3,
.scd-ma p,
.scd-ma fieldset {
    margin-top: 0;
}

.scd-ma h2 {
    color: #003f4b;
    font-size: clamp(2.35rem, 4.5vw, 3.25rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    margin-bottom: 42px;
    text-transform: uppercase;
}

.scd-ma h3 {
    color: #004a55;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.25;
    margin-bottom: 22px;
}

.scd-ma p,
.scd-ma legend,
.scd-ma label,
.scd-ma summary {
    font-size: 1rem;
    letter-spacing: 0;
    line-height: 1.55;
}

.scd-ma__club-copy,
.scd-ma__copy,
.scd-ma__sepa-copy {
    color: var(--scd-text);
    margin-bottom: 30px;
}

.scd-ma__choice-group {
    border: 0;
    margin-bottom: 24px;
    padding: 0;
}

.scd-ma__choice-group legend {
    color: var(--scd-text);
    margin-bottom: 10px;
}

.scd-ma__choice-group label,
.scd-ma__check {
    align-items: flex-start;
    cursor: pointer;
    display: flex;
    gap: 10px;
}

.scd-ma__choice-group label + label {
    margin-top: 6px;
}

.scd-ma input[type="radio"],
.scd-ma input[type="checkbox"] {
    accent-color: var(--scd-focus);
    flex: 0 0 auto;
    height: 20px;
    margin-top: 3px;
    width: 20px;
}

.scd-ma__field {
    display: block;
    margin-bottom: 18px;
}

.scd-ma__field > span {
    color: var(--scd-text);
    display: block;
    font-size: 0.98rem;
    line-height: 1.35;
    margin-bottom: 6px;
}

.scd-ma__field input,
.scd-ma__field textarea {
    background: transparent;
    border: 0;
    border-bottom: 2px solid rgba(45, 105, 114, 0.78);
    border-radius: 0;
    color: var(--scd-text);
    display: block;
    font: inherit;
    min-height: 42px;
    outline: 0;
    padding: 8px 2px;
    width: 100%;
}

.scd-ma__panel--white .scd-ma__field input,
.scd-ma__panel--white .scd-ma__field textarea {
    border-bottom-color: rgba(45, 105, 114, 0.68);
}

.scd-ma__field textarea {
    min-height: 96px;
    resize: vertical;
}

.scd-ma__field input:focus,
.scd-ma__field textarea:focus {
    border-bottom-color: var(--scd-focus);
    box-shadow: 0 2px 0 var(--scd-focus);
}

.scd-ma__copy p {
    margin-bottom: 12px;
}

.scd-ma__check {
    background: rgba(255, 255, 255, 0.52);
    border: 1px solid rgba(45, 105, 114, 0.18);
    border-radius: 8px;
    color: var(--scd-text);
    margin: 22px 0;
    padding: 14px;
}

.scd-ma__panel--white .scd-ma__check {
    background: #f4fafb;
}

.scd-ma__signature {
    margin: 22px 0 28px;
}

.scd-ma__signature-label {
    color: var(--scd-text);
    display: block;
    font-size: 0.98rem;
    line-height: 1.35;
    margin-bottom: 8px;
}

.scd-ma__signature-canvas {
    background: #ffffff;
    border: 2px solid rgba(45, 105, 114, 0.52);
    border-radius: 8px;
    display: block;
    height: 132px;
    touch-action: none;
    width: 100%;
}

.scd-ma__signature-clear {
    appearance: none;
    background: transparent;
    border: 0;
    color: var(--scd-text);
    cursor: pointer;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    margin-top: 8px;
    padding: 0;
    text-decoration: underline;
}

.scd-ma__signature-clear:hover,
.scd-ma__signature-clear:focus {
    color: #003f4b;
}

.scd-ma__privacy {
    border-top: 1px solid rgba(45, 105, 114, 0.18);
    margin-top: 28px;
    padding-top: 18px;
}

.scd-ma__privacy summary {
    color: #004a55;
    cursor: pointer;
    font-weight: 700;
}

.scd-ma__privacy div {
    color: var(--scd-text-soft);
    font-size: 0.92rem;
    margin-top: 14px;
    max-height: 360px;
    overflow: auto;
    padding-right: 8px;
}

.scd-ma__privacy p {
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 12px;
}

.scd-ma__dues {
    background: rgba(255, 255, 255, 0.48);
    border: 1px solid rgba(45, 105, 114, 0.18);
    border-radius: 8px;
    display: grid;
    gap: 5px;
    margin: 22px 0 28px;
    padding: 16px;
}

.scd-ma__dues strong {
    color: #004a55;
    margin-bottom: 3px;
}

.scd-ma__calculated {
    color: #003f4b;
    font-weight: 800;
    margin-top: 6px;
}

.scd-ma__actions {
    align-items: center;
    background: #f8fcfd;
    border-top: 1px solid rgba(45, 105, 114, 0.18);
    display: flex;
    gap: 18px;
    justify-content: space-between;
    padding: 24px 40px;
}

.scd-ma__result {
    scroll-margin-top: 110px;
}

.scd-ma__result .scd-ma__notice {
    border-radius: 0;
    margin: 0;
}

.scd-ma__actions p {
    color: var(--scd-text-soft);
    font-size: 0.95rem;
    margin: 0;
}

.scd-ma__actions button {
    appearance: none;
    background: #004a55;
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    flex: 0 0 auto;
    font: inherit;
    font-weight: 800;
    line-height: 1.2;
    min-height: 48px;
    padding: 13px 22px;
}

.scd-ma__actions button:hover,
.scd-ma__actions button:focus {
    background: #0d6873;
}

.scd-ma__actions button:focus {
    outline: 3px solid rgba(13, 125, 135, 0.35);
    outline-offset: 2px;
}

.scd-ma__notice {
    border-radius: 8px;
    font-weight: 700;
    margin-bottom: 16px;
    padding: 14px 18px;
}

.scd-ma__notice--success {
    background: var(--scd-success-bg);
    color: var(--scd-success-text);
}

.scd-ma__notice--error {
    background: var(--scd-error-bg);
    color: var(--scd-error-text);
}

.scd-ma__trap {
    height: 1px;
    left: -9999px;
    opacity: 0;
    position: absolute;
    top: auto;
    width: 1px;
}

@media (max-width: 1080px) {
    .scd-ma__layout {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .scd-ma h2 {
        font-size: clamp(2.35rem, 8vw, 3rem);
        margin-bottom: 30px;
    }
}

@container (max-width: 1080px) {
    .scd-ma__layout {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .scd-ma h2 {
        font-size: clamp(2.35rem, 8vw, 3rem);
        margin-bottom: 30px;
    }
}

@media (max-width: 680px) {
    .scd-ma__panel {
        padding: 30px 20px;
    }

    .scd-ma h2 {
        font-size: 2.35rem;
    }

    .scd-ma__actions {
        align-items: stretch;
        flex-direction: column;
        padding: 22px 20px;
    }

    .scd-ma__actions button {
        width: 100%;
    }
}

@container (max-width: 680px) {
    .scd-ma__panel {
        padding: 30px 20px;
    }

    .scd-ma h2 {
        font-size: 2.35rem;
    }

    .scd-ma__actions {
        align-items: stretch;
        flex-direction: column;
        padding: 22px 20px;
    }

    .scd-ma__actions button {
        width: 100%;
    }
}
