.dwf-form-wrapper {
    margin-block: 1.5rem;
}

.dwf-form {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0.875rem;
}

.dwf-form__header {
    margin: 0 0 1rem;
    grid-column: 1 / -1;
}

.dwf-form__title {
    margin: 0;
}

.dwf-form__field {
    min-width: 0;
    grid-column: span 12;
}

.dwf-form__field input[type="text"],
.dwf-form__field input[type="email"],
.dwf-form__field input[type="number"],
.dwf-form__field input[type="date"],
.dwf-form__field input[type="datetime-local"],
.dwf-form__field input[type="file"],
.dwf-form__field select,
.dwf-form__field textarea {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

.dwf-col-12 {
    grid-column: span 12;
}

.dwf-col-9 {
    grid-column: span 9;
}

.dwf-col-6 {
    grid-column: span 6;
}

.dwf-col-3 {
    grid-column: span 3;
}

.dwf-row-break {
    grid-column: 1 / -1;
    display: block;
    height: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.dwf-form__field > label,
.dwf-form__legend {
    display: block;
    margin: 0 0 0.25rem;
}

.dwf-form__field label {
    margin: 0;
}

.dwf-form__choices label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0.15rem 0;
}

.dwf-form__choices {
    display: grid;
    gap: 0.125rem;
    margin-top: 0.125rem;
}

.dwf-form__actions {
    margin: 1rem 0 0;
    grid-column: 1 / -1;
}

.dwf-form__notice {
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    border-inline-start: 4px solid currentColor;
}

.dwf-form__notice p {
    margin: 0;
}

.dwf-form__honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.dwf-form__help {
    margin: 0.25rem 0 0;
}

.dwf-form__error {
    margin: 0.25rem 0 0;
}

.dwf-select--enhanced-native {
    position: absolute;
    left: -99999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.dwf-enhanced-select {
    display: grid;
    gap: 0.5rem;
    width: 100%;
    min-width: 0;
}

.dwf-enhanced-select__search {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.dwf-enhanced-select__clear {
    justify-self: start;
    padding: 0.15rem 0.45rem;
    border: 0;
    background: transparent;
    cursor: pointer;
    line-height: 1;
}

.dwf-enhanced-select__summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.dwf-enhanced-select__chip {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    border: 1px solid currentColor;
    font-size: 0.875em;
    line-height: 1.2;
}

.dwf-enhanced-select__placeholder {
    opacity: 0.7;
}

.dwf-enhanced-select__list {
    display: grid;
    gap: 0.25rem;
    max-height: 14rem;
    overflow: auto;
    padding: 0.25rem;
    border: 1px solid currentColor;
    border-radius: 4px;
}

.dwf-enhanced-select__option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.4rem 0.5rem;
    text-align: left;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.dwf-enhanced-select__option.is-selected {
    font-weight: 600;
}

.dwf-enhanced-select.is-disabled {
    opacity: 0.6;
}

.dwf-form__field[hidden],
.dwf-form__field[hidden="hidden"] {
    display: none !important;
}

@media (max-width: 782px) {
    .dwf-col-md-12 {
        grid-column: span 12;
    }

    .dwf-col-md-9 {
        grid-column: span 9;
    }

    .dwf-col-md-6 {
        grid-column: span 6;
    }

    .dwf-col-md-3 {
        grid-column: span 3;
    }

    .dwf-col-9,
    .dwf-col-6,
    .dwf-col-3 {
        grid-column: span 12;
    }
}

@media (max-width: 480px) {
    .dwf-col-sm-12 {
        grid-column: span 12;
    }

    .dwf-col-sm-9 {
        grid-column: span 9;
    }

    .dwf-col-sm-6 {
        grid-column: span 6;
    }

    .dwf-col-sm-3 {
        grid-column: span 3;
    }

    .dwf-col-md-9,
    .dwf-col-md-6,
    .dwf-col-md-3,
    .dwf-col-9,
    .dwf-col-6,
    .dwf-col-3 {
        grid-column: span 12;
    }
}
