/*clear fix */
.clearfix:before, .clearfix:after { content: ""; display: table; }
.clearfix:after { clear: both; }
.clearfix { *zoom: 1; }

/* General Styles */
.ptl_portlet_CustomForm .tbl { max-width: 100%; padding:30px 10px; font-size:16px; background-color: rgba(255, 255, 255, 0.5); border-radius: 15px; border:rgba(0,0,0,.25) 1px solid;}
.ptl_portlet_CustomForm div > h1, .ptl_portlet_CustomForm div > h2, .ptl_portlet_CustomForm div > h3, .ptl_portlet_CustomForm p, .ptl_portlet_CustomForm #dvViewBody span { color:#000; }
.ptl_portlet_CustomForm h2 { width:100%; margin:0 0 1em; text-align:center; }
.ptl_portlet_CustomForm #dvViewBody hr { width:100%; height:3px; margin:25px 0 35px; border:none; background:#eee; }
.ptl_portlet_CustomForm label { padding:.5em; }
.ptl_portlet_CustomForm label.label { margin:0; font-weight:inherit; }
.ptl_portlet_CustomForm div > label, .ptl_portlet_CustomForm p > label { width:100%; }
.ptl_portlet_CustomForm input { display:block; width:100%; margin:.25em 0 0; padding:0 .5em; border-radius: 3px; border:#ccc 1px solid; outline-offset:unset; font-size:.9em; }

/* Hidden */
.ptl_portlet_CustomForm .tbl .tbl_header, .ptl_portlet_CustomForm fieldset label[for*="Phone"] + br, .ptl_portlet_CustomForm fieldset label[for*="Phone"] br, .ptl_portlet_CustomForm #dvViewBody > div div > br { display:none; }

/* Flex */
/*.ptl_portlet_CustomForm #dvViewBody > div div, .ptl_portlet_CustomForm #dvViewBody > div p, */.ptl_portlet_CustomForm #secure-form section .form-group, .formgroup.ptl_portlet_CustomForm .form-element.checkboxGroup fieldset > span { display:-webkit-box; display:-ms-flexbox; display:flex; -ms-flex-wrap:wrap; flex-wrap:wrap; -webkit-box-pack:justify; -ms-flex-pack:justify; justify-content:space-between; width:100%; max-width:100%; }

/* No flex */
.ptl_portlet_CustomForm #dvViewBody > div .control-row, .ptl_portlet_CustomForm #dvViewBody > div .row-label, .ptl_portlet_CustomForm #dvViewBody > div .row-value, .ptl_portlet_CustomForm #dvViewBody > div div[align="right"], .ptl_portlet_CustomForm #dvViewBody > div .column, .ptl_portlet_CustomForm #dvViewBody > div .form-element, .ptl_portlet_CustomForm #dvViewBody > div .legalese, .ptl_portlet_CustomForm #dvViewBody > div .legalese label { display:block; }

/* Control row */
.ptl_portlet_CustomForm #dvViewBody > div .control-row { width:calc(100% - 1em); margin:1em .5em; }
.ptl_portlet_CustomForm #dvViewBody > div .control-row label, .ptl_portlet_CustomForm #dvViewBody > div .control-row select { width:100%; padding:.5em 0; margin:.5em 0 1em; }
.ptl_portlet_CustomForm #dvViewBody > div .control-row textarea { width:100% !important; margin:.5em 0 1em !important; }

/* Columns */
.ptl_portlet_CustomForm #dvViewBody > div .column { width:100%; }
.ptl_portlet_CustomForm #dvViewBody > div .column label { display:block; width:100%; padding:.25em .5em; }

/* Legal */
.ptl_portlet_CustomForm #dvViewBody > div .legalese label + input { width:calc(50% - 1em); margin:0 .5em; }

/* Radio/Checkboxes */
.ptl_portlet_CustomForm input[type="radio"], .ptl_portlet_CustomForm input[type="checkbox"] { display:inline-block; width:auto; margin:0 5px; outline:none; }

/* Text and Textarea*/
.ptl_portlet_CustomForm input[type="text"], .ptl_portlet_CustomForm input[type="tel"], .ptl_portlet_CustomForm input[type="email"], .ptl_portlet_CustomForm input[type="date"] { height:2em; padding:.35em .5em; }
.ptl_portlet_CustomForm textarea { display:block; width:calc(100% - 10px); min-height:80px; max-height:150px; margin:.5em 5px 1em !important; padding:.35em .5em; }

/* Fieldsets */
.ptl_portlet_CustomForm fieldset { width:calc(100% - 1em); margin:1em .5em; padding:.5em; border:#ccc 1px solid; }
.ptl_portlet_CustomForm fieldset > div { padding:1em 0; }
.ptl_portlet_CustomForm fieldset legend { margin:0 0 .25em .5em; padding:0 .5em; color:rgba(0,0,0,.75); }
.ptl_portlet_CustomForm fieldset legend + input { margin: .5em; }
.ptl_portlet_CustomForm fieldset label { display:block; padding:1em .5em 0; }
.ptl_portlet_CustomForm fieldset label[for] { display:inline-block; padding:1em .5em; }
.ptl_portlet_CustomForm fieldset label + span { display:block; float:none !important; }

/* Dropdowns */
.ptl_portlet_CustomForm select { display:block; width:calc(100% - 1em); margin:.5em .5em 1em; padding:.5em; font-size:.9em; }

/* Submit/Reset Buttons */
.ptl_portlet_CustomForm div[id*="Submit"] { text-align:right; }
.ptl_portlet_CustomForm input[type="submit"], .ptl_portlet_CustomForm input[type="reset"], .ptl_portlet_CustomForm input[type="button"] { display:inline-block; width:auto; margin-top: 15px; padding:1em; background: #eee; border-radius:5px; border-color: #6e6e6e; outline:none !important; }
.ptl_portlet_CustomForm input[type="submit"]:hover,.ptl_portlet_CustomForm input[type="submit"]:focus, .ptl_portlet_CustomForm input[type="reset"]:hover, .ptl_portlet_CustomForm input[type="reset"]:focus, .ptl_portlet_CustomForm input[type="button"]:hover, .ptl_portlet_CustomForm input[type="button"]:focus { background: #6e6e6e; color:#fff; }

/* teeth chart - doctor referral (dental) */
.ptl_portlet_CustomForm .teethchart { margin: 0 auto 20px; }
.ptl_portlet_CustomForm .teethchart td { text-align: right; margin: 0; padding: .5em 0; }

.ptl_portlet_CustomForm .teethchart td label { padding: 0 .75em; text-align:center; }
.ptl_portlet_CustomForm .teethchart td input { margin: 0; display:block; }
.ptl_portlet_CustomForm .teethchart td.divider { border-right: 2px solid #000; }
.ptl_portlet_CustomForm .teethchart tr.divider td { border-bottom: 2px solid #000; }

/* New Forms */
.ptl_portlet_CustomForm section { width:100%; max-width:100%; margin:0 0 35px; padding:0 0 20px; border-bottom: #eee 2px solid; }
.ptl_portlet_CustomForm #dvViewBody section h2.heading { margin:50px 0 15px; }
.ptl_portlet_CustomForm #dvViewBody .form-group .form-element { -webkit-box-flex:1; -ms-flex:1 0 auto; flex:1 0 auto;  width:auto; max-width:100%; margin:.5em 0; }
.ptl_portlet_CustomForm .form-group { margin:0 0 .5em; }
.ptl_portlet_CustomForm .form-element > label { display:block; width:100%; margin:0 0 .5em; padding:0; }
.ptl_portlet_CustomForm .form-element select, .ptl_portlet_CustomForm .form-element textarea { width:100%; margin:.5em 0 1em; }
.ptl_portlet_CustomForm .form-element fieldset { width:100%; margin:0; padding:.5em; }
.ptl_portlet_CustomForm .form-element fieldset label[for] { display:block; }
.ptl_portlet_CustomForm .form-element fieldset label[for*="Phone"], .ptl_portlet_CustomForm .form-element fieldset label[for*="Message"], .ptl_portlet_CustomForm .form-element fieldset label[for*="Gender"], .ptl_portlet_CustomForm .form-element fieldset label[for*="Yes"], .ptl_portlet_CustomForm .form-element fieldset label[for*="No"], .ptl_portlet_CustomForm .form-element fieldset label[for*="NA"] { display:inline-block; padding:.5em 1em .5em .5em; }
.ptl_portlet_CustomForm .form-element input + fieldset { margin-top:1.5em; }
.ptl_portlet_CustomForm .form-element.checkboxGroup fieldset label { -webkit-box-flex:0; -ms-flex:0 0 250px; flex:0 0 250px; }


/* Tablet and Desktop */
@media screen and (min-width:768px) {
	.ptl_portlet_CustomForm .tbl { padding:30px; }
	.ptl_portlet_CustomForm #dvViewBody > div .column { width:50%; }
	.ptl_portlet_CustomForm div > label, .ptl_portlet_CustomForm p > label { width:50%; }
	.ptl_portlet_CustomForm #dvViewBody .form-group .form-element { max-width:calc(100% - 1em); margin:1em .5em; }
	.ptl_portlet_CustomForm .form-element input[type="text"] { min-width:250px; }
	.ptl_portlet_CustomForm .form-element input[id*="State"], .ptl_portlet_CustomForm .form-element input[id*="Age"] { /*min-width:50px; max-width:80px;*/  min-width:250px;}
	.ptl_portlet_CustomForm .form-element input[type="tel"], .ptl_portlet_CustomForm .form-element input[type="date"] { /*min-width:180px;*/  min-width:250px; }
	.ptl_portlet_CustomForm .form-element input[id*="Zip"] { /*min-width:100px; max-width:150px; */ min-width:250px;}
}

@media print {

	#human_verification, .submit { display: none; }

	.ptl_portlet_CustomForm .tbl {width: 100% !important; box-shadow: none; font-size: 14px; margin: 0; padding: 0}

	@page { margin:  0.4cm 0; }

	.ptl_portlet_CustomForm .tbl input[type="text"] { border:0px; }
	.ptl_portlet_CustomForm div { margin: 0 0 10px; }
	.ptl_portlet_CustomForm h1 { font-size: 18px; page-break-after: avoid; }
	.ptl_portlet_CustomForm h2 { font-size: 18px; page-break-after: avoid; }
	.ptl_portlet_CustomForm h3 {page-break-after: avoid;}
	.ptl_portlet_CustomForm .tbl hr {display:none;}

	.ptl_portlet_CustomForm .tbl fieldset {padding: 0;}
	div.left-column-container {padding: 0}
	div.left-column-container > div.left {display:none}
	.t01 div.container {max-width: 100% !important}
	#utility-navigation {display:none;}
	#overview {display:none}
	#footer {display:none;}
	.CMS_adminBar, .CMS_DragDropWrapper {display:none;}
	#header {display:none}

	.ptl_portlet_CustomForm .tbl ul.med-history-list li, .ptl_portlet_CustomForm .tbl .med-history-list .column, .ptl_portlet_CustomForm .tbl .med-history-list-collection .column {width:33% !important; vertical-align:top;}
	.ptl_portlet_CustomForm .tbl .med-history-list-collection .column label {width: 100%; display:inline-block; padding: 0}

	.ptl_portlet_CustomForm .tbl input[type="submit"], input[type="reset"], input[type="button"] {display:none;}
	.ptl_portlet_CustomForm .tbl #ctl00_ContentPlaceHolder1_ctl13_lblCaptchaTitle, .ptl_portlet_CustomForm .tbl #ctl00_ContentPlaceHolder1_ctl13_formCaptcha {display:none;}

}

/* ---- CALENDAR FIX ---- */
#events #upcomingEvents .slider .event .event-info .date {flex: 0 0 120px !important}