/*
General Form styling
*/


/*layout*/
    body.com_contact .com-contact__container,
    body.com_contact .com-contact > h3,
    body.com_contact #contact-form >fieldset:first-of-type>legend{
        display: none;
    } 
    body.com_contact .com-contact{
        display: flex;
        flex-wrap: wrap;
    }
    body.com_contact .com-contact > *{
        width: 100%;
        max-width: 750px;
    }

    body.com_contact .com-contact > .page-header{
        order: 1;
    }
    body.com_contact .com-contact > .contact-miscinfo{
        order: 2;
    }
    body.com_contact .com-contact > .contact-form{
        order: 3;
    }


/*heading h1*/
    body.com_contact h1{
        border-bottom: 3px solid var(--sw-primary);
        margin-bottom: 30px;
    }

/*form info*/
    body.com_contact .com-contact > .contact-miscinfo dt{
        display: none;
    }
    body.com_contact .com-contact > .contact-miscinfo dd{
        padding: 0;
    }

/*fieldsets*/
    body.com_contact #contact-form >fieldset{
        margin-top: 25px !important;
        transition: all 0.3s ease-in-out;
    }
    /*dont show joomla default form fields */
    body.com_contact #contact-form >fieldset:first-of-type{
        display: none !important;
    }
    body.com_contact #contact-form >fieldset:nth-of-type(2){
        margin-top: 0 !important;
    }
    body.com_contact #contact-form >fieldset > legend{
        margin-bottom: 20px;
        border-bottom: 1px solid var(--sw-primary);
    }
    body.com_contact #contact-form >fieldset > div{
        margin-left: 30px;
    }
    body.com_contact #contact-form input[type=text],
    body.com_contact #contact-form input[type=email],
    body.com_contact #contact-form input[type=url],
    body.com_contact #contact-form input[type=tel],
    body.com_contact #contact-form select{
        height: 35px;
        padding: 0 15px;
        max-width: 100%;
    }
    body.com_contact #contact-form .field-calendar button{
        height: 35px;
        padding: 0;
        min-width: 30%;
    }
    body.com_contact #contact-form .field-calendar button:hover,
    body.com_contact #contact-form .field-calendar button:active,
    body.com_contact #contact-form .field-calendar button:focus{
        background-color: var(--sw-primary);
        opacity: 0.7;
    }
    body.com_contact #contact-form textarea{
        height: 100px;
    }
    body.com_contact #contact-form input,
    body.com_contact #contact-form select,
    body.com_contact #contact-form textarea{
        font-size: 15px;
    }
    body.com_contact #contact-form .form-control-feedback{
        font-size: 12px;
    }

    body.com_contact #contact-form >fieldset.special-focus{
        border: 5px solid var(--sw-primary);
        padding: 20px;
        background: #f9f9f9;
    }


/*remove label from terms and conditions*/
#jform_com_fields_datenschutzbedingungen-lbl,
#jform_com_fields_foto_zustimmung-lbl,
#jform_com_fields_anwesenheitsliste-lbl{
    display: none;
}
body.com_contact #contact-form label.hide-label{
    display: none;
}

body.bildungskonferenz #contact-form > fieldset:last-of-type{
    margin-top: 50px;
}
body.bildungskonferenz #contact-form > fieldset:last-of-type legend{
    display: none;
}
body.bildungskonferenz #contact-form > fieldset:last-of-type > div{
    margin-left: 0;
}