.modalDialog {
	position: fixed;
	font-family: Arial, Helvetica, sans-serif;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(0,0,0,0.8);
	z-index: 99999;
	opacity:0;
	-webkit-transition: opacity 400ms ease-in;
	-moz-transition: opacity 400ms ease-in;
	transition: opacity 400ms ease-in;
	pointer-events: none;
	width:45%;
	transition:width .75s ease-in-out;
}

.modalDialog:target {
	opacity:1.0;
	pointer-events: auto;
	width:100%;
}

.modalDialog > div {
	width: 90%;
	/*max-width:520px;*/
	position: relative;
	margin: 10% auto;
	margin-top:5%;
	padding: 5px 20px 13px 20px;
	border-radius: 10px;
	background: silver;
	background: linear-gradient(grey,silver,lightgrey, silver, grey);
	
}



.close {
	background: #606061;
	color: #FFFFFF;
	line-height: 40px;
	position: absolute;
	right: -20px;
	text-align: center;
	top: -20px;
	width: 40px;
	text-decoration: none;
	font-weight: bold;
	-webkit-border-radius: 12px;
	-moz-border-radius: 12px;
	border-radius: 12px;
	-moz-box-shadow: 1px 1px 3px #000;
	-webkit-box-shadow: 1px 1px 3px #000;
	box-shadow: 1px 1px 3px #000;
}

.close:hover { background: #00d9ff; }

*:focus {outline: none;}

.contact_form ul {
    width:100%;
    list-style-type:none;
    list-style-position:outside;
    margin:0px;
    padding:0px;
}
.contact_form li{
    padding:12px; 
    border-bottom:1px solid #eee;
    position:relative;
}

.contact_form li:first-child, .contact_form li:last-child {
    border-bottom:1px solid #777;
}

.contact_form h2 {
    margin:0;
    display: inline;
	color:#004663;
	text-shadow:1px 1px 2px #02aafc;
}
.required_notification {
    color:#d45252; 
    margin:5px 0 0 0; 
    display:inline;
    float:right;
}


.contact_form label {
	position:relative;
	right:-18%;
	width:10%;
	color:#004663;
	margin-top: 0px;
	display:inline-block;
	float:left;
	padding:3px;
	font-family:verdana;
	font-size:1em;
	text-align:right;
	
}
.contact_form input {
	position:relative;
	left:20%;
	height:20px; 
	min-width:200px;
	width:40%; 
	padding:5px 8px;
}
.contact_form textarea {
	position:relative;
	left:20%;
	padding:8px;
	min-width:200px;
	width:40%;
	}

.contact_form button {
	position:relative;
	left:32%;
	
	}

.contact_form input, .contact_form textarea { 
    border:1px solid #aaa;
    box-shadow: 0px 0px 3px #ccc, 0 10px 15px #eee inset;
    border-radius:2px;
}
.contact_form input:focus, .contact_form textarea:focus {
    background: #fff; 
    border:1px solid #555; 
    box-shadow: 0 0 3px #aaa; 
}

.contact_form input:focus, .contact_form textarea:focus { /* add this to the already existing style */
    padding-right:100px;
}

.contact_form input, .contact_form textarea { /* add this to the already existing style */
    -moz-transition: padding .25s; 
    -webkit-transition: padding .25s; 
    -o-transition: padding .25s;
    transition: padding .25s;
}


/* Button Style */
button.submit {
    background-color: #02aafc;
    background: linear-gradient(#004663, #02aafc, #004663);
    border: 1px solid #02aafc;
    border-bottom: 1px solid #004663;
    border-radius: 3px;
    box-shadow: inset 0 1px 0 0 #464646;
    color: #e5e4d7;
    font-weight: bold;
    padding: 6px 20px;
    text-align: center;
    text-shadow: 0 -1px 0 #396715;
}
button.submit:hover {
    opacity:.85;
    cursor: pointer; 
}
button.submit:active {
    border: 1px solid #dark blue;
    box-shadow: 0 0 10px 5px #black inset; 

}

.contact_form input, .contact_form textarea {
    padding-right:30px;
}

input:required, textarea:required {
    background: #fff url("../images/asterix.png") no-repeat 98% center;

}

.contact_form input:focus:invalid, .contact_form textarea:focus:invalid { /* when a field is considered invalid by the browser */
    background: #fff url(../images/invalid.png) no-repeat 98% center;
    box-shadow: 0 0 5px #d45252;
    border-color: #b03535
}

.contact_form input:required:valid, .contact_form textarea:required:valid { /* when a field is considered valid by the browser */
    background: #fff /*url(../images/valid.png) no-repeat 98% center*/;
    box-shadow: 0 0 5px #5cd053;
    border-color: #28921f;
}


@media screen and (max-width: 1024px) 
{

.contact_form label {
	position:relative;
	right:-10%;
	width:10%;
	color:#004663;
	margin-top: 0px;
	display:inline-block;
	float:left;
	padding:3px;
	font-family:verdana;
	font-size:1.5em;
	text-align:right;
	}

.contact_form input, .contact_form textarea	{
	font-size:1.5em;
	}
button.submit {
	font-size:1.5em
	}

}	

@media screen and (min-width: 1024px)
{

.contact_form label	{
	visibility:visible;
	opacity:1;
	}
}



