/* WeMove Pittsburgh: contact block (photo + pitch panel + form card) and Fluent Forms styling. */

.wm-contact-sec { background: var(--wm-ink); --wm-rule: rgb(255 255 255 / .14); overflow: hidden; padding-block: 120px; }
.wm-contact-sec .wm-hero__media img { filter: blur(2px) saturate(.9); transform: scale(1.04); }
.wm-contact-sec .wm-hero__media::after { background: linear-gradient(90deg, rgb(17 19 23 / .78), rgb(17 19 23 / .55) 50%, rgb(17 19 23 / .4)); }
.wm-contact { display: grid; grid-template-columns: repeat(4, 1fr); align-items: stretch; }
.wm-contact__pitch {
	grid-column: 1 / span 2;
	display: flex;
	flex-direction: column;
	padding: 56px 56px 48px;
	background: rgb(17 19 23 / .42);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12);
	color: var(--wm-on-dark-2);
	--wm-tick: rgb(255 255 255 / .55);
}
.wm-contact__pitch > * { margin: 0 !important; }
.wm-contact__pitch > * + * { margin-top: 22px !important; }
.wm-contact__pitch :is(h2, h3) { color: var(--wm-white); font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem); line-height: 1.02; letter-spacing: -0.045em; max-width: 14ch; }
.wm-contact__pitch p { color: rgb(243 242 238 / .86); font-size: 1.0625rem; max-width: 48ch; }
.wm-contact__pitch .wp-block-buttons { margin-top: 32px !important; }
.wm-contact__pitch .wm-contact-list { margin-top: auto !important; padding-top: 48px; }
.wm-contact__pitch .wm-contact-list li { border-color: rgb(255 255 255 / .14); }
.wm-contact__form {
	grid-column: 3 / span 2;
	position: relative;
	padding: 52px 56px 48px;
	background: var(--wm-white);
	color: var(--wm-text);
	--wm-tick: var(--wm-gold);
}
.wm-contact__form > * { margin: 0 !important; }
.wm-contact__form-title { color: var(--wm-ink) !important; font-size: 1.875rem !important; line-height: 1.1; letter-spacing: -0.035em; }
.wm-contact__form-intro { margin-top: 10px !important; font-size: 1rem; color: var(--wm-text); }
.wm-contact__form .fluentform { margin-top: 32px !important; }
@media (max-width: 1023px) {
	.wm-contact-sec { padding-block: 72px; }
	.wm-contact { grid-template-columns: 1fr; }
	.wm-contact__pitch, .wm-contact__form { grid-column: 1; padding: 40px 28px; }
	.wm-contact__pitch .wm-contact-list { padding-top: 36px; }
}
@media (max-width: 599px) {
	.wm-contact-sec { padding-block: 0; }
	.wm-contact__pitch, .wm-contact__form { padding: 36px 20px; }
}

/* standalone form card (contact page, landers) */
.wm-form-card { position: relative; background: var(--wm-white); padding: 44px 40px 40px; box-shadow: 0 0 0 1px var(--wm-line), 0 30px 60px -36px rgb(17 19 23 / .35); --wm-tick: var(--wm-gold); }
.wm-form-card > * { margin: 0 !important; }
@media (max-width: 599px) { .wm-form-card { padding: 30px 20px 28px; } }

/* ---------------------------------------------------------------- Fluent Forms (Inherit Theme Style) */
.frm-fluent-form { margin: 0; container-type: inline-size; }
.frm-fluent-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.frm-fluent-form .ff-t-container { display: flex; flex-wrap: wrap; gap: 0 20px; }
.frm-fluent-form .ff-t-cell { flex: 1 1 220px !important; width: auto !important; min-width: 0; padding: 0 !important; }
.frm-fluent-form .ff-el-group { margin-bottom: 20px; }
.frm-fluent-form .ff-el-input--label { margin-bottom: 8px; display: block; }
.frm-fluent-form .ff-el-input--label label { font-size: .875rem; font-weight: 400; color: var(--wm-text); letter-spacing: 0; }
.frm-fluent-form .ff-el-is-required.asterisk-right label::after { content: "*"; color: var(--wm-text); margin-left: 1px; }
.frm-fluent-form .ff-el-form-control {
	width: 100%;
	min-height: 56px;
	padding: 15px 18px;
	font: inherit;
	font-size: 1rem;
	color: var(--wm-ink);
	background: var(--wm-white);
	border: 1px solid #DAD8D1;
	border-radius: 0;
	box-shadow: none;
	transition: border-color .2s, box-shadow .2s, background-color .2s;
	-webkit-appearance: none;
	appearance: none;
}
.frm-fluent-form .ff-el-form-control::placeholder { color: #9A9EA5; opacity: 1; }
@media (hover: hover) { .frm-fluent-form .ff-el-form-control:hover { border-color: #B9B6AD; } }
.frm-fluent-form .ff-el-form-control:focus { outline: 0; border-color: var(--wm-ink); box-shadow: inset 0 0 0 1px var(--wm-ink), 0 0 0 4px rgb(242 193 7 / .35); }
.frm-fluent-form textarea.ff-el-form-control { min-height: 120px; resize: vertical; }
.frm-fluent-form select.ff-el-form-control {
	padding-right: 44px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1 1.5 5 5 5-5' fill='none' stroke='%23111317' stroke-width='1.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 18px center;
	background-size: 12px 8px;
	cursor: pointer;
}
.frm-fluent-form input[type="date"].ff-el-form-control { min-height: 56px; }
/* checkbox (consent) */
.frm-fluent-form .ff-el-form-check { margin: 0; }
.frm-fluent-form .ff-el-form-check-label { display: flex; align-items: flex-start; gap: 10px; font-size: .875rem; line-height: 1.45; color: var(--wm-text); cursor: pointer; }
.frm-fluent-form input[type="checkbox"] { -webkit-appearance: none; appearance: none; flex: none; width: 18px; height: 18px; margin: 1px 0 0; border: 1.5px solid var(--wm-ink); border-radius: 0; background: var(--wm-white); display: grid; place-content: center; cursor: pointer; }
.frm-fluent-form input[type="checkbox"]::after { content: ""; width: 10px; height: 10px; background: var(--wm-ink); clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0, 43% 62%); transform: scale(.6); opacity: 0; transition: transform .15s var(--wm-ease-out), opacity .15s; }
.frm-fluent-form input[type="checkbox"]:checked { background: var(--wm-gold); }
.frm-fluent-form input[type="checkbox"]:checked::after { transform: scale(1); opacity: 1; }
.frm-fluent-form input[type="checkbox"]:focus-visible { outline: 2px solid var(--wm-gold); outline-offset: 2px; }
/* submit: full-width gold bar with the arrow at the far right (reference) */
.frm-fluent-form .ff_submit_btn_wrapper { margin-top: 8px; }
.frm-fluent-form .ff-btn-submit {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 58px;
	padding: 0 22px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: var(--wm-gold) !important;
	color: var(--wm-ink) !important;
	font: 500 1rem/1.2 var(--wm-display) !important;
	letter-spacing: -0.01em;
	cursor: pointer;
	box-shadow: none !important;
	transition: color .32s var(--wm-ease), transform .16s var(--wm-ease-out);
}
.frm-fluent-form .ff-btn-submit::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--wm-ink); transform: translateY(101%); transition: transform .42s var(--wm-ease); }
.frm-fluent-form .ff-btn-submit::after {
	content: "";
	width: 14px;
	height: 14px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 11 11 3M4.5 3H11v6.5' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='square'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 11 11 3M4.5 3H11v6.5' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='square'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform .42s var(--wm-ease);
}
@media (hover: hover) {
	.frm-fluent-form .ff-btn-submit:hover { color: var(--wm-white) !important; }
	.frm-fluent-form .ff-btn-submit:hover::before { transform: none; }
	.frm-fluent-form .ff-btn-submit:hover::after { transform: translate(2px, -2px); }
}
.frm-fluent-form .ff-btn-submit:active { transform: scale(.98); }
.frm-fluent-form .ff-btn-submit:disabled, .frm-fluent-form.ff_submitting .ff-btn-submit { cursor: progress; }
.frm-fluent-form.ff_submitting .ff-btn-submit::after { -webkit-mask: radial-gradient(circle, transparent 5px, #000 5.5px) center / 14px 14px no-repeat; mask: radial-gradient(circle, transparent 5px, #000 5.5px) center / 14px 14px no-repeat; background: conic-gradient(currentColor 0 75%, transparent 0); border-radius: 50%; animation: wm-spin .6s linear infinite; }
@keyframes wm-spin { to { transform: rotate(1turn); } }
.ff-message-success { transition: opacity .3s var(--wm-ease-out), transform .3s var(--wm-ease-out); }
@starting-style { .ff-message-success { opacity: 0; transform: translateY(8px); } }
/* validation + messages */
.frm-fluent-form .ff-el-is-error .ff-el-form-control { border-color: #C7372B; box-shadow: inset 0 0 0 1px #C7372B; }
.frm-fluent-form .error, .frm-fluent-form .text-danger { display: block; margin-top: 6px; font-size: .8125rem; color: #C7372B; }
.ff-message-success {
	position: relative;
	padding: 28px 28px 28px 64px !important;
	border: 0 !important;
	background: var(--wm-ink) !important;
	color: var(--wm-on-dark) !important;
	font-size: 1.0625rem;
	line-height: 1.5;
	box-shadow: none !important;
}
.ff-message-success::before { content: ""; position: absolute; left: 24px; top: 30px; width: 22px; height: 22px; background: var(--wm-gold); clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0, 43% 62%); }
.ff-errors-in-stack { margin-top: 12px; color: #C7372B; font-size: .875rem; }
.frm-fluent-form .ff-el-help-message { font-size: .8125rem; color: var(--wm-muted); margin-top: 6px; }
@container (max-width: 480px) { .frm-fluent-form .ff-t-container { display: block; } }
/* two-up fields (forms.json "half") */
.frm-fluent-form fieldset { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
.frm-fluent-form fieldset > * { grid-column: 1 / -1; }
.frm-fluent-form fieldset > .wpr-half { grid-column: auto; }
.frm-fluent-form fieldset > input[type="hidden"] { display: none; }
@container (max-width: 520px) { .frm-fluent-form fieldset { grid-template-columns: 1fr; } .frm-fluent-form fieldset > .wpr-half { grid-column: 1 / -1; } }
