/**
 * FluentForm — brand integration.
 *
 * FluentForm ships its own button/input styling that ignores the theme. This
 * re-skins its submit button, inputs and labels onto the theme's own component
 * tokens — the SAME --button-* and --field-* tokens the native button/field
 * components use — so FluentForm inherits each fork's brand automatically with
 * zero per-site CSS. Scoped to .frm-fluent-form; loaded only when FluentForm
 * is active (see inc/enqueue.php).
 */

/* Submit button -> filled-button tokens */
.frm-fluent-form .ff-btn-submit,
.frm-fluent-form .ff-btn.ff-btn-submit {
	background-color: var(--button-filled-container-color) !important;
	color: var(--button-filled-text-color, rgb(var(--color-on-primary, 255 255 255))) !important;
	font-family: var(--font-display, inherit) !important;
	font-weight: 600 !important;
	border: 0 !important;
	border-radius: var(--button-border-radius, 9999px) !important;
	padding: var(--button-padding-y, .8rem) var(--button-padding-x, 1.9rem) !important;
	font-size: 1rem !important;
	line-height: 1.2 !important;
	box-shadow: none !important;
	transition: background-color .15s ease, transform .15s ease;
}
.frm-fluent-form .ff-btn-submit:hover {
	background-color: var(--button-filled-container-color-hover, var(--button-filled-container-color)) !important;
	transform: translateY(-1px);
}

/* Inputs / selects / textareas -> field tokens (matches native theme fields) */
.frm-fluent-form .ff-el-form-control {
	background-color: var(--field-container-color, #fff) !important;
	border: var(--field-border-width, 1px) var(--field-border-style, solid) var(--field-border-color, rgb(203 213 225)) !important;
	border-radius: var(--field-border-radius, .5rem) !important;
	color: var(--field-text-color, rgb(17 24 39)) !important;
	padding: var(--field-padding, .625rem .875rem) !important;
	font-family: var(--font-body, inherit) !important;
}
.frm-fluent-form .ff-el-form-control::placeholder { color: var(--field-placeholder-color, rgb(148 163 184)); }
.frm-fluent-form .ff-el-form-control:hover { border-color: var(--field-hover-border-color, var(--field-border-color)) !important; }
.frm-fluent-form .ff-el-form-control:focus {
	border-color: var(--field-focus-border-color, rgb(var(--color-primary))) !important;
	box-shadow: var(--field-focus-ring, 0 0 0 3px rgb(var(--color-primary) / .15)) !important;
	outline: none !important;
}

/* Labels -> brand type + field ink */
.frm-fluent-form .ff-el-input--label label {
	font-family: var(--font-display, inherit);
	font-weight: 600;
	color: var(--field-text-color, rgb(var(--color-on-surface, 55 65 81)));
}


/* Let a Fluent Forms submit button opt into the theme accent colour by adding
   `btn btn--accent` to the button's CSS classes. !important is required to beat
   the per-form custom button CSS (.wpf_has_custom_css.ff-btn-submit). */
.frm-fluent-form .ff-btn-submit.btn--accent {
	background: var(--button-accent-container-color) !important;
	border-color: var(--button-accent-container-color) !important;
	color: var(--button-accent-text-color) !important;
}
.frm-fluent-form .ff-btn-submit.btn--accent:hover {
	background: var(--button-accent-container-color-hover) !important;
	border-color: var(--button-accent-container-color-hover) !important;
	color: var(--button-accent-text-color) !important;
}
