.community-form-section {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 64px 24px;
    overflow: visible;
    background: #ffffff;
    box-sizing: border-box;
    clear: both;
}

    .community-form-section .wizard-form {
        position: relative;
        display: block;
        width: 100%;
        max-width: 900px;
        height: auto;
        min-height: 0;
        max-height: none;
        margin: 0 auto;
        padding: 0;
        overflow: visible;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        box-sizing: border-box;
        transform: none;
    }

        .community-form-section .wizard-form *,
        .community-form-section .wizard-form *::before,
        .community-form-section .wizard-form *::after {
            box-sizing: border-box;
        }

        .community-form-section .wizard-form .wizard-header {
            position: relative;
            width: 100%;
            max-width: 900px;
            margin: 0 auto 32px;
        }

        .community-form-section .wizard-form .wizard-kicker {
            margin: 0 0 6px;
            font-size: 13px;
            font-weight: 700;
            letter-spacing: 0.1em;
            text-transform: uppercase;
        }

        .community-form-section .wizard-form .wizard-header h2 {
            margin: 0 0 18px;
            font-size: clamp(26px, 4vw, 42px);
            line-height: 1.1;
        }

        .community-form-section .wizard-form .wizard-progress {
            width: 100%;
            height: 8px;
            overflow: hidden;
            background: #e8e8e8;
            border-radius: 999px;
        }

        .community-form-section .wizard-form .wizard-progress-bar {
            width: 8.333%;
            height: 100%;
            background: #111;
            border-radius: inherit;
            transition: width 0.25s ease;
        }

        .community-form-section .wizard-form .wizard-step-text {
            margin: 10px 0 0;
            font-size: 14px;
            opacity: 0.7;
        }

        .community-form-section .wizard-form .wizard-step {
            position: relative;
            display: none;
            width: 100%;
            height: auto;
            min-height: 0;
            max-height: none;
            overflow: visible;
        }

            .community-form-section .wizard-form .wizard-step.is-active {
                display: block;
                animation: communityWizardFade 0.2s ease;
            }

@keyframes communityWizardFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.community-form-section .wizard-form .form-grid {
    display: grid;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.community-form-section .wizard-form .field,
.community-form-section .wizard-form .checkbox-section {
    min-width: 0;
}

.community-form-section .wizard-form .field-full {
    grid-column: 1 / -1;
}

.community-form-section .wizard-form .field label,
.community-form-section .wizard-form .field legend,
.community-form-section .wizard-form .checkbox-section legend {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
}

    .community-form-section .wizard-form .field label span,
    .community-form-section .wizard-form .field legend span,
    .community-form-section .wizard-form .checkbox-section legend span {
        color: #c62828;
    }

.community-form-section .wizard-form .field input,
.community-form-section .wizard-form .field select,
.community-form-section .wizard-form .field textarea {
    display: block;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #cfcfcf;
    border-radius: 10px;
    background: #fff;
    font: inherit;
    color: inherit;
    outline: none;
    appearance: auto;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.community-form-section .wizard-form .field textarea {
    min-height: 48px;
    height: 48px;
    resize: vertical;
    overflow-y: auto;
}

.community-form-section .wizard-form .field select[multiple] {
    min-height: 180px;
}

.community-form-section .wizard-form .field input:focus,
.community-form-section .wizard-form .field select:focus,
.community-form-section .wizard-form .field textarea:focus {
    border-color: #111;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.community-form-section .wizard-form .field input.is-invalid,
.community-form-section .wizard-form .field select.is-invalid,
.community-form-section .wizard-form .field textarea.is-invalid,
.community-form-section .wizard-form .checkbox-section.is-invalid {
    border-color: #c62828;
}

.community-form-section .wizard-form .field small {
    display: block;
    margin-top: 7px;
    font-size: 12px;
    opacity: 0.7;
}

.community-form-section .wizard-form .checkbox-section,
.community-form-section .wizard-form .radio-field {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    border: 0;
}

.community-form-section .wizard-form .checkbox-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

    .community-form-section .wizard-form .checkbox-grid label,
    .community-form-section .wizard-form .radio-row label {
        display: flex;
        align-items: flex-start;
        gap: 9px;
        min-height: 44px;
        margin: 0;
        padding: 11px 12px;
        border: 1px solid #d8d8d8;
        border-radius: 10px;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
    }

    .community-form-section .wizard-form .checkbox-grid input,
    .community-form-section .wizard-form .radio-row input {
        flex: 0 0 auto;
        width: 16px;
        height: 16px;
        min-height: 16px;
        margin: 2px 0 0;
        padding: 0;
    }

.community-form-section .wizard-form .radio-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

    .community-form-section .wizard-form .radio-row label {
        min-width: 120px;
    }

.community-form-section .wizard-form .group-error {
    display: none;
    margin: 8px 0 0;
    color: #c62828;
    font-size: 13px;
}

.community-form-section .wizard-form .checkbox-section.is-invalid .group-error {
    display: block;
}

.community-form-section .wizard-form .wizard-actions {
    position: static;
    display: flex;
    width: 100%;
    max-width: 900px;
    margin: 32px auto 0;
    padding: 0;
    justify-content: space-between;
    gap: 12px;
    background: transparent;
    border: 0;
    backdrop-filter: none;
}

.community-form-section .wizard-form .wizard-button {
    min-width: 130px;
    min-height: 48px;
    margin: 0;
    padding: 12px 22px;
    border: 1px solid #111;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}

    .community-form-section .wizard-form .wizard-button:hover {
        opacity: 0.88;
    }

    .community-form-section .wizard-form .wizard-button:disabled {
        cursor: not-allowed;
        opacity: 0.55;
    }

.community-form-section .wizard-form .wizard-button-secondary {
    background: transparent;
    color: #111;
}

.community-form-section .wizard-form .response-message {
    display: none;
    width: 100%;
    max-width: 900px;
    margin: 18px auto 0;
    padding: 14px 16px;
    border-radius: 10px;
    font-weight: 600;
}

    .community-form-section .wizard-form .response-message.is-visible {
        display: block;
    }

    .community-form-section .wizard-form .response-message.success {
        background: #e8f5e9;
        color: #1b5e20;
    }

    .community-form-section .wizard-form .response-message.error {
        background: #ffebee;
        color: #b71c1c;
    }

@media (max-width: 760px) {
    .community-form-section {
        padding: 48px 16px;
    }

        .community-form-section .wizard-form {
            width: 100%;
            max-width: 100%;
        }

            .community-form-section .wizard-form .wizard-header {
                margin-bottom: 26px;
            }

            .community-form-section .wizard-form .form-grid,
            .community-form-section .wizard-form .checkbox-grid {
                grid-template-columns: 1fr;
            }

            .community-form-section .wizard-form .field-full {
                grid-column: auto;
            }

            .community-form-section .wizard-form .wizard-header,
            .community-form-section .wizard-form .checkbox-section,
            .community-form-section .wizard-form .form-grid,
            .community-form-section .wizard-form .wizard-actions,
            .community-form-section .wizard-form .response-message {
                max-width: 100%;
            }

            .community-form-section .wizard-form .wizard-actions {
                position: static;
                width: 100%;
                margin: 24px auto 0;
                padding: 0;
                background: transparent;
                border: 0;
                backdrop-filter: none;
            }

            .community-form-section .wizard-form .wizard-button {
                flex: 1;
                min-width: 0;
                padding-inline: 14px;
            }
}
