.form-thanks {
    background: var(--color1);
    color: var(--bodycolor1);
    padding: 30px;
    max-width: 500px;
    border-radius: 5px;
}
.form-thanks p:last-of-type {
    margin-bottom: 0!important;
}
.content p + .form {
    margin-top: 30px;
}
.content .form form {
    width: 100%;
    position: relative;
    /*margin-top: 1em;*/
    /*max-width: 800px;*/
}
.content .form form .field {
    position: relative;
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}
.content .form form .field.datefield,
.content .form form .field.timefield {
    flex-wrap: wrap;
    flex-direction: initial;
}
.content .form form .field.datefield label,
.content .form form .field.timefield label {
    width: 100%;
}
.content .form form .field.datefield .field-wrap,
.content .form form .field.timefield .field-wrap {
    display: flex;
    margin-right: 16px;
    width: calc(25% - 8px);
    min-width: 125px;
}
.content .form form .field.datefield .field-wrap input,
.content .form form .field.timefield .field-wrap input {
}
.content .form form .field label {
    margin-top: 4px;
    margin-bottom: 8px;
    font-size: 16px;
    color: var(--color1);
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
}
.content .form form .field.checkboxes label.checkboxes {
    margin: 0; padding: 0 0; font-weight: 500; text-transform: none;
}
.row-formulier .content .form form .field.checkboxes label.checkboxes {
    text-transform: uppercase;
}
.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;
    line-height: 1.7;
    cursor: pointer;
}
.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;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}
#mailstage input[type=email],
.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 {
    order: 2;
    padding: 10px;
    font-family: inherit;
    font-size: inherit;
    color: var(--color1);
    width: 100%;
    border: 1px solid rgb(39 87 79 / 50%);
    border-radius: 3px;
    box-sizing: border-box;
    -webkit-appearance: none;
    background-color: transparent!important;
}
#mailstage input[type=email] {
    order: 2;
}

.content .form form .field.w15 .field-wrap { width: 15%; }
.content .form form .field.w25 .field-wrap { width: 25%; }
.content .form form .field.w50 .field-wrap { width: 50%; }
.content .form form .field.w75 .field-wrap { width: 75%; }

.row:nth-of-type(even) .content .form form input[type=text],
.row:nth-of-type(even) .content .form form input[type=time],
.row:nth-of-type(even) .content .form form input[type=date],
.row:nth-of-type(even) .content .form form textarea, 
.row:nth-of-type(even) .content .form form select {
    background-color: var(--bodycolor1);
}
.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(--bodycolor2);
    font-family: inherit;
    font-size: inherit!important;
    color: inherit;	
    height: 45px;
}
.content .form form textarea {
    display: block;
    min-height: 150px;
    max-height: 300px;
    max-width: 100%;
    resize: none;
}
.content .form form input[type=checkbox],
.content .form form input[type=radio] {
    position: relative;
    width: auto;
    padding: 0;
    margin: 0;
    border: none;
    margin-right: 5px;
    margin-top: -1px;
    height: 21px;
    width: 21px;
    border: 1px solid rgb(39 87 79 / 50%);
    border-radius: 2px;
    box-sizing: border-box;
    margin-right: 10px;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transform: translateY(4px);
}
.content .form form input[type=checkbox]:hover,
.content .form form input[type=radio]:hover {
    background-color: rgb(171 146 111 / 25%);
}
.content .form form input[type=radio] {
    border-radius: 20px;
}
.content .form form input[type=checkbox]:checked,
.content .form form input[type=radio]:checked {
    filter: invert(1);
    background-color: #ff6977;
    background-image: url(../../images/icons/checkmark.svg);
    background-size: 11px;
    background-position: 50%;
    background-repeat: no-repeat;
}
.content .form form .field.header {
    margin-top: 10px;
}
.content .form form br {
    display: none;
}
.content .form form label.error {
    position: relative;
    display: inline-block;
    order: 1;
    top: 0;
    right: 0;
    margin: -5px 0 10px 0;
    width: auto !important;
    font-size: 0.8em;
    color: var(--error);
    font-weight: 500;
    line-height: 1;
    border-radius: 3px;
    white-space: nowrap;
}
.content .form form label.error.checked {
    position: absolute;
    top: 13px;
    right: -33px;
    margin: 0;
    padding: 0;
    width: auto !important;
    height: 20px;
    color: var(--color1);
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    background-color: #009688;
    background-image: url(../../images/icons/form-checkmark.svg);
    background-position: 50%;
    background-size: 10px;
    background-repeat: no-repeat;
}
.content .form form .field.datefield label.error.checked,
.content .form form .field.timefield label.error.checked {
    right: 13px;
}
#mailstage form label.error {
    order: 1;
    width: 100%;
    font-size: 14px;
    margin: -10px 0 10px 0;
    opacity: 0.75;
}
#mailstage form label.error:after,
.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 {
    content: none;
}
.content .form form label.error.checked:after {
    border-top-color: #009688;
}
/*.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(--textcolor1);
    background-color: var(--bodycolor2);
    text-shadow: none;
}
.content .form form input[type=file].valid::before {
    content: 'Selecteer bestand ✓ ';
    color:  var(--bodycolor1);
    background:  var(--color1);
}*/
.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(--textcolor1);
    background-color: var(--bodycolor2);
    border-radius: 2px;   
}
input[type=file]::-ms-browse {
    color:  #f00;
}


/* Aanvraag reservering zaal of ruimte */
body.page26.userforms .content .form form { width: 50%; min-width: 0; max-width: 100%; }


.row-formulier .content .form form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.row-formulier .content .form form .field { margin-bottom: 0; }
.row-formulier .content .form form .field.textarea,
.row-formulier .content .form form .field.checkboxes { grid-column: span 3; }
.row-formulier .content .form form .field.textarea { margin-bottom: -15px; }
.row-formulier .content .form form .field.checkboxes { display: flex; flex-direction: row; align-items: center; gap: 15px; }
.row-formulier .content .form form .field.checkboxes label { margin: 0; }
.row-formulier .content .form form .btn.submit { width: 157px; }


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

    /* FORMS */
    .content .form form input[type=checkbox],
    .content .form form input[type=radio] { transform: translateY(4px); }
    
    body.page26.userforms .content .form form { width: 100%; min-width: 0; }
    
    .content .form form .field.datefield,
    .content .form form .field.timefield { column-gap: 10px; }
    .content .form form .field.datefield .field-wrap,
    .content .form form .field.timefield .field-wrap { margin-right: 0; width: calc(50% - 5px); }

    .content .form form .field.w15 .field-wrap { width: 25%; }
    .content .form form .field.w25 .field-wrap { width: 50%; }
    .content .form form .field.w50 .field-wrap { width: 75%; }
    .content .form form .field.w75 .field-wrap { width: 100%; }
        
    .content .form form label.error.checked,
    .content .form form .field.textarea label.error.checked,
    .content .form form .field.w75 label.error.checked { right: 13px; }
    .content .form form .field.w15 .field-wrap label.error.checked,
    .content .form form .field.w25 .field-wrap label.error.checked,
    .content .form form .field.w50 .field-wrap label.error.checked { right: -33px; }
    
    .content .form form .field.checkboxes label.checkboxes { padding: 2px 0; }
    
    .content .form form select { height: 47px; }
    
    .row-formulier .content .form form,
    .row-formulier .content .form form .field.checkboxes { display: flex; flex-direction: column; }
    .row-formulier .content .form form { gap: 10px; }
    .row-formulier .content .form form .field { width: 100%; }
    .row-formulier .content .form form .field.textarea { margin-bottom: 0; }
    .row-formulier .content .form form .field.checkboxes { align-items: flex-start; gap: 0; margin-top: 15px; }
    .row-formulier .content .form form .field.checkboxes label { align-items: center; padding: 5px 0; width: 100%; line-height: 1; }
    .row-formulier .content .form form .field.checkboxes label:first-of-type { margin-bottom: 5px; }
    .row-formulier .content .form form .field.checkboxes input[type=checkbox] { transform: translateY(0); }
    .row-formulier .content .form form .btn.submit { margin-top: 20px; }
    
    .row-formulier .content .form form .field.checkboxes label.checkboxes { text-transform: none; }
    
    #mailstage form label.error { margin: 0; }
    
}
