/*
 * Best of Lime USA: Contact Form 7 styles for the .bol-form markup (ops\create-cf7-form.php).
 * Loaded by bol-usa-site.php after CF7's own stylesheet. The submit button takes .bol-btn and
 * .bol-btn-green from Oxygen. Field borders are #767676 (4.54:1 on white) so the field edge
 * passes WCAG 1.4.11; #D6D6D6 would not. Errors are #A4161A (7.4:1 on white).
 */

.bol-form { display: grid; gap: 20px; max-width: 760px; }
.bol-form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 767px) { .bol-form-row { grid-template-columns: minmax(0, 1fr); } }

.bol-form-field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.bol-form-field label { font-weight: 700; color: #363636; }
.bol-form-req { font-weight: 400; color: #595959; font-size: 14px; }
.bol-form-field .wpcf7-form-control-wrap { display: block; }

.bol-form :is(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea) {
	box-sizing: border-box;
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	border: 1px solid #767676;
	border-radius: 4px;
	background-color: #FFFFFF;
	color: #363636;
	font: 16px/1.5 'Lato', sans-serif;
}
.bol-form textarea { min-height: 160px; resize: vertical; }
.bol-form select { appearance: auto; }
.bol-form :is(input, select, textarea):hover { border-color: #265362; }
.bol-form :is(input, select, textarea):focus-visible { border-color: #265362; }

.bol-form-privacy { margin: 0; font-size: 14px; color: #595959; }
.bol-form-privacy a { color: #5F730A; }

.bol-form-submit { margin: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bol-form input[type="submit"].bol-btn { cursor: pointer; -webkit-appearance: none; appearance: none; }
.bol-form input[type="submit"].bol-btn:disabled { opacity: 0.6; cursor: wait; }

/* Errors and the response line. */
.bol-form .wpcf7-not-valid { border-color: #A4161A; border-width: 2px; }
.wpcf7 .bol-form .wpcf7-not-valid-tip { color: #A4161A; font-size: 14px; margin-top: 4px; }
.wpcf7 form .wpcf7-response-output {
	margin: 20px 0 0;
	padding: 12px 16px;
	border: 2px solid #265362;
	border-radius: 4px;
	color: #363636;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output { border-color: #A4161A; }
.wpcf7 form.sent .wpcf7-response-output { border-color: #5F730A; }
