.section-contact {
    background: #18181b;
    min-height: auto;
}

.contact-separator-invertedrounded {
    position: relative;
    background: #f1f1f1;
}

.contact-separator-invertedrounded {
    padding-top: 5em;
    border-radius: 0 0 80px 80px;
    box-shadow: 0px 3px 0px #f37d03cf;
    margin-top: -10px;
}

.contact-form {
    display: flex;
    flex-direction: row;
    padding-top: 128px; /* 8em; */
    gap: 0.5rem;
    justify-content: center;
}

.contact-form__text {
    max-width: 40vw;
}

.contact-form__text h3 {
    text-transform: uppercase;
    color: #f37b03;
    font-family: 'dl-prim-font';
    font-size: 2.5rem;
    margin-top: 0;
}

.contact-form__text p {
    color: #b7bec5;   
    font-family: 'Source Sans', sans-serif;
    font-size: 24px;
    width: 90%;
}

.contact-form__text-contact {
    width: 90%;
    background: #1d1e23;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 3px 5px 7px #00000035;
    margin-top: 3em;
}

.contact-form__text-contact h4 {
    font-family: 'dl-prim-font';
    font-size: 2rem;
    text-transform: uppercase;
    color: #b7bec5;
    margin: 0;
}

.contact-form__text-contact_row {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    font-family: 'dl-prim-font';
    font-size: 21px;
    margin-top: 2.5em;
}

.contact-form__text-contact_row a {
    color: #b7bec5;
}

.contact-form__text-contact_row-mail::before{
    content: "E-Mail:";
    position: absolute;
    top: -1.1em;
    font-size: 1rem;
    color: #b7bec5;
}

.contact-form__text-contact_row-phone::before {
    content: "Telefon:";
    position: absolute;
    top: -1.1em;
    font-size: 1rem;
    color: #b7bec5;
}

.contact-form__text-contact_row-phone {
    margin: auto; 
}

.contact-form__text-contact p {
    margin-bottom: 0;
    margin-top: 3em;
    font-size: 1.1rem;
}

.contact-form__text-contact_row a {
    color: #b7bec5;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.contact-form__text-contact_row svg {
    height: 1.2em;
    width: 1.2rem;
    fill: #b7bec5;
    margin-right: .6rem;
}


.contact-form__separator {
    width: 10px;
    background: #1d1e23;
}


.contact-form__form {
    width: 90%;
    margin: auto;
    margin-right: 0;
    position: relative;
}

.contact-form__form span {
    font-family: 'dl-prim-font';
    left: 1.5rem;
    position: relative;
    margin-bottom: 3rem;
}

.contact-form__input-group input, .contact-form__input-group textarea {
    width: 100%;
    height: 4em;
    border-radius: 8px;
    background: #1d1e23;
    border: none;
    padding-left: 3.5rem;
    font-size: 1.1rem;
    color: #b7bec5;
}
.contact-form__input-group {
    display: flex;
    flex-flow: column-reverse;
    margin-bottom: 0.5em;
    margin-top: 0.7em;
    position: relative;
}

.contact-form__input-group:nth-child(1){
    margin-top: 0;
}

.contact-form__form label, input, textarea {
    transition: all 0.2s;
    touch-action: manipulation;
}

/* .contact-form__input-group input, textarea {
    -webkit-appearance: none;
    cursor: text;
} */

.contact-form__input-group label, textarea {
    font-size: 0.8rem;
    font-family: 'dl-prim-font';
}

.contact-form__input-group input:placeholder-shown + label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transform-origin: left bottom;
    transform: translate(0, -1.6rem);
    left: 3.5rem;
    font-size: 1.1rem;
    color: #7c7c7c;
    pointer-events: none;
    position: absolute;
}

.contact-form__input-group input:not(:placeholder-shown) +  label,
.contact-form__input-group input:focus + label {
    position: absolute;
    transform: translate(0, -2.8rem);
    left: 3.5rem;
    font-size: 0.8rem;
    color: #7c7c7c;
    font-family: 'dl-prim-font';
}


.contact-form__input-group textarea:placeholder-shown + label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transform-origin: left bottom;
    transform: translate(0, -1.6rem);
    left: 3.5rem;
    top: 52px;
    font-size: 1.1rem;
    color: #7c7c7c;
    pointer-events: none;
    position: absolute;
}

.contact-form__input-group textarea:not(:placeholder-shown) +  label,
.contact-form__input-group textarea:focus + label {
    position: absolute;
    transform: translate(0, -2.8rem);
    left: 3.5rem;
    top: 55px;
    font-size: 0.8rem;
    color: #7c7c7c;
    font-family: 'dl-prim-font';
}

textarea#contact-form__input-group_message {
    resize: vertical;
    word-wrap: break-word;
    word-break: break-word; 
    min-height: 9em;
    padding: 1.5rem;
    padding-left: 3.5rem;
} 

.contact-form__input-group svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: #b7bec5;
    position: absolute;
    top:50%;
    transform: translateY(-50%);
    left:1.5rem;
}

.contact-form__input-group:nth-child(7) svg {
    top: 50%;
    transform: translateY(-295%);
}


::-webkit-input-placeholder, ::-webkit-textarea-placeholder {
    opacity: 0;
    transition: inherit;
}

input:focus::-webkit-input-placeholder, textarea:focus::-webkit-textarea-placeholder {
    opacity: 1;
}

.contact-form__input-group input:focus, textarea:focus{
    outline: none !important;
    border:1px solid #f37b03;
}

.contact-form__input-group input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active{
    /* -webkit-box-shadow: none !important;
    background-color: #1d1e23!important; */
    -webkit-text-fill-color: #b7bec5 !important;
    -webkit-background-clip: text;
    color: #b7bec5;
}

textarea:-internal-autofill-selected{

    background-color: #1d1e23!important;
    color: #b7bec5!important;
    appearance: none!important;
}



/**********
    Checkbox Contact Form
**********/

.contact-form__input-group_checkbox
{
    position: relative;
    top: 50%;
    width: 56px;
    height: 26px;
    overflow: hidden;
    border-radius: 30px;
}

.contact-form__checkbox
{
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 3;
}

.contact-form__knobs
{
    z-index: 2;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.contact-form__layer
{
    width: 100%;
    background-color: #f30043;
    transition: 0.3s ease all;
    z-index: 1;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

#contact-form__input-group_checkbox .knobs:before, #contact-form__input-group_checkbox .knobs:after, #contact-form__input-group_checkbox .knobs span
{
    position: absolute;
    top: 4px;
    width: 18px;
    height: 18px;
    padding: 9px 4px;
    border-radius: 15px;
    transition: 0.3s ease all;
}

#contact-form__input-group_checkbox .knobs:before
{
    content: '';
    left: 5px;
    background-color: white;
}

#contact-form__input-group_checkbox .knobs:after
{
    right: 5px;
    color: #08c57e;
}

#contact-form__input-group_checkbox .checkbox:checked + .knobs:before
{
    left: 33px;
    background-color: white;
}

#contact-form__input-group_checkbox .checkbox:checked ~ .layer
{
    background-color: #08c57e;
}


.contact-form__input-group_datenschutz {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.contact-form__input-group_datenschutz p {
    padding-left: 2rem;
    padding-right: 1rem;
    font-family: 'dl-prim-font';
    font-size: 1rem;
    color: #b7bec5;
}

.contact-form__input-group_datenschutz a {
    color: #f37b03;
}
/**********
    End Checkbox
**********/

/**********
    Contact Form Submit
**********/
.contact-form__input-group_submit {
    background: transparent;
    width: 200px;
    position: relative;
    padding: 15px;
    margin-top: 10px;
    color: #f37b03;
    cursor: pointer;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: all 500ms cubic-bezier(0.6, -0.28, 0.735, 0.045);
    border-radius: 4px;
    font-weight: 600;
    overflow: hidden;
    border: 2px solid #f37b03;
    text-decoration: none;
}
  

.contact-form__input-group_submit-progress {
    width: 100%;
    color: transparent;
}
  
.contact-form__input-group_submit-fill:after {
    content: '';
    background: #f37b03;
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: 100%;
    transform: scaleX(0);
    transform-origin: 0;
    display: block;
    animation: fill 3.2s linear forwards;
}
  
.contact-form__input-group_submit-complete {
    padding: 10px;
    width: 50px;
    color: #b7bec5;
    pointer-events: none;
}
  
.contact-form__input-group_submit-complete:after {
    content: "";
    color: #b7bec5;
    height: 100%;
    padding-left: 3px;
    position: absolute;
    top: 0; left: 0; right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f37b03;

}
.contact-form__input-group_submit-complete:after {
    background-image: url('/wp-content/themes/DigitaleLeichtigkeit/assets/images/contact-submit-check.png');
    background-repeat: no-repeat;
    background-size: 50% auto;
    background-position: center;
    animation: showBackground 1.5s ease-in-out;
}

@keyframes showBackground {
    0% {
        background-position: -200% 200%;
    }
    100% {
        background-position: center;
    }
}
  
@keyframes fill {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}
/**********
    End Submit
**********/

@media only screen and (min-width: 1200px){
    .contact-form {
        padding: 20px;
        padding-top: 150px;
        padding-bottom: 30px;
    }
    .contact-form__text {
        min-width: 700px;
    }
}

@media only screen and (max-width: 1700px){
    .contact-form__text-contact_row{
        display:block;
    }
    .contact-form__text-contact_row-phone{
        margin-top:40px;
    }

    .contact-form__text-contact_row-phone::before {
        top: 3rem;
    }
    .contact-form {
        padding-bottom: 80px;
    }
}

@media only screen and (max-width: 1200px){
    .contact-form{
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    .contact-form__text{
        max-width: 75vw;
    }
    .contact-form__text-contact {
        width: 100%;
    }
    .contact-form__text p {
        width: 100%;
    }

    .contact-form__separator {
        width: 75vw;
        height: 10px;
    }

    .contact-form__form {
        width: 75vw;
        margin: auto;
    }
}

@media only screen and (max-width: 600px){
    .contact-separator-invertedrounded {
        padding-top: 2em;
        margin-top: 0px;
    }
    .contact-form {
        padding-top: 5em;
    }
}

@media only screen and (max-width: 490px){
    .contact-form__text {
        max-width: 92vw;
    }
    .contact-form__text h3 {
        font-size: 2.1rem;
    }
    .contact-form__text p {
        font-size: 1.1rem;
    }
    .contact-form__text-contact_row a {
        font-size: 21px;
    }
    .contact-form__separator {
        width: 92vw;
    }
    .contact-form__form {
        width: 92vw;
        margin: 0px;
    }
    .contact-form__input-group_datenschutz p {
        padding-left: 1rem;
        font-size: .8rem;
    }
}
