/* Seven Star Electric · Fluent Forms styles (DR-03)
 * The tripled .fluentform (0,4,0; 0,5,0 on :focus) beats Elementor Theme Style's form-field rule
 * .elementor-kit-N input:not([type=button]):not([type=submit]) (0,3,1; 0,4,1 on :focus)
 * and Fluent's own CSS, which prints later.
 * Forms 3, 4 and 5 use “inherit theme style” (wrapper .fluentform.ff-inherit-theme-style).
 * Matches the FormField and Notice components. Field names, IDs and values are untouched.
 */

.fluentform.fluentform.fluentform .ff-el-group { margin-bottom: 16px; }

.fluentform.fluentform.fluentform .ff-el-input--label label {
	font-family: var(--sse-font-text);
	font-weight: 600;
	font-size: 16px;
	line-height: 1.25;
	color: var(--sse-ink);
}
.fluentform.fluentform.fluentform .ff-el-input--label.asterisk-right label::after { color: var(--sse-slate); }

.fluentform.fluentform.fluentform .ff-el-form-control {
	font: 400 17px/1.4 var(--sse-font-text);
	color: var(--sse-ink);
	background: var(--sse-surface);
	border: 1px solid var(--sse-field-border);
	border-radius: var(--sse-radius-control);
	padding: 12px 14px;
	min-height: 48px;
	box-shadow: none;
}
.fluentform.fluentform.fluentform .ff-el-form-control::placeholder { color: var(--sse-slate); }
.fluentform.fluentform.fluentform .ff-el-form-control:hover { border-color: var(--sse-ink-soft); }
.fluentform.fluentform.fluentform .ff-el-form-control:focus {
	outline: 2px solid var(--sse-ink);
	outline-offset: 2px;
	border-color: var(--sse-ink);
	box-shadow: none;
}

/* Radio group (service type) */
.fluentform.fluentform.fluentform .ff-el-form-check { margin-bottom: 4px; }
.fluentform.fluentform.fluentform .ff-el-form-check-label {
	display: inline-flex;
	gap: 10px;
	align-items: center;
	font-size: 16px;
	line-height: 1.4;
	color: var(--sse-ink);
	cursor: pointer;
}
.fluentform.fluentform.fluentform input[type="radio"],
.fluentform.fluentform.fluentform input[type="checkbox"] {
	width: 20px;
	height: 20px;
	min-height: 0;
	padding: 0;
	border: 0;
	box-shadow: none;
	background: none;
	accent-color: var(--sse-green);
}
@media (max-width: 767px) {
	.fluentform.fluentform.fluentform .ff-el-form-check { min-height: 40px; display: flex; align-items: center; }
}

/* Errors */
.fluentform.fluentform.fluentform .ff-el-is-error .ff-el-form-control {
	border: 2px solid var(--sse-error);
	padding: 11px 13px;
}
.fluentform.fluentform.fluentform .ff-el-is-error .text-danger,
.fluentform.fluentform.fluentform .error.text-danger {
	display: flex;
	gap: 6px;
	align-items: flex-start;
	margin-top: 6px;
	font-size: 15px;
	line-height: 1.4;
	font-weight: 600;
	color: var(--sse-error);
}
.fluentform.fluentform.fluentform .ff-el-is-error .text-danger::before,
.fluentform.fluentform.fluentform .error.text-danger::before {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	margin-top: 1px;
	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'/%3E%3Cpath d='M12 7.5v5.5M12 16.5v.01'/%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'/%3E%3Cpath d='M12 7.5v5.5M12 16.5v.01'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Error summary, added by sse.js after a failed submit */
.sse-form-summary {
	display: grid;
	grid-template-columns: 20px 1fr;
	gap: 12px;
	background: var(--sse-error-wash);
	border: 1px solid var(--sse-error);
	border-radius: var(--sse-radius-control);
	padding: 16px 18px;
	margin-bottom: 18px;
	color: var(--sse-ink);
	font-size: 16px;
	line-height: 1.45;
}
.sse-form-summary strong { display: block; color: var(--sse-error); font-family: var(--sse-font-display); font-size: 20px; font-weight: 700; }
.sse-form-summary a { color: var(--sse-ink); font-weight: 700; text-decoration: underline; white-space: nowrap; }
.sse-form-summary:focus { outline: 2px solid var(--sse-ink); outline-offset: 2px; }

/* Consent line (custom HTML field above the button, H4) */
.fluentform.fluentform.fluentform .sse-consent { font-size: 14px; line-height: 1.45; color: var(--sse-slate); margin: 4px 0 14px; }

/* Submit: same as the primary button */
.fluentform.fluentform.fluentform .ff-btn-submit,
.fluentform.fluentform.fluentform .ff-btn.ff-btn-submit {
	font-family: var(--sse-font-text);
	font-weight: 700;
	font-size: 18px;
	line-height: 1;
	padding: 16px 26px;
	border-radius: var(--sse-radius-control);
	background: var(--sse-amber) !important;
	border: 2px solid var(--sse-amber) !important;
	color: var(--sse-ink) !important;
	box-shadow: none;
}
.fluentform.fluentform.fluentform .ff-btn-submit:hover { background: var(--sse-amber-hover) !important; border-color: var(--sse-amber-hover) !important; }
.fluentform.fluentform.fluentform .ff-btn-submit:disabled { background: var(--sse-rule-soft) !important; border-color: var(--sse-rule-soft) !important; color: var(--sse-slate) !important; }

/* The Fluent Forms Elementor widget prints its default button colours as
 * .elementor-N .elementor-element-ID .fluentform-widget-wrapper .ff-el-group .ff-btn-submit (0,6,0) !important.
 * This selector is (0,8,0) so the brand button wins inside the widget too. */
.elementor .elementor-widget-fluent-form-widget .fluentform-widget-wrapper .fluentform.fluentform.fluentform .ff-el-group .ff-btn-submit {
	background-color: var(--sse-amber) !important;
	border-color: var(--sse-amber) !important;
	color: var(--sse-ink) !important;
}
.elementor .elementor-widget-fluent-form-widget .fluentform-widget-wrapper .fluentform.fluentform.fluentform .ff-el-group .ff-btn-submit:hover {
	background-color: var(--sse-amber-hover) !important;
	border-color: var(--sse-amber-hover) !important;
}

/* Success (form 5 same-page message) */
.fluentform.fluentform.fluentform .ff-message-success {
	background: var(--sse-surface);
	border: 1px solid var(--sse-rule);
	border-radius: var(--sse-radius-card);
	padding: 24px;
	color: var(--sse-ink);
	box-shadow: none;
}
.fluentform.fluentform.fluentform .ff-message-success h3,
.fluentform.fluentform.fluentform .ff-message-success strong:first-child { color: var(--sse-green); font-family: var(--sse-font-display); }

/* Turnstile and the honeypot stay as Fluent Forms renders them */

/* DR-08: the page header carries the greeting (sse.js fills the name, or a neutral line when it is empty);
 * form 4's own "Thanks, {name}." heading would repeat it, and reads "Thanks, ." on a direct visit. */
.fluentform_wrapper_4 .ff-custom_html h2:has(.ff_dynamic_value) { display: none; }
