/* #Fonts
================================================== */

@import url("https://use.typekit.net/krz2jrc.css");
@import "//cdn.fonts.net/kit/2bfaaff9-4c34-4d59-9706-8fa82a68e95b/2bfaaff9-4c34-4d59-9706-8fa82a68e95b.css";

@import "fontawesome/all.css?1";

/*
	astoria-sans
	
	AvenirNextLight
	AvenirNextMedium
	AvenirNextBold
*/

/* #Reset & Basics 
================================================== */
	html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, tt, var, b, u, i, center, dl, dt, dd, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
		margin: 0;
		padding: 0;
		border: 0;
		font-size: 100%;
		font: inherit;
		vertical-align: baseline; }
	article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
		display: block; }
	body {
		line-height: 1; }
	blockquote, q {
		quotes: none; }
	blockquote:before, blockquote:after,
	q:before, q:after {
		content: '';
		content: none; }
	table {
		border-collapse: collapse;
		border-spacing: 0; }
	sub, sup {
		font-size: 50%;
		line-height: normal; }


/* #Basic Styles
================================================== */
	html, body {
		background: #fff;
	}
	body {
		font: 300 17px/1.3 "astoria-sans", sans-serif;
		color: #626262;
		text-align: center;
		-webkit-font-smoothing: antialiased; /* Fix for webkit rendering */
		-moz-osx-font-smoothing: grayscale;
		-webkit-text-size-adjust: 100%;
	}
	body.b_home { font-size: 20px; line-height: 1.1}
	
	::-moz-selection { background: #293593; color: #fff; text-shadow: none; }
	::selection { background: #293593; color: #fff; text-shadow: none; }


/* #Typography
================================================== */
	h1, h2, h3, h4 {
		color: #293593;
		font-family: "astoria-sans", sans-serif;
		font-weight: 500;
		letter-spacing: -1px; }
	h1 a, h2 a, h3 a, h4 a { font-weight: inherit; color:inherit; text-decoration: inherit; }
	h1 strong, h2 strong, h3 strong, h4 strong { font-weight: normal; }
	h1 { font-size: 40px; line-height: 1; margin-bottom: 30px;}
	h2 { font-size: 35px; line-height: 1; margin-bottom: 20px; color: #5A5A5A }
	h3 { font:'astoria-sans'; font-size: 30px; font-weight: 300; line-height: 1; margin-bottom: 20px; color: #5A5A5A}
	h4 { font-size: 20px; margin: 15px; line-height: 1.1;}
	
	
	.b_home h1, .b_home h2, .b_home h3 { 
		text-align: center;
		padding: 0; 
	}
	.b_home h1 { margin-bottom: 60px; font-size: 47px; text-align: left }
	
	
	.b_home h2 { font-size: 50px; color: #293593; }

	p { margin: 0 0 20px 0; }
	p img { margin: 0; }

	em { font-style: italic; }
	strong { font-weight: 400; }
	small { font-size: 80%; }

/*	Blockquotes  
	blockquote, blockquote p { font-size: 17px; line-height: 24px; color: #777; font-style: italic; }
	blockquote { margin: 0 0 20px; padding: 9px 20px 0 19px; border-left: 1px solid #ddd; }
	blockquote cite { display: block; font-size: 12px; color: #555; }
	blockquote cite:before { content: "\2014 \0020"; }
	blockquote cite a, blockquote cite a:visited, blockquote cite a:visited { color: #555; }
*/

	hr { border: solid #ddd; border-width: 1px 0 0; clear: both; margin: 10px 0 20px; height: 0; }


/* #Links
================================================== */
	a { color: #333; text-decoration: underline; outline: 0; }
	a:hover, a:focus { color: #000; }
	p a { line-height: inherit; }


/* #Images
================================================== */

	img { -ms-interpolation-mode: bicubic; max-width: 100%; height: auto !important }


/* #Buttons
================================================== */

	form button,
	.buttonlink,
	.cta a{
		color: #fff;
		background: #2e6abd;
		border: 0;
		margin: 20px 0 0 0;
		padding: 8px 20px 9px 20px ;
		line-height: 1;
		cursor: pointer;
		font-size: 16px;
		font-family: 'astoria-sans';
		font-weight: 300;
		text-decoration: none;
	    outline: 0;	
	    border-radius: 15px;
	    position: relative;
	    display: inline-block;
	    text-shadow: none ;
	}  
	form button:hover,
	.buttonlink:hover,
	.cta a:hover {
		color: #fff;
		background: #000;
	}
	

	#topnavi .cta { margin: -30px 0 0 30px;}
	

/* #Forms
================================================== */

	
	form, fieldset {
		margin-bottom: 0; }
	form p {
		margin-bottom: 20px;
		position: relative;  }
	input[type="text"],
	input[type="password"],
	input[type="email"],
	input[type="date"],
	textarea,
	select {
		padding: 10px 14px;
		outline: none;
		border-radius: 2px;
		font: 300 16px/1.3 "astoria-sans", sans-serif; 
		color: #777;
		margin: 0;
		width: 100%;
		display: block;
		border-radius: 6px;
		background: #fff;
		border: 1px solid #293593;
		box-shadow: inset 0px 3px 6px rgba(0, 0, 0, 0.16), 0px 3px 6px rgba(0, 0, 0, 0.16) ;

		box-sizing: border-box;
		appearance: none;
		-webkit-appearance: none;
		-moz-appearance: none; } 

	select {
		padding-right: 50px;
		line-height: 1.3;
		background: #f6f6f6 url(/_img/layup/select.svg) no-repeat right 14px center;
		}
/*	select:hover  {
		background-image: url(/_img/layup/select_bg_hover.png);
	} */
	
	select[multiple] {
		background-image: none;
	}
	
	select::-ms-expand { display: none; }
	

	
	input[type="text"]:hover,
	input[type="password"]:hover,
	input[type="email"]:hover,
	input[type="date"]:hover,
	textarea:hover {
		border: 1px solid #000; }
	input[type="text"]:focus,
	input[type="password"]:focus,
	input[type="email"]:focus,
	input[type="date"]:focus,
	textarea:focus {
		border: 1px solid #aaa;
 		color: #444;
 		background: #fff;
		box-shadow:  0 0 3px rgba(0,0,0,.2); }
	textarea {
		min-height: 60px;
		resize: none; }
		
	label,
	legend {
		display: block;
		font:'astoria-sans';
		font-weight: 500;
		position: relative;
		color: #293593;
		margin-bottom: 10px; }
		
	input[type=checkbox ] + label { margin-left: 25px; } 
	input[type="checkbox"] {
		display: inline;
		float: left; }
	label span,
	legend span {
		font-weight: normal;
		font-size: 13px;
		color: #444; }
	::-webkit-input-placeholder { color: rgba(0,0,0,0.5); line-height: 1.3  }
	::-moz-placeholder { color: rgba(0,0,0,0.5); line-height: 1.3  }
	:-ms-input-placeholder { color: rgba(0,0,0,0.5); line-height: 1.3  }
	input:-moz-placeholder { color: rgba(0,0,0,0.5); line-height: 1.3  }
	
	.contactCheck {
		position: absolute; 
		left: -9999px;
	}
	
	input[type=date]:after,
	.fa-calendar:after {
		color: #494a4a;
		font: 300 30px/0.7 'Font Awesome 5 Pro';
		margin-right: 25px;
		text-decoration: none;
		content: '\f073';
		position: absolute;
		right: 0;
		bottom: 9px;
		pointer-events: none;
	}
	
	input[type="date"]::-webkit-datetime-edit-text { color: #b9b9b9; }
	input[type="date"]::-webkit-inner-spin-button,
	input[type="date"]::-webkit-calendar-picker-indicator {
	   opacity: 0;
	}

	
	/* Ajax & Error Checking */
	
	.formerror input,
	.formerror textarea,
	.formerror select {
		border: 1px solid #d11010;
		background-color: #9c2212;
		color: #fff !important;
	}
	.formerror input:hover,
	.formerror textarea:hover,
	.formerror select:hover {
		border: 1px solid #eb6e5d;
	}
	.formerror input:focus,
	.formerror textarea:focus,
	.formerror select:focus {
		background-color: #62150b;
	}
	
	.formerror label:after,
	.formerror legend:after {
		color: #d11010;
		content: " *";
		position: absolute;
		top: 0;
		left: -10px;
	}
	
	.formerror legend+label:after,
	.formerror legend+label+label:after {
		content: " " ; 
	}
	
	.formerror label,
	.formerror legend {
		color: #d11010;
	}
	
	.formerror ::-webkit-input-placeholder { color: rgba(255,255,255,0.5); }
	.formerror ::-moz-placeholder { color: rgba(255,255,255,0.5); }
	.formerror :-ms-input-placeholder { color: rgba(255,255,255,0.5); }
	.formerror input:-moz-placeholder { color: rgba(255,255,255,0.5); }
	
	.formerror .fa-calendar:after { color: #fff; }
	
	#submitButton {
		margin: 0;
		padding: 0;
	}
	
	.error {
		color: #d11010;
		text-align: left !important;
	}
	.message {
		color: #fff;
		background: #1a3965;
		padding: 10px 15px 5px;
		margin-bottom: 15px;
	}
	.message a {
		color: #fff;
	}
	#waiting {
		position: absolute;
		text-align: center;
		background: url(/_img/layup/loading.svg) no-repeat center center;
		background-size: 100px;
	}
	
	
 
	
/* #Tables
================================================== */	
	
	table {
		margin-bottom: 10px;
		max-width: 100% !important;
	}
	table[border="1"] td {
		border: 1px solid #b9b8b6;
	}
	td, th {
		padding: 6px;
		text-align: left;
		vertical-align: top;
		font-size: 15px;
	}
	th {
		background: #f7f7f7;
		color: #646464;
		font-family: 'astoria-sans';
		font-weight: 500;
		font-size: 15px; 
		border-bottom: 1px solid #c9c9c9;
	}
	
	

/* #Clearing
================================================== */

    .clear {
		clear: both;
		display: block;
		overflow: hidden;
		visibility: hidden;
		width: 0;
		height: 0;
		line-height: 0;
    }
	
/*	alt .clear  {
		content: '\0020';
		display: block;
		overflow: hidden;
		visibility: hidden;
		width: 0;
		height: 0; 
	}
*/


/* #Base Animations
================================================== */

.shake {	
    animation: shake 1s ;
}

@keyframes shake {
  from, to {
    transform: translate3d(0, 0, 0);
  }

  10%, 30%, 50%, 70%, 90% {
    transform: translate3d(-10px, 0, 0);
  }

  20%, 40%, 60%, 80% {
    transform: translate3d(10px, 0, 0);
  }
}