.clearfix::before {
	content: " ";
	display: table;
}
.clearfix::after {
	clear: both;
	content: " ";
	display: table;
}

/* .grecaptcha-badge {
	visibility: hidden;
} */

.stratford-forms {
    margin: auto;
    max-width: 40em;
}
.stratford-forms fieldset:disabled,
.stratford-forms #openhouse_date_field {
	display: none;
}

.stratford-forms p.disclaimer {
	font-size: 0.8rem;
	margin-bottom: 0.8rem;
}
.stratford-forms p.disclaimer a {
	color: var(--red);
	text-decoration: underline;
}
p.openhouse-info,
p.openhouse-intro {
	text-align: center;
	color: var(--red);
	font-size: 1.2rem;
	margin: 0 0 0.4rem;
}
p.openhouse-intro {
	font-size: 1rem;
	margin: 0 0 2rem;
}

.errors {
	background: var(--red);
	color: #FFF;
	line-height: 3rem;
	margin: 1rem 0;
	text-align: center;
}

.stratford-forms #location {
	margin: 0 0 1em;
}

.stratford-forms #school {
	display: none;
}
.stratford-forms .family-information {
    background: #F5F5F5;
	padding: 2em 1em;
}

.stratford-forms .grid {
	display: grid;
	grid-gap: 0.625em;
    grid-template-rows: auto;
}
.stratford-forms .grid-2 {
	grid-template-columns: repeat( 2, 1fr );
}
.stratford-forms .grid-3 {
	grid-template-columns: repeat( 3, 1fr );
}
.stratford-forms .grid-4 {
	grid-template-columns: repeat( 4, 1fr );
}

.stratford-forms label {
	display: block;
	margin-bottom: 1em;
}
.stratford-forms .grid label {
	margin-bottom: 0;
}
.stratford-forms label i {
	height: 0px;
	display: inline-block;
	visibility: hidden;
}
.stratford-forms label i.show {
	visibility: visible;
	height: auto;
	margin: 0 0 0.5em 0;
}
.stratford-forms p.notice {
	color: var(--ltblue);
	font-style: italic;
	text-align: right;
}

.stratford-forms input,
.stratford-forms select,
.stratford-forms textarea {
    display: block;
    width: 100%;
	height: 50px;
    padding: 0.9375rem;
	border-radius: 4px;
    border: none;
	box-shadow: inset 0px 1px 0px 0px rgba(0,0,0,0.2);
    background: #FFF;
	font-size: 1em;
	font-family: 'Lato', 'Helvetica', 'Arial', 'sans-serif';
	color: #000;
    appearance: none;
	-moz-appearance: none; /* Firefox */
	-webkit-appearance: none; /* Safari and Chrome */
	-ms-appearance: none;
/* 	Sizing fix */
	-webkit-box-sizing: border-box;
    -o-box-sizing: border-box;
    -khtml-box-sizing: border-box;
    -ms-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
.stratford-forms input.datepicker {
	/* background: #FFF url( '../images/calendar.png' ) no-repeat; */
	background: #FFF;
	background-size: 30px 15px;
	background-position: 100% 55%;
}
.stratford-forms textarea {
	resize: vertical;
	height: 7em;
}
.stratford-forms input[type="submit"] {
    border: 4px solid #9D2235;
    color: #0A0A0A;
    box-shadow: none;
	text-transform: uppercase;
}
.stratford-forms input[type="submit"]:hover {
    background: #9D2235;
    color: #FFFFFF;
}
.stratford-forms input[type="submit"]:disabled {
	background: #FFFFFF;
	color: var(--grey);
	border: 4px solid var(--grey);
}
.stratford-forms select.select-custom-select {
	display: none;
	pointer-events: none;
	height: 0px;
}
input::placeholder {
	color: #666 !important;
}
::-webkit-input-placeholder { /* Chrome/Opera/Safari */
  color: #666;
}
::-moz-placeholder { /* Firefox 19+ */
  color: #666;
  opacity: 1.0;
}

.stratford-forms select.basic-select {
	background: #FFF url('../images/arrow.png') no-repeat;
    background-position: 100% 55%;
    background-size: 36px 18px;
}

.stratford-forms .error,
.stratford-forms .skinny.error {
	border: 1px solid var(--red);
}
.stratford-forms .custom-select:not(.skinny).error,
.stratford-forms .checklist.error {
	border: 4px solid var(--red);
}

.checklist {
 	position: relative;
	border: 4px solid #BABBBD;
	border-radius: 4px;
	width: 100%;
	color: #000;
	font-weight: 600;
	box-shadow: none;
	box-sizing: border-box;
}
.checklist.yellow {
	border: 4px solid var(--gold);
}
.checklist.yellow::after {
	background: var(--gold);
}
.checklist:hover {
	cursor: pointer;
}
.checklist::after {
	position: absolute;
	content: "";
	top: 0;
	right: 0;
	bottom: 0;
	width: 3.5em;
	background: #BABBBD;
	pointer-events: none;
}
.checklist-display {
	padding: 1em;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	pointer-events: none;
}
.checklist-display:after {
	position: absolute;
	content: "";
	right: 19px;
	top: 14px;
	width: 10px;
	height: 10px;
	border: solid #FFFFFF;
	border-width: 0 4px 4px 0;
	-webkit-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	transform: rotate(45deg);
	z-index: 4;
	pointer-events: none;
}
.checklist.active .checklist-display:after {
	border-width: 4px 0 0 4px;
	top: 19px;
}
.checklist-item-display {
	position: absolute;
	top: 100%;
	left: -4px;
	right: -4px;
	display: none;
	z-index: 999;
	background: #BABBBD;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}
.checklist.yellow .checklist-item-display {
	background: var(--gold);
}
.checklist.active .checklist-item-display {
	display: block;
}
.checklist.disabled .checklist-item-display {
	display: none;
}
label.checklist-item {
	margin: 0 0 0 0;
	margin-bottom: 0px;
	position: relative;
}
.checklist-item:hover {
	cursor: pointer;
}
.checklist-item span {
	padding: 1em 1em;
	display: block;
	pointer-events: none;
	color: #FFF;
}
.checklist-item input {
	position: absolute;
	opacity: 0;
	cursor: pointer;
	height: 0;
	width: 0;
}
.checklist-item:hover,
.checklist-item input:checked ~ span {
	background: var(--shade);
}

.checklist-item input:checked ~ span, .checklist-item input:checked ~ span#mandarin_span {
	padding-left: 2.5rem;
}

.checklist-item input:checked ~ span::after {
	content: '';
	position: absolute;
	left: 1rem;
	top: 45%;
	width: 0.3em;
	height: 0.7em;
	border: solid #FFF;
	border-width: 0 2px 2px 0;
	-webkit-transform: rotate(40deg);
	-ms-transform: rotate(40deg);
	transform: rotate(40deg) translate(0, -50%);
}


.checkbox-container {
	display: table;
	position: relative;
	padding-top: 0.2em;
	padding-left: 1.5em;
	margin: 0 0 0.5em;
	cursor: pointer;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	font-size: 16px;
}
.checkbox-container input {
	position: absolute;
	opacity: 0;
	cursor: pointer;
	height: 0;
	width: 0;
}
.checkmark {
	position: absolute;
	top: 0;
	left: 0;
	height: 1.3em;
	width: 1.3em;
	background-color: #FFFFFF;
	/* border: 1px solid #CBCACA; */
	/* border-radius: 2px; */
}
.checkbox-container input:checked ~ .checkmark {
	background-color: #FFFFFF;
}
.checkmark:after {
	content: "";
	position: absolute;
	display: none;
}
.checkbox-container input:checked ~ .checkmark:after {
	display: block;
}
.checkbox-container .checkmark:after {
	left: 0.45em;
	top: 0.15em;
	width: 0.3em;
	height: 0.7em;
	border: solid var(--red);
	border-width: 0 2px 2px 0;
	-webkit-transform: rotate(40deg);
	-ms-transform: rotate(40deg);
	transform: rotate(40deg);
}

.radio-container {
	position: relative;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}
.radio-container input {
	position: absolute;
	opacity: 0;
	cursor: pointer;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
}
.radio-container input ~ span {
	font-weight: 600;
	display: block;
	height: 3em;
    padding: 0 0.625em;
    background-color: #FFFFFF;
    border: 4px solid var(--red);
	border-radius: 4px;
    color: #0A0A0A;
	align-items: center;
	display: flex;
	text-align: center;
	align-content: center;
	justify-content: center;
}
.radio-container input:checked ~ span {
    background-color: var(--red);
    color: #FFFFFF;
}

.custom-select,
.openhouse-parent input {
 	position: relative;
	border: 4px solid #BABBBD;
	border-radius: 4px;
	width: 100%;
	color: #000;
	font-weight: 600;
	box-shadow: none;
	box-sizing: border-box;
}
.openhouse-parent input {
	height:56px;
}
.custom-select::after {
	position: absolute;
	content: "";
	top: 0;
	right: 0;
	bottom: 0;
	width: 3.5em;
	background: #BABBBD;
	pointer-events: none;
}
.custom-select.yellow {
	border: 4px solid var(--gold);
}
.custom-select.yellow::after {
	background: var(--gold);
}
.custom-select.skinny {
	border: none;
	background: #FFFFFF;
	box-shadow: inset 0px 1px 0px 0px rgba(0,0,0,0.2);
}
.custom-select.skinny::after {
	background: #BABBBD;
	border-top-right-radius: 4px;
	border-bottom-right-radius: 4px;
}
.custom-select.skinny.active::after {
	border-bottom-right-radius: 0px;
}
.selected {
	color: #000;
	padding: 1em;
	pointer-events: none;
}
.custom-select.skinny .selected {
	font-weight: 400;
}
.selected.placeholder {
	color: #666;
	font-weight: 300;
}
.selected:after {
	position: absolute;
	content: "";
	right: 19px;
	top: 14px;
	width: 10px;
	height: 10px;
	border: solid #FFFFFF;
	border-width: 0 4px 4px 0;
	-webkit-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	transform: rotate(45deg);
	z-index: 4;
	pointer-events: none;
}
.active ~ .selected:after {
	border-width: 4px 0 0 4px;
	top: 19px;
}
.select {
	display: none;
	position: absolute;
	background-color: #BABBBD;
	color: #FFFFFF;
	top: 100%;
	left: -4px;
	right: -4px;
	z-index: 99;
}
.skinny .select {
	left: 0;
	right: 0;
}
.select.active{
	display: block;
}
.custom-select.yellow .select {
	background-color: var(--gold);
}
.option {
	padding: 1em 1em;
}
.option:hover {
	background: rgba(0,0,0, 0.1);
}

.select-items div:hover, .same-as-selected {
  background-color: rgba(0, 0, 0, 0.1);
}



.ui-datepicker {
	background: #FFF;
	box-shadow: 0 0 4px #AAA;
	padding: 0.8em 1em;
	display: none;
}
.ui-datepicker-prev,
.ui-datepicker-next {
	color: #AAA;
	font-size: 0.8em;
	text-transform: uppercase;
	display: inline-block;
	width: 50%;
	display:none;
}
.ui-datepicker-prev:hover,
.ui-datepicker-next:hover {
	cursor: pointer;
}
.ui-datepicker-next {
	text-align: right;
}
.ui-datepicker-year,
.ui-datepicker-month {
	width: 48%;
	font-size: 0.75em;
	margin: 0.5em 1%;
	padding: 3px;
	border: 1px solid #CBCACA;
	border-radius: 2px;
	font-family: 'Roboto', Arial, Helvetica, sans-serif;
/* 	Sizing fix */
	-webkit-box-sizing: border-box;
    -o-box-sizing: border-box;
    -khtml-box-sizing: border-box;
    -ms-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
table.ui-datepicker-calendar {
	line-height: 1;
	margin-bottom: 1em;
	border-spacing: 2px;
	border-collapse: inherit;
}
table.ui-datepicker-calendar td {
	border: 0 !important;
	padding: 0px;
}
table.ui-datepicker-calendar tbody {
	border-bottom: 0;
}
table.ui-datepicker-calendar thead tr th {
	text-align: center;
}
table.ui-datepicker-calendar thead tr th span {
	text-transform: uppercase;
	font-weight: normal;
	font-size: 0.9em;
	padding: 2px;
	color: #AAA;
}
table.ui-datepicker-calendar a.ui-state-default {
	text-decoration: none;
	display: block;
	text-align: center;
	color: #777;
	padding: 7px;
	border: 1px solid #EEE;
	font-size: 0.9em;
}
table.ui-datepicker-calendar a.ui-state-active {
	color: #A00;
}
table.ui-datepicker-calendar a.ui-state-highlight,
table.ui-datepicker-calendar a.ui-state-default:hover {
	background: #EEE;
	color: #514D4D;
}


/* New Open House Form Styles */
.openhouse-page p.openhouse-intro,
p.openhouse-page-msg,
p.openhouse-page-msg + p {
	color: var(--red);
	text-align:center;
}
p.openhouse-page-msg + p {
	font-size:1em;
}
p.openhouse-page-msg {
	font-size:1.2em;
	line-height:1.4em;
}
p.openhouse-page-msg {
	margin-bottom:0em;
}
p.openhouse-page-msg.noh {
	margin-bottom:1.2em;
}
.openhouse-page p.notice {
	margin-bottom: 0.6em;
}
.openhouse-page .stratford-forms {
	max-width: 50em;
}
.openhouse-page input,
.openhouse-page select,
.openhouse-page .custom-select,
.openhouse-page .checklist {
    border: 1px solid #BABBBD;
	box-shadow: none;
	font-weight: normal;
}
.openhouse-page .select,
.openhouse-page .checklist-item-display {
	left: -1px;
	right: -1px;
}
.openhouse-page input#stratford_submit {
	width: 50%;
	margin: 1rem auto 0;
	border:none;
	color:#fff;
	background-color:var(--blue)
}
.openhouse-page #location {
	margin: 0;
}
.openhouse-page .errors {
	background: none;
	color: var(--red);
}
.openhouse-page .stratford-forms .checklist.error {
	border: 1px solid var(--red);
}

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

	/* .form-section {
		display: grid;
		grid-template-areas: "content form";
		grid-gap: 2em;
	}
	.form-section .stratford-form {
		grid-area: form;
		width: 500px;
	}
	.form-section .entry-content {
		grid-area: content;
	} */

	.form-section .stratford-form {
		float: right;
		width: 45%;
	}
	.form-section .stratford-form.openhouse-page {
		float:none;
		width:100%;
	}
	.form-section .entry-content {
		float: left;
		width: 52%;
	}
	.page-template-template-openhouse-page .form-section .entry-content {
		float:none;
		width: 100%;
	}
	.openhouse-page .flexible {
	    display: flex;
	    flex-flow: row wrap;
	    justify-content: space-between;
	}
	.openhouse-page .flexible.half > * {
		width:49%;
	}

}

.textarea-counter {
    font-size: 12px;
    display: flex;
    justify-content: right;
    margin-top: 5px;
}

#mandarin_span{
	display: none;
	padding: 1em;
}

/* Schedule A Tour Form - Full Width */
.tour-full-width .entry-content {
	float:none;
	width:100%;
}

.tour-full-width .entry-content p:last-child {
	margin-bottom:0;
}

.tour-full-width .stratford-form {
	box-sizing: border-box;
	float:none;
	margin-bottom:40px;
    width: 100%;
}

.tour-full-width .stratford-form .family-information {
	background:none;
	padding:0;
}

.tour-full-width .stratford-form .stratford-forms  {
	max-width:none;
}

.tour-full-width .stratford-form fieldset {
	margin-bottom:10px;
}

.tour-full-width .stratford-form fieldset > label {
    display: inline-block;
    width: 49%;
}

.tour-full-width .stratford-form label.comments {
	width:100%;
}

.tour-full-width .stratford-form label:nth-child(even) {
    margin-right: 1%;
}

.tour-full-width .stratford-form p {
	margin-bottom:20px;
}

.tour-full-width .stratford-forms input:not([type='submit']):not(.error), 
.tour-full-width .stratford-forms select:not(.error), 
.tour-full-width .stratford-forms textarea:not(.error) {
    border: solid 1px #999999;
	box-shadow:none;
}

.tour-full-width .stratford-forms .custom-select:not(.error),
.tour-full-width .stratford-forms .checklist:not(.error) {
	border:solid 1px #999999;
}

.tour-full-width .stratford-form input[type="submit"] {
	max-width:400px;
}

.tour-full-width .stratford-form .checklist.disabled {
	background:#ccc;
}

.tour-full-width .stratford-form .disabled .checklist-display {
	background:#e8e8e8;
	color:#BDBDBD;
}

.tour-full-width .stratford-form .checkmark {
	border:solid 1px #cbcbcb;
	margin-right:3px;
	left: -2px;
}

.tour-full-width .align-centered {
	margin:40px auto 0;
}

@media only screen and ( max-width: 900px ) {
	.tour-full-width .stratford-form fieldset > label {
		width:100%;
	}
}


