
form:is(.powermail_form, .styled-form) {
    margin-bottom: 1.25rem;
    display: flex;
    gap: 1rem;
    flex-direction: column;
}

.alternateParticipationAddress > .row {
    margin-bottom: 1.25rem;
}


form:is(.powermail_form, .styled-form) > :first-child,
form:is(.powermail_form, .styled-form) h1,
form:is(.powermail_form, .styled-form) h2,
form:is(.powermail_form, .styled-form) h3,
form:is(.powermail_form, .styled-form) h4,
form:is(.powermail_form, .styled-form) h5,
form:is(.powermail_form, .styled-form) h6 {
    margin-top: 0;
}

form:is(.powermail_form, .styled-form) > :last-child,
form:is(.powermail_form, .styled-form) .buttonPanel {
    margin-bottom: 0;
}

form:is(.powermail_form, .styled-form) > :last-child > :last-child,
form:is(.powermail_form, .styled-form) .buttonPanel > :last-child {
    margin-right: 0;
}

form:is(.powermail_form, .styled-form) {

    .buttonPanel {
        flex: 1;
        text-align: center;

        > a, > button {
            display: inline-flex;
            gap: 0.2rem;
            align-items: center;
        }
    }

    label[for="datenschutzbestimmungen_1"] {
        font-size: 0.75rem;
        font-family: "Montserrat", sans-serif;
    }

    .powermail_fieldwrap .powermail_field {
        display: flex;
        gap: 10px;
    }

    .powermail_fieldwrap .powermail_field .powermail_captcha {
        max-width: 70px;
    }

    .powermail_fieldwrap_beschreibungstext {
        width: 100%;
        text-align: center;
    }

    .fieldgrid {
        display: flex;
        flex: 0 1 100%;
        justify-content: space-between;
    }

    .label-wrap:not(:first-child) {
        align-items: center;
    }

    .label-wrap:is(:first-child) {
        margin-bottom: 10px;
        align-items: end;
    }

    label {
        position: relative;
        display: inline-block;
        color: #1F5573;
        cursor: pointer;
        height: 22px;
        font-size: 0.8rem;
    }

    [type="text"],
    [type="password"],
    [type="number"],
    [type="email"],
    [type="search"],
    [type="date"],
    [type="datetime-local"],
    [type="file"],
    textarea,
    select,
    .lite-select-display {
        display: inline-block;
        padding: 0 22px;
        height: 60px;
        border: 1px solid #A4A3A1;
        border-radius: 3px;
        box-shadow: none;
        font-family: "Montserrat", sans-serif;
        font-weight: bold;
        font-size: 1rem;
        line-height: 1.125rem;
        color: #1F5573;
        background: none;
        vertical-align: top;
        -webkit-appearance: none;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    }

    [type="text"]:focus,
    [type="password"]:focus,
    [type="number"]:focus,
    [type="email"]:focus,
    [type="search"]:focus,
    [type="date"]:focus,
    [type="datetime-local"]:focus,
    [type="file"]:focus,
    textarea:focus,
    select:focus {
        outline: none;
    }

    [type="text"].error,
    [type="password"].error,
    [type="number"].error,
    [type="email"].error,
    [type="search"].error,
    [type="date"].error,
    [type="datetime-local"].error,
    [type="file"].error,
    textarea.error,
    select.error {
        outline: 1px solid #f00;
    }

    p.error {
        color: #ff0000;
    }

    [type="text"],
    [type="password"],
    [type="number"],
    [type="email"],
    [type="search"],
    [type="date"],
    [type="datetime-local"],
    [type="file"],
    textarea,
    select {
        flex: 1 0 auto;
    }

    [type="file"] {
        padding: 0;
        border-top: none;
        height: auto;
        background-color: none;
    }

    #email {
        display: none;
    }

    textarea {
        padding: 1.375rem;
        height: 6.25rem;
        resize: none;
    }

    .selectBox-dropdown.styled,
    .selectBox-dropdown.styled:focus {
        border-top: none;
        border-bottom: 3px solid #e2e2e2;
    }

    .custom_checkbox {
        position: relative;
        text-transform: none;
        width: 30px;
        height: 30px;
        -webkit-appearance: none;
        appearance: none;
        background-color: transparent;
        margin: 0;
    }

    .custom_checkbox:before {
        content: '';
        z-index: 3;
        position: absolute;
        top: 0;
        left: 0;
        width: 30px;
        height: 30px;
        border: 1px solid #A4A3A1;
        border-radius: 3px;
        background: none;
        cursor: pointer;
    }

    .custom_checkbox:checked:after {
        content: '';
        z-index: 4;
        position: absolute;
        top: 0;
        left: 0;
        width: 30px;
        height: 30px;
        text-align: center;
        transition: 120ms transform ease-in-out;
        background-color: #1F5573;
        transform-origin: center center;
        scale: 0.5;
        clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
    }

    .custom_checkbox.error {
        outline: 1px solid #f00;
    }

    .checkboxWrapper + .label-wrap {
        padding-left: 0;
    }

    .checkboxWrapper.error {
        outline: 1px solid #f00;
    }

    .radioSet.error {
        outline: 1px solid #f00;
    }

    .radioSet > :last-child {
        margin-bottom: 0;
    }

    .radioWrapper {
        display: inline-block;
        position: relative;
        flex: 0 0 auto;
        width: auto;
        height: 30px;
    }

    .radioWrapper [type="radio"] {
        position: absolute;
        top: 0;
        left: 0;
        margin: 0;
        padding: 0;
        border: none;
        width: 30px;
        height: 30px;
        opacity: 0;
    }

    .radioWrapper [type="radio"]:not(old):checked + .radio {
        background-color: #fbb900;
        border-color: #cc9a0e;
    }

    .radioWrapper [type="radio"]:not(old) + .radio + label {
        color: #696969;
    }

    .radioWrapper [type="radio"]:not(old):checked + .radio + label {
        color: #19445d;
    }

    .radioWrapper .radio {
        font-family: 'Linearicons' !important;
        speak: none;
        font-style: normal;
        font-weight: normal;
        font-variant: normal;
        text-transform: none;
        line-height: 1;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        border-bottom: 3px solid #e2e2e2;
        border-radius: 2px;
        width: 100%;
        height: 30px;
        text-align: center;
        opacity: 1;
        background-color: #f1f1f1;
    }

    .radioWrapper .radio:before {
        display: block;
        padding-top: 0.625rem;
        font-size: 1.25rem;
    }

    .radioWrapper label {
        flex: 0 1 auto;
        margin: 0;
        padding: 11px 22px;
    }

    .radioWrapper.error {
        outline: 1px solid #f00;
    }

    .selectBox-dropdown.styled {
        flex: 1 0 auto;
        display: inline-block;
        padding: 0 64px 0 22px;
        width: auto !important;
        height: 60px;
        border: none;
        border-bottom: 3px solid #e2e2e2;
        border-radius: 2px;
        box-shadow: none;
        font-family: "Montserrat", sans-serif;
        font-weight: bold;
        font-size: 1rem;
        line-height: 1.125rem;
        color: #1F5573;
        background: none;
        background-color: #f1f1f1;
        vertical-align: top;
        cursor: pointer;
        -webkit-appearance: none;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    }

    .selectBox-dropdown.styled:focus {
        outline: none;
    }

    .selectBox-dropdown.styled .selectBox-label {
        padding: 0;
        padding-top: 21px;
        max-width: 85%;
    }

    .selectBox-dropdown.styled .selectBox-arrow {
        font-family: 'Linearicons' !important;
        speak: none;
        font-style: normal;
        font-weight: normal;
        font-variant: normal;
        text-transform: none;
        line-height: 1;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        top: 0px;
        width: 64px;
        height: 60px;
        border: none;
        background-color: #f1f1f1;
        background-image: none;
        text-align: center;
    }

    .selectBox-dropdown.styled .selectBox-arrow:before {
        position: absolute;
        top: 1.25rem;
        right: 22px;
        margin: 0;
        font-size: 1.25rem;
        color: #1f5574;
        transition: transform 0.3s ease 0s;
        transform: rotate(0deg);
    }

    .selectBox-dropdown.selectBox-menuShowing .selectBox-arrow:before {
        transform: rotate(180deg);
    }

    .selectBox-dropdown.error {
        outline: 1px solid #f00;
    }

    .selectBox-options.styled {
        border: none;
        border-radius: 2px;
        font-family: "Montserrat", sans-serif;
        font-weight: bold;
        background-color: #f1f1f1;
    }

    .selectBox-options.styled li {
        background-image: none;
    }

    .selectBox-options.styled li a {
        padding: 22px;
        font-size: 1rem;
        line-height: 1.125rem;
        color: #1f5574;
    }

    .selectBox-options.styled li.selectBox-hover a {
        background-color: #e2e2e2;
    }

    .selectBox-options.styled li.selectBox-selected a {
        color: #1F5573;
        background-color: #e2e2e2;
    }

}


.lite-select {
    position: relative;
    user-select: none;
    width: 100%;
}

.lite-select-display {
    width: 100%;
    display: flex !important;
    align-items: center;
}

.lite-select-display::after {
    content: "";
    position: absolute;
    right: 10px;
    top: 50%;
    width: 30px;
    height: 30px;
    background: url('../img/chevron-down.svg') center center no-repeat;
    transform-origin: center center;
    transform: translateY(-50%);
    transition: transform 0.2s;
    color: #1F5573;
}

.lite-select.open .lite-select-display::after {
    transform: translateY(-50%) rotate(180deg);
}

.lite-select.open .lite-select-display {

}

.lite-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
}

.lite-select.open .lite-select-dropdown {
    max-height: 300px;
    opacity: 1;
    overflow-y: auto;
}

.lite-select-item {
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.15s;
}

.lite-select-item:hover {
    background: #f5f5f5;
}

.lite-select-item.selected {
    color: #1F5573;
    font-weight: bold;
}

.ajax-form-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.5;
}

.ajax-form-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid transparent;
    border-top: 4px solid var(--background-yellow);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 3;
    opacity: 1;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
