.contactform-wrapper > .wp-block-contact-form-7-contact-form-selector {
    width: 100%;
}

.font-black {
    color: var(--black-color);
}

/* BASIC */

.contactform label {
    color: var(--white-color);
}

.contactform input,
.contactform textarea,
.contactform .wpcf7-file {
    background: #fff;
    border: 1px solid #10507f;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    font-size: 16px;
    color: var(--black-color);
}

.contactform input {
    height: 48px;
}

.contactform textarea {
    min-height: 140px;
    max-height: 230px;
    resize: vertical;
}

.contactform input:focus,
.contactform textarea:focus {
    outline: none;
    border: 1px solid var(--secondary-color)!important;
}

/* CF7 FIX */

.contactform .form-field p {
    margin: 0;
    position: relative;
}

.contactform .form-field br {
    display: none;
}

/* LAYOUT */

.contactform-wrapper {
    display: grid;
    max-width: 100%;
    font-weight: 400;
    gap: 20px;
}

.width50-50 {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.width50-50 p {
    width: 100%;
}

.width50-50 .form-field {
    width: 100%;
    flex-basis: 300px;
    flex-shrink: 1;
    flex-grow: 1;
}

.width100,
.ausbildung .wpcf7-checkbox > span:nth-child(-n + 2),
.ausbildung .wpcf7-checkbox > span:last-child {
    width: 100%;
    flex-basis: auto;
}

.contactform-wrapper > div > p {
    margin: 0;
}

.caption {
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    margin-top: 12px !important;
}

.form-headline {
    font-size: 1.25rem;
    line-height: 110% !important;
    text-wrap: balance;
    margin: 32px 0 12px 0 !important;
    font-weight: 600;
}

/* FLOATING LABEL */

.contactform .form-field {
    position: relative;
    width: 100%;
}

.contactform .form-field .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
    position: relative;
    z-index: 1;
}

.contactform .form-field input,
.contactform .form-field textarea {
    position: relative;
    z-index: 1;
    padding: 20px 14px 8px 14px;
}

.contactform .form-field textarea {
    padding-top: 24px;
}

.contactform .form-field > p > label {
    position: absolute;
    left: 14px;
    top: 14px;
    z-index: 2;
    background: #fff;
    padding: 0 6px;
    margin: 0;
    line-height: 1;
    color: var(--black-color);
    pointer-events: none;
    transition: all 0.2s ease;
}

.contactform .form-field--textarea > p > label {
    top: 22px;
}

.contactform .form-field.is-focused > p > label,
.contactform .form-field.is-filled > p > label {
    top: -12px;
    font-size: 12px;
    color: var(--white-color);
    background-color: var(--secondary-color);
    padding: 4px;
    border-radius: 4px;
}

.contactform .form-field--textarea.is-focused > p > label,
.contactform .form-field--textarea.is-filled > p > label {
    top: 0;
    transform: translateY(-50%);
}

/* RADIO & CHECKBOX */

.contactform .wpcf7-list-item {
    padding: 6px 12px;
    border: 1px solid #10507f;
    border-radius: 4px;
    margin: 0;
    background: #ffffff;
    color: var(--black-color) !important;
}

.teilnahmebedingungen .wpcf7-list-item {
    border: 0px;
    background: transparent;
    padding: 0;
    top: -16px;
    position: relative;
}

.contactform .wpcf7-list-item-label {
    color: var(--black-color) !important;
    font-size: 1rem !important;
}

.contactform .agb .wpcf7-list-item input[type="checkbox"] {
    margin: 4px 4px 0 0!important;
}

.contactform .wpcf7-radio,
.contactform .wpcf7-checkbox {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.contactform .wpcf7-radio > span,
.contactform .wpcf7-checkbox > span {
    width: 100%;
    flex-basis: 300px;
    flex-shrink: 1;
    flex-grow: 1;
    min-height: 48px;
    display: flex;
    align-items: center;
}
.contactform .wpcf7-checkbox > span > label {
    display: flex;
    gap: 0.5rem;
    line-height: 140%;
    display: flex;
    align-items: center;
    min-height: 48px;
}

/* SUBMIT */

.contactform .wpcf7-submit {
    border-radius: 4px !important;
    background: var(--secondary-color) !important;
    font-size: 18px !important;
    transition: all 0.1s ease;
    border: 0 !important;
    width: max-content;
    margin-top: 12px;
    color: var(--white-color);
    padding: 14px 28px;
    cursor: pointer;
}

.contactform .wpcf7-submit:hover {
    background: var(--primary-color) !important;
}

.contactform .wpcf7-submit:active {
    transform: scale(1.025);
    box-shadow: 0 0 16px #4daaec;
}

/* VALIDATION */

.contactform .wpcf7-not-valid {
    border-color: #d63638 !important;
}

.contactform .wpcf7-not-valid-tip {
    color: #d63638;
    font-size: 14px;
    margin-top: 6px;
}

/* RESPONSE */

.wpcf7 form.sent .wpcf7-response-output {
    border-color: #46b450;
    background: #d4f0d6;
    color: #0b4e11;
    padding: 16px;
    display: flex;
    align-items: center;
    border-radius: 8px;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
    border-color: #ffb900;
    background: #fff3d3;
    color: #8e6700;
    padding: 16px;
    display: flex;
    align-items: center;
    border-radius: 8px;
}

/* DATE INPUT */

input[type="date"] {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    text-align: left;
}

input[type="date"]::-webkit-date-and-time-value,
input[type="date"]::-webkit-datetime-edit {
    text-align: left;
}

/* FILE UPLOAD */

.codedropz-upload-handler {
    border-radius: 4px !important;
    border: 1px dashed #10507f !important;
    background-color: #ddf1ff;
}

.dnd-upload-status {
    width: 100%;
}

.dnd-upload-status .dnd-upload-details {
    padding-left: 0 !important;
    width: 100% !important;
}

.dnd-upload-status span {
    color: #fff !important;
    font-size: 1rem;
}

.dnd-upload-status .dnd-upload-details .name {
    width: 90%;
    padding-right: 0 !important;
}

.dnd-upload-status .dnd-upload-details .name em {
    color: #fff !important;
    font-size: 0.875rem !important;
}

.dnd-upload-status .dnd-upload-details .dnd-progress-bar {
    width: 100%;
}

.dnd-upload-status .dnd-upload-details .dnd-progress-bar span {
    background: #7ddc81 !important;
    padding: 0 8px !important;
}

.name {
    display: flex;
}

.name > span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.dnd-upload-image {
    display: none;
}