.wpf-form-wrap {
	max-width: 36rem;
	margin: 0 auto;
	font-family: var(--zw-font-sans, var(--bf-font-sans, system-ui, sans-serif));
}

.wpf-notice {
	padding: 0.85rem 1rem;
	margin-bottom: 1.25rem;
	border-radius: 4px;
	font-size: 0.95rem;
}

.wpf-notice--success {
	background: #e8f5ef;
	color: #0f6e56;
}

.wpf-notice--error {
	background: #fdecea;
	color: #8a1f11;
}

.wpf-form {
	display: grid;
	gap: 1rem;
}

.wpf-field label {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 600;
	color: var(--bf-color-ink, #1a1c1e);
}

.wpf-req {
	color: #c0392b;
}

.wpf-field input[type="text"],
.wpf-field input[type="email"],
.wpf-field input[type="tel"],
.wpf-field input[type="url"],
.wpf-field input[type="number"],
.wpf-field select,
.wpf-field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 0.65rem 0.75rem;
	border: 1px solid var(--bf-color-border, #e2ddd6);
	border-radius: 4px;
	font: inherit;
	background: #fff;
	color: inherit;
}

.wpf-field textarea {
	resize: vertical;
	min-height: 7rem;
}

.wpf-check {
	font-weight: 400 !important;
	display: flex !important;
	align-items: flex-start;
	gap: 0.5rem;
}

.wpf-captcha-q {
	margin: 0 0 0.35rem;
	font-weight: 600;
	font: inherit;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
	text-align: left;
	padding: 0;
}

.wpf-captcha-q:hover {
	opacity: 0.85;
	text-decoration: underline;
}

.wpf-honeypot {
	position: absolute;
	left: -9999px;
	height: 0;
	overflow: hidden;
}

.wpf-actions {
	margin-top: 0.25rem;
}

.wpf-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1.35rem;
	border: 0;
	border-radius: 4px;
	background: var(--bf-color-accent, #0f6e56);
	color: var(--bf-color-accent-contrast, #fff);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.wpf-submit:hover {
	opacity: 0.92;
}

.wpf-error {
	color: #8a1f11;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* -------------------------------------------------------------------------- */
/* Footer compact layout                                                      */
/* -------------------------------------------------------------------------- */

.wpf-form-wrap--footer {
	max-width: none;
	margin: 0;
	width: 100%;
}

.wpf-form--footer {
	gap: 6px;
}

.wpf-form--footer br {
	display: none !important;
}

.wpf-form--footer > p,
.wpf-form-wrap--footer > p {
	display: contents;
}

.wpf-form--footer .wpf-row {
	display: grid !important;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
}

.wpf-form--footer .wpf-field {
	margin: 0;
}

.wpf-form--footer .wpf-field label:not(.screen-reader-text) {
	display: none;
}

.wpf-form--footer .wpf-field input,
.wpf-form--footer .wpf-field textarea {
	margin: 0;
	padding: 6px 10px;
	border: none;
	border-radius: 2px;
	background: #fff;
	color: #333;
	font-size: 14px;
	line-height: 1.3;
	min-height: 0;
	height: 34px;
	box-sizing: border-box;
}

.wpf-form--footer .wpf-field textarea {
	height: auto;
	min-height: 56px;
	max-height: 72px;
	resize: vertical;
	line-height: 1.4;
}

.wpf-form--footer .wpf-captcha-row {
	display: grid !important;
	grid-template-columns: minmax(96px, 120px) minmax(0, 1fr);
	gap: 6px;
	align-items: stretch;
	width: 100%;
	margin: 0;
	min-height: 34px;
}

.wpf-form--footer .wpf-captcha-q {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 34px;
	min-height: 34px;
	margin: 0;
	padding: 0 8px;
	box-sizing: border-box;
	background: #fff !important;
	border: none !important;
	border-radius: 2px;
	color: #333 !important;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none !important;
	white-space: nowrap;
	line-height: 1;
	cursor: pointer;
}

.wpf-form--footer .wpf-captcha-q:hover {
	background: #f3f6f9 !important;
	text-decoration: none !important;
	opacity: 1;
}

.wpf-form--footer .wpf-captcha-row input[name="wpf_captcha_answer"] {
	display: block !important;
	width: 100% !important;
	height: 34px !important;
	min-height: 34px !important;
	margin: 0 !important;
	padding: 6px 10px !important;
	box-sizing: border-box;
	border: none !important;
	border-radius: 2px;
	background: #fff !important;
	color: #333 !important;
	font-size: 14px;
	line-height: 1.3;
	visibility: visible !important;
	opacity: 1 !important;
}

.wpf-form--footer .wpf-actions {
	margin-top: 2px;
}

.wpf-form--footer .wpf-submit {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 8px;
	height: auto;
	min-height: 0;
	line-height: 1.2;
	border: none;
	border-radius: 2px;
	background: #f2c400 !important;
	color: #fff !important;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.wpf-form--footer .wpf-submit br {
	display: none !important;
}

.wpf-form--footer .wpf-notice {
	padding: 0.4rem 0.55rem;
	margin-bottom: 0.35rem;
	font-size: 0.8rem;
}

@media (max-width: 640px) {
	.wpf-form--footer .wpf-row,
	.wpf-form--footer .wpf-captcha-row {
		grid-template-columns: 1fr;
	}
}

/* -------------------------------------------------------------------------- */
/* Quote / Leave a message modal layout                                       */
/* -------------------------------------------------------------------------- */

.wpf-form-wrap--quote {
	max-width: none;
	margin: 0;
	width: 100%;
}

.wpf-form--quote {
	gap: 0.85rem;
}

.wpf-form--quote .wpf-row--quote-top {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.75rem;
}

.wpf-form--quote .wpf-field label:not(.screen-reader-text) {
	display: none;
}

.wpf-form--quote .wpf-field input,
.wpf-form--quote .wpf-field textarea {
	padding: 0.75rem 0.9rem;
	border: 1px solid #d8d8d8;
	border-radius: 2px;
	font-size: 0.9375rem;
	background: #fff;
	color: #333;
}

.wpf-form--quote .wpf-field textarea {
	min-height: 8.5rem;
}

.wpf-form--quote .wpf-actions {
	margin-top: 0.15rem;
}

.wpf-form--quote .wpf-submit {
	display: block;
	width: 100%;
	padding: 0.9rem 1rem;
	border-radius: 2px;
	background: var(--zw-color-brand, #027788) !important;
	color: #fff !important;
	font-size: 1rem;
	font-weight: 600;
}

@media (max-width: 720px) {
	.wpf-form--quote .wpf-row--quote-top {
		grid-template-columns: 1fr;
	}
}

/* -------------------------------------------------------------------------- */
/* Contact page layout (quote fields + captcha)                               */
/* -------------------------------------------------------------------------- */

.wpf-form-wrap--contact {
	max-width: none;
	margin: 0;
	width: 100%;
}

.wpf-form--contact {
	gap: 0.85rem;
}

.wpf-form--contact .wpf-row--quote-top {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.75rem;
}

.wpf-form--contact .wpf-field label:not(.screen-reader-text) {
	display: none;
}

.wpf-form--contact .wpf-field input,
.wpf-form--contact .wpf-field textarea {
	padding: 0.75rem 0.9rem;
	border: 1px solid #d8d8d8;
	border-radius: 2px;
	font-size: 0.9375rem;
	background: #fff;
	color: #333;
}

.wpf-form--contact .wpf-field textarea {
	min-height: 8.5rem;
}

.wpf-form--contact .wpf-captcha-row {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 0.75rem;
	align-items: stretch;
}

.wpf-form--contact .wpf-captcha-q {
	min-width: 5.5rem;
	padding: 0 1rem;
	border: 1px solid #d8d8d8;
	border-radius: 2px;
	background: #f7f8fa;
	color: #027788;
	font-weight: 600;
	cursor: pointer;
}

.wpf-form--contact .wpf-captcha-q:hover {
	background: #eef6f7;
}

.wpf-form--contact .wpf-captcha-row input[name="wpf_captcha_answer"] {
	width: 100%;
}

.wpf-form--contact .wpf-actions {
	margin-top: 0.15rem;
}

.wpf-form--contact .wpf-submit {
	display: block;
	width: 100%;
	padding: 0.9rem 1rem;
	border: 0;
	border-radius: 2px;
	background: var(--zw-color-brand, #027788) !important;
	color: #fff !important;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
}

.wpf-form--contact .wpf-submit:hover {
	filter: brightness(1.05);
}

@media (max-width: 720px) {
	.wpf-form--contact .wpf-row--quote-top {
		grid-template-columns: 1fr;
	}

	.wpf-form--contact .wpf-captcha-row {
		grid-template-columns: 1fr;
	}
}

/* —— CTA form bar (homepage quote strip) —— */
.wpf-form-wrap--cta-bar {
	max-width: none;
	margin: 0;
	width: 100%;
}

.wpf-form--cta-bar {
	gap: 0;
}

.wpf-form--cta-bar .wpf-row--cta-bar {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start;
	gap: 0.65rem;
	width: 100%;
}

.wpf-form--cta-bar .wpf-field {
	margin: 0;
	position: relative;
	flex: 1 1 0;
	min-width: 0;
}

.wpf-form--cta-bar .wpf-field--phone {
	flex: 0 0 18%;
}

.wpf-form--cta-bar .wpf-field--email {
	flex: 0 0 18%;
}

.wpf-form--cta-bar .wpf-field--message {
	flex: 1 1 28%;
}

.wpf-form--cta-bar .wpf-actions {
	flex: 0 0 auto;
	margin: 0;
	padding: 0;
}

.wpf-form--cta-bar .wpf-field label:not(.screen-reader-text) {
	display: none;
}

.wpf-form--cta-bar .wpf-field input,
.wpf-form--cta-bar .wpf-field textarea {
	width: 100%;
	height: 50px;
	min-height: 50px;
	padding: 0 0.85rem;
	border: 0;
	border-radius: 0;
	background: #fff;
	color: #333;
	font-size: 0.9375rem;
	line-height: 50px;
	resize: none;
	box-sizing: border-box;
}

.wpf-form--cta-bar .wpf-field textarea {
	overflow: auto;
}

.wpf-form--cta-bar .wpf-field--email input::placeholder,
.wpf-form--cta-bar .wpf-field--message textarea::placeholder {
	color: #e57373;
}

.wpf-form--cta-bar .wpf-invalid-feedback {
	display: none;
	margin-top: 0.2rem;
	font-size: 0.75rem;
	line-height: 1.2;
	color: #e53935;
}

.wpf-form--cta-bar .wpf-field.is-invalid .wpf-invalid-feedback {
	display: block;
}

.wpf-form--cta-bar .wpf-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 50px;
	padding: 0 1.15rem;
	border: 0;
	border-radius: 0;
	background: #f2c400 !important;
	color: #fff !important;
	font-size: 1rem;
	font-weight: 700;
	white-space: nowrap;
	cursor: pointer;
}

.wpf-form--cta-bar .wpf-submit:hover {
	background: #e0b400 !important;
	color: #fff !important;
}

.wpf-form--cta-bar .wpf-notice {
	margin-bottom: 0.75rem;
}

@media (max-width: 900px) {
	.wpf-form--cta-bar .wpf-row--cta-bar {
		flex-wrap: wrap;
	}

	.wpf-form--cta-bar .wpf-field--phone,
	.wpf-form--cta-bar .wpf-field--email,
	.wpf-form--cta-bar .wpf-field--message,
	.wpf-form--cta-bar .wpf-actions {
		flex: 1 1 100%;
	}

	.wpf-form--cta-bar .wpf-submit {
		width: 100%;
	}
}


/* —— CTA form bar (horizontal phone / email / messages + Customize Now) —— */
.wpf-form-wrap--cta-bar {
	max-width: none;
	margin: 0;
	width: 100%;
}

.wpf-form--cta-bar {
	gap: 0;
	margin: 0;
}

.wpf-form--cta-bar .wpf-row--cta-bar {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start;
	gap: 0.65rem;
	width: 100%;
}

.wpf-form--cta-bar .wpf-field {
	position: relative;
	margin: 0;
	flex: 1 1 0;
	min-width: 0;
}

.wpf-form--cta-bar .wpf-field--phone {
	flex: 0 0 18%;
}

.wpf-form--cta-bar .wpf-field--email {
	flex: 0 0 18%;
}

.wpf-form--cta-bar .wpf-field--message {
	flex: 1 1 28%;
}

.wpf-form--cta-bar .wpf-field label:not(.screen-reader-text) {
	display: none;
}

.wpf-form--cta-bar .wpf-field input,
.wpf-form--cta-bar .wpf-field textarea {
	display: block;
	width: 100%;
	height: 50px;
	min-height: 50px;
	max-height: 50px;
	padding: 0 0.85rem;
	border: none;
	border-radius: 0;
	background: #fff;
	color: #333;
	font-size: 0.9375rem;
	line-height: 50px;
	resize: none;
	box-sizing: border-box;
}

.wpf-form--cta-bar .wpf-field--email input::placeholder,
.wpf-form--cta-bar .wpf-field--message textarea::placeholder {
	color: #e57373;
}

.wpf-form--cta-bar .wpf-invalid-feedback {
	display: none;
	margin-top: 0.2rem;
	font-size: 0.75rem;
	line-height: 1.2;
	color: #e53935;
}

.wpf-form--cta-bar .wpf-field.is-invalid .wpf-invalid-feedback {
	display: block;
}

.wpf-form--cta-bar .wpf-actions {
	flex: 0 0 auto;
	margin: 0;
	align-self: flex-start;
}

.wpf-form--cta-bar .wpf-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 50px;
	min-width: 9.5rem;
	padding: 0 1.1rem;
	border: none;
	border-radius: 0;
	background: #f2c400 !important;
	color: #fff !important;
	font-size: 1rem;
	font-weight: 700;
	white-space: nowrap;
	cursor: pointer;
}

.wpf-form--cta-bar .wpf-submit:hover {
	filter: brightness(0.97);
}

.wpf-form--cta-bar .wpf-notice {
	margin-bottom: 0.75rem;
	color: #fff;
}

@media (max-width: 960px) {
	.wpf-form--cta-bar .wpf-row--cta-bar {
		flex-wrap: wrap;
	}

	.wpf-form--cta-bar .wpf-field--phone,
	.wpf-form--cta-bar .wpf-field--email,
	.wpf-form--cta-bar .wpf-field--message,
	.wpf-form--cta-bar .wpf-actions {
		flex: 1 1 100%;
	}

	.wpf-form--cta-bar .wpf-submit {
		width: 100%;
	}
}
