/*
 * Form Studio: forms on the site.
 * Every colour and size comes from CSS variables that the form's Design tab sets on .fst.
 * Selectors start with .fst so a theme's input and button styles do not win.
 */

.fst {
	--fst-accent: #1d4ed8;
	--fst-text: #1f2937;
	--fst-label: #111827;
	--fst-help: #5b6472;
	--fst-field-bg: #f5f7fa;
	--fst-field-text: #111827;
	--fst-border: #d3d9e2;
	--fst-error: #b42318;
	--fst-success: #067647;
	--fst-btn-bg: var(--fst-accent);
	--fst-btn-text: #ffffff;
	--fst-star: #f5a524;
	--fst-font-size: 16px;
	--fst-label-size: 15px;
	--fst-label-weight: 600;
	--fst-radius: 10px;
	--fst-btn-radius: 10px;
	--fst-gap-x: 20px;
	--fst-gap-y: 22px;
	--fst-field-h: 48px;
	--fst-pad-x: 14px;
	--fst-ease: cubic-bezier(.22, 1, .36, 1);
	--fst-ring: rgba(29, 78, 216, .22);
	--fst-ring: color-mix(in srgb, var(--fst-accent) 24%, transparent);
	--fst-accent-soft: rgba(29, 78, 216, .07);
	--fst-accent-soft: color-mix(in srgb, var(--fst-accent) 8%, transparent);
	--fst-error-soft: #fef3f2;
	--fst-error-soft: color-mix(in srgb, var(--fst-error) 7%, #ffffff);
	--fst-success-soft: #ecfdf3;
	--fst-success-soft: color-mix(in srgb, var(--fst-success) 8%, #ffffff);

	display: block;
	box-sizing: border-box;
	width: 100%;
	max-width: var(--fst-max-width, none);
	margin-left: auto;
	margin-right: auto;
	padding: var(--fst-padding, 0);
	background: var(--fst-form-bg, transparent);
	border-radius: calc(var(--fst-radius) * 1.6);
	color: var(--fst-text);
	font-family: var(--fst-font, inherit);
	font-size: var(--fst-font-size);
	line-height: 1.5;
	text-align: left;
	word-break: normal;
	overflow-wrap: break-word;
}
.fst *,
.fst *::before,
.fst *::after { box-sizing: border-box; }
.fst [hidden] { display: none !important; }
.fst.fst-density-compact { --fst-gap-y: 14px; --fst-gap-x: 14px; --fst-field-h: 42px; --fst-pad-x: 12px; }
.fst.fst-density-spacious { --fst-gap-y: 30px; --fst-gap-x: 24px; --fst-field-h: 54px; --fst-pad-x: 16px; }

.fst .fst-sr,
.fst .fst-hp {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}
.fst .fst-hp { left: -9999px !important; }

/* ------------------------------------------------------------ frame */
.fst.fst-framed,
.fst.fst-theme-soft {
	background: var(--fst-form-bg, #ffffff);
	border: 1px solid var(--fst-border);
	padding: var(--fst-padding, clamp(20px, 4vw, 40px));
}
.fst.fst-theme-soft { border-color: transparent; border-radius: calc(var(--fst-radius) * 2); }
.fst.fst-shadow,
.fst.fst-theme-soft {
	box-shadow: 0 24px 60px -32px rgba(15, 23, 42, .35);
	box-shadow: 0 24px 60px -32px color-mix(in srgb, var(--fst-accent) 55%, #0f172a);
}

/* ------------------------------------------------------------ layout */
.fst .fst-form { margin: 0; padding: 0; }
.fst .fst-grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: var(--fst-gap-y) var(--fst-gap-x);
	align-items: start;
}
.fst .fst-field { grid-column: span 12; min-width: 0; margin: 0; position: relative; }
.fst .fst-w-9 { grid-column: span 9; }
.fst .fst-w-8 { grid-column: span 8; }
.fst .fst-w-6 { grid-column: span 6; }
.fst .fst-w-4 { grid-column: span 4; }
.fst .fst-w-3 { grid-column: span 3; }
.fst.is-narrow .fst-field { grid-column: span 12; }

.fst .fst-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.fst .fst-control { clear: both; min-width: 0; }

/* ------------------------------------------------------------ labels and text */
.fst .fst-label {
	display: block;
	float: none;
	width: auto;
	margin: 0 0 8px;
	padding: 0;
	border: 0;
	color: var(--fst-label);
	font-size: var(--fst-label-size);
	font-weight: var(--fst-label-weight);
	line-height: 1.35;
	letter-spacing: normal;
	text-transform: none;
}
.fst legend.fst-label { float: left; width: 100%; }
.fst .fst-req { color: var(--fst-error); margin-left: 3px; font-weight: 600; text-decoration: none; }
.fst .fst-help {
	margin: 7px 0 0;
	color: var(--fst-help);
	font-size: .875em;
	line-height: 1.5;
}
.fst .fst-help a,
.fst .fst-choice-text a { color: var(--fst-accent); text-decoration: underline; text-underline-offset: 2px; }
.fst .fst-error {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	margin: 7px 0 0;
	padding: 0;
	color: var(--fst-error);
	font-size: .875em;
	font-weight: 500;
	line-height: 1.45;
	animation: fst-in .25s var(--fst-ease) both;
}
.fst .fst-error::before {
	content: "";
	flex: none;
	width: 16px;
	height: 16px;
	margin-top: .12em;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 7.5v5.5M12 16.4v.1'/%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 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 7.5v5.5M12 16.4v.1'/%3E%3C/svg%3E") center / contain no-repeat;
}
.fst .fst-sublabel {
	display: block;
	margin: 0 0 6px;
	color: var(--fst-help);
	font-size: .8125em;
	font-weight: 500;
	line-height: 1.35;
}

/* ------------------------------------------------------------ inputs: shared */
.fst .fst-input {
	display: block;
	width: 100%;
	max-width: 100%;
	height: var(--fst-field-h);
	min-height: var(--fst-field-h);
	margin: 0;
	padding: 0 var(--fst-pad-x);
	border: 1px solid var(--fst-border);
	border-radius: var(--fst-radius);
	background: var(--fst-field-bg);
	background-image: none;
	box-shadow: none;
	color: var(--fst-field-text);
	font: inherit;
	font-size: 1em;
	line-height: 1.4;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color .15s, background-color .15s, box-shadow .2s var(--fst-ease);
}
.fst .fst-input::placeholder { color: var(--fst-help); opacity: .8; }
.fst .fst-input:hover { border-color: color-mix(in srgb, var(--fst-border) 55%, var(--fst-text)); }
.fst .fst-input:focus,
.fst .fst-input:focus-visible {
	border-color: var(--fst-accent);
	background-color: #ffffff;
	box-shadow: 0 0 0 4px var(--fst-ring);
	outline: none;
}
.fst .fst-input:disabled { opacity: .6; cursor: not-allowed; }
.fst .has-error .fst-input,
.fst .fst-input[aria-invalid="true"] { border-color: var(--fst-error); }
.fst .has-error .fst-input:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--fst-error) 18%, transparent); }
.fst input.fst-input[type="date"],
.fst input.fst-input[type="time"] { -webkit-appearance: none; appearance: none; display: flex; align-items: center; }
.fst input.fst-input[type="number"] { -moz-appearance: textfield; }
.fst .fst-textarea {
	height: auto;
	min-height: calc(var(--fst-field-h) * 2.4);
	padding: 12px var(--fst-pad-x);
	line-height: 1.55;
	resize: vertical;
}
.fst .fst-counter { margin-top: 6px; color: var(--fst-help); font-size: .8125em; text-align: right; font-variant-numeric: tabular-nums; }
.fst .fst-counter.is-over { color: var(--fst-error); font-weight: 600; }

/* select */
.fst .fst-select-wrap { position: relative; }
.fst .fst-select-wrap::after {
	content: "";
	position: absolute;
	top: 50%;
	right: calc(var(--fst-pad-x) + 2px);
	width: 8px;
	height: 8px;
	border-right: 2px solid var(--fst-help);
	border-bottom: 2px solid var(--fst-help);
	transform: translateY(-70%) rotate(45deg);
	pointer-events: none;
}
.fst .fst-select-wrap.is-multiple::after { display: none; }
.fst .fst-select { padding-right: calc(var(--fst-pad-x) + 28px); cursor: pointer; text-overflow: ellipsis; }
.fst .fst-select[multiple] { height: auto; padding: 8px; }
.fst .fst-select[multiple] option { padding: 6px 8px; border-radius: 6px; }

/* number with prefix or suffix */
.fst .fst-affix { display: flex; align-items: stretch; }
.fst .fst-affix .fst-input { flex: 1 1 auto; min-width: 0; }
.fst .fst-affix-text {
	display: flex;
	align-items: center;
	padding: 0 12px;
	border: 1px solid var(--fst-border);
	background: color-mix(in srgb, var(--fst-field-bg) 70%, var(--fst-border));
	color: var(--fst-help);
	font-weight: 500;
	white-space: nowrap;
}
.fst .fst-affix-text:first-child { border-right: 0; border-radius: var(--fst-radius) 0 0 var(--fst-radius); }
.fst .fst-affix-text:last-child { border-left: 0; border-radius: 0 var(--fst-radius) var(--fst-radius) 0; }
.fst .fst-affix .fst-affix-text:first-child + .fst-input { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.fst .fst-affix .fst-input:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }

/* name and address parts */
.fst .fst-subgrid--name { display: flex; flex-wrap: wrap; gap: 12px var(--fst-gap-x); }
.fst .fst-subgrid--name .fst-sub { flex: 1 1 160px; min-width: 0; }
.fst .fst-subgrid--name .fst-sub--title { flex: 0 0 104px; }
.fst .fst-subgrid--address { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px var(--fst-gap-x); }
.fst .fst-subgrid--address .fst-sub--line1,
.fst .fst-subgrid--address .fst-sub--line2 { grid-column: 1 / -1; }
.fst.is-narrow .fst-subgrid--address { grid-template-columns: minmax(0, 1fr); }

/* ------------------------------------------------------------ themes */
/* outline: white fields with a clear border */
.fst.fst-theme-outline .fst-input { background-color: #ffffff; border-width: 1.5px; }
/* underline: a line under each field, no box */
.fst.fst-theme-underline .fst-input {
	border-width: 0 0 2px;
	border-radius: 0;
	background-color: transparent;
	padding-left: 2px;
	padding-right: 2px;
}
.fst.fst-theme-underline .fst-input:focus { box-shadow: 0 2px 0 0 var(--fst-accent); background-color: transparent; }
.fst.fst-theme-underline .fst-select { padding-right: 30px; }
.fst.fst-theme-underline .fst-select-wrap::after { right: 6px; }
.fst.fst-theme-underline .fst-textarea { border-width: 2px; border-radius: var(--fst-radius); padding: 12px var(--fst-pad-x); }
/* soft: rounder fields and a pill button inside a raised card */
.fst.fst-theme-soft .fst-input { border-color: transparent; border-radius: calc(var(--fst-radius) * 1.3); }
.fst.fst-theme-soft .fst-input:hover { border-color: var(--fst-border); }
.fst.fst-theme-soft .fst-btn { border-radius: 999px; }
/* inherit: the theme's own fields; only the layout comes from here */
.fst.fst-theme-inherit .fst-input {
	height: auto;
	min-height: 0;
	padding: revert;
	border: revert;
	border-radius: revert;
	background: revert;
	color: revert;
	-webkit-appearance: revert;
	appearance: revert;
	box-shadow: revert;
	transition: none;
}
.fst.fst-theme-inherit .fst-select-wrap::after { display: none; }
.fst.fst-theme-inherit .fst-select { padding-right: revert; }
/* a theme styles its buttons as buttons, so the dropdown button is drawn as a plain field here */
.fst.fst-theme-inherit .fst-dd-btn {
	min-height: 2.75em;
	padding: .5em 2.5em .5em .8em;
	border: 1px solid color-mix(in srgb, currentColor 35%, transparent);
	border-radius: 4px;
	background: #ffffff;
	color: inherit;
	-webkit-appearance: none;
	appearance: none;
}
.fst.fst-theme-inherit .fst-select-wrap.is-listbox::after { display: block; right: 1em; border-color: currentColor; }

/* ------------------------------------------------------------ choices */
.fst .fst-choices { display: flex; flex-direction: column; gap: 10px; }
.fst .fst-choices--inline { flex-direction: row; flex-wrap: wrap; gap: 10px 22px; }
.fst .fst-choices--cols2,
.fst .fst-choices--cols3,
.fst .fst-choices--cols4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
.fst .fst-choices--cols3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fst .fst-choices--cols4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fst.is-narrow .fst-choices--cols3,
.fst.is-narrow .fst-choices--cols4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fst.is-tiny .fst-choices--cols2,
.fst.is-tiny .fst-choices--cols3,
.fst.is-tiny .fst-choices--cols4 { grid-template-columns: minmax(0, 1fr); }

.fst .fst-choice {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 11px;
	margin: 0;
	padding: 0;
	color: var(--fst-text);
	font-size: 1em;
	font-weight: 400;
	line-height: 1.45;
	cursor: pointer;
}
.fst .fst-check {
	position: absolute;
	top: 0;
	left: 0;
	width: 20px;
	height: 20px;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}
.fst .fst-mark {
	position: relative;
	flex: none;
	width: 20px;
	height: 20px;
	margin-top: .08em;
	border: 1.5px solid color-mix(in srgb, var(--fst-border) 60%, var(--fst-text));
	border-radius: 6px;
	background: #ffffff;
	transition: background-color .15s, border-color .15s, box-shadow .2s var(--fst-ease);
}
.fst input[type="radio"] + .fst-mark { border-radius: 50%; }
.fst .fst-choice:hover .fst-mark { border-color: var(--fst-accent); }
.fst .fst-check:focus-visible + .fst-mark { box-shadow: 0 0 0 4px var(--fst-ring); border-color: var(--fst-accent); }
.fst .fst-check:checked + .fst-mark { background: var(--fst-accent); border-color: var(--fst-accent); }
.fst input[type="checkbox"]:checked + .fst-mark::after {
	content: "";
	position: absolute;
	left: 5.5px;
	top: 2px;
	width: 6px;
	height: 11px;
	border: solid #ffffff;
	border-width: 0 2.2px 2.2px 0;
	transform: rotate(45deg);
}
.fst input[type="radio"]:checked + .fst-mark { box-shadow: inset 0 0 0 4px #ffffff; }
.fst input[type="radio"]:checked:focus-visible + .fst-mark { box-shadow: inset 0 0 0 4px #ffffff, 0 0 0 4px var(--fst-ring); }
.fst .has-error .fst-mark { border-color: var(--fst-error); }
.fst .fst-check:disabled + .fst-mark { opacity: .5; }

/* choices as buttons */
.fst .fst-choices--buttons .fst-choice {
	align-items: center;
	min-height: var(--fst-field-h);
	padding: 10px 16px;
	border: 1.5px solid var(--fst-border);
	border-radius: var(--fst-radius);
	background: var(--fst-field-bg);
	transition: border-color .15s, background-color .15s, transform .15s var(--fst-ease), box-shadow .2s var(--fst-ease);
}
.fst .fst-choices--buttons .fst-check { top: 50%; left: 16px; transform: translateY(-50%); }
.fst .fst-choices--buttons .fst-mark { margin-top: 0; }
.fst .fst-choices--buttons .fst-choice:hover { border-color: var(--fst-accent); transform: translateY(-1px); }
.fst .fst-choices--buttons .fst-choice:has(.fst-check:checked),
.fst .fst-choices--buttons .fst-choice.is-checked {
	border-color: var(--fst-accent);
	background: var(--fst-accent-soft);
	box-shadow: inset 0 0 0 1px var(--fst-accent);
	color: var(--fst-label);
	font-weight: 500;
}
.fst .fst-choices--buttons .fst-choice:has(.fst-check:focus-visible) { box-shadow: 0 0 0 4px var(--fst-ring); }
.fst .fst-choices--inline.fst-choices--buttons { gap: 10px; }
.fst .fst-other-input { margin-top: 10px; }
.fst .fst-consent .fst-choice-text { color: var(--fst-text); }

/* rating */
.fst .fst-stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.fst .fst-star-input { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; }
.fst .fst-star { display: inline-flex; padding: 3px; margin: 0; border-radius: 8px; cursor: pointer; transition: transform .15s var(--fst-ease); }
.fst .fst-star svg { display: block; fill: color-mix(in srgb, var(--fst-border) 70%, #ffffff); stroke: color-mix(in srgb, var(--fst-border) 40%, var(--fst-text)); stroke-width: 1; transition: fill .15s; }
.fst .fst-star:hover { transform: translateY(-1px) scale(1.06); }
.fst .fst-stars:not(:hover) .fst-star-input:checked ~ .fst-star svg,
.fst .fst-star:hover svg,
.fst .fst-star:hover ~ .fst-star svg { fill: var(--fst-star); stroke: color-mix(in srgb, var(--fst-star) 70%, #000); }
.fst .fst-star-input:focus-visible + .fst-star { box-shadow: 0 0 0 4px var(--fst-ring); }

/* ------------------------------------------------------------ files */
.fst .fst-drop { position: relative; }
.fst .fst-file-input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.fst .fst-drop-zone {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 26px 20px;
	border: 1.5px dashed color-mix(in srgb, var(--fst-border) 70%, var(--fst-text));
	border-radius: var(--fst-radius);
	background: var(--fst-field-bg);
	color: var(--fst-text);
	text-align: center;
	cursor: pointer;
	transition: border-color .15s, background-color .15s;
}
.fst .fst-drop-zone:hover,
.fst .fst-drop.is-over .fst-drop-zone { border-color: var(--fst-accent); background: var(--fst-accent-soft); }
.fst .fst-drop:focus-within .fst-drop-zone { border-color: var(--fst-accent); box-shadow: 0 0 0 4px var(--fst-ring); }
.fst .has-error .fst-drop-zone { border-color: var(--fst-error); }
.fst .fst-drop-ico { color: var(--fst-accent); }
.fst .fst-drop-text { line-height: 1.45; }
.fst .fst-drop-btn { color: var(--fst-accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.fst .fst-drop-or { color: var(--fst-text); }
.fst .fst-drop-hint { color: var(--fst-help); font-size: .8125em; }
.fst .fst-files { list-style: none; margin: 0; padding: 0; }
.fst .fst-files:empty { display: none; }
.fst .fst-file {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 8px 0 0;
	padding: 10px 10px 10px 14px;
	border: 1px solid var(--fst-border);
	border-radius: var(--fst-radius);
	background: #ffffff;
	animation: fst-in .25s var(--fst-ease) both;
}
.fst .fst-file-ico { flex: none; color: var(--fst-accent); }
.fst .fst-file-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.fst .fst-file-size { flex: none; color: var(--fst-help); font-size: .8125em; font-variant-numeric: tabular-nums; }
.fst .fst-file-remove {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--fst-help);
	cursor: pointer;
	transition: background-color .15s, color .15s;
}
.fst .fst-file-remove:hover { background: var(--fst-error-soft); color: var(--fst-error); }
.fst .fst-file-remove:focus-visible { outline: 3px solid var(--fst-ring); outline-offset: 1px; }

/* ------------------------------------------------------------ layout pieces */
.fst .fst-section { padding: 6px 0 0; }
.fst .fst-section.has-divider { padding-bottom: 12px; border-bottom: 1px solid var(--fst-border); }
.fst .fst-section-title { margin: 0; padding: 0; color: var(--fst-label); font-family: inherit; font-size: 1.2em; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.fst .fst-section-text { margin: 6px 0 0; color: var(--fst-help); font-size: .95em; }
.fst .fst-html { color: var(--fst-text); }
.fst .fst-html > :first-child { margin-top: 0; }
.fst .fst-html > :last-child { margin-bottom: 0; }

/* ------------------------------------------------------------ buttons */
.fst .fst-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 28px 0 0;
}
.fst .fst-align-center { justify-content: center; }
.fst .fst-align-right { justify-content: flex-end; }
.fst .fst-align-full .fst-btn-submit { flex: 1 1 100%; }
.fst .fst-multi .fst-actions { justify-content: space-between; }
.fst .fst-multi .fst-btn-next,
.fst .fst-multi .fst-btn-submit { margin-left: auto; }
.fst .fst-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 50px;
	margin: 0;
	padding: 0 26px;
	border: 1.5px solid var(--fst-btn-bg);
	border-radius: var(--fst-btn-radius);
	background: var(--fst-btn-bg);
	box-shadow: none;
	color: var(--fst-btn-text);
	font: inherit;
	font-size: 1em;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: .005em;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	white-space: normal;
	cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s, transform .2s var(--fst-ease), box-shadow .2s var(--fst-ease);
}
.fst .fst-btn:hover {
	background: color-mix(in srgb, var(--fst-btn-bg) 86%, #000000);
	border-color: color-mix(in srgb, var(--fst-btn-bg) 86%, #000000);
	color: var(--fst-btn-text);
	transform: translateY(-1px);
	box-shadow: 0 10px 22px -12px var(--fst-btn-bg);
}
.fst .fst-btn:active { transform: translateY(0); box-shadow: none; }
.fst .fst-btn:focus-visible { outline: 3px solid var(--fst-ring); outline-offset: 3px; }
.fst .fst-btn-ico { flex: none; transition: transform .2s var(--fst-ease); }
.fst .fst-btn-next:hover .fst-btn-ico { transform: translateX(3px); }
.fst .fst-btn-prev:hover .fst-btn-ico { transform: translateX(-3px); }
.fst .fst-btn-prev {
	background: transparent;
	border-color: var(--fst-border);
	color: var(--fst-text);
}
.fst .fst-btn-prev:hover { background: var(--fst-field-bg); border-color: color-mix(in srgb, var(--fst-border) 55%, var(--fst-text)); color: var(--fst-text); box-shadow: none; }
.fst.fst-btn-outline .fst-btn:not(.fst-btn-prev) { background: transparent; color: var(--fst-btn-bg); }
.fst.fst-btn-outline .fst-btn:not(.fst-btn-prev):hover { background: var(--fst-btn-bg); color: var(--fst-btn-text); }
.fst.fst-btn-size-sm .fst-btn { min-height: 42px; padding: 0 18px; font-size: .9375em; }
.fst.fst-btn-size-lg .fst-btn { min-height: 58px; padding: 0 34px; font-size: 1.0625em; }
.fst .fst-spinner {
	display: none;
	width: 18px;
	height: 18px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: fst-spin .7s linear infinite;
}
.fst .fst-form.is-loading .fst-spinner { display: inline-block; }
.fst .fst-form.is-loading .fst-btn-submit { pointer-events: none; opacity: .85; }

/* ------------------------------------------------------------ steps */
.fst .fst-step { margin: 0; padding: 0; border: 0; min-width: 0; }
.fst .fst-step-title { display: block; float: left; width: 100%; margin: 0 0 20px; padding: 0; color: var(--fst-label); font-size: 1.2em; font-weight: 700; line-height: 1.3; }
.fst .fst-step-title + .fst-grid { clear: both; }
.fst .fst-form.has-progress .fst-step-title {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}
.fst.fst-js .fst-multi .fst-step:not(.is-current) { display: none; }
.fst.fst-js .fst-multi .fst-step.is-entering { animation: fst-step .38s var(--fst-ease) both; }
.fst.fst-js .fst-multi .fst-step.is-entering.is-back { animation-name: fst-step-back; }
.fst:not(.fst-js) .fst-btn-next,
.fst:not(.fst-js) .fst-btn-prev,
.fst:not(.fst-js) .fst-progress { display: none; }
.fst:not(.fst-js) .fst-multi .fst-step + .fst-step { margin-top: 36px; }
.fst:not(.fst-js) .fst-multi .fst-step:not(:last-child) .fst-actions { display: none; }
/* Before form.js has run, a step form already looks as it will once it runs: the first step with its Next button,
   so the later steps do not flash up and vanish, and nothing moves. html.fst-pre comes from a line in the head
   that runs only when JavaScript is on (without it every step shows, as above). If form.js never runs, that line
   takes the class away after 6 seconds, so the form can still be filled in. */
html.fst-pre .fst:not(.fst-js) .fst-multi .fst-step:not(.is-current) { display: none; }
html.fst-pre .fst:not(.fst-js) .fst-multi .fst-step.is-current .fst-actions { display: flex; }
html.fst-pre .fst:not(.fst-js) .fst-btn-next { display: inline-flex; }
html.fst-pre .fst:not(.fst-js) .fst-progress { display: block; }

.fst .fst-progress { margin: 0 0 30px; }
.fst .fst-progress-steps { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.fst .fst-progress-step { flex: 1 1 0; min-width: 0; margin: 0; padding: 0; }
.fst .fst-progress-step::before { content: none; }
.fst .fst-progress-bar {
	position: relative;
	display: block;
	height: 6px;
	overflow: hidden;
	border-radius: 999px;
	background: color-mix(in srgb, var(--fst-border) 70%, #ffffff);
}
.fst .fst-progress-bar::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: var(--fst-accent);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform .45s var(--fst-ease);
}
.fst .fst-progress-step.is-done .fst-progress-bar::after,
.fst .fst-progress-step.is-current .fst-progress-bar::after { transform: scaleX(1); }
.fst .fst-progress-label {
	display: block;
	margin-top: 9px;
	overflow: hidden;
	color: var(--fst-help);
	font-size: .8125em;
	font-weight: 500;
	white-space: nowrap;
	text-overflow: ellipsis;
	transition: color .2s;
}
.fst .fst-progress-step.is-current .fst-progress-label { color: var(--fst-label); font-weight: 600; }
.fst .fst-progress-step.is-done .fst-progress-label { color: var(--fst-text); }
.fst.is-narrow .fst-progress-step:not(.is-current) .fst-progress-label { visibility: hidden; }
.fst .fst-progress-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 10px; }
.fst .fst-progress-title { color: var(--fst-label); font-weight: 600; }
.fst .fst-progress-count { color: var(--fst-help); font-size: .875em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fst .fst-progress-track { position: relative; height: 8px; overflow: hidden; border-radius: 999px; background: color-mix(in srgb, var(--fst-border) 70%, #ffffff); }
.fst .fst-progress-fill { position: absolute; top: 0; bottom: 0; left: 0; border-radius: inherit; background: var(--fst-accent); transition: width .45s var(--fst-ease); }

/* ------------------------------------------------------------ messages */
.fst .fst-alert {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 22px;
	padding: 14px 16px;
	border: 1px solid color-mix(in srgb, var(--fst-error) 30%, #ffffff);
	border-radius: var(--fst-radius);
	background: var(--fst-error-soft);
	color: var(--fst-error);
	font-weight: 500;
	line-height: 1.45;
	animation: fst-in .3s var(--fst-ease) both;
}
.fst .fst-alert::before {
	content: "";
	flex: none;
	width: 20px;
	height: 20px;
	margin-top: .05em;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 7.5v5.5M12 16.4v.1'/%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 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 7.5v5.5M12 16.4v.1'/%3E%3C/svg%3E") center / contain no-repeat;
}
.fst .fst-success {
	position: relative;
	margin: 0 0 22px;
	padding: 22px 24px 22px 66px;
	border: 1px solid color-mix(in srgb, var(--fst-success) 28%, #ffffff);
	border-radius: calc(var(--fst-radius) * 1.3);
	background: var(--fst-success-soft);
	color: var(--fst-text);
	line-height: 1.55;
	outline: none;
	animation: fst-pop .45s var(--fst-ease) both;
}
.fst.is-done .fst-success { margin-bottom: 0; }
.fst .fst-success::before {
	content: "";
	position: absolute;
	left: 22px;
	top: 22px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--fst-success) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.fst .fst-success > :first-child { margin-top: 0; }
.fst .fst-success > :last-child { margin-bottom: 0; }
.fst .fst-success p { margin: 0 0 .6em; }
/* while files upload (1.1.3): a bar in the form's accent with the share sent so far */
.fst .fst-upload { display: flex; align-items: center; gap: 12px; margin: 14px 0 0; color: var(--fst-help); font-size: .875em; line-height: 1.4; }
.fst .fst-upload-track { position: relative; flex: 1 1 auto; min-width: 80px; height: 6px; border-radius: 99px; background: var(--fst-accent-soft); box-shadow: inset 0 0 0 1px var(--fst-border); overflow: hidden; }
.fst .fst-upload-fill { position: absolute; top: 0; bottom: 0; left: 0; width: 0; border-radius: inherit; background: var(--fst-accent); transition: width .2s linear; }
.fst .fst-upload-text { flex: 0 0 auto; font-variant-numeric: tabular-nums; }
@media (max-width: 480px) {
	.fst .fst-upload { flex-wrap: wrap; gap: 6px; }
	.fst .fst-upload-text { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.fst .fst-upload-fill { transition: none; }
}

/* a signed-in admin's test report under the thank-you message: a plain tool panel, the same on every theme */
.fst .fst-report {
	margin: 14px 0 20px;
	padding: 14px 16px;
	border: 1px dashed #98a2b3;
	border-radius: 8px;
	background: #f8f9fb;
	color: #1d2939;
	font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	text-align: left;
}
.fst .fst-report-title { margin: 0 0 8px; font-weight: 700; }
.fst .fst-report ul { margin: 0; padding: 0; list-style: none; }
.fst .fst-report li { position: relative; margin: 0 0 6px; padding: 0 0 0 22px; overflow-wrap: anywhere; }
.fst .fst-report li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 9px; height: 9px; border-radius: 50%; background: #667085; }
.fst .fst-report li.is-ok::before { background: #067647; }
.fst .fst-report li.is-bad { color: #912018; font-weight: 600; }
.fst .fst-report li.is-bad::before { background: #d92d20; }
.fst .fst-report a { color: inherit; font-weight: 700; text-decoration: underline; }
.fst .fst-report-note { margin: 8px 0 0; color: #475467; font-size: 13px; }
.fst .fst-success[hidden] + .fst-report { display: none; }

.fst .fst-box {
	padding: 18px 20px;
	border: 1px solid var(--fst-border);
	border-radius: var(--fst-radius);
	background: var(--fst-field-bg);
	color: var(--fst-text);
}
.fst .fst-box > :first-child { margin-top: 0; }
.fst .fst-box > :last-child { margin-bottom: 0; }
.fst .fst-box--warn { border-color: #f0c36d; background: #fff8e6; color: #5c3c00; }
.fst .fst-box--error { border-color: #f1a7a1; background: #fef3f2; color: #8a1c13; }
.fst .fst-captcha { margin-top: var(--fst-gap-y); }
.fst .fst-captcha-note { margin: 18px 0 0; color: var(--fst-help); font-size: .8125em; }
.fst .fst-captcha-note a { color: inherit; }

/* searchable dropdown */
.fst .fst-combo { position: relative; }
.fst .fst-combo-input { padding-right: calc(var(--fst-pad-x) + 28px); }
.fst .fst-combo-list {
	position: absolute;
	z-index: 50;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	max-height: 280px;
	margin: 0;
	padding: 6px;
	overflow-y: auto;
	list-style: none;
	border: 1px solid var(--fst-border);
	border-radius: var(--fst-radius);
	background: #ffffff;
	box-shadow: 0 18px 40px -18px rgba(15, 23, 42, .35);
	animation: fst-in .18s var(--fst-ease) both;
}
.fst .fst-combo-opt {
	margin: 0;
	padding: 9px 12px;
	border-radius: 7px;
	color: var(--fst-field-text);
	cursor: pointer;
}
.fst .fst-combo-opt[aria-selected="true"] { font-weight: 600; }
.fst .fst-combo-opt.is-active { background: var(--fst-accent-soft); color: var(--fst-label); }
.fst .fst-combo-empty { padding: 10px 12px; color: var(--fst-help); }

/* single-choice dropdown: a styled button and list in front of the browser's select (form.js); the list is
   drawn as the searchable one, so a site skin for .fst-combo-list styles both */
.fst .fst-dd { position: relative; }
.fst .fst-dd-btn {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 0;
	min-width: 0;
	text-align: left;
	text-transform: none;
	text-shadow: none;
	letter-spacing: normal;
	font-weight: inherit;
	white-space: nowrap;
	cursor: pointer;
}
.fst .fst-dd-value { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.fst .fst-select-wrap.is-empty .fst-dd-value { color: var(--fst-help); }
.fst .fst-select-wrap.is-open .fst-dd-btn {
	border-color: var(--fst-accent);
	background-color: #ffffff;
	box-shadow: 0 0 0 4px var(--fst-ring);
}
.fst .fst-select-wrap.is-listbox::after { transition: transform .2s var(--fst-ease); }
.fst .fst-select-wrap.is-open::after { transform: translateY(-25%) rotate(225deg); }
.fst .fst-select-wrap.is-up .fst-dd-list { top: auto; bottom: calc(100% + 6px); }
.fst .fst-dd-opt { position: relative; padding-right: 36px; }
.fst .fst-dd-opt[aria-selected="true"]::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 13px;
	width: 11px;
	height: 6px;
	border-left: 2px solid var(--fst-accent);
	border-bottom: 2px solid var(--fst-accent);
	transform: translateY(-75%) rotate(-45deg);
}

/* labels on the left (wide forms only) */
.fst.fst-labels-left:not(.is-narrow) .fst-field > .fst-label,
.fst.fst-labels-left:not(.is-narrow) .fst-fieldset > .fst-label {
	float: left;
	width: 32%;
	margin: 0;
	padding: calc((var(--fst-field-h) - 1.35em) / 2) 20px 0 0;
}
.fst.fst-labels-left:not(.is-narrow) .fst-field > .fst-control,
.fst.fst-labels-left:not(.is-narrow) .fst-fieldset > .fst-control { clear: none; margin-left: 32%; }
.fst.fst-labels-left:not(.is-narrow) .fst-field--radio .fst-fieldset > .fst-label,
.fst.fst-labels-left:not(.is-narrow) .fst-field--checkbox .fst-fieldset > .fst-label,
.fst.fst-labels-left:not(.is-narrow) .fst-field--consent .fst-fieldset > .fst-label { padding-top: 0; }
.fst.fst-labels-left .fst-field::after { content: ""; display: table; clear: both; }

/* ------------------------------------------------------------ small screens */
@media (max-width: 600px) {
	.fst:not(.is-wide) .fst-field { grid-column: span 12; }
	.fst .fst-input { font-size: max(16px, 1em); }
	.fst .fst-actions .fst-btn-submit { flex: 1 1 auto; }
}

/* ------------------------------------------------------------ motion */
@keyframes fst-spin { to { transform: rotate(360deg); } }
@keyframes fst-in { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
@keyframes fst-pop { from { opacity: 0; transform: translateY(6px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes fst-step { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@keyframes fst-step-back { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
	.fst *,
	.fst *::before,
	.fst *::after { animation: none !important; transition: none !important; }
}
