/**
 * Match live BDR / Proforms form layout.
 * - Service request forms: single column, 290px grey inputs
 * - Contact Us: two-column, full-width green inputs (match live)
 */

.ccm-block-type-form {
	margin: 0 0 30px;
	clear: both;
}
.ccm-block-type-form form.miniSurveyView {
	position: relative;
	margin-bottom: 35px;
}
.ccm-block-type-form form.miniSurveyView .fields {
	overflow: hidden;
}
.ccm-block-type-form form.miniSurveyView .form-group {
	box-sizing: border-box;
	padding: 0 0 18px;
	margin: 0;
	float: none;
	clear: both;
	width: 100%;
}
/*
 * Live C5.6 ccm.app.css: .ccm-ui label { font-weight: normal }
 * Bootstrap 3 sets label { font-weight: bold } — override for public forms.
 */
.ccm-block-type-form label,
.ccm-block-type-form label.control-label,
.ccm-block-type-form label.form-label,
.ccm-block-type-form form.miniSurveyView label,
.ccm-block-type-form form.ccm-ui label,
form.miniSurveyView label,
form.proform_slider label,
form.ccm-ui.miniSurveyView label {
	display: inline-block !important;
	width: 100% !important;
	font-weight: 400 !important;
	font-family: Arial, Helvetica, sans-serif !important;
	font-size: 14px !important;
	margin: 0 0 6px !important;
	color: #333 !important;
}
.ccm-block-type-form .required,
.ccm-block-type-form form.miniSurveyView .required {
	color: #c00 !important;
	font-weight: 400 !important;
}
.ccm-block-type-form form.miniSurveyView .radio,
.ccm-block-type-form form.miniSurveyView .checkbox,
.ccm-block-type-form form.miniSurveyView label.radio,
.ccm-block-type-form form.miniSurveyView label.checkbox {
	display: block;
	font-weight: 400 !important;
	margin: 4px 0;
}

/* ===== Default / service-request style (live proforms) ===== */
.ccm-block-type-form.bdr-form-service form.miniSurveyView input[type="text"],
.ccm-block-type-form.bdr-form-service form.miniSurveyView input[type="email"],
.ccm-block-type-form.bdr-form-service form.miniSurveyView input[type="tel"],
.ccm-block-type-form.bdr-form-service form.miniSurveyView input[type="url"],
.ccm-block-type-form.bdr-form-service form.miniSurveyView input[type="date"],
.ccm-block-type-form.bdr-form-service form.miniSurveyView input.form-control,
.ccm-block-type-form.bdr-form-service form.miniSurveyView select,
.ccm-block-type-form.bdr-form-service form.miniSurveyView textarea,
.ccm-block-type-form.bdr-form-service form.miniSurveyView textarea.form-control {
	width: 290px !important;
	max-width: 100%;
	height: 28px !important;
	box-sizing: border-box;
	padding: 4px 6px;
	border: 1px solid #ccc;
	border-radius: 3px;
	background: #fff;
}
.ccm-block-type-form.bdr-form-service form.miniSurveyView textarea,
.ccm-block-type-form.bdr-form-service form.miniSurveyView textarea.form-control {
	height: 150px !important;
	width: 290px !important;
}
.ccm-block-type-form.bdr-form-service form.miniSurveyView input[type="file"] {
	width: auto !important;
	max-width: 100%;
	height: auto !important;
	border: 0 !important;
	padding: 0;
	background: transparent;
}
.ccm-block-type-form.bdr-form-service form.miniSurveyView input[type="checkbox"],
.ccm-block-type-form.bdr-form-service form.miniSurveyView input[type="radio"] {
	width: auto !important;
	height: auto !important;
	border: 0;
}

/* ===== Contact Us style (match live ProForms page CSS) ===== */
.ccm-block-type-form.bdr-form-contact form.miniSurveyView {
	margin: 0 -20px;
}
.ccm-block-type-form.bdr-form-contact form.miniSurveyView .field-text,
.ccm-block-type-form.bdr-form-contact form.miniSurveyView .field-email,
.ccm-block-type-form.bdr-form-contact form.miniSurveyView .field-telephone {
	width: 50%;
	float: left;
	clear: none;
	display: inline-block;
	padding: 0 20px 20px;
	box-sizing: border-box;
	vertical-align: top;
}
.ccm-block-type-form.bdr-form-contact form.miniSurveyView .field-textarea,
.ccm-block-type-form.bdr-form-contact form.miniSurveyView .field-radios,
.ccm-block-type-form.bdr-form-contact form.miniSurveyView .field-checkboxlist,
.ccm-block-type-form.bdr-form-contact form.miniSurveyView .field-fileupload {
	width: 100%;
	float: none;
	clear: both;
	padding: 0 20px 20px;
	box-sizing: border-box;
}
.ccm-block-type-form.bdr-form-contact form.miniSurveyView input[type="text"],
.ccm-block-type-form.bdr-form-contact form.miniSurveyView input[type="email"],
.ccm-block-type-form.bdr-form-contact form.miniSurveyView input[type="tel"],
.ccm-block-type-form.bdr-form-contact form.miniSurveyView input.form-control,
.ccm-block-type-form.bdr-form-contact form.miniSurveyView textarea,
.ccm-block-type-form.bdr-form-contact form.miniSurveyView textarea.form-control {
	width: 100% !important;
	max-width: none;
	height: 35px !important;
	box-sizing: border-box;
	padding: 7px;
	border: 2px solid #027a54;
	border-radius: 5px;
	background: #fff;
}
.ccm-block-type-form.bdr-form-contact form.miniSurveyView .field-textarea textarea,
.ccm-block-type-form.bdr-form-contact form.miniSurveyView .field-textarea textarea.form-control {
	margin: 0;
	height: 100px !important;
	resize: none;
}
.ccm-block-type-form.bdr-form-contact form.miniSurveyView .form-actions {
	margin-left: 20px;
	padding-left: 0;
}

/* Submit */
.ccm-block-type-form form.miniSurveyView .form-actions {
	clear: both;
	padding: 10px 0 20px;
	overflow: hidden;
}
.ccm-block-type-form form.miniSurveyView input[type="submit"],
.ccm-block-type-form form.miniSurveyView .btn,
.ccm-block-type-form form.miniSurveyView .btn-primary {
	background-color: #027a54 !important;
	border-color: #027a54 !important;
	color: #fff !important;
	float: none;
	display: inline-block;
	padding: 6px 18px;
	border-radius: 4px;
	text-transform: none;
}

/* Page headings above forms (match live Surge main.css) */
#main h1,
article h1,
.ccm-page h1 {
	color: #027a54;
	font-family: "Montserrat", Helvetica, sans-serif;
	font-size: 30px;
	font-weight: normal;
	margin: 10px 0 12px;
}
/* Intro line under h1 — body text, not green/bold like headings */
.ccm-page h1 + p,
#main h1 + p,
article h1 + p {
	color: #525252 !important;
	font-family: Arial, Helvetica, sans-serif !important;
	font-size: 14px !important;
	font-weight: normal !important;
}
.ccm-page h1 + p strong,
#main h1 + p strong,
article h1 + p strong {
	font-weight: normal !important;
	color: #525252 !important;
}
#main h2#form_title,
#form_title,
article h2#form_title {
	color: #027a54;
	font-family: "Montserrat", Helvetica, sans-serif;
	font-size: 22px;
	font-weight: normal;
	margin: 10px 0 16px;
}

@media (max-width: 767px) {
	.ccm-block-type-form.bdr-form-contact form.miniSurveyView {
		margin: 0;
	}
	.ccm-block-type-form.bdr-form-contact form.miniSurveyView .field-text,
	.ccm-block-type-form.bdr-form-contact form.miniSurveyView .field-email,
	.ccm-block-type-form.bdr-form-contact form.miniSurveyView .field-telephone {
		width: 100%;
		float: none;
		display: block;
		padding: 0 0 20px;
	}
	.ccm-block-type-form.bdr-form-contact form.miniSurveyView .field-textarea {
		padding: 0 0 20px;
	}
	.ccm-block-type-form.bdr-form-contact form.miniSurveyView .form-actions {
		margin-left: 0;
	}
	.ccm-block-type-form.bdr-form-service form.miniSurveyView input[type="text"],
	.ccm-block-type-form.bdr-form-service form.miniSurveyView input[type="email"],
	.ccm-block-type-form.bdr-form-service form.miniSurveyView input[type="tel"],
	.ccm-block-type-form.bdr-form-service form.miniSurveyView input[type="date"],
	.ccm-block-type-form.bdr-form-service form.miniSurveyView textarea {
		width: 100% !important;
		max-width: 280px;
	}
}
