/* Fluent Forms styled to the site's original form design (guide, footer contact, contact page, quote pop-up). */
.pc-ff { font-family: var(--pc-font-body); }
.pc-ff .fluentform, .pc-ff .frm-fluent-form { margin: 0; font-family: inherit; }

/* Layout: groups sit 10px apart, columns have 5px gutters. */
.pc-ff .frm-fluent-form .ff-t-container { display: flex; flex-direction: row; gap: 10px; margin: 0; }
.pc-ff .frm-fluent-form .ff-t-cell { padding: 0; min-width: 0; }
.pc-ff .frm-fluent-form .ff-el-group { margin-bottom: 10px; }
.pc-ff .frm-fluent-form .ff-t-container .ff-el-group:last-child { margin-bottom: 10px; }
/* Labels are for screen readers only; the fields use placeholders as in the original. */
.pc-ff .frm-fluent-form .ff-el-input--label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pc-ff .frm-fluent-form .ff-el-input--content { position: relative; display: flex; width: 100%; }

/* Fields */
.pc-ff .frm-fluent-form .ff-el-form-control {
	flex: 1 1 auto;
	width: 100%;
	min-height: 47px;
	padding: 6px 16px;
	border: 1px solid #ccc;
	border-radius: 4px;
	background-color: #fff;
	font-family: var(--pc-font-body);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	color: #111;
	box-shadow: none;
	outline: 0;
	vertical-align: middle;
}
.pc-ff--free-guide .frm-fluent-form .ff-el-form-control, .pc-ff--tips .frm-fluent-form .ff-el-form-control { color: #767676; }
.pc-ff .frm-fluent-form .ff-el-form-control::placeholder { color: inherit; font-family: inherit; opacity: .6; }
.pc-ff .frm-fluent-form .ff-el-form-control:focus { border-color: #ccc; box-shadow: none; outline: 0; background-color: #fff; }
.pc-ff .frm-fluent-form textarea.ff-el-form-control { min-height: 0; line-height: 1.4; }
.pc-ff .frm-fluent-form select.ff-el-form-control { appearance: none; -webkit-appearance: none; padding: 6px 20px 6px 16px; line-height: 1.5; background-image: none; }
.pc-ff .frm-fluent-form .ff-el-group:has(select) .ff-el-input--content::after { content: "\e92a"; position: absolute; top: 50%; right: 10px; z-index: 1; transform: translateY(-50%); font-family: "pcf-eicons"; font-size: 19px; font-weight: 400; font-style: normal; line-height: 2; color: #767676; pointer-events: none; }
.pc-ff--contact-page .frm-fluent-form .ff-el-form-control { color: #111; }
.pc-ff--contact-page .frm-fluent-form .ff-el-form-control::placeholder { color: #666; opacity: 1; }

/* Validation and messages */
.pc-ff .frm-fluent-form .ff-el-is-error .ff-el-form-control { border-color: #c0392b; }
.pc-ff .frm-fluent-form .error.text-danger { margin-top: 4px; font-size: 13px; font-weight: 400; line-height: 1.3; color: #c0392b; }
.pc-ff .ff-message-success { margin: 0 0 12px; padding: 10px 14px; border: 0; border-radius: 4px; background: #e7f6e7; box-shadow: none; font-family: var(--pc-font-body); font-size: 15px; color: #1d5e1d; }
.pc-ff .ff-errors-in-stack { margin-top: 10px; font-size: 14px; color: #8a1f11; }
.pc-ff .ff-errors-in-stack:empty { display: none; }

/* Note above the upload (contact and quote forms) */
.pc-ff .frm-fluent-form .pc-ff-note { margin-bottom: 10px; padding: 0; font-family: var(--pc-font-body); font-size: 14px; line-height: 24px; }
.pc-ff .pc-ff-note h5 { margin: 0 0 10px; font-family: var(--pc-font-body); font-size: 1.25rem; font-weight: 500; line-height: 1.2; color: #121212; }
.pc-ff .pc-ff-note span { font-family: var(--pc-font-body); font-size: .875rem; font-weight: 400; line-height: 130%; color: #121212; }
.pc-ff--contact-page .pc-ff-note { display: none; }

/* Submit button */
.pc-ff .frm-fluent-form .ff_submit_btn_wrapper { display: flex; justify-content: flex-start; margin: 0 0 10px; text-align: left; }
.pc-ff--contact .frm-fluent-form .ff_submit_btn_wrapper, .pc-ff--contact-page .frm-fluent-form .ff_submit_btn_wrapper, .pc-ff--quote .frm-fluent-form .ff_submit_btn_wrapper { justify-content: center; }
.pc-ff .frm-fluent-form .ff-btn-submit {
	display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 14px;
	min-width: 0; width: auto; margin: 0;
	padding: 19px 24px 19px 28px;
	border: 0 !important; border-radius: 2px;
	background-color: #f46f22 !important; background-image: none;
	font-family: var(--pc-font-body); font-size: 18px; font-weight: 500; line-height: 1; text-transform: uppercase; text-align: center; color: #fff !important;
	box-shadow: none; cursor: pointer;
	transition: .12s ease-out;
}
.pc-ff .frm-fluent-form .ff-btn-submit:hover { transform: none; opacity: 1; background-color: #f46f22 !important; color: #fff !important; }
.pc-ff .frm-fluent-form .ff-btn-submit:hover::after { transform: translateX(5px); }
.pc-ff .frm-fluent-form .ff-btn-submit::after { transition: transform .12s ease-out; content: ""; flex: 0 0 auto; width: 1em; height: .717em; background: url(../../icons/arrow-white.svg) no-repeat center / contain; }
.pc-ff--contact-page .frm-fluent-form .ff-btn-submit::after, .pc-ff--quote .frm-fluent-form .ff-btn-submit::after { content: "\f054"; width: auto; height: auto; background: none; font-family: "pcf-solid"; font-size: 12px; font-weight: 900; font-style: normal; line-height: 1; }
.pc-ff--quote .frm-fluent-form .ff-el-group { margin-bottom: 20px; }
.pc-ff--quote .frm-fluent-form .ff-btn-submit { gap: 25px; padding: 16.5px 12px 16.5px 41px; border-radius: 3px; font-size: 16px; font-weight: 700; text-transform: capitalize; }
.pc-ff .frm-fluent-form .ff-btn-submit.disabled, .pc-ff .frm-fluent-form .ff-btn-submit:disabled { opacity: .7; cursor: default; }

/* Upload field: dashed box, upload icon, file name with a remove button (uploads when a file is chosen). */
.pc-ff .frm-fluent-form .pc-ff-uploadbox { margin-bottom: 10px; }
.pc-upload { position: relative; width: 100%; }
.pc-upload__box { position: relative; display: flex; align-items: center; height: 47px; padding: 10px 5px; border: 1px dashed #ccc; border-radius: 0; background: #fff url(../../icons/cloud-upload.svg) no-repeat 10px 50% / 24px; font-size: 16px; }
.pc-upload__label { position: absolute; left: 42px; right: 40px; overflow: hidden; font-family: var(--pc-font-body); font-size: 14px; font-weight: 700; line-height: 1.4; white-space: nowrap; text-overflow: ellipsis; color: rgba(17, 17, 17, .5); pointer-events: none; }
.pc-upload__input { position: absolute; top: 0; left: 0; z-index: 10; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.pc-upload__box { transition: border-color .2s; }
.pc-upload__input:focus, .pc-upload__input:focus-visible { outline: 0; }
.pc-upload:hover .pc-upload__box, .pc-upload:focus-within .pc-upload__box { border-color: #f46f22; outline: 0; box-shadow: none; }
.pc-upload__remove { display: none; position: absolute; top: 50%; right: 10px; z-index: 25; width: 24px; height: 18px; padding: 0; border: 0; border-radius: 50%; background: none; transform: translateY(-50%); font-family: Arial, sans-serif; font-size: 14px; font-weight: 700; line-height: 18px; color: #111; cursor: pointer; }
.pc-upload.is-done .pc-upload__label { color: #111; }
.pc-upload.is-done .pc-upload__remove { display: block; }
.pc-upload.is-done .pc-upload__input, .pc-upload.is-busy .pc-upload__input { pointer-events: none; }
.pc-upload.is-busy .pc-upload__box { background-image: none; }
.pc-upload.is-busy .pc-upload__label { left: 42px; }
.pc-upload.is-busy .pc-upload__box::before { content: ""; position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border: 2px solid #ccc; border-top-color: #f46f22; border-radius: 50%; animation: pc-spin .8s linear infinite; }
.pc-upload__error { display: none; margin: 6px 0 0; padding: 0; font-family: var(--pc-font-body); font-size: 13px; line-height: 1.3; color: #c0392b; }
.pc-upload.is-error .pc-upload__error { display: block; }
@keyframes pc-spin { to { transform: rotate(360deg); } }

@media (max-width: 767px) {
	.pc-ff .frm-fluent-form .ff-t-container { flex-direction: column; gap: 0; }
	.pc-ff .frm-fluent-form .ff-t-cell { width: 100% !important; flex-basis: auto !important; }
	.pc-ff .frm-fluent-form .ff-btn-submit { font-size: 16px; }
	.pc-ff--quote .frm-fluent-form .ff-btn-submit { font-size: 16px; }
	.pc-ff--contact .pc-ff-note h5 { font-size: 1rem; }
}
/* v2 */
/* v3 */
/* v4 */
/* v5 */
/* v6 */
/* v7 */
/* Homepage-style forms (policrete .btn-submit): button lifts 5px on hover, .2s. Contact page keeps the .button style (arrow only). */
.pc-ff:not(.pc-ff--contact-page) .frm-fluent-form .ff-btn-submit { transition: transform .2s ease, background-color .2s ease; }
.pc-ff:not(.pc-ff--contact-page) .frm-fluent-form .ff-btn-submit::after { transition: transform .2s ease; }
.pc-ff:not(.pc-ff--contact-page) .frm-fluent-form .ff-btn-submit:hover { transform: translateY(-5px); }
/* v8 */
/* v9 */
/* Guide + tips forms: live has 21px between the last field and the button */
.pc-ff--free-guide .frm-fluent-form .ff_submit_btn_wrapper, .pc-ff--tips .frm-fluent-form .ff_submit_btn_wrapper { margin-top: 11px; }
/* v10 */
/* v11 */
/* Quote pop-up: live spaces every row 20px apart */
.pc-ff--quote .frm-fluent-form .ff-t-container { margin-bottom: 10px; }
.pc-ff--quote .frm-fluent-form .ff-el-group.ff-custom_html { margin-bottom: 20px; }
/* v12 */
/* v13 */

/* v14: live Elementor form widget is 10px shorter than its form (row-gap bleed) */
.pc-ff .frm-fluent-form { margin-bottom: -10px; }
