/* Add some margin to the page and set a default font and colour */

#survey-container { text-align:center; }

a#survey-btn { 
	position:relative; 
	top: 32px;
	border:none;
	z-index:99;
}

a#survey-btn:hover,
a#survey-btn:active {
  	opacity: 1;
}

/* Add curved borders to various elements */

#surveyForm input[type="submit"], #surveyForm input[type="button"] {
  	-moz-border-radius: 3px;
  	-webkit-border-radius: 3px;  
  	border-radius: 3px;
}

/* Style for the contact form and status messages */

#surveyForm {
	margin: 0 auto;
	width: 600px;
	max-height: 500px;
	font-family: "Georgia", serif;
	color:#000;
	background-color: #fff;
	border: 1px solid #aaa;
}

#surveyForm.positioned {
	position: fixed;
	top: 0;  
	bottom: 0;
	left: 0;
	right: 0;
	margin-top: auto;
	margin-bottom: auto;
	overflow-y:auto;
	z-index:9999;
}

#surveyForm, .statusMessage {
  background-color: #fff;
  border: 1px solid #aaa;
  color:#000;
  z-index:9977;
}

#formHeader { 
	position:relative;
	padding:15px;
	color:#000; 
	border-bottom:5px solid #d0a941; 
}

#formHeader h1 {
	font-family: "Georgia", serif;
	font-size:22px;
	text-align:center;
}

#closeBtn {
	position:absolute;
	top:-8px;
	left:-18px;
	width:55px !important;
	padding:5px;
	background:#d0a941;
	z-index:1;
}

#formContent {
	padding:20px;
	height:auto;
	overflow-y:auto;
}

#formContent p {
	margin:10px 0 8px 0;
	font-family: "Georgia", serif; 
}

/* Dimensions and position of the status messages */
#successMessage {
	margin: 0 auto;
	width: 600px;
	max-height: 500px;
	color:#000;
	background-color: #fff;
	border: 1px solid #aaa;
  	display: none;
}

#successMessage p {
	text-align:center;
}

#successMessage.positioned {
	position: fixed;
	top: 0;  
	bottom: 0;
	left: 0;
	right: 0;
	margin-top: auto;
	margin-bottom: auto;
	z-index:99999;
}

.statusMessage {
  display: none;
  margin: auto;
  width: 30em;
  height: 2em;
  padding: 1.5em;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index:999999999;
}

.statusMessage p {
  text-align: center;
  margin: 0;
  padding: 0;
}

/* Give form elements consistent margin, padding and line height */

#surveyForm ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#surveyForm ul li {
  margin: 0;
  padding: 0;
}

/* The field labels */

#surveyForm label {
	display: block !important;
	float: left;
	clear: left;
	text-align: left;
	min-width:70px;
	opacity:1;
}

#surveyForm label.dropdown {
	width:120px;
}


/* The fields */

#surveyForm input, #surveyForm textarea {
	display: block;
	margin: 0;
  	width: 300px;
	font-family: "Georgia", serif;
	font-size: 14px;
	border: 1px solid #aaa;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;    
	border-radius: 5px;
	background: #fff;
}
/* Place a border around focused fields, and hide the inner shadow */

#surveyForm *:focus {
  border: 1px solid #66f;
  outline: none;
  box-shadow: none;
  -moz-box-shadow: none;
  -webkit-box-shadow: none;
}


/* Display correctly filled-in fields with a green background 

input:valid, textarea:valid {
  background: #dfd;
}
*/

/* The Send and Cancel buttons */

#surveyForm input[type="text"], #surveyForm input[type="email"], #surveyForm input[type="phone"] {
	padding-left:5px;
	margin-bottom:5px;
	height:20px;
}

#surveyForm input[type="submit"], #surveyForm input[type="button"] {
  float: left;
  margin:10px 0 0 20px;
  width: 160px;
  padding: 8px;
  border: 1px solid #666;
  -moz-border-radius: 10px;
  -webkit-border-radius: 10px;  
  border-radius: 10px;
  color: #fff;
  background: #d0a941;
  font-size: 14px;
  line-height: 14px;
  font-weight: bold;
  opacity: .7;
  -webkit-appearance: none;
  -moz-transition: opacity .5s;
  -webkit-transition: opacity .5s;
  -o-transition: opacity .5s;
  transition: opacity .5s;
}

#surveyForm input[type="submit"]:hover,
#surveyForm input[type="submit"]:active,
#surveyForm input[type="button"]:hover,
#surveyForm input[type="button"]:active {
  cursor: pointer;
  opacity: 1;
}

#surveyForm input[type="submit"]:active, #surveyForm input[type="button"]:active {
  color: #fff;
  background: #eee;
}

#surveyForm input[type="button"] {
  background: #d0a941;
}

#surveyForm label.checkbox {
	float:left;
}

#surveyForm input[type="checkbox"] {
    position:relative;
	top:1px;
	float:left;
	margin-right:3px;
	width:13px;
	height:13px;
}
