/* ==========================================================================
   "Get a free quote" — quote section + Contact Form 7 quote form.
   Ported from the reference theme (services-contact pattern +
   cf7-experience.css). Loaded only where the quote form renders
   (inc/modules/ui-quote.php). No tracking (letter spacing) anywhere.
   ========================================================================== */

/* ---------- Section ---------- */
.wpi-quote { scroll-margin-top: calc(var(--header-h, 68px) + 8px); }
.wpi-quote::after { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
	background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
	background-size: 64px 64px; background-position: center top;
	-webkit-mask-image: radial-gradient(80% 70% at 30% 20%, #000 20%, transparent 75%); mask-image: radial-gradient(80% 70% at 30% 20%, #000 20%, transparent 75%); }
.wpi-quote > .wp-block-columns { gap: clamp(2rem, 6vw, 5rem); }
.wpi-quote__eyebrow { display: inline-flex; align-items: center; gap: .7rem; margin: 0; font-family: var(--wp--preset--font-family--mono); font-size: 12px !important; font-weight: 500; text-transform: uppercase; color: var(--lav) !important; }
.wpi-quote__eyebrow::before { content: ""; flex: none; width: 15px; height: 9px; background: radial-gradient(circle at 4.5px 4.5px, var(--lav) 0 4px, transparent 4.5px), radial-gradient(circle at 10.5px 4.5px, var(--indigo) 0 4px, transparent 4.5px); }
.wpi-quote h2 { line-height: 1.02; }
.wpi-quote h2 mark { background: linear-gradient(100deg, var(--peri) 10%, var(--lav) 60%, #fff 110%) !important; -webkit-background-clip: text !important; background-clip: text !important; color: transparent !important; }
.wpi-quote .is-style-checks li { color: #E8E9F5; }
.wpi-quote__card { position: relative; padding: clamp(1.25rem, 3vw, 2.5rem) !important; border-radius: var(--r-l, 28px); background: #fff; color: var(--ink); box-shadow: 0 40px 120px -30px rgba(76, 91, 255, .5), 0 0 0 1px rgba(255, 255, 255, .08); }
.wpi-quote__card :where(h3, h4) { color: var(--ink); }
.wpi-quote__note { margin-top: var(--wp--preset--spacing--40) !important; color: #A9ACC8 !important; }
@media (max-width: 781px) { .wpi-quote__card { margin-inline: calc(var(--gutter, 1.125rem) * -.4); } }

/* ---------- "Quote for" context chip ---------- */
.wpi-quote-for { display: flex; align-items: center; gap: .55rem; margin: 0 0 1.25rem !important; padding: .55rem .6rem .55rem .85rem; border-radius: 14px; background: linear-gradient(135deg, rgba(76, 91, 255, .07), rgba(169, 177, 255, .14)); box-shadow: inset 0 0 0 1px rgba(76, 91, 255, .2); color: var(--ink); font-size: 13.5px; line-height: 1.35; }
.wpi-quote-for > svg { flex: none; color: var(--indigo); }
.wpi-quote-for > span { flex: 1; min-width: 0; color: var(--muted); }
.wpi-quote-for strong { color: var(--ink); font-weight: 500; }
.wpi-quote-for__pkg:not(:empty)::before { content: " · "; }
.wpi-quote-for__pkg { color: var(--indigo); font-weight: 500; }
.wpi-quote-for__clear { display: none; place-items: center; flex: none; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; }
.wpi-quote-for.has-package .wpi-quote-for__clear { display: grid; }
.wpi-quote-for.has-package { animation: wpi-fx-rise .45s var(--ease, ease); }
.wpi-quote-for__clear:hover { background: var(--ink); color: #fff; }
.wpi-quote-for__clear:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }

/* ---------- CF7 chrome (response, spinner) ---------- */
.wpi-quote__card .wpcf7 form .wpcf7-response-output { margin: 1.25rem 0 0; padding: .85rem 1rem; border: 0; border-radius: 14px; font-size: 14px; line-height: 1.45; background: #F5F6FA; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(11, 11, 18, .1); animation: wpi-fx-rise .35s var(--ease, ease); }
.wpi-quote__card .wpcf7 form.init .wpcf7-response-output,
.wpi-quote__card .wpcf7 form.resetting .wpcf7-response-output,
.wpi-quote__card .wpcf7 form.submitting .wpcf7-response-output { display: none; }
.wpi-quote__card .wpcf7 form.sent .wpcf7-response-output { background: #EAF7EF; color: #0B6B35; box-shadow: inset 0 0 0 1px rgba(18, 161, 80, .35); }
.wpi-quote__card .wpcf7 form:is(.invalid, .unaccepted, .payment-required) .wpcf7-response-output { background: #FFF6E5; color: #7A4B00; box-shadow: inset 0 0 0 1px rgba(180, 83, 9, .3); }
.wpi-quote__card .wpcf7 form:is(.failed, .aborted, .spam) .wpcf7-response-output { background: #FDECEF; color: #A3152B; box-shadow: inset 0 0 0 1px rgba(214, 51, 75, .35); }
.wpi-quote__card .wpcf7-spinner { width: 22px; height: 22px; margin: 0 0 0 .75rem; border-radius: 50%; background: transparent; border: 2px solid rgba(76, 91, 255, .2); border-top-color: var(--indigo); opacity: 1; visibility: hidden; animation: wpi-quote-spin .8s linear infinite; }
.wpi-quote__card .wpcf7-spinner::before { display: none; }
.wpi-quote__card .wpcf7 form.submitting .wpcf7-spinner { visibility: visible; }
@keyframes wpi-quote-spin { to { transform: rotate(360deg); } }

/* ---------- Plain CF7 template (no .wpi-fx marker) ---------- */
.wpi-quote__card .wpcf7-form:not(:has(.wpi-fx)) p { margin: 0 0 1rem; }
.wpi-quote__card .wpcf7-form:not(:has(.wpi-fx)) label { display: block; font-size: 13.5px; font-weight: 500; }
.wpi-quote__card .wpcf7-form:not(:has(.wpi-fx)) :is(input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="number"], select, textarea) { display: block; width: 100%; min-height: 52px; margin-top: .45rem; padding: .85rem 1rem; border: 0; border-radius: 14px; background: #F5F6FA; color: var(--ink); font: inherit; font-size: 15px; box-shadow: inset 0 0 0 1px rgba(11, 11, 18, .1); transition: box-shadow .3s var(--ease, ease), background-color .25s; }
.wpi-quote__card .wpcf7-form:not(:has(.wpi-fx)) textarea { min-height: 140px; resize: vertical; }
.wpi-quote__card .wpcf7-form:not(:has(.wpi-fx)) :is(input, select, textarea):focus { outline: none; background: #fff; box-shadow: inset 0 0 0 1.5px var(--indigo), 0 0 0 4px rgba(76, 91, 255, .14); }
.wpi-quote__card .wpcf7-form:not(:has(.wpi-fx)) .wpcf7-not-valid { box-shadow: inset 0 0 0 1.5px #D6334B, 0 0 0 4px rgba(214, 51, 75, .1); }
.wpi-quote__card .wpcf7-form:not(:has(.wpi-fx)) .wpcf7-not-valid-tip { margin-top: .4rem; color: #D6334B; font-size: 12.5px; font-weight: 500; }
.wpi-quote__card .wpcf7-form:not(:has(.wpi-fx)) .wpcf7-submit { min-height: 52px; padding: .8rem 1.8rem; border: 0; border-radius: 999px; background: var(--indigo); color: #fff; font: inherit; font-size: 15.5px; font-weight: 500; cursor: pointer; box-shadow: 0 14px 30px -14px rgba(76, 91, 255, .9); transition: background-color .3s, transform .3s var(--ease, ease); }
.wpi-quote__card .wpcf7-form:not(:has(.wpi-fx)) .wpcf7-submit:hover { background: var(--indigo-2); transform: translateY(-1px); }

/* ---------- Form Experience (.wpi-fx) ---------- */
.wpi-fx {
	--fx-ink: var(--ink, #0B0B12);
	--fx-brand: var(--indigo, #4C5BFF);
	--fx-lens: var(--peri, #A9B1FF);
	--fx-muted: var(--muted, #5A5B6E);
	--fx-line: rgba(11, 11, 18, .1);
	--fx-soft: #F5F6FA;
	--fx-tint: rgba(76, 91, 255, .07);
	--fx-bad: #D6334B;
	--fx-good: #12A150;
	--fx-r: 14px;
	--fx-ease: cubic-bezier(.22, 1, .36, 1);
	--fx-spring: cubic-bezier(.34, 1.56, .64, 1);
	--fx-mono: var(--wp--preset--font-family--mono, ui-monospace, SFMono-Regular, Menlo, monospace);
	position: relative;
	color: var(--fx-ink);
	font-size: 15px;
	line-height: 1.5;
	text-align: left;
}

.wpi-fx *,
.wpi-fx *::before,
.wpi-fx *::after {
	box-sizing: border-box;
}

/* Reset the generic CF7 styles inside enhanced forms. */
.wpi-fx .wpcf7-form-control-wrap {
	display: block;
	margin: 0;
}

.wpi-fx label {
	display: block;
	margin: 0;
	font-weight: inherit;
}

.wpi-fx p {
	margin: 0;
}

/* ---------- Steps & layout ---------- */
.wpi-fx-step {
	min-width: 0;
	margin: 0 0 2rem;
	padding: 0;
	border: 0;
}

.wpi-fx-step > * + * {
	margin-top: 1.5rem;
}

.wpi-fx.is-stepped .wpi-fx-step {
	margin: 0;
}

.wpi-fx-step legend {
	float: left;
	width: 100%;
	margin: 0 0 .35rem;
	padding: 0;
	font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
	font-weight: 500;
	line-height: 1.2;
	outline: none;
}

.wpi-fx-step legend + * {
	clear: both;
	margin-top: 0;
}

.wpi-fx-help {
	color: var(--fx-muted);
	font-size: 14px;
}

.wpi-fx-step legend + .wpi-fx-help {
	margin-top: 0;
}

.wpi-fx-help--warn {
	display: flex;
	gap: .5rem;
	align-items: center;
	padding: .65rem .85rem;
	border-radius: 12px;
	background: #FFF7E6;
	color: #7A4B00;
	font-size: 13px;
}

.wpi-fx-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.wpi-fx-row--3 {
	grid-template-columns: 2fr 1fr 1fr;
}

@media (max-width: 640px) {
	.wpi-fx-row,
	.wpi-fx-row--3 {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------- Labels & fields ---------- */
.wpi-fx-label {
	display: flex;
	align-items: baseline;
	gap: .5rem;
	margin-bottom: .45rem;
	font-size: 13.5px;
	font-weight: 500;
	color: var(--fx-ink);
}

.wpi-fx-label :is(.wpi-fx-opt, em) {
	font-style: normal;
	font-weight: 400;
	font-size: 12px;
	color: var(--fx-muted);
}

.wpi-fx-field {
	position: relative;
}

.wpi-fx input[type="text"],
.wpi-fx input[type="email"],
.wpi-fx input[type="url"],
.wpi-fx input[type="tel"],
.wpi-fx input[type="number"],
.wpi-fx select,
.wpi-fx textarea {
	display: block;
	width: 100%;
	max-width: none;
	min-height: 52px;
	margin: 0;
	padding: .85rem 2.6rem .85rem 1rem;
	border: 1px solid transparent;
	border-radius: var(--fx-r);
	background: var(--fx-soft);
	color: var(--fx-ink);
	font: inherit;
	font-size: 15px;
	box-shadow: inset 0 0 0 1px var(--fx-line);
	transition: background-color .25s, box-shadow .3s var(--fx-ease), border-color .25s;
	appearance: none;
	-webkit-appearance: none;
}

.wpi-fx textarea {
	min-height: 140px;
	padding-right: 1rem;
	line-height: 1.6;
	resize: vertical;
}

.wpi-fx select {
	padding-right: 2.75rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B6C80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	background-size: 16px;
	cursor: pointer;
}

.wpi-fx input::placeholder,
.wpi-fx textarea::placeholder {
	color: #707287;
	opacity: 1;
}

.wpi-fx input:hover,
.wpi-fx select:hover,
.wpi-fx textarea:hover {
	box-shadow: inset 0 0 0 1px rgba(11, 11, 18, .22);
}

.wpi-fx input:focus,
.wpi-fx select:focus,
.wpi-fx textarea:focus {
	outline: none;
	background-color: #fff;
	box-shadow: inset 0 0 0 1.5px var(--fx-brand), 0 0 0 4px rgba(76, 91, 255, .14);
}

/* Valid tick */
.wpi-fx-field::after {
	content: "";
	position: absolute;
	right: 1rem;
	bottom: 17px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--fx-good) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 12px no-repeat;
	opacity: 0;
	transform: scale(.4);
	transition: opacity .25s, transform .45s var(--fx-spring);
	pointer-events: none;
}

.wpi-fx-field.is-valid:not(:has(textarea))::after {
	opacity: 1;
	transform: scale(1);
}

/* Errors */
.wpi-fx .is-error input,
.wpi-fx .is-error select,
.wpi-fx .is-error textarea,
.wpi-fx .wpcf7-not-valid {
	box-shadow: inset 0 0 0 1.5px var(--fx-bad), 0 0 0 4px rgba(214, 51, 75, .1);
}

.wpi-fx-error,
.wpi-fx .wpcf7-not-valid-tip {
	display: flex;
	align-items: center;
	gap: .35rem;
	margin-top: .45rem;
	color: var(--fx-bad);
	font-size: 12.5px;
	font-weight: 500;
	animation: wpi-fx-rise .35s var(--fx-ease);
}

.wpi-fx-error::before {
	content: "!";
	display: grid;
	place-items: center;
	width: 15px;
	height: 15px;
	border-radius: 50%;
	background: var(--fx-bad);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
}

.wpi-fx .is-error .wpcf7-not-valid-tip {
	display: none;
}

/* ---------- Choice groups (shared) ---------- */
.wpi-fx-choices .wpcf7-form-control {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}

.wpi-fx-choices .wpcf7-list-item {
	position: relative;
	margin: 0;
}

.wpi-fx-choices .wpcf7-list-item label {
	position: relative;
	display: flex;
	align-items: center;
	gap: .6rem;
	cursor: pointer;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
}

/* Visually hidden native input — keeps keyboard & screen-reader behaviour. */
.wpi-fx-choices input[type="radio"],
.wpi-fx-choices input[type="checkbox"],
.wpi-fx-toggle input[type="checkbox"] {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
	z-index: 1;
}

.wpi-fx-ico {
	display: grid;
	place-items: center;
	flex: none;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: var(--fx-tint);
	color: var(--fx-brand);
	transition: background-color .3s, color .3s, transform .5s var(--fx-spring);
}

.wpi-fx-tick {
	display: grid;
	place-items: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--fx-brand);
	color: #fff;
	opacity: 0;
	transform: scale(.3);
	transition: opacity .2s, transform .45s var(--fx-spring);
}

.wpi-fx-choices .is-checked .wpi-fx-tick {
	opacity: 1;
	transform: scale(1);
}

.wpi-fx-hint {
	display: block;
	margin-top: 2px;
	font-size: 12.5px;
	font-weight: 400;
	line-height: 1.35;
	color: var(--fx-muted);
}

.wpi-fx-choices .wpcf7-list-item:has(input:focus-visible) label {
	outline: 2px solid var(--fx-brand);
	outline-offset: 2px;
}

.wpi-fx-choices .is-pop label {
	animation: wpi-fx-pop .45s var(--fx-spring);
}

/* Cards */
.wpi-fx-choices.is-cards .wpcf7-form-control {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr));
	gap: .65rem;
}

.wpi-fx-choices.is-cards label {
	align-items: flex-start;
	height: 100%;
	padding: 1rem;
	border-radius: 18px;
	background: #fff radial-gradient(160px circle at var(--mx, -200px) var(--my, -200px), rgba(76, 91, 255, .09), transparent 70%);
	box-shadow: inset 0 0 0 1px var(--fx-line);
	transition: box-shadow .3s var(--fx-ease), transform .45s var(--fx-ease), background-color .3s;
}

.wpi-fx-choices.is-cards label:hover {
	transform: translateY(-2px);
	box-shadow: inset 0 0 0 1px rgba(76, 91, 255, .35), 0 14px 30px -18px rgba(11, 11, 18, .35);
}

.wpi-fx-choices.is-cards .wpcf7-list-item-label {
	flex: 1;
	min-width: 0;
	padding-top: 2px;
	font-size: 14.5px;
	font-weight: 500;
	line-height: 1.3;
}

.wpi-fx-choices.is-cards .wpi-fx-tick {
	position: absolute;
	top: .65rem;
	right: .65rem;
}

.wpi-fx-choices.is-cards .is-checked label {
	background-color: #F6F7FF;
	box-shadow: inset 0 0 0 1.5px var(--fx-brand), 0 16px 34px -20px rgba(76, 91, 255, .7);
}

.wpi-fx-choices.is-cards .is-checked .wpi-fx-ico {
	background: var(--fx-brand);
	color: #fff;
	transform: rotate(-6deg) scale(1.04);
}

/* Chips */
.wpi-fx-choices.is-chips label {
	gap: .4rem;
	padding: .55rem 1rem;
	border-radius: 999px;
	background: #fff;
	box-shadow: inset 0 0 0 1px var(--fx-line);
	font-size: 14px;
	transition: background-color .25s, color .25s, box-shadow .25s, padding .35s var(--fx-ease);
}

.wpi-fx-choices.is-chips label:hover {
	box-shadow: inset 0 0 0 1px rgba(11, 11, 18, .3);
}

.wpi-fx-choices.is-chips .wpi-fx-tick {
	order: -1;
	width: 0;
	height: 16px;
	margin-right: -.4rem;
	background: transparent;
	color: currentColor;
	transition: width .35s var(--fx-ease), margin .35s var(--fx-ease), opacity .2s, transform .45s var(--fx-spring);
}

.wpi-fx-choices.is-chips .is-checked label {
	background: var(--fx-ink);
	color: #fff;
	box-shadow: none;
}

.wpi-fx-choices.is-chips .is-checked .wpi-fx-tick {
	width: 16px;
	margin-right: 0;
}

/* Segmented control with a sliding indicator (position set by JS). */
.wpi-fx-choices.is-segmented .wpcf7-form-control {
	position: relative;
	display: grid;
	grid-auto-columns: minmax(0, 1fr);
	grid-auto-flow: column;
	gap: 4px;
	padding: 4px;
	border-radius: 16px;
	background: var(--fx-soft);
	box-shadow: inset 0 0 0 1px var(--fx-line);
	isolation: isolate;
}

.wpi-fx-choices.is-segmented .wpcf7-form-control::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	z-index: -1;
	width: var(--seg-w, 0);
	height: var(--seg-h, 0);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(11, 11, 18, .08), 0 6px 16px -8px rgba(11, 11, 18, .25), inset 0 0 0 1px rgba(76, 91, 255, .25);
	transform: translate(var(--seg-x, 0), var(--seg-y, 0));
	transition: transform .45s var(--fx-ease), width .45s var(--fx-ease), height .45s var(--fx-ease);
}

.wpi-fx-choices.is-segmented label {
	justify-content: center;
	min-height: 46px;
	padding: .55rem .5rem;
	border-radius: 12px;
	text-align: center;
	font-size: 14px;
	color: #4A4B5E;
	transition: color .25s;
}

.wpi-fx-choices .wpcf7-list-item-label {
	color: inherit;
	opacity: 1;
}

.wpi-fx-choices.is-segmented .wpcf7-list-item-label {
	display: block;
}

.wpi-fx-choices.is-segmented .wpi-fx-hint {
	font-size: 11.5px;
}

.wpi-fx-choices.is-segmented label:hover,
.wpi-fx-choices.is-segmented .is-checked label {
	color: var(--fx-ink);
}

.wpi-fx-choices.is-segmented .is-checked .wpcf7-list-item-label {
	font-weight: 500;
}

/* Without JS the segmented control still shows the checked option. */
.wpi-fx:not(.is-fx-ready) .wpi-fx-choices .wpcf7-list-item:has(input:checked) label {
	box-shadow: inset 0 0 0 1.5px var(--fx-brand);
}

@media (max-width: 520px) {
	/* Four or more options wrap to a 2×n grid; up to three stay in a row. */
	.wpi-fx-choices.is-segmented .wpcf7-form-control:has(.wpcf7-list-item:nth-child(4)) {
		grid-auto-flow: row;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wpi-fx-choices.is-cards .wpcf7-form-control {
		gap: .5rem;
	}

	.wpi-fx-choices.is-cards label {
		align-items: center;
		padding: .7rem .8rem;
		border-radius: 14px;
	}

	.wpi-fx-choices.is-cards .wpi-fx-ico {
		width: 36px;
		height: 36px;
		border-radius: 10px;
	}

	.wpi-fx-choices.is-cards .wpi-fx-tick {
		top: 50%;
		margin-top: -10px;
	}
}

/* ---------- Toggle (single checkbox as a switch) ---------- */
.wpi-fx-toggle .wpcf7-list-item {
	position: relative;
	display: block;
	margin: 0;
}

.wpi-fx-toggle label {
	position: relative;
	display: flex !important;
	align-items: center;
	gap: .85rem;
	padding: .85rem 1rem;
	border-radius: var(--fx-r);
	background: var(--fx-soft);
	box-shadow: inset 0 0 0 1px var(--fx-line);
	cursor: pointer;
	font-size: 14px;
}

.wpi-fx-toggle .wpcf7-list-item-label {
	order: 2;
}

.wpi-fx-toggle label::before {
	content: "";
	flex: none;
	width: 42px;
	height: 24px;
	border-radius: 999px;
	background: rgba(11, 11, 18, .18);
	transition: background-color .3s;
}

.wpi-fx-toggle label::after {
	content: "";
	position: absolute;
	left: calc(1rem + 3px);
	top: 50%;
	width: 18px;
	height: 18px;
	margin-top: -9px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(11, 11, 18, .3);
	transition: transform .4s var(--fx-spring);
}

.wpi-fx-toggle .wpcf7-list-item:has(input:checked) label::before {
	background: var(--fx-brand);
}

.wpi-fx-toggle .wpcf7-list-item:has(input:checked) label::after {
	transform: translateX(18px);
}

.wpi-fx-toggle .wpcf7-list-item:has(input:focus-visible) label {
	outline: 2px solid var(--fx-brand);
	outline-offset: 2px;
}

/* ---------- Prompts & counter ---------- */
.wpi-fx-prompts {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem;
	margin-top: .6rem !important;
}

.wpi-fx-prompts:empty {
	display: none;
}

.wpi-fx-prompt {
	display: inline-flex;
	align-items: center;
	gap: .3rem;
	padding: .35rem .7rem;
	border: 1px dashed rgba(76, 91, 255, .45);
	border-radius: 999px;
	background: transparent;
	color: var(--fx-brand);
	font: inherit;
	font-size: 12.5px;
	font-weight: 500;
	cursor: pointer;
	transition: background-color .2s, border-color .2s, opacity .2s;
}

.wpi-fx-prompt:hover {
	border-style: solid;
	background: var(--fx-tint);
}

.wpi-fx-prompt.is-used {
	opacity: .5;
}

.wpi-fx-count {
	display: block;
	margin-top: .35rem;
	text-align: right;
	font-family: var(--fx-mono);
	font-size: 11px;
	color: var(--fx-muted);
	font-variant-numeric: tabular-nums;
}

.wpi-fx-count.is-near {
	color: #B45309;
}

/* ---------- Drop zone ---------- */
.wpi-fx-drop__zone {
	position: relative;
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1.15rem 1.25rem;
	border: 1.5px dashed rgba(11, 11, 18, .2);
	border-radius: 18px;
	background: var(--fx-soft);
	transition: border-color .25s, background-color .25s, transform .4s var(--fx-ease);
}

.wpi-fx-drop__zone:hover,
.wpi-fx-drop__zone.is-focus {
	border-color: var(--fx-brand);
}

.wpi-fx-drop__zone.is-over {
	border-color: var(--fx-brand);
	background: var(--fx-tint);
	transform: scale(1.01);
}

.wpi-fx-drop__zone .wpcf7-form-control-wrap {
	position: absolute;
	inset: 0;
}

.wpi-fx-drop__zone input[type="file"] {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}

.wpi-fx-drop__ico {
	display: grid;
	place-items: center;
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #fff;
	color: var(--fx-brand);
	box-shadow: 0 4px 14px -6px rgba(11, 11, 18, .25);
	transition: transform .5s var(--fx-spring);
}

.wpi-fx-drop__zone:hover .wpi-fx-drop__ico,
.wpi-fx-drop__zone.is-over .wpi-fx-drop__ico {
	transform: rotate(-12deg) scale(1.08);
}

.wpi-fx-drop__text {
	display: grid;
	gap: 2px;
	font-size: 14px;
}

.wpi-fx-drop__text strong {
	font-weight: 500;
}

.wpi-fx-drop__text u {
	color: var(--fx-brand);
	text-underline-offset: 3px;
}

.wpi-fx-drop__text small {
	font-family: var(--fx-mono);
	font-size: 10.5px;
	color: var(--fx-muted);
}

.wpi-fx-file {
	display: flex;
	align-items: center;
	gap: .65rem;
	margin-top: .6rem;
	padding: .6rem .7rem .6rem .8rem;
	border-radius: 12px;
	background: #fff;
	box-shadow: inset 0 0 0 1px rgba(76, 91, 255, .35);
	animation: wpi-fx-rise .4s var(--fx-ease);
}

.wpi-fx-file[hidden] {
	display: none;
}

.wpi-fx-file__ico {
	color: var(--fx-brand);
	display: grid;
}

.wpi-fx-file__name {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.wpi-fx-file__size {
	font-family: var(--fx-mono);
	font-size: 11px;
	color: var(--fx-muted);
}

.wpi-fx-file__rm {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--fx-soft);
	color: var(--fx-ink);
	cursor: pointer;
}

.wpi-fx-file__rm:hover {
	background: var(--fx-bad);
	color: #fff;
}

/* ---------- Consent ---------- */
.wpi-fx-consent .wpcf7-list-item {
	margin: 0;
}

.wpi-fx-consent label {
	display: flex !important;
	align-items: flex-start;
	gap: .65rem;
	font-size: 13.5px;
	color: var(--fx-muted);
	cursor: pointer;
}

.wpi-fx-consent input[type="checkbox"] {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 1px 0 0;
	border: 1.5px solid rgba(11, 11, 18, .3);
	border-radius: 6px;
	background: #fff;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	transition: background-color .2s, border-color .2s;
}

.wpi-fx-consent input[type="checkbox"]:checked {
	border-color: var(--fx-brand);
	background: var(--fx-brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.wpi-fx-consent input[type="checkbox"]:focus-visible {
	outline: 2px solid var(--fx-brand);
	outline-offset: 2px;
}

/* ---------- Summary ---------- */
.wpi-fx-summary {
	padding: 1rem 1.15rem;
	border-radius: 18px;
	background: linear-gradient(135deg, rgba(76, 91, 255, .06), rgba(169, 177, 255, .1));
	box-shadow: inset 0 0 0 1px rgba(76, 91, 255, .18);
}

.wpi-fx-summary[hidden],
.wpi-fx-summary:empty {
	display: none;
}

.wpi-fx-summary__title {
	margin-bottom: .5rem !important;
	font-family: var(--fx-mono);
	font-size: 10.5px;
	text-transform: uppercase;
	color: var(--fx-brand);
}

.wpi-fx-summary section + section {
	margin-top: .65rem;
	padding-top: .65rem;
	border-top: 1px solid rgba(76, 91, 255, .15);
}

.wpi-fx-summary header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: .3rem;
	font-size: 12px;
	font-weight: 500;
	color: var(--fx-muted);
}

.wpi-fx-summary header button {
	display: inline-flex;
	align-items: center;
	gap: .3rem;
	padding: .2rem .5rem;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--fx-brand);
	font: inherit;
	font-size: 12px;
	cursor: pointer;
}

.wpi-fx-summary header button:hover {
	background: #fff;
}

.wpi-fx-summary dl {
	display: grid;
	gap: .25rem;
	margin: 0;
}

.wpi-fx-summary dl > div {
	display: grid;
	grid-template-columns: minmax(110px, 34%) minmax(0, 1fr);
	gap: .75rem;
	font-size: 13.5px;
}

.wpi-fx-summary dt {
	color: var(--fx-muted);
}

.wpi-fx-summary dd {
	margin: 0;
	overflow-wrap: anywhere;
	font-weight: 500;
}

/* ---------- Progress header ---------- */
.wpi-fx-progress {
	margin-bottom: 1.75rem;
}

.wpi-fx-progress__meta {
	margin-bottom: .6rem !important;
	font-family: var(--fx-mono);
	font-size: 10.5px;
	text-transform: uppercase;
	color: var(--fx-muted);
}

.wpi-fx-progress__track {
	position: relative;
	height: 6px;
	border-radius: 999px;
	background: var(--fx-soft);
	box-shadow: inset 0 0 0 1px var(--fx-line);
}

.wpi-fx-progress__fill {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: calc(6% + var(--fx-progress, 0) * 94%);
	border-radius: inherit;
	background: linear-gradient(90deg, var(--fx-brand), var(--fx-lens));
	transition: width .7s var(--fx-ease);
}

/* The brand's two dots ride the end of the bar and collide on each step. */
.wpi-fx-progress__fill i {
	position: absolute;
	top: 50%;
	right: -7px;
	width: 14px;
	height: 14px;
	margin-top: -7px;
	border-radius: 50%;
	background: var(--fx-ink);
	box-shadow: 0 0 0 3px #fff;
}

.wpi-fx-progress__fill i + i {
	right: -15px;
	background: var(--fx-brand);
	mix-blend-mode: multiply;
	box-shadow: none;
}

.wpi-fx-progress.is-bump .wpi-fx-progress__fill i:first-child {
	animation: wpi-fx-dot-a .7s var(--fx-ease);
}

.wpi-fx-progress.is-bump .wpi-fx-progress__fill i + i {
	animation: wpi-fx-dot-b .7s var(--fx-ease);
}

.wpi-fx-progress__steps {
	display: flex;
	justify-content: space-between;
	gap: .5rem;
	margin: .85rem 0 0;
	padding: 0;
	list-style: none;
}

.wpi-fx-progress__steps li {
	margin: 0;
}

.wpi-fx-progress__steps button {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	padding: .25rem .4rem .25rem .25rem;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--fx-muted);
	font: inherit;
	font-size: 12.5px;
	cursor: pointer;
	transition: color .25s, background-color .25s;
}

.wpi-fx-progress__steps button:disabled {
	cursor: default;
	opacity: .55;
}

.wpi-fx-progress__steps li.is-open:not(.is-active) button:hover {
	background: var(--fx-soft);
	color: var(--fx-ink);
}

.wpi-fx-progress__num,
.wpi-fx-progress__ok {
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--fx-soft);
	box-shadow: inset 0 0 0 1px var(--fx-line);
	font-family: var(--fx-mono);
	font-size: 11px;
	transition: background-color .3s, color .3s, transform .45s var(--fx-spring);
}

.wpi-fx-progress__ok {
	display: none;
	background: var(--fx-brand);
	color: #fff;
	box-shadow: none;
}

.wpi-fx-progress__steps .is-done .wpi-fx-progress__num {
	display: none;
}

.wpi-fx-progress__steps .is-done .wpi-fx-progress__ok {
	display: grid;
	animation: wpi-fx-pop .45s var(--fx-spring);
}

.wpi-fx-progress__steps .is-active button {
	color: var(--fx-ink);
	font-weight: 500;
}

.wpi-fx-progress__steps .is-active .wpi-fx-progress__num {
	background: var(--fx-ink);
	color: #fff;
	box-shadow: none;
	transform: scale(1.08);
}

@media (max-width: 560px) {
	.wpi-fx-progress__steps li:not(.is-active) .wpi-fx-progress__label {
		display: none;
	}
}

/* ---------- Step navigation & buttons ---------- */
.wpi-fx-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
	margin-top: 1.75rem !important;
	padding-top: 1.25rem;
	border-top: 1px solid var(--fx-line);
}

.wpi-fx-nav > :only-child {
	margin-left: auto;
}

.wpi-fx-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	min-height: 48px;
	padding: .75rem 1.35rem;
	border: 0;
	border-radius: 999px;
	font: inherit;
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .3s, color .3s, transform .3s var(--fx-ease), box-shadow .3s;
}

.wpi-fx-btn--next {
	background: var(--fx-ink);
	color: #fff;
}

.wpi-fx-btn--next:hover {
	background: var(--fx-brand);
	color: #fff;
	box-shadow: 0 12px 26px -12px rgba(76, 91, 255, .8);
}

.wpi-fx-btn--next svg {
	transition: transform .35s var(--fx-ease);
}

.wpi-fx-btn--next:hover svg {
	transform: translateX(3px);
}

.wpi-fx-btn--ghost {
	background: transparent;
	color: var(--fx-muted);
}

.wpi-fx-btn--ghost:hover {
	background: var(--fx-soft);
	color: var(--fx-ink);
}

.wpi-fx-btn:focus-visible,
.wpi-fx .wpcf7-submit:focus-visible {
	outline: 2px solid var(--fx-brand);
	outline-offset: 3px;
}

/* Submit */
.wpi-fx-submit {
	position: relative;
	display: flex;
	align-items: center;
	gap: .75rem;
}

.wpi-fx .wpcf7-submit {
	min-height: 52px;
	margin: 0;
	padding: .8rem 1.8rem;
	border: 0;
	border-radius: 999px;
	background: var(--fx-brand) linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%) -200% 0 / 200% 100% no-repeat;
	color: #fff;
	font: inherit;
	font-size: 15.5px;
	font-weight: 500;
	cursor: pointer;
	box-shadow: 0 14px 30px -14px rgba(76, 91, 255, .9);
	transition: background-position .9s var(--fx-ease), transform .3s var(--fx-ease), box-shadow .3s;
}

.wpi-fx .wpcf7-submit:hover {
	background-position: 200% 0;
	transform: translateY(-1px);
}

.wpi-fx .wpcf7-submit:disabled {
	opacity: .5;
	cursor: not-allowed;
	transform: none;
}

.wpi-fx .wpcf7-spinner {
	margin: 0;
	background: var(--fx-brand);
}

.wpcf7 form.submitting .wpi-fx .wpcf7-submit {
	opacity: .75;
	pointer-events: none;
}

@media (max-width: 560px) {
	.wpi-fx-nav {
		flex-wrap: wrap;
	}

	.wpi-fx-nav .wpi-fx-btn--next,
	.wpi-fx-nav .wpi-fx-submit {
		flex: 1;
	}

	.wpi-fx .wpcf7-submit {
		width: 100%;
	}
}

/* ---------- Draft notice ---------- */
.wpi-fx-draft {
	display: flex;
	align-items: center;
	gap: .55rem;
	margin-bottom: 1.25rem;
	padding: .6rem .6rem .6rem .9rem;
	border-radius: 12px;
	background: var(--fx-tint);
	color: var(--fx-brand);
	font-size: 13px;
	animation: wpi-fx-rise .45s var(--fx-ease);
}

.wpi-fx-draft span {
	flex: 1;
}

.wpi-fx-draft button {
	padding: .3rem .7rem;
	border: 0;
	border-radius: 999px;
	background: #fff;
	color: var(--fx-ink);
	font: inherit;
	font-size: 12.5px;
	cursor: pointer;
}

/* ---------- Stepped state ---------- */
.wpi-fx.is-fx-ready .wpi-fx-step[hidden] {
	display: none;
}

.wpi-fx-step.is-in-next {
	animation: wpi-fx-in-next .55s var(--fx-ease);
}

.wpi-fx-step.is-in-prev {
	animation: wpi-fx-in-prev .55s var(--fx-ease);
}

.wpi-fx.is-shake .wpi-fx-step:not([hidden]) {
	animation: wpi-fx-shake .45s ease;
}

/* ---------- Success ---------- */
.wpi-fx.is-sent > :not(.wpi-fx-done) {
	display: none !important;
}

.wpcf7 form:has(.wpi-fx.is-sent) .wpcf7-response-output {
	display: none;
}

.wpi-fx-done {
	padding: clamp(1rem, 3vw, 2rem) 0;
	text-align: center;
	animation: wpi-fx-rise .6s var(--fx-ease);
}

.wpi-fx-done__mark {
	position: relative;
	width: 92px;
	height: 92px;
	margin: 0 auto 1.25rem;
}

.wpi-fx-done__mark i {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 46px;
	height: 46px;
	margin: -23px 0 0 -23px;
	border-radius: 50%;
	background: var(--fx-ink);
	animation: wpi-fx-done-a 1.1s var(--fx-ease) forwards;
}

.wpi-fx-done__mark i + i {
	background: var(--fx-brand);
	animation-name: wpi-fx-done-b;
}

.wpi-fx-done__mark svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	fill: none;
	stroke: #fff;
	stroke-width: 4;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 40;
	stroke-dashoffset: 40;
	animation: wpi-fx-draw .5s .95s var(--fx-ease) forwards;
}

.wpi-fx-done__title {
	margin: 0 0 .5rem;
	font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem);
	font-weight: 500;
	outline: none;
}

.wpi-fx-done__text {
	max-width: 46ch;
	margin: 0 auto !important;
	color: var(--fx-muted);
}

.wpi-fx-done__next {
	max-width: 420px;
	margin: 1.5rem auto 0;
	padding: 1rem 1.25rem;
	border-radius: 18px;
	background: var(--fx-soft);
	text-align: left;
}

.wpi-fx-done__next p {
	margin-bottom: .6rem !important;
	font-family: var(--fx-mono);
	font-size: 10.5px;
	text-transform: uppercase;
	color: var(--fx-muted);
}

.wpi-fx-done__next ol {
	display: grid;
	gap: .55rem;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: fx;
}

.wpi-fx-done__next li {
	display: flex;
	align-items: center;
	gap: .65rem;
	margin: 0;
	font-size: 14px;
	counter-increment: fx;
	animation: wpi-fx-rise .5s var(--fx-ease) both;
}

.wpi-fx-done__next li:nth-child(1) { animation-delay: 1.1s; }
.wpi-fx-done__next li:nth-child(2) { animation-delay: 1.25s; }
.wpi-fx-done__next li:nth-child(3) { animation-delay: 1.4s; }
.wpi-fx-done__next li:nth-child(n+4) { animation-delay: 1.55s; }

.wpi-fx-done__next li::before {
	content: counter(fx);
	display: grid;
	place-items: center;
	flex: none;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #fff;
	box-shadow: inset 0 0 0 1px rgba(76, 91, 255, .35);
	color: var(--fx-brand);
	font-family: var(--fx-mono);
	font-size: 11px;
}

.wpi-fx-done__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .5rem;
	margin-top: 1.5rem;
}

/* ---------- Keyframes ---------- */
@keyframes wpi-fx-rise {
	from { opacity: 0; transform: translateY(8px); }
}

@keyframes wpi-fx-pop {
	0% { transform: scale(1); }
	40% { transform: scale(.94); }
	100% { transform: scale(1); }
}

@keyframes wpi-fx-in-next {
	from { opacity: 0; transform: translateX(28px); }
}

@keyframes wpi-fx-in-prev {
	from { opacity: 0; transform: translateX(-28px); }
}

@keyframes wpi-fx-shake {
	20%, 60% { transform: translateX(-6px); }
	40%, 80% { transform: translateX(6px); }
}

@keyframes wpi-fx-dot-a {
	0% { transform: translateX(0); }
	40% { transform: translateX(-9px); }
	65% { transform: translateX(3px); }
	100% { transform: translateX(0); }
}

@keyframes wpi-fx-dot-b {
	0% { transform: translateX(0); }
	40% { transform: translateX(9px); }
	65% { transform: translateX(-3px); }
	100% { transform: translateX(0); }
}

@keyframes wpi-fx-done-a {
	0% { transform: translateX(-60px) scale(.4); opacity: 0; }
	45% { transform: translateX(-24px) scale(1); opacity: 1; }
	70% { transform: translateX(-4px) scaleX(1.1); }
	100% { transform: translateX(-12px); }
}

@keyframes wpi-fx-done-b {
	0% { transform: translateX(60px) scale(.4); opacity: 0; }
	45% { transform: translateX(24px) scale(1); opacity: 1; }
	70% { transform: translateX(4px) scaleX(1.1); }
	100% { transform: translateX(12px); }
}

@keyframes wpi-fx-draw {
	to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.wpi-fx *,
	.wpi-fx *::before,
	.wpi-fx *::after {
		animation-duration: .01ms !important;
		animation-delay: 0s !important;
		transition-duration: .01ms !important;
	}
}
