/* Form Keeper — neutral styles that take on the theme's fonts and colors.
   Change the look per site with these variables, e.g. .fk-form { --fk-accent: #ef8a3c; }
   Dark site? .fk-form { --fk-field-bg:#111; --fk-field-text:#f3f1ec; --fk-border:rgba(243,241,236,.35); --fk-button:#f3f1ec; --fk-button-text:#000; color-scheme:dark; } */
.fk-form {
	--fk-accent: currentColor;
	--fk-button: #1d1d1d;
	--fk-button-text: #fff;
	--fk-border: rgba(0, 0, 0, .22);
	--fk-field-bg: #fff;
	--fk-field-text: #1d1d1d;
	--fk-radius: 8px;
	--fk-error: #b3261e;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
	gap: 1rem 1.25rem;
	max-width: 760px;
	margin: 1.5rem 0;
	font: inherit;
}
.fk-form * { box-sizing: border-box; }
.fk-field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.fk-wide, .fk-radio, .fk-checkboxes, .fk-checkbox, .fk-errors, .fk-actions { grid-column: 1 / -1; }
.fk-field > label, .fk-field legend { font-weight: 600; font-size: .95em; }

/* Rows: used when the shortcode joins fields with "+". One field per line otherwise.
   Fields in a row share the width and wrap onto their own lines on narrow screens. */
.fk-form.fk-rows { grid-template-columns: minmax(0, 1fr); }
.fk-row { display: flex; flex-wrap: wrap; gap: 1rem 1.25rem; min-width: 0; }
.fk-row > .fk-field { flex: 1 1 11rem; }
.fk-row > .fk-state { flex-basis: 9rem; }
.fk-hint { margin: -.15rem 0 .15rem; font-size: .85em; opacity: .72; line-height: 1.35; }
.fk-field fieldset > .fk-hint { width: 100%; margin-top: -.3rem; }
.fk-field fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.fk-field legend { padding: 0; margin-bottom: .4rem; width: 100%; }
.fk-req { color: var(--fk-error); }
.fk-form input:not([type=checkbox]):not([type=radio]),
.fk-form select,
.fk-form textarea {
	width: 100%;
	padding: .7em .85em;
	font: inherit;
	color: var(--fk-field-text);
	background: var(--fk-field-bg);
	border: 1.5px solid var(--fk-border);
	border-radius: var(--fk-radius);
	line-height: 1.4;
	margin: 0;
}
.fk-form textarea { min-height: 8em; resize: vertical; }
.fk-form input:focus, .fk-form select:focus, .fk-form textarea:focus { outline: 2px solid var(--fk-accent); outline-offset: 1px; border-color: transparent; }
.fk-choice { display: inline-flex; align-items: center; gap: .45rem; font-weight: 400; cursor: pointer; }
.fk-choice input { width: 1.1em; height: 1.1em; margin: 0; accent-color: var(--fk-button); }
.fk-has-error input, .fk-has-error select, .fk-has-error textarea { border-color: var(--fk-error) !important; }
.fk-error { color: var(--fk-error); font-size: .88em; margin: 0; }
.fk-errors { border-left: 4px solid var(--fk-error); padding: .6rem 1rem; background: rgba(179, 38, 30, .07); border-radius: 4px; }
.fk-errors p { margin: 0; }
.fk-button {
	appearance: none;
	font: inherit;
	font-weight: 600;
	padding: .8em 1.8em;
	border: 0;
	border-radius: var(--fk-radius);
	background: var(--fk-button);
	color: var(--fk-button-text);
	cursor: pointer;
	transition: opacity .15s;
}
.fk-button:hover { opacity: .85; }
.fk-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fk-sent { display: block; padding: 1.2rem 1.4rem; border-radius: var(--fk-radius); background: rgba(46, 125, 50, .09); border-left: 4px solid #2e7d32; }
.fk-sent p { margin: 0; }
