.gform_wrapper input[type="text"],
.gform_wrapper input[type="number"],
.gform_wrapper input[type="tel"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="password"],
.gform_wrapper input[type="date"],
.gform_wrapper select,
.select2-selection{
    height: 52px;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="date"],
select,
textarea{
    font-family: 'bagoss-extended-regular', sans-serif;
    font-size: 1em;
    line-height: 1em !important;
    margin: 0;
    background-image: none;
    border: 0;
    border-radius: 10px;
    background-color: rgba(197, 211, 198, 0.3);
    outline: 0;
    color: var(--body-text-color);
    width: 100%;
    box-sizing: border-box;
    -webkit-transition: 300ms all ease-in-out;
    -o-transition: 300ms all ease-in-out;
    transition: 300ms all ease-in-out;
    -moz-appearance: none;
    -webkit-appearance: none;
    padding: 16px 20px !important;
}
textarea{
    padding: 20px !important;
}
input::placeholder,
textarea::placeholder,
select::placeholder{
    overflow: visible;
    color: rgba(0,0,0,.6);
}
input:focus,
select:focus,
textarea:focus{
    box-shadow: 0 0 0 0.15rem var(--secondary-color);
    background: #fff;
}

select{
    background: url('../img/icons/icon-arrow-down.svg') rgba(197, 211, 198, 0.3) no-repeat right 20px center;
    background-size: 10px;
    color: rgba(0,0,0,.6);
}

input[type="submit"]{
    outline: 0;
    -moz-appearance: none;
    -webkit-appearance: none;
}

.hidden_label .gfield_label {
    position: absolute !important;
    overflow: hidden;
}

#main .gform_wrapper a:hover{
    color: var(--primary-color);
}
#main .gform_wrapper fieldset,
#main .gform_wrapper .gchoice,
#main .gform_wrapper .ginput_container_consent{
    position: relative;
}
#main .gform_wrapper .gfield > .gfield_label {
    font-weight: normal;
    width: auto;
    max-width: max-content;
    display: inline-block;
    font-size: 0.9em;
    line-height: 1.5em;
    margin-bottom: 0;
    z-index: 2;
    position: relative;
}
#main .gform_wrapper li.hidden_label input {
    margin: 0;
}
#main .gform_wrapper .gfield_description {
    font-size: 0.8em;
    line-height: 1.3em;
    border: 0;
    padding: 0;
    margin-top: 6px;
    color: var(--body-text-color);
}
#main .gform_wrapper .gfield_checkbox label,
#main .gform_wrapper .gfield_radio label {
    line-height: 1.5em;
}
#main .gform_wrapper .ginput_container_consent input{
    position: absolute;
    left: 0;
    top: 0;
}
#main .gform_wrapper .ginput_container_consent{
    font-size: 0.8em;
    line-height: 1.4em;
    opacity: .9;
}
#main .gform_wrapper .ginput_container_checkbox .gchoice,
#main .gform_wrapper .ginput_container_checkbox+.gfield_description,
#main .gform_wrapper .ginput_container_consent{
    padding-left: 25px;
}
#main .gform_wrapper .gform_footer{
    margin-top: 10px;
}
#main .gform_wrapper .gform_button {
    font-size: 1em;
    line-height: 1.3em;
    border: 0;
    box-sizing: border-box;
    background-color: var(--primary-color);
    color: var(--body-text-color);
    cursor: pointer;
    display: block;
    padding: 15px 50px 15px 25px;
    border-radius: 10px;
    transition: 0.3s background-color ease-in-out, 0.3s color ease-in-out, 0.3s background-image ease-in-out, 0.3s background-position ease-in-out;
    background-image: url('../img/icons/icon-arrow-right.svg');
    background-repeat: no-repeat;
    background-position: right 45px top 18px;
    background-size: 20px;
    width: 200px;
    text-align: center;
}


#main .gform_wrapper.gravity-theme .ginput_complex .address_country {
    flex: 0 0 100%;
}

#main .gform_required_legend {
    font-size: 0.8em;
    text-align: right;
    display: none !important;
}


/* RADIO-GRUPPE (z. B. Anrede): schlichte Radios, beim Anklicken waechst ein
   gruener Punkt mit kurzem Puls. Klickflaeche = Kreis + Luecke + Text. */

#main .gform_wrapper .gfield--type-radio .ginput_container_radio {
    margin-top: 4px;
}
#main .gform_wrapper.gravity-theme .gfield--type-radio .gfield_radio {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 0;
}
#main .gform_wrapper.gravity-theme .gfield--type-radio .gfield_radio .gchoice {
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
}
#main .gform_wrapper .gfield--type-radio .gchoice input[type="radio"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: grid;
    place-content: center;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 0 !important;
    padding: 0;
    border: 1.5px solid rgba(26, 51, 46, .35);
    border-radius: 50%;
    background-color: #fff;
    box-shadow: none;
    cursor: pointer;
    transition: border-color 250ms ease;
}
#main .gform_wrapper .gfield--type-radio .gchoice input[type="radio"]::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary-color);
    transform: scale(0);
    transition: transform 300ms cubic-bezier(.34, 1.56, .64, 1);
}
#main .gform_wrapper .gfield--type-radio .gchoice:hover input[type="radio"] {
    border-color: var(--secondary-color);
}
#main .gform_wrapper .gfield--type-radio .gchoice input[type="radio"]:checked {
    border-color: var(--primary-color);
    animation: gt-choice-pulse 500ms ease-out;
}
#main .gform_wrapper .gfield--type-radio .gchoice input[type="radio"]:checked::before {
    transform: scale(1);
}
#main .gform_wrapper .gfield--type-radio .gchoice input[type="radio"]:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}
@keyframes gt-choice-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(155, 220, 114, .6); }
    100% { box-shadow: 0 0 0 8px rgba(155, 220, 114, 0); }
}
/* Label mit Innenabstand statt Luecke, ::before zieht die Klickflaeche ueber den Kreis */
#main .gform_wrapper .gfield--type-radio .gchoice label {
    position: relative;
    max-width: none;
    margin: 0;
    padding: 6px 22px 6px 8px;
    cursor: pointer;
}
#main .gform_wrapper .gfield--type-radio .gchoice label::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -18px;
    right: 0;
}


/* CHECKBOX EINWILLIGUNG: gleicher Klick-Effekt wie die Radios - Kaestchen fuellt
   sich gruen, dunkler Haken waechst mit kurzem Puls. Auch die Luecke links vom
   Text ist klickbar. */

#main .gform_wrapper .ginput_container_consent {
    padding-left: 26px;
}
#main .gform_wrapper .ginput_container_consent input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: grid;
    place-content: center;
    top: 1px;
    width: 16px;
    height: 16px;
    margin: 0 !important;
    padding: 0;
    border: 1.5px solid rgba(26, 51, 46, .35);
    border-radius: 4px;
    background-color: #fff;
    box-shadow: none;
    cursor: pointer;
    transition: border-color 250ms ease, background-color 250ms ease;
}
#main .gform_wrapper .ginput_container_consent input[type="checkbox"]::before {
    content: "";
    width: 10px;
    height: 10px;
    background-color: var(--secondary-color);
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
    transform: scale(0);
    transition: transform 300ms cubic-bezier(.34, 1.56, .64, 1);
}
#main .gform_wrapper .ginput_container_consent:hover input[type="checkbox"] {
    border-color: var(--secondary-color);
}
#main .gform_wrapper .ginput_container_consent input[type="checkbox"]:checked {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    animation: gt-choice-pulse 500ms ease-out;
}
#main .gform_wrapper .ginput_container_consent input[type="checkbox"]:checked::before {
    transform: scale(1);
}
#main .gform_wrapper .ginput_container_consent input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}
#main .gform_wrapper .ginput_container_consent label {
    position: relative;
    display: block;
    cursor: pointer;
}
#main .gform_wrapper .ginput_container_consent label::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -26px;
    width: 26px;
}

@media (prefers-reduced-motion: reduce) {
    #main .gform_wrapper .gfield--type-radio .gchoice input[type="radio"],
    #main .gform_wrapper .gfield--type-radio .gchoice input[type="radio"]::before,
    #main .gform_wrapper .ginput_container_consent input[type="checkbox"],
    #main .gform_wrapper .ginput_container_consent input[type="checkbox"]::before {
        transition: none;
        animation: none;
    }
}


/* FORM ERRORS */

#main .gform_wrapper .gform_validation_errors{
    background-color: #CC4747;
    border: 0;
    box-shadow: none;
    margin-bottom: 20px;
    margin-top: 0;
    padding: 15px 20px;
}
#main .gform_wrapper .gform_validation_errors>h2 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}
#main .gform_wrapper .gform_validation_errors>h2 .gform-icon{
    display: none;
}
#main .gform_wrapper .gfield_error [aria-invalid=true] {
    border-color: #CC4747;
}
#main .gform_wrapper .gfield_validation_message, .gform_wrapper .validation_message,
#main .gform_wrapper .gfield_error{
    padding: 0;
    border: 0;
    color: #CC4747;
    background-color: transparent;
}
.gform_wrapper .top_label li input[type="email"]:focus-visible, .gform_wrapper .top_label li input[type="text"]:focus-visible, .gform_wrapper .top_label li input[type="tel"]:focus-visible, .gform_wrapper .top_label li input[type="checkbox"]:focus-visible, .gform_wrapper .top_label input[type="submit"]:focus-visible, .gform_wrapper .top_label li select:focus-visible, .gform_wrapper .top_label li textarea:focus-visible {
    outline-color: red;
    outline-offset: 3px;
}
.grecaptcha-badge {
    display: none !important;
}