/* Contact Form 7 inside the copied Gravity Forms structure (.gform_wrapper).
   The gf-*.css files style the labels, inputs, half-width columns and
   footer; these rules cover the parts CF7 renders differently, using the
   same values Gravity Forms 1.9 used. */

/* CF7 wraps each control in an inline span; make it a block so the GF
   percentage widths behave as they did. */
.gform_wrapper .wpcf7-form-control-wrap {
	display: block;
}

/* Gravity Forms rendered the phone and email fields as type="text", so the
   theme's contact-form input style (.contact-form form input[type="text"])
   applied to them. CF7 uses the proper tel/email types: give them the same
   look. Border is GF's #ccc, which won over the theme's for text inputs. */
.contact-form form .excel-cf7 input[type="tel"],
.contact-form form .excel-cf7 input[type="email"] {
	position: relative;
	display: block;
	background: transparent;
	border: 1px solid #ccc;
	height: 60px;
	font-size: 16px;
	margin-bottom: 30px;
	padding-left: 45px;
	padding-right: 20px;
	border-radius: 5px;
	transition: all 500ms ease;
}
.contact-form form .excel-cf7 input[type="tel"]:focus,
.contact-form form .excel-cf7 input[type="email"]:focus {
	border-color: #1d1d1d;
	color: #222222;
}

/* Checkbox group: mirrors ul.gfield_checkbox / li / input / label. */
.gform_wrapper .wpcf7-checkbox {
	display: block;
	margin: 6px 0;
	padding: 0;
}
.gform_wrapper .wpcf7-checkbox .wpcf7-list-item {
	display: block;
	position: relative;
	overflow: hidden;
	margin: 0 0 .5em;
	padding: 0;
	line-height: 1.3;
}
.gform_wrapper .wpcf7-checkbox .wpcf7-list-item label {
	display: block;
	margin: 0;
	padding: 0;
	font-weight: inherit;
	cursor: pointer;
}
.gform_wrapper .wpcf7-checkbox .wpcf7-list-item input[type=checkbox] {
	float: left;
	width: auto !important;
	margin: .375em 0 0; /* GF's Chrome value (browsers.css) */
}
.gform_wrapper .wpcf7-checkbox .wpcf7-list-item-label {
	display: block;
	margin: 0 0 0 24px;
	padding: 0;
	line-height: 1.5;
	vertical-align: top;
}

/* CF7's sending spinner sits beside the button; keep it out of the line box
   so the button stays exactly where Gravity Forms' was. */
.gform_wrapper .gform_footer .wpcf7-spinner {
	position: absolute;
	margin: 0 0 0 12px;
}

/* Field errors, in Gravity Forms' dark red. */
.gform_wrapper .wpcf7-not-valid-tip {
	display: block;
	padding: .625em 0 0;
	color: #790000;
	font-size: .875em;
	font-weight: 700;
	line-height: 1.2;
}
.gform_wrapper input.wpcf7-not-valid,
.gform_wrapper textarea.wpcf7-not-valid {
	border: 1px solid #790000;
}
.gform_wrapper .wpcf7-not-valid .wpcf7-list-item-label {
	color: #790000;
}

/* Form-level message. CF7 prints it as a sibling AFTER the .excel-cf7
   wrapper (not inside it), and styles it with coloured boxes; replace those
   with GF's validation_error banner. Specificity beats CF7's
   ".wpcf7 form.invalid .wpcf7-response-output" rules. */
.wpcf7 form.wpcf7-form .excel-cf7 ~ .wpcf7-response-output {
	margin: 1em 0 0;
	padding: 1em 0;
	width: 97.5%;
	border: 0;
	border-top: 2px solid #790000;
	border-bottom: 2px solid #790000;
	color: #790000;
	font-size: 1.2em;
	font-weight: 700;
}

/* After a successful send, Gravity Forms replaced the form with its
   confirmation text. Do the same: hide the fields, show the message plain. */
.wpcf7 form.sent .excel-cf7 .gform_body,
.wpcf7 form.sent .excel-cf7 .gform_footer {
	display: none;
}
.wpcf7 form.wpcf7-form.sent .excel-cf7 ~ .wpcf7-response-output {
	margin: 0;
	padding: 0;
	width: auto;
	border: 0;
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
}

/* Honeypot field: off-screen for people, still in the form for bots. */
.excel-cf7-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
