/*
******************************************************************
Default und Custom CSS for Module Form

(c) sinntun.codes
******************************************************************
*/


/*****************************************************************
**** defaultform
******************************************************************/

.defaultform {
}



/*** form-info / form-error
******************************************************************/

.form-info {
    margin-bottom: 20px;
}

.form-error p {
    font-weight: bold;
    color: #ff8b00;
    margin-bottom: 20px;
}




/*****************************************************************
**** form-rows
******************************************************************/

.form-row {
    margin-bottom: 20px;
}



/*****************************************************************
**** FormElements
******************************************************************/

.form-row label {
    float: left;
    width: 200px;
    padding: 10px 0;
    font-weight: 600;
}

/* honeypot */
.form-row.email,
.form-row.email2,
.form-row.mailmail,
.form-row.no-display {
    display: none;
}



/*** text, textarea
******************************************************************/

.defaultform textarea {
    display: block;
    border-left: 0px solid #ff8b00;
    padding: 10px 12.5px;
    color: #000;
    font-size: 16px;
    font-family: 'Open Sans', sans-serif;
    /*width: 361px;*/
    width: calc(100% - 200px);
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    resize: vertical;
    min-height: 42px;
}

.defaultform .textbox {
    display: block;
    width: calc(100% - 200px);
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    border-left: 0px solid #ff8b00;
    padding: 10px 12.5px;
    font-size: 16px;
    color: #000;
    font-family: 'Open Sans', sans-serif;
}

.defaultform textarea:focus,
.defaultform textarea:focus-visible,
.defaultform .textbox:focus {
    border-left: 10px solid #ff8b00 !important;
    outline: none;
}

.form-row.gender {
    position: relative;
    bottom: 10px;
}

.form-row.dataprotection {
    margin-top: 30px;
    margin-bottom: 10px;

    font-size: 14px;
}

.defaultform input,
.defaultform textarea {
    background: #e4e4e4;
    border: none;
    transition: border 0.1s ease-in-out;
}


/*** selectbox
******************************************************************/

.form-row select {
    display: inline-block;
    padding: 5px;
    width: calc(100% - 147px);
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}


/*** checkbox
******************************************************************/

.form-row .checkbox-text {
    padding-left: 10px;
}



/*** radiobuttons
******************************************************************/

.form-row input[type="radio"] {
    margin: 11px 11px 0 0;
    height: 20px;
}

.radiobutton-wrapper label {
    width: 80px;
    font-weight: initial;
}

.radiobuttons-wrapper input {
    float: left;
}

.radiobuttons-wrapper.rows {
    display: block;
    width: 600px;
    float:left;
}

.radiobuttons-wrapper.rows .radiobutton-wrapper {
    display: blocK;
    clear: both;
    float: none;
}

.radiobuttons-wrapper.rows .radiobutton-wrapper label {
    max-width: 550px;
}



/*** .postcode and place in one line
******************************************************************/

.form-row.postcode-place label {
    float: left;
    width: auto;
}

.form-row .form-postcode-place-label {
    float: left;
    width: 200px;
}

.form-row .form-postcode-place-label span {
    float: left;
    margin-top: 10px;
}

.form-row .form-postcode-place-input-wrapper {
    width: calc(100% - 200px);
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    overflow: hidden;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.form-row .form-postcode-input,
.form-row .form-place-input {
    display: block;
    overflow: hidden;
}

.form-row .form-postcode-input {
    width: calc(40% - 8px);

}

.form-row .form-place-input {
    width: 100%;
    padding-left: 20px;
}

.form-row .form-postcode-input .textbox {
    width: 100% !important;
}

.form-row .form-place-input .textbox {
    width: 100% !important;
}

/*** .dateselector
******************************************************************/

.dateselector_day {
    width: 55px;
}

.dateselector_month {
    width: 55px;
}

.dateselector_year {
    width: 110px;
}

/* .dateselector_monthyear used in DateSelector2 */
.dateselector_monthyear {
    width: 200px;
}

.dateselector_textbox_day {
    width: 55px;
}

.dateselector_textbox_month {
    width: 55px;
}

.dateselector_textbox_year {
    width: 110px;
}

.datetimeselector_day {
    width: 55px;
}

.datetimeselector_month {
    width: 55px;
}

.datetimeselector_year {
    width: 110px;
}

.datetimeselector_hour {
    width: 110px;
}

.datetimeselector_minute {
    width: 110px;
}


/*** captcha
******************************************************************/
.form-row.captcha div {
    display: flex;
    flex-direction: column;
}

.form-row.captcha div img {
    max-width: 300px;
    margin-bottom: 20px;
}

.form-row.captcha div input {
    width: 100%;
    max-width: 300px;
}



/*** submit
******************************************************************/

.defaultform .form-submit-container {
    float: left;
    width: 100%;
    display: block;
    margin-top: 10px;
}

.defaultform .button-submit {
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #ffffff;
    background-color: #ff8c00;
    display: inline-block;
    margin-top: 11px;
    padding: 8.5px 0;
    width: 100%;
    max-width: 300px;
}

.defaultform .button-submit[disabled] {
    filter: grayscale(1);
}


.defaultform .form-row.dataprotection,
.defaultform .button-submit {
    margin-left: 200px;
}

.defaultform .button-submit:hover {
    text-decoration: none;
    opacity: 1;
}

.confirm h2 {
    font-size: 34px;
    font-weight: bold;
    margin-bottom: 20px;
}

.confirm .link {
    display: block;
    margin-top: 20px;
    color: #ff8c00;
    font-weight: bold;
}

.confirm .link i {
    margin-right: 5px;
}

.newline > *:not(textarea) {
    display: block;
    width: 100% !important;
    margin-left: 200px;
}

.newline > textarea {
    margin-left: 200px;
}

.newline .radiobuttons-wrapper {
    position: relative;
    bottom: 10px;
}

@media (max-width: 768px) {
    .defaultform * {
        float: none !important;
    }

    .defaultform textarea,
    .defaultform .textbox,
    .form-row .form-postcode-place-input-wrapper {
        width: 100%;
    }

    .form-row .form-postcode-input {
        width: calc(50% - 8px);
    }

    .defaultform .form-row.dataprotection,
    .defaultform .button-submit {
        margin-left: 0;
    }

    .form-row.dataprotection {
        margin-bottom: 20px;
    }

    .form-row > label {
        display: block;
        padding-top: 0;
    }

    .form-row .form-postcode-place-label {
        margin-bottom: 10px;
    }

    .form-row.gender {
        bottom: 0;
    }

    .form-row input[type="radio"] {
        margin: 0;
        height: 17px;
    }

    .form-row input[type="radio"]:not(#gender-1):not(#custom_bildung-1) {
        margin-left: 15px;
    }

    .newline > * {
        margin-left: initial !important;
    }

    .newline .radiobuttons-wrapper {
        bottom: 0;
    }
}

