.gform_wrapper .cdc-report-multiselect__instructions,
.gform_wrapper .cdc-report-multiselect__status {
    margin: 0 0 0.5rem;
    color: #454545;
    font-size: 0.875rem;
    line-height: 1.5;
}

.gform_wrapper .cdc-report-multiselect__status {
    margin-top: 0.5rem;
    font-weight: 600;
}

.gform_wrapper .choices {
    position: relative !important;
    width: 100%;
    max-width: 56rem;
    margin-bottom: 0;
    overflow: visible !important;
}

.gform_wrapper .choices::after {
    content: '';
    position: absolute;
    top: 0.95rem;
    right: 1.25rem;
    z-index: 2;
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid #092a6d;
    border-bottom: 2px solid #092a6d;
    transform: rotate(45deg);
    pointer-events: none;
}

.gform_wrapper .choices.is-open::after {
    top: 1.2rem;
    transform: rotate(225deg);
}

.gform_wrapper .choices__inner {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
    width: 100%;
    min-height: 2.75rem;
    padding: 0.25rem 0.5rem !important;
    border: 1px solid #767676;
    border-radius: 0;
    background: #fff;
    font-size: 1rem;
    overflow: visible !important;
    cursor: text;
}

.gform_wrapper .is-focused .choices__inner,
.gform_wrapper .is-open .choices__inner {
    border-color: #092a6d;
    outline: 3px solid #88d9f6;
    outline-offset: 2px;
}

.gform_wrapper .choices__input {
    flex: 1 1 16rem;
    width: auto !important;
    min-width: 16rem;
    min-height: 2rem;
    margin: 0 !important;
    padding: 0.25rem 2.25rem 0.25rem 0.25rem !important;
    border: 0;
    background: transparent;
    font-size: 1rem;
}

.gform_wrapper .choices__input::placeholder {
    color: #555;
    opacity: 1;
}

.gform_wrapper .choices__list--multiple {
    display: flex !important;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.gform_wrapper .choices__list--multiple .choices__item {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    margin: 0 !important;
    padding: 0.25rem 0.4rem 0.25rem 0.625rem !important;
    border: 1px solid #b8b8b8 !important;
    border-radius: 0;
    background: #f2f2f2;
    color: #222;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25;
    word-break: normal;
}

.gform_wrapper .choices__list--multiple .choices__item .choices__button {
    display: inline-block !important;
    flex: 0 0 1.5rem;
    width: 1.5rem !important;
    min-width: 1.5rem !important;
    height: 1.5rem !important;
    min-height: 1.5rem !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-left: 1px solid #767676 !important;
    border-radius: 0 !important;
    background-color: transparent !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: 0.6rem !important;
    color: transparent !important;
    filter: invert(1);
    font-size: 0 !important;
    line-height: 0 !important;
    opacity: 1;
    overflow: hidden !important;
    text-indent: -9999px !important;
    box-shadow: none !important;
}

.gform_wrapper .choices__list--multiple .choices__item .choices__button:focus {
    outline: 2px solid #092a6d;
    outline-offset: 2px;
}

.gform_wrapper .choices__list--multiple .choices__item.is-highlighted {
    border-color: #767676 !important;
    background: #e7e7e7;
    color: #111;
}

.gform_wrapper .choices__list--dropdown,
.gform_wrapper .choices__list[aria-expanded] {
    top: calc(100% + 0.25rem) !important;
    z-index: 1000;
    width: 100% !important;
    max-height: 20rem;
    border: 1px solid #767676 !important;
    border-radius: 0 !important;
    background: #fff;
    box-shadow: 0 8px 24px rgba(9, 42, 109, 0.18);
    overflow: hidden;
}

.gform_wrapper .choices__list--dropdown .choices__list,
.gform_wrapper .choices__list[aria-expanded] .choices__list {
    max-height: 20rem;
    overflow-y: auto;
}

.gform_wrapper .choices__list--dropdown .choices__item,
.gform_wrapper .choices__list[aria-expanded] .choices__item {
    padding: 0.75rem 1rem !important;
    font-size: 1rem;
    line-height: 1.35;
}

.gform_wrapper .choices__item--choice.is-highlighted {
    background: #e7f6fc;
    color: #092a6d;
}

.gform_wrapper .cdc-report-multiselect--at-limit .choices__input {
    display: none;
}

.gform_wrapper .cdc-report-multiselect--at-limit::after {
    display: none;
}

@media (max-width: 640px) {
    .gform_wrapper .choices {
        max-width: none;
    }

    .gform_wrapper .choices__input {
        flex-basis: 100%;
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gform_wrapper .choices,
    .gform_wrapper .choices * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
