/*  Modeled from: www.educative.io/answers/how-to-create-a-responsive-form-using-css */


/*
 * Vertical spacer
 */
.verticalSpace {
    padding-bottom: 30px;
}

/*
 * For the input fields in the main body of the form
 * The column widths should be divided between the width of pageEval class (1000px), less the left/right padding
 */

.fifthRow {
    display: grid;
    grid-template-columns: 140px 140px 140px 140px 140px;
}
.quarterRow {
    display: grid;
    grid-template-columns: 150px 150px 150px 150px;
}
.thirdRow {
    display: grid;
    grid-template-columns: 200px 200px 200px;
}
.halfRow {
    display: grid;
    grid-template-columns: 200px 200px;
}
.fullRow {
    display: grid;
    grid-template-columns: 800px;
}
@media only screen and (max-width: 860px) {
    .fullRow {
	grid-template-columns: 650px;
    }
    .halfRow {
	grid-template-columns: 200px 200px;
    }
    .thirdRow {
	grid-template-columns: 200px 200px 200px;
    }
    .quarterRow {
	grid-template-columns: 150px 150px 150px 150px;
    }
    .fifthRow {
	grid-template-columns: 130px 130px 130px 130px 130px;
    }
}
@media only screen and (max-width: 730px) {
    .fullRow {
	grid-template-columns: 450px;
    }
    .thirdRow {
	grid-template-columns: 200px 200px;
    }
    .quarterRow {
	grid-template-columns: 200px 200px;
    }
    .fifthRow {
	grid-template-columns: 150px 150px 150px;
    }
}
@media only screen and (max-width: 520px) {
    .fullRow {
	grid-template-columns: 100%;
    }
    .quarterRow, .fifthRow {
	grid-template-columns: 150px 150px;
    }
}
@media only screen and (max-width: 400px) {
    .fullRow, .halfRow, .thirdRow, .quarterRow, fifthRow {
	grid-template-columns: 100%;
    }
}


.col {
    padding: 0px 10px 10px 10px;   /* top right bottom left */
    //text-align: left;
}
@media only screen and (max-width: 520px) {
    .col {
	padding: 0px 0px 10px 0px;   /* top right bottom left */
    }
}
.colCaption {
    margin-bottom: 10px;

    font-family: "Nunito Sans", sans-serif;
    color: var(--color-dark-lighter);
    font-size: 14px;
    font-style: italic;
}
.colAlertMsg {
    font-family: "Nunito", sans-serif;
    font-size: 16px;
    font-weight: bold;
    color: var(--color-dark);
}
.colTitle {
    margin: 5px 0px;		/* top/bottom  left/right */

    font-family: "Nunito Sans", sans-serif;
    font-size: 16px;
    font-weight: bold;
    color: var(--color-dark);
}

.colIndented {
    padding: 0px 40px 10px 30px;   /* top right bottom left */
    text-align: left;
}


label {
    display: block;
    text-align: left;
    line-height: 200%;

    font-family: "Nunito Sans", sans-serif;
    font-size: 16px;
    font-weight: bold;
    color: var(--color-dark);
}


/*
 * input fields styling
 */
.form-control {
    display: block;

    width: 100%;
    border: 1px solid var(--color-grey);
    border-radius: 5px;
    padding: 10px 10px 10px 10px; 	/* top right bottom left */

    font-family: "Nunito Sans", sans-serif;
    font-size: 20px;
    color: var(--color-dark);
}
.form-control:focus {
    border: 2px solid var(--color-blue);
    outline: var(--color-blue);
}
::placeholder {
    font-family: "Nunito Sans", sans-serif;
    font-size: 14px;
    color: var(--color-grey);
}

/*
 * Pull-down menu and text area styling
 */
.select-control, .textarea-control {
    width: 700px;
    border: 1px solid var(--color-grey);
    border-radius: 5px;
    box-sizing: border-box;	/* the width: 100% does not take into account padding and border values; this makes sure it does! */
    padding: 10px;    /* top/bottom  right/left */
    margin-bottom: 10px;

    font-family: "Nunito Sans", sans-serif;
    font-size: 18px;
    color: var(--color-dark);
}
.textarea-control:focus {
    border: 2px solid var(--color-blue);
    outline: var(--color-blue);
}

@media only screen and (max-width: 860px) {
    .textarea-control, .select-control {
	width: 600px;
    }
}
@media only screen and (max-width: 730px) {
    .textarea-control, .select-control {
	width: 400px;
    }
}
@media only screen and (max-width: 520px) {
    .textarea-control, .select-control {
	width: 100%;
    }
}




input[type=checkbox], input[type=radio] {
    transform: scale(1.5);
}

/* a checkbox to the left of its "label" text */
.checkboxColumn {
    float: left;
    width: 30px;
    height: 100%;
}


/*
 * Square radio buttons
 */

/* Hide the browser's default radio button */

.hideRadio input {
    position: fixed;
    opacity: 0;
}

/* Create a custom radio button */
.square-radio {
    cursor: pointer;

    border: 1px solid var(--color-grey);
    border-radius: 5px;
    padding: 10px 5px; 	/* top/bottom right/left */
    width: 140px;

    font-family: "Nunito Sans", sans-serif;
    font-size: 16px;
    font-weight: normal;
-webkit-text-size-adjust: 100%;
text-size-adjust: 100%;
    color: var(--color-dark);
    text-align: center;
}
.fifthRow .square-radio {
    width: 97px;
}
.quarterRow .square-radio {
    width: 100px;
}
@media only screen and (max-width: 730px) {
    .fifthRow .square-radio {
	width: 100px;
    }
    .quarterRow .square-radio {
	width: 100px;
    }
}

.square-radio:hover {
    border: 1px solid var(--color-dark);
}


/* ~ selects every square-radio element that is preceded by an input element */
/* see css selectors */

input:checked ~ .square-radio {
    border: 2px solid var(--color-blue);
}



/*
 * class to make sure text is unselectable
 */     
.nonSelectable {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
} 


