/*clear fix */
.clearfix:before, .clearfix:after { content: ""; display: table; }
.clearfix:after { clear: both; }
.clearfix { *zoom: 1; }

/* General Styles */
.secureform .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;}
.secureform div > h1, .secureform div > h2, .secureform div > h3, .secureform p, .secureform #dvViewBody span { color:#000; }
.secureform h2 { width:100%; margin:0 0 1em; text-align:center; }
.secureform #dvViewBody hr { width:100%; height:3px; margin:25px 0 35px; border:none; background:#eee; }
.secureform label { padding:.5em; }
.secureform label.label { margin:0; font-weight:inherit; }
.secureform div > label, .secureform p > label { width:100%; }
.secureform 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 */
.secureform .tbl .tbl_header, .secureform fieldset label[for*="Phone"] + br, .secureform fieldset label[for*="Phone"] br, .secureform #dvViewBody > div div > br { display:none; }

/* Flex */
/*.secureform #dvViewBody > div div, .secureform #dvViewBody > div p, */.secureform #secure-form section .form-group, .formgroup.secureform .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 */
.secureform #dvViewBody > div .control-row, .secureform #dvViewBody > div .row-label, .secureform #dvViewBody > div .row-value, .secureform #dvViewBody > div div[align="right"], .secureform #dvViewBody > div .column, .secureform #dvViewBody > div .form-element, .secureform #dvViewBody > div .legalese, .secureform #dvViewBody > div .legalese label { display:block; }

/* Control row */
.secureform #dvViewBody > div .control-row { width:calc(100% - 1em); margin:1em .5em; }
.secureform #dvViewBody > div .control-row label, .secureform #dvViewBody > div .control-row select { width:100%; padding:.5em 0; margin:.5em 0 1em; }
.secureform #dvViewBody > div .control-row textarea { width:100% !important; margin:.5em 0 1em !important; }

/* Columns */
.secureform #dvViewBody > div .column { width:100%; }
.secureform #dvViewBody > div .column label { display:block; width:100%; padding:.25em .5em; }

/* Legal */
.secureform #dvViewBody > div .legalese label + input { width:calc(50% - 1em); margin:0 .5em; }

/* Radio/Checkboxes */
.secureform input[type="radio"], .secureform input[type="checkbox"] { display:inline-block; width:auto; margin:0 5px; outline:none; }

/* Text and Textarea*/
.secureform input[type="text"], .secureform input[type="tel"], .secureform input[type="email"], .secureform input[type="date"] { height:2em; padding:.35em .5em; }
.secureform textarea { display:block; width:calc(100% - 10px); min-height:80px; max-height:150px; margin:.5em 5px 1em !important; padding:.35em .5em; }

/* Fieldsets */
.secureform fieldset { width:calc(100% - 1em); margin:1em .5em; padding:.5em; border:#ccc 1px solid; }
.secureform fieldset > div { padding:1em 0; }
.secureform fieldset legend { margin:0 0 .25em .5em; padding:0 .5em; color:rgba(0,0,0,.75); }
.secureform fieldset legend + input { margin: .5em; }
.secureform fieldset label { display:block; padding:1em .5em 0; }
.secureform fieldset label[for] { display:inline-block; padding:1em .5em; }
.secureform fieldset label + span { display:block; float:none !important; }

/* Dropdowns */
.secureform select { display:block; width:calc(100% - 1em); margin:.5em .5em 1em; padding:.5em; font-size:.9em; }

/* Submit/Reset Buttons */
.secureform div[id*="Submit"] { text-align:right; }
.secureform input[type="submit"], .secureform input[type="reset"], .secureform input[type="button"] { display:inline-block; width:auto; margin-top: 15px; padding:1em; background: #eee; border-radius:5px; border-color: #6e6e6e; outline:none !important; }
.secureform input[type="submit"]:hover,.secureform input[type="submit"]:focus, .secureform input[type="reset"]:hover, .secureform input[type="reset"]:focus, .secureform input[type="button"]:hover, .secureform input[type="button"]:focus { background: #6e6e6e; color:#fff; }

/* teeth chart - doctor referral (dental) */
.secureform .teethchart { margin: 0 auto 20px; }
.secureform .teethchart td { text-align: right; margin: 0; padding: .5em 0; }

.secureform .teethchart td label { padding: 0 .75em; text-align:center; }
.secureform .teethchart td input { margin: 0; display:block; }
.secureform .teethchart td.divider { border-right: 2px solid #000; }
.secureform .teethchart tr.divider td { border-bottom: 2px solid #000; }

/* New Forms */
.secureform section { width:100%; max-width:100%; margin:0 0 35px; padding:0 0 20px; border-bottom: #eee 2px solid; }
.secureform #dvViewBody section h2.heading { margin:50px 0 15px; }
.secureform #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; }
.secureform .form-group { margin:0 0 .5em; }
.secureform .form-element > label { display:block; width:100%; margin:0 0 .5em; padding:0; }
.secureform .form-element select, .secureform .form-element textarea { width:100%; margin:.5em 0 1em; }
.secureform .form-element fieldset { width:100%; margin:0; padding:.5em; }
.secureform .form-element fieldset label[for] { display:block; }
.secureform .form-element fieldset label[for*="Phone"], .secureform .form-element fieldset label[for*="Message"], .secureform .form-element fieldset label[for*="Gender"], .secureform .form-element fieldset label[for*="Yes"], .secureform .form-element fieldset label[for*="No"], .secureform .form-element fieldset label[for*="NA"] { display:inline-block; padding:.5em 1em .5em .5em; }
.secureform .form-element input + fieldset { margin-top:1.5em; }
.secureform .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) {
	.secureform .tbl { padding:30px; }
	.secureform #dvViewBody > div .column { width:50%; }
	.secureform div > label, .secureform p > label { width:50%; }
	.secureform #dvViewBody .form-group .form-element { max-width:calc(100% - 1em); margin:1em .5em; }
	.secureform .form-element input[type="text"] { min-width:250px; }
	.secureform .form-element input[id*="State"], .secureform .form-element input[id*="Age"] { /*min-width:50px; max-width:80px;*/  min-width:250px;}
	.secureform .form-element input[type="tel"], .secureform .form-element input[type="date"] { /*min-width:180px;*/  min-width:250px; }
	.secureform .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;}

}
