header img {
  margin-top: 12px;
  width: 100%;
  max-width: 600px;
}

hr {
  height:2px; 
  border-width:0; 
  color:gray; 
  background-color:gray;
}

.addresslabel .questionlabel,
#p2 .questionlabel,
#p3 .questionlabel {
  width: 30%;
  display: inline-block;
  clear: none;
  font-weight: bold;
}

#p2 {
  display: block !important;
}

input[type="text"],
select {
  width: 60%;
  display: inline-block;
  margin-left: 0px;
  margin-bottom: 0px;
}

.phoneinstructions {
  display: block;
  clear: both;
  font-size: x-small;
  margin-left: 30%;
  margin-top: -22px;
  margin-bottom: 4px;
}

input[readonly="readonly"] {
  background-color: #eee;
}

input[readonly="readonly"]:focus {
  box-shadow: none;
  border-color: #ccc;
}

#pp9 input,
#pp31 input,
#pp44 input {
  display: inline-block;
  vertical-align: top;
  margin-top: 8px;
}

#pp9 .questionlabel,
#pd17 .questionlabel,
#pp31 .questionlabel,
#pp44 .questionlabel {
  display: inline-block;
  width: 90%;
  margin-bottom: 1.5em;
}

.spanc24 .questionlabel {
  display: none;
}

.spanc24 input,
#pp9 input,
#pd17 input,
#pp31 input {
  margin-left: 0px;
  margin-right: 8px;
}

#submitbtn.submit {
  width: 100%;
}

input[type="submit"] {
  background: #DE8F2F;
  color: #FFFFFF;
  padding: 15px 30px;
  border: none;
  border-radius: 0px;
  text-shadow: none;
}

input[type="submit"]:hover {
  background: #DE8F2F;
  color: #FFFFFF;
  padding: 15px 30px;
  border: none;
  border-radius: 0px;
  text-shadow: none;
}

footer {
  margin: 4em auto;
}

footer p {
  font-size: x-small;
  line-height: 1.25em;
  text-align: center;
  margin-bottom: 0px
}

@media only screen and (max-width: 768px) {
  
  .addresslabel .questionlabel {
    display: block;
    width: 100%;
  }
  
  input[type="text"],
  select {
    display: block;
    width: 100%;
  }
  
  .phoneinstructions {
    margin-left: 0px;
  }
  
  #p2 .questionlabel,
  #p3 .questionlabel {
    width: 90%;
    display: block;
    clear: both;
  }
}

@media only screen and (min-width: 480px) {

  .spanc3 ul li {
    display: inline-block;
    width: 33%;
  }
  
  .spanc2 ul li {
    display: inline-block;
    width: 25%;
  }
  
}

/* other fillin */

.otherfillin {
  display: inline-block;
  max-width: 50%;
}

.otherfillin input {
  border-top: 0px;
  border-left: 0px;
  border-right: 0px;
  border-radius: 0px;
  margin-left: 8px;
  padding: 0px;
  margin-bottom: 0px;
  border-bottom-style: dashed;
}

.otherfillin input:focus {
  border-top: 0px;
  border-left: 0px;
  border-right: 0px;
  box-shadow: none;
  border-bottom-style: dashed;
}


input[type="submit"] {
  background: #242fc1;
}

input[type="submit"]:hover {
  background: #27309c;
}

.footer {
  display: none !important;
}
