.form1 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 20px;
  align-items: center;
  justify-content: space-around;
  background: #f9f9f9;
  border: 1px solid #c1c1c1;
  border-radius: 10px;
  margin: 1rem auto 0 auto;
  max-width: 1000px;
  padding: 1em;
  box-shadow: 1px 1px black;
}

.form1 p {
  margin-top: 0.1em;
}



.form1 .inputfield:nth-child(odd) 
{
	grid-column: 1;
}
.form1 .inputfield:nth-child(even) 
{
	grid-column: 2;
}


.formname {
  margin-top:1px;
  text-align:center;
  margin-bottom:1px;
  background: grey;
  grid-column: 1 / 5;
  color:white;
  font-size: 1.2em;
  border-radius: 5px;
}


.form1 input {
  background: #fff;
  border: 1px solid #9c9c9c;
  border-radius: 5px;
  padding: 0.7em;
  margin-bottom: 0;
  width: 96%;
}

.form1 select {
  background: #fff;
  border: 1px solid #9c9c9c;
  border-radius: 5px;
  padding: 0em;
  margin-bottom: 0;
  width: 96%;
}


.form1 textarea {
  background: #fff;
  border: 1px solid #9c9c9c;
  border-radius: 5px;
  padding: 0em;
  margin-bottom: 0;
  width: 96%;
}

.form1 input[type="hidden"] {
  border: none;
  display: none !important;
  padding: 0em;
  margin: 0;
  width: 0em;
  height: 0em;
}

.form1 input:required:valid,select:required:valid,textarea:required:valid {
  background: url('/studentsnielit/images/check.png') no-repeat 97% 50%;
  background-size: 15px;
}
.form1 input:required:invalid,select:required:invalid,textarea:required:invalid  {
  background: url('/studentsnielit/images/wrong.png') no-repeat 97% 50%;
  background-size: 15px;
}

.form1 input:focus,select:focus,textarea:focus {
  outline: 2px solid gold;
}

.form1 input:hover,textarea:hover {
  border-color:  gold;
}

.form1 select:hover {
  outline: 2px solid gold;
}

.form1 .submit {
  background: lightgreen;
  padding: 0.7em;
  border: 0;
  grid-column: 1 / 5;
  width: 100%;
}
.form1 .submit:hover,.submit:focus {
  background: green;
  color: white;
}


.full-width {
  grid-column: 1 / 5;
}

.form1 select {
  padding: 0.1em;
  width:100%;
  min-height: 2.5em;
  border: 1px solid #9c9c9c;
  border-radius: 5px;
}

/*
.form1 select:focus {
  outline: 3px solid gold;
}

.form1 select:not(.checked){
   color:pink;
}*/

.form1 select:checked, .form1 select:hover, .form1 select:visited{
   color:black;
}

.form1 .required {
	color: red;
}

.form1 label {
  vertical-align:top;
  padding: 0.5em 0.5em 0.5em 0;
  width: 100%;
}

.form1 .inputmsg {
  color: rgb(102, 178, 255);
  margin-bottom: 1em;
  width: 100%;
}

.form1 .errormsg {
  color: red;
  grid-column: 1 / 3;
  text-align: center;
}

.datepick {
  color: maroon;  
  height: 1.5em; 
}
.datepickicon {
  color: maroon;  
  width: 7em;
  height: 1.5em; 
}


::-moz-placeholder { /* Firefox 19+ */
  color: pink;
}
::-webkit-input-placeholder { /* Chrome */
  color: pink;
}
::-chrome-placeholder { /* Chrome/Opera/Safari */
  color: pink;
}
:-ms-input-placeholder { /* IE 10+ */
  color: pink;
}
:-moz-placeholder { /* Firefox 18- */
  color: pink;
}



@media screen and (max-width: 600px) {
  .form1 {
    display: block;
  }

.full-width {
  grid-column: 100%;
}
 

  .form1 .formname,  .form1 input {
    grid-column: 100%;
  }

/*

  label {
    text-align: right;
    grid-column: 1 / 2;
  }

  input,
  button {
    grid-column: 2 / 3;
  }
*/


}
