.fg-form {
	--fg-border: #c8c8c8;
	--fg-accent: #2d5a27;
	max-width: 760px;
	margin: 0 auto;
	font-family: inherit;
	color: inherit;
}
.fg-form * { box-sizing: border-box; }
.fg-form h2, .fg-form h3 { margin: 1.4em 0 0.6em; }
.fg-grid { display: flex; flex-wrap: wrap; gap: 12px 16px; }
.fg-field { width: 100%; margin-bottom: 4px; }
.fg-field > .fg-label { display: block; }
.fg-field.fg-width-half { width: calc(50% - 8px); }
.fg-field.fg-width-third { width: calc(33.333% - 11px); }
.fg-form label.fg-label { display: block; font-weight: 600; margin-bottom: 4px; }
.fg-req { color: #b42318; }
.fg-form input[type="text"],
.fg-form input[type="email"],
.fg-form input[type="tel"],
.fg-form input[type="date"],
.fg-form input[type="number"],
.fg-form select,
.fg-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--fg-border);
	border-radius: 4px;
	font: inherit;
	background: #fff;
}
.fg-form textarea { min-height: 90px; }
.fg-form input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.fg-form input[type="number"]::-webkit-outer-spin-button,
.fg-form input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fg-sig-hint { font-weight: normal; }
.fg-print-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	padding: 10px 14px;
	border: 1px solid var(--fg-border);
	border-radius: 4px;
	background: #f7f7f7;
}
.fg-print-bar[hidden] { display: none; }
.fg-form button.fg-print {
	background: #fff;
	color: var(--fg-accent);
	border: 1px solid var(--fg-accent);
	padding: 8px 16px;
	border-radius: 4px;
	font: inherit;
	cursor: pointer;
}
.fg-print-tpl { display: none; }
.fg-help, .fg-html { font-size: 0.92em; opacity: 0.9; margin: 4px 0; }
.fg-error-field { color: #b42318; font-size: 0.9em; margin-top: 4px; }
.fg-form input.fg-invalid, .fg-form textarea.fg-invalid, .fg-form select.fg-invalid { border-color: #b42318; }
.fg-sig { border: 1px solid var(--fg-border); border-radius: 4px; background: #fff; touch-action: none; }
.fg-sig canvas { display: block; width: 100%; height: 160px; cursor: crosshair; }
.fg-sig-actions { margin-top: 6px; }
.fg-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.fg-actions { margin-top: 1.5em; }
.fg-form button.fg-submit {
	background: var(--fg-accent);
	color: #fff;
	border: 0;
	padding: 12px 22px;
	border-radius: 4px;
	font: inherit;
	cursor: pointer;
}
.fg-form button.fg-submit:disabled { opacity: 0.6; cursor: wait; }
.fg-success { padding: 16px; border: 1px solid #2d5a27; background: #f3f8f2; }
.fg-alert { padding: 12px; background: #fdecea; border: 1px solid #b42318; margin-top: 12px; }
.fg-consent, .fg-check { display: flex; gap: 8px; align-items: flex-start; }
@media (max-width: 640px) {
	.fg-field.fg-width-half,
	.fg-field.fg-width-third { width: 100%; }
}
