/*
 * Request a Quote form, home page only (2026-10-13).
 * Every rule is scoped to #requestQuoteSection, so nothing here reaches another page,
 * another form, or Bootstrap 3 itself. Loaded after style.css (see functions.php), so
 * the older #requestQuoteForm rules in style.css are overridden where they overlap.
 * Temporary until the redesign.
 */

/* ---- section and card ---- */
#requestQuoteSection {
	padding: 48px 16px;
	background-size: cover;
	background-position: center;
}
#requestQuoteSection .rq-card {
	max-width: 760px;
	margin: 0 auto;
	padding: 26px 28px 24px;
	background: rgba(0, 47, 84, 0.9);
	color: #fff;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
#requestQuoteSection .rq-title {
	margin: 0 0 16px;
	text-align: center;
	font-size: 24px;
	line-height: 1.2;
	font-weight: 700;
	color: #fff;
}
#requestQuoteSection .rq-intro {
	margin: 0 0 18px;
	text-align: center;
	font-size: 14px;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.85);
}

/* ---- grid: two columns, one on phones ---- */
#requestQuoteSection .rq-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px 18px;
}
#requestQuoteSection .rq-full {
	grid-column: 1 / -1;
}
#requestQuoteSection .rq-hidden {
	display: none;
}

/* ---- labels ---- */
#requestQuoteSection .rq-field label {
	display: block;
	margin: 0;
	font-weight: 400;
	color: #fff;
}
#requestQuoteSection .form-label {
	display: block;
	margin-bottom: 5px;
	font-size: 12px;
	line-height: 1.2;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #fff;
}
#requestQuoteSection .form-label i {
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	opacity: 0.85;
}

/* ---- controls ---- */
#requestQuoteSection .wpcf7-form-control-wrap {
	display: block;
}
#requestQuoteSection .form-control {
	height: 40px;
	padding: 8px 12px;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.4;
	color: #1a2230;
	background: #fff;
	border: 1px solid #fff;
	border-radius: 0;
	box-shadow: none;
	transition: border-color 120ms ease, box-shadow 120ms ease;
}
#requestQuoteSection .form-control::placeholder {
	color: #8a94a3;
}
#requestQuoteSection .form-control:focus {
	border-color: #6ABF4B;
	box-shadow: 0 0 0 3px rgba(106, 191, 75, 0.35);
	outline: none;
}
#requestQuoteSection select.form-control {
	color: #1a2230;
	padding-right: 28px;
}
#requestQuoteSection textarea.form-control {
	height: auto;
	min-height: 80px;
	resize: vertical;
}

/* loan amount with the $ prefix (Bootstrap 3 .input-group, laid out with flex so the
   CF7 wrapper span sits inside it correctly) */
#requestQuoteSection .input-group {
	display: flex;
	width: 100%;
}
#requestQuoteSection .input-group .wpcf7-form-control-wrap {
	flex: 1 1 auto;
	min-width: 0;
}
#requestQuoteSection .input-group-addon {
	display: flex;
	align-items: center;
	width: auto;
	padding: 0 12px;
	font-size: 15px;
	font-weight: 700;
	color: #1a2230;
	background: #e9eef3;
	border: 1px solid #fff;
	border-right: 0;
	border-radius: 0;
	max-height: 40px;
}
#requestQuoteSection .input-group .form-control {
	float: none;
	width: 100%;
	border-radius: 0;
}

/* ---- opt-in ---- */
#requestQuoteSection .rq-optin .wpcf7-form-control-wrap,
#requestQuoteSection .rq-optin .wpcf7-acceptance,
#requestQuoteSection .rq-optin .wpcf7-list-item {
	display: block;
	margin: 0;
}
#requestQuoteSection .rq-optin label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 2px 0 0;
	font-size: 14px;
	line-height: 1.4;
	font-weight: 400;
	color: #fff;
	cursor: pointer;
}
#requestQuoteSection .rq-optin input[type="checkbox"] {
	width: 16px;
	height: 16px;
	margin: 0;
	flex: 0 0 auto;
	accent-color: #6ABF4B;
	cursor: pointer;
}

/* ---- submit ---- */
#requestQuoteSection .rq-submit {
	margin-top: 8px;
	text-align: center;
}
#requestQuoteSection .wpcf7-submit {
	display: inline-block;
	width: 100%;
	max-width: 320px;
	height: 44px;
	padding: 0 20px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #fff;
	background: #6ABF4B;
	border: 0;
	border-radius: 0;
	transition: background 120ms ease;
}
#requestQuoteSection .wpcf7-submit:hover,
#requestQuoteSection .wpcf7-submit:focus {
	color: #fff;
	background: #5aa93e;
	outline: none;
}
#requestQuoteSection .wpcf7-submit:focus-visible {
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.6);
}
#requestQuoteSection .wpcf7-spinner {
	margin: 0 0 0 10px;
}

/* ---- Contact Form 7 messages ---- */
#requestQuoteSection .wpcf7-not-valid {
	border-color: #ffb08a;
}
#requestQuoteSection .wpcf7-not-valid-tip {
	margin-top: 4px;
	font-size: 12px;
	line-height: 1.3;
	color: #ffd1b8;
}
#requestQuoteSection .wpcf7-response-output {
	grid-column: 1 / -1;
	margin: 14px 0 0;
	padding: 10px 12px;
	font-size: 14px;
	line-height: 1.4;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.7);
}
#requestQuoteSection .wpcf7-form.init .wpcf7-response-output {
	display: none;
}
#requestQuoteSection .wpcf7-form.sent .wpcf7-response-output {
	border-color: #6ABF4B;
}
#requestQuoteSection .wpcf7-form p {
	margin: 0;
}

/* ---- phones ---- */
@media (max-width: 640px) {
	#requestQuoteSection {
		padding: 32px 12px;
	}
	#requestQuoteSection .rq-card {
		padding: 20px 16px 18px;
	}
	#requestQuoteSection .rq-title {
		font-size: 21px;
	}
	#requestQuoteSection .rq-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}
	#requestQuoteSection .wpcf7-submit {
		max-width: none;
	}
}
