input {
  height: 24px;
}

input:not([type=submit]), textarea {
	background: #EFEFEF;
	border: none;
}

/* Remove arrows/spinners */
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

label {
	line-height: 150%;
}

#main {
	display: grid;
	grid: auto 1fr / 0.8fr;
	justify-content: center;
}

#form {
	display: grid;
	grid: auto auto 1fr / auto;
	grid-gap: 16px;
}

#text_fields {
	grid-row: 1;
	display: grid;
	grid: repeat(4, auto) 1fr / repeat(auto-fit,  minmax(0, 1fr));
	grid-gap: 16px;
}

#name {
	grid-column: span 4;
}

#address {
	grid-column: span 2;
	grid-row: 2;
}

#city {
	grid-column: span 2;
	grid-row: 2;
}

#state {
	grid-column: span 2;
	grid-row: 3;
}

#zip {
	grid-row: 3;	
}

#phone {
	grid-column: span 2;
	grid-row: 4;	
}

#email {
	grid-column: span 2;
	grid-row: 4;	
}

#more-info {
	grid-column: span 4;
	grid-row: 5;
	min-height: 54px;
}

#ins-type {
	display: grid;
  grid-template-columns: auto 1fr;
	grid-gap: 16px;
}	

#ins-title {
	grid-column: span 2;
}

.expiration {
	visibility: hidden;
  min-width: 128px;
}

#submit {
 	justify-self: center;
 	width: 96px;
  cursor: pointer;
}

/* Checkbox */
/*-----------------------------------------*/

/* Customize the label (the container) */
.checkbox {
  display: grid;
  grid-template-columns: 0fr auto 1fr;
  grid-gap: 16px;
  position: relative;
  cursor: pointer;
  font-size: 22px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hide the browser's default checkbox */
.checkbox input[type=checkbox] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkbox */
.checkmark {
  height: 24px;
  width: 24px;
  background-color: #eee;
}

/* On mouse-over, add a grey background color */
.checkbox:hover input ~ .checkmark {
  background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */
.checkbox input:checked ~ .checkmark {
  background-color: #2196F3;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.checkbox input:checked ~ .checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.checkbox .checkmark:after {
  left: 8px;
  top: 4px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

/* Reveal the expiration date */
.checkbox input:checked ~ .expiration {
  visibility: visible;
}