/* 
###
BACKSTAGE 5.1 CSS > (USER) FORMS PLUGIN
###
*/
.form-thanks {
    background: var(--color);
    color: var(--background);
    padding: 30px;
    max-width: 500px;
}
.content p + .form {
    margin-top: 30px;
}
.content .form form {
    width: 100%;
    position: relative;
    /*margin-top: 1em;*/
    /*max-width: 800px;*/
}
.content .form form .field {
    padding-bottom: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
}
.content .form form .field label {
    /* label */
}
.content .form form .field label.checkbox {
    /* checkbox */
}
.content .form form .field.radio label, 
.content .form form .field.checkbox label,
.content .form form .field.checkboxes label {
    display: flex;
    flex-direction: row;
}
.content .form form .field.radio label span, 
.content .form form .field.checkbox label span,
.content .form form .field.checkboxes label span {
    width: calc(100% - 25px);
}
.content .form form .field-wrap /* capture input + error in one div */ {
    position: relative;
    width: 100%;
}
.content .form form input[type=text],
.content .form form input[type=time],
.content .form form input[type=date],
.content .form form textarea, 
.content .form form select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    border: 0px;
    background-color: var(--accents);
    width: 100%;
    margin-top: 3px;
    border-radius: 2px;
    box-sizing: border-box;
    padding: 10px;
    -webkit-appearance: none;
}
.content .form form select {
    background-position: calc(100% - 10px) 50%;
    background-repeat: no-repeat;
    background-size: 16px 16px;
    border: 0px;
}
.content .form form select {
	background-image: url('../../images/icons/arrow-dropdown.svg');
}
.content .form form input.timepicker,
.content .form form input.datepicker {
	width: 100%!important;
	box-sizing: border-box!important;
	display: block;
	background: var(--accents);
    font-family: inherit;
    font-size: inherit!important;
    color: inherit;	
    height: 45px;
}
.content .form form textarea {
    min-height: 150px;
    max-height: 300px;
    max-width: 100%;
    resize: none;
}
.content .form form input[type=checkbox],
.content .form form input[type=radio] {
    width: auto;
    padding: 0;
    margin: 0;
    border: none;
    margin-right: 5px;
    margin-top: 0px;
    height: 20px;
    width: 20px;
    border: 0px;
    background: var(--accents);
    margin-right: 10px;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transform: translateY(6px); 
}
.content .form form input[type=radio] {
    border-radius: 20px;
}
.content .form form input[type=checkbox]:checked,
.content .form form input[type=radio]:checked {
    background-image: url('../../images/icons/checkmark.svg');
    background-size: 12px 12px;
    background-position: 50% 50%;
    background-repeat: no-repeat;
}
.content .form form .field.header {
    margin-top: 10px;
}
.content .form form br {
    display: none;
}
.content .form form label.error {
    display: inline-block;
    color: var(--background);
    width: auto;
    padding: 12px 12px;
    line-height: 1;
    border-radius: 3px;
    font-size: 0.8em;
    position: absolute;
    right: 1em;
    top: -15px;
    background-color: var(--error);
}
.content .form form label.error.checked {
    color: var(--color);
    background-image: url('../../images/icons/form-checkmark.svg');
    background-repeat: no-repeat;
    background-size: 16px 16px;    
    width: 26px;
    padding-right: 0;
    background-position: 50% 50%;
    background-color: var(--color);
}
.content .form form label.error:after {
    content: "";
    width: 0; 
    height: 0; 
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--error);
    position: absolute;
    bottom: -5px;
    left: 50%;
    margin-left: -5px;
}
.content .form form label.error.checked:after {
    border-top-color: var(--color);
}
/*.content .form div.field.bc {*/
form div.field.bc{
    display: none!important;
}
.content .form form .btn.submit {
    margin-top: 10px;
}


/* file upload ** BETA
.content .form form .field.fileupload label.error {
    visibility: hidden;
}
.content .form form input[type=file] {
    margin-top: 5px;
    color:  transparent;
    font-family: inherit;
    font-size:  inherit;
    line-height: 1;
}
.content .form form input[type=file]::-webkit-file-upload-button {
    visibility: hidden;
}
.content .form form input[type=file]::before {
    content: 'Selecteer bestand';
    display: inline-block;
    border: 0px;
    border-radius: 2px;
    padding: 10px;
    white-space: nowrap;
    -webkit-user-select: none;
    cursor: pointer;
    color: var(--main);
    background-color: var(--accents);
    text-shadow: none;
}
.content .form form input[type=file].valid::before {
    content: 'Selecteer bestand ✓ ';
    color:  var(--background);
    background:  var(--color);
}*/
.content .form form input[type=file] {
    -webkit-appearance: none;
    margin-top: 7px;
}
.content .form form input[type=file],
.content .form form input[type=file]::-webkit-file-upload-button {
    font-family: inherit;
    font-size: inherit;
    -webkit-appearance: none;

}
.content .form form input[type=file]::-webkit-file-upload-button {
    border:  0;
    padding:  10px;
    margin-right: 15px;
    cursor: pointer;
    color: var(--main);
    background-color: var(--accents);
    border-radius: 2px;   
}
input[type=file]::-ms-browse {
    color:  #f00;
}


@media screen and (max-width: 1000px) {

    /* FORMS */
    .content .form form input[type=checkbox],
    .content .form form input[type=radio] {
        transform: translateY(6px);
    }

    

}