/**
 * Sifa Crafts Quotes — quote request form.
 *
 * The form owns its entire visual system. Typography, colour, spacing,
 * controls and states are defined here as design tokens, deliberately
 * independent of Elementor Pro, the active theme, and browser defaults.
 * Inherited control styling is reset before the system is applied.
 *
 * Scoping contract:
 *  - Every selector lives under .sifa-quote-form. Nothing here can reach the
 *    page around the form.
 *  - Rules that must beat Elementor kit selectors (which reach specificity
 *    (0,3,1) on focused controls) use a doubled root class,
 *    .sifa-quote-form.sifa-quote-form, never !important.
 *  - The Outfit and Inter typefaces are enqueued as a dependency of this
 *    stylesheet; every stack below falls back to system fonts if they fail.
 *  - Controls keep a fixed 16px font size at every breakpoint: iOS Safari
 *    zooms the page on focus for anything smaller. Body text scales; the
 *    controls do not.
 */

/* ---------------------------------------------------------------------------
   1. Design tokens
   --------------------------------------------------------------------------- */

.sifa-quote-form {
	/* Brand palette. */
	--sifa-primary: #b23600;        /* Burnt Orange — CTA and brand accents. */
	--sifa-primary-strong: #9a2f00; /* Hover/active darkening of the CTA. */
	--sifa-primary-soft: rgba(178, 54, 0, 0.14);
	--sifa-teal: #035553;           /* Deep Teal — interactive states. */
	--sifa-teal-soft: rgba(3, 85, 83, 0.16);
	--sifa-teal-wash: rgba(3, 85, 83, 0.05);
	--sifa-mustard: #bc822b;        /* Mustard Brown — decorative accent. */
	--sifa-slate: #787c82;          /* Slate Gray — decorative/tertiary only. */
	--sifa-charcoal: #1e1e1e;       /* Charcoal Black — body text. */
	--sifa-jet: #0a0a0a;            /* Jet Black — headings. */
	--sifa-lavender: #eeeeff;       /* Lavender White — soft fills. */

	/* Slate deepened until it passes AA on white; used for readable
	   secondary text. Raw slate stays for decorative, non-essential text. */
	--sifa-text-muted: #5a5f66;

	/* Semantic colours, kept distinct from the brand orange. */
	--sifa-error: #b3261e;
	--sifa-error-soft: rgba(179, 38, 30, 0.12);
	--sifa-success: #1b7a43;
	--sifa-success-soft: rgba(27, 122, 67, 0.12);

	/* Surfaces and lines. */
	--sifa-surface: #ffffff;
	--sifa-surface-muted: #fafafd;
	--sifa-border: #dfe1e7;
	--sifa-border-strong: #b9bdc7;

	/* Typography. */
	--sifa-font-heading: "Outfit", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--sifa-font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--sifa-fs-heading: 34px;
	--sifa-fs-legend: 22px;
	--sifa-fs-intro: 17px;
	--sifa-fs-body: 16px;
	--sifa-fs-control: 16px; /* Fixed across breakpoints — see header note. */
	--sifa-fs-sm: 14px;
	--sifa-fs-xs: 11px;

	/* Shape, depth, motion. */
	--sifa-radius-card: 18px;
	--sifa-radius: 10px;
	--sifa-radius-sm: 6px;
	--sifa-shadow-card: 0 10px 40px rgba(10, 10, 10, 0.07), 0 2px 8px rgba(10, 10, 10, 0.04);
	--sifa-ring: 0 0 0 4px var(--sifa-teal-soft);
	--sifa-ring-error: 0 0 0 4px var(--sifa-error-soft);
	--sifa-ring-primary: 0 0 0 4px var(--sifa-primary-soft);
	--sifa-transition: 170ms cubic-bezier(0.4, 0, 0.2, 1);

	/* Spacing and control metrics. */
	--sifa-gap: 20px;
	--sifa-gap-sm: 10px;
	--sifa-space-section: 40px;
	--sifa-control-h: 52px;
	--sifa-control-pad-x: 16px;
}

/* ---------------------------------------------------------------------------
   2. Container
   --------------------------------------------------------------------------- */

.sifa-quote-form {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: 1280px;
	margin-right: auto;
	margin-left: auto;
	padding: clamp(24px, 4vw, 48px);
	background-color: var(--sifa-surface);
	border: 1px solid var(--sifa-border);
	border-radius: var(--sifa-radius-card);
	box-shadow: var(--sifa-shadow-card);
	color: var(--sifa-charcoal);
	font-family: var(--sifa-font-body);
	font-size: var(--sifa-fs-body);
	font-weight: 400;
	line-height: 1.6;
	text-align: start;
	letter-spacing: normal;
	-webkit-font-smoothing: antialiased;
}

/* Everything inside shares one box model. */
.sifa-quote-form *,
.sifa-quote-form *::before,
.sifa-quote-form *::after {
	box-sizing: border-box;
}

/* The container receives programmatic focus after a successful submit. */
.sifa-quote-form:focus {
	outline: none;
}

.sifa-quote-form .sifa-quote-heading {
	margin: 0 0 10px;
	color: var(--sifa-jet);
	font-family: var(--sifa-font-heading);
	font-size: var(--sifa-fs-heading);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.02em;
	text-transform: none;
}

.sifa-quote-form .sifa-quote-intro {
	margin: 0 0 36px;
	max-width: 62ch;
	color: var(--sifa-text-muted);
	font-size: var(--sifa-fs-intro);
	line-height: 1.65;
}

/* ---------------------------------------------------------------------------
   3. Control reset
   ---------------------------------------------------------------------------
   Strips what the theme or an Elementor kit put on bare form elements before
   the system below restyles them. The doubled root class outranks kit rules
   like `.elementor-kit-n input[type="text"]`. */

.sifa-quote-form.sifa-quote-form input,
.sifa-quote-form.sifa-quote-form select,
.sifa-quote-form.sifa-quote-form textarea,
.sifa-quote-form.sifa-quote-form button {
	margin: 0;
	font: inherit;
	color: inherit;
	letter-spacing: normal;
	text-transform: none;
	box-shadow: none;
}

/* ---------------------------------------------------------------------------
   4. Sections
   --------------------------------------------------------------------------- */

.sifa-quote-form .sifa-quote-section {
	/* A fieldset will not shrink below its content's intrinsic width, which
	   breaks any grid placed inside one. Resetting the minimum inline size is
	   what makes the grids below behave. */
	min-inline-size: 0;
	margin: 0 0 var(--sifa-space-section);
	padding: 0;
	border: 0;
}

.sifa-quote-form .sifa-quote-legend {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	color: var(--sifa-jet);
	font-family: var(--sifa-font-heading);
	font-size: var(--sifa-fs-legend);
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.01em;
	text-transform: none;
}

/* Brand accent under each section title. */
.sifa-quote-form .sifa-quote-legend::after {
	content: "";
	display: block;
	width: 44px;
	height: 3px;
	margin-top: 10px;
	border-radius: 2px;
	background-image: linear-gradient(90deg, var(--sifa-primary), var(--sifa-mustard));
}

.sifa-quote-form .sifa-quote-section-body {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--sifa-gap);
	margin-top: 22px;
}

/* Contact details sit two-up on anything wider than a phone. */
.sifa-quote-form .sifa-quote-section--contact .sifa-quote-section-body {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ---------------------------------------------------------------------------
   5. Fields and labels
   --------------------------------------------------------------------------- */

.sifa-quote-form .sifa-quote-field {
	display: block;
	min-width: 0;
}

.sifa-quote-form .sifa-quote-group {
	min-inline-size: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.sifa-quote-form .sifa-quote-label {
	display: block;
	margin: 0 0 8px;
	padding: 0;
	color: var(--sifa-charcoal);
	font-family: var(--sifa-font-body);
	font-size: var(--sifa-fs-sm);
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.005em;
	text-transform: none;
}

/* Required reads as brand, not as an error; red is reserved for actual
   problems. */
.sifa-quote-form .sifa-quote-required,
.sifa-quote-form .sifa-quote-optional {
	margin-left: 6px;
	font-size: var(--sifa-fs-xs);
	font-weight: 600;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	vertical-align: 1px;
}

.sifa-quote-form .sifa-quote-required {
	color: var(--sifa-primary);
}

.sifa-quote-form .sifa-quote-optional {
	color: var(--sifa-slate);
}

/* ---------------------------------------------------------------------------
   6. Text controls
   --------------------------------------------------------------------------- */

.sifa-quote-form.sifa-quote-form .sifa-quote-input,
.sifa-quote-form.sifa-quote-form .sifa-quote-select,
.sifa-quote-form.sifa-quote-form .sifa-quote-textarea {
	display: block;
	width: 100%;
	max-width: 100%;
	min-height: var(--sifa-control-h);
	padding: 12px var(--sifa-control-pad-x);
	background-color: var(--sifa-surface);
	border: 1.5px solid var(--sifa-border);
	border-radius: var(--sifa-radius);
	color: var(--sifa-charcoal);
	font-family: var(--sifa-font-body);
	font-size: var(--sifa-fs-control);
	line-height: 1.5;
	appearance: none;
	-webkit-appearance: none;
	transition:
		border-color var(--sifa-transition),
		background-color var(--sifa-transition),
		box-shadow var(--sifa-transition);
}

.sifa-quote-form.sifa-quote-form .sifa-quote-input:hover,
.sifa-quote-form.sifa-quote-form .sifa-quote-select:hover,
.sifa-quote-form.sifa-quote-form .sifa-quote-textarea:hover {
	border-color: var(--sifa-border-strong);
}

.sifa-quote-form.sifa-quote-form .sifa-quote-input:focus,
.sifa-quote-form.sifa-quote-form .sifa-quote-select:focus,
.sifa-quote-form.sifa-quote-form .sifa-quote-textarea:focus {
	outline: none;
	background-color: var(--sifa-surface);
	border-color: var(--sifa-teal);
	box-shadow: var(--sifa-ring);
}

.sifa-quote-form .sifa-quote-input::placeholder,
.sifa-quote-form .sifa-quote-textarea::placeholder {
	color: rgba(120, 124, 130, 0.85);
	opacity: 1;
}

/* WebKit autofill paints its own yellow; keep the field on-system. */
.sifa-quote-form.sifa-quote-form .sifa-quote-input:-webkit-autofill {
	-webkit-box-shadow: 0 0 0 100px var(--sifa-surface) inset;
	-webkit-text-fill-color: var(--sifa-charcoal);
}

.sifa-quote-form.sifa-quote-form .sifa-quote-textarea {
	min-height: 140px;
	line-height: 1.6;
	resize: vertical;
}

/* Selects draw their own chevron once appearance is off. */
.sifa-quote-form.sifa-quote-form .sifa-quote-select {
	padding-right: 44px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23787C82' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='m1.5 1.75 4.5 4.5 4.5-4.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	background-size: 12px 8px;
	cursor: pointer;
}

/* ---------------------------------------------------------------------------
   7. Phone: country code and national number share one row
   --------------------------------------------------------------------------- */

.sifa-quote-form .sifa-quote-phone {
	display: flex;
	align-items: stretch;
	gap: var(--sifa-gap-sm);
	width: 100%;
}

/* After the width:100% control rule on purpose: same specificity, later
   source order wins. */
.sifa-quote-form.sifa-quote-form .sifa-quote-phone-code {
	flex: 0 1 auto;
	width: auto;
	min-width: 0;
	max-width: 45%;
}

.sifa-quote-form .sifa-quote-phone-number {
	flex: 1 1 auto;
	min-width: 0;
}

/* ---------------------------------------------------------------------------
   8. Choice cards: checkboxes and radios
   --------------------------------------------------------------------------- */

.sifa-quote-form .sifa-quote-options {
	display: grid;
	gap: var(--sifa-gap-sm);
}

.sifa-quote-form .sifa-quote-options--checkbox {
	grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.sifa-quote-form .sifa-quote-options--radio {
	grid-template-columns: minmax(0, 1fr);
}

.sifa-quote-form .sifa-quote-option {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	min-width: 0;
	padding: 13px 14px;
	background-color: var(--sifa-surface);
	border: 1.5px solid var(--sifa-border);
	border-radius: var(--sifa-radius);
	cursor: pointer;
	transition:
		border-color var(--sifa-transition),
		background-color var(--sifa-transition),
		box-shadow var(--sifa-transition);
}

.sifa-quote-form .sifa-quote-option:hover {
	border-color: var(--sifa-border-strong);
	background-color: var(--sifa-surface-muted);
}

.sifa-quote-form .sifa-quote-option:has(input:checked) {
	border-color: var(--sifa-teal);
	background-color: var(--sifa-teal-wash);
}

.sifa-quote-form .sifa-quote-option:has(input:focus-visible) {
	box-shadow: var(--sifa-ring);
}

.sifa-quote-form .sifa-quote-option-label {
	min-width: 0;
	line-height: 1.45;
}

.sifa-quote-form .sifa-quote-option:has(input:checked) .sifa-quote-option-label {
	font-weight: 500;
}

/* The controls themselves, drawn from scratch. */
.sifa-quote-form.sifa-quote-form .sifa-quote-option input[type="checkbox"],
.sifa-quote-form.sifa-quote-form .sifa-quote-option input[type="radio"] {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin-top: 2px;
	padding: 0;
	background-color: var(--sifa-surface);
	border: 2px solid var(--sifa-border-strong);
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	transition:
		border-color var(--sifa-transition),
		background-color var(--sifa-transition),
		box-shadow var(--sifa-transition);
}

.sifa-quote-form.sifa-quote-form .sifa-quote-option input[type="checkbox"] {
	border-radius: var(--sifa-radius-sm);
}

.sifa-quote-form.sifa-quote-form .sifa-quote-option input[type="radio"] {
	border-radius: 50%;
}

.sifa-quote-form.sifa-quote-form .sifa-quote-option input[type="checkbox"]:hover,
.sifa-quote-form.sifa-quote-form .sifa-quote-option input[type="radio"]:hover {
	border-color: var(--sifa-teal);
}

.sifa-quote-form.sifa-quote-form .sifa-quote-option input[type="checkbox"]:checked,
.sifa-quote-form.sifa-quote-form .sifa-quote-option input[type="radio"]:checked {
	border-color: var(--sifa-teal);
	background-color: var(--sifa-teal);
}

.sifa-quote-form.sifa-quote-form .sifa-quote-option input[type="checkbox"]:checked {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath fill='none' stroke='%23FFFFFF' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='m2.75 7.5 2.9 2.9 5.6-6.9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 12px;
}

/* Filled circle with an inset surface ring reads as a dot. */
.sifa-quote-form.sifa-quote-form .sifa-quote-option input[type="radio"]:checked {
	box-shadow: inset 0 0 0 4px var(--sifa-surface);
}

.sifa-quote-form.sifa-quote-form .sifa-quote-option input[type="checkbox"]:focus-visible,
.sifa-quote-form.sifa-quote-form .sifa-quote-option input[type="radio"]:focus-visible {
	outline: none;
	box-shadow: var(--sifa-ring);
}

.sifa-quote-form.sifa-quote-form .sifa-quote-option input[type="radio"]:checked:focus-visible {
	box-shadow: inset 0 0 0 4px var(--sifa-surface), var(--sifa-ring);
}

/* ---------------------------------------------------------------------------
   9. Conditional fields
   --------------------------------------------------------------------------- */

.sifa-quote-form .sifa-quote-conditional {
	display: none;
}

.sifa-quote-form .sifa-quote-conditional.is-visible {
	display: block;
}

/* ---------------------------------------------------------------------------
   10. File upload
   --------------------------------------------------------------------------- */

.sifa-quote-form.sifa-quote-form .sifa-quote-file {
	display: block;
	width: 100%;
	padding: 14px;
	background-color: var(--sifa-surface-muted);
	border: 1.5px dashed var(--sifa-border-strong);
	border-radius: var(--sifa-radius);
	color: var(--sifa-text-muted);
	font-size: var(--sifa-fs-sm);
	cursor: pointer;
	transition:
		border-color var(--sifa-transition),
		background-color var(--sifa-transition),
		box-shadow var(--sifa-transition);
}

.sifa-quote-form.sifa-quote-form .sifa-quote-file:hover {
	border-color: var(--sifa-teal);
}

.sifa-quote-form.sifa-quote-form .sifa-quote-file:focus-visible {
	outline: none;
	border-color: var(--sifa-teal);
	box-shadow: var(--sifa-ring);
}

.sifa-quote-form .sifa-quote-file::file-selector-button {
	margin: 0 14px 0 0;
	padding: 9px 18px;
	background-color: var(--sifa-surface);
	border: 1.5px solid var(--sifa-teal);
	border-radius: var(--sifa-radius-sm);
	color: var(--sifa-teal);
	font-family: var(--sifa-font-body);
	font-size: var(--sifa-fs-sm);
	font-weight: 600;
	cursor: pointer;
	transition:
		background-color var(--sifa-transition),
		color var(--sifa-transition);
}

.sifa-quote-form .sifa-quote-file:hover::file-selector-button {
	background-color: var(--sifa-teal);
	color: var(--sifa-surface);
}

/* The chosen file, shown as a chip with a remove control. */
.sifa-quote-form .sifa-quote-file-chip {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	max-width: 100%;
	margin-top: 10px;
	padding: 8px 16px;
	background-color: var(--sifa-lavender);
	border: 1px solid rgba(10, 10, 10, 0.08);
	border-radius: 999px;
	font-size: var(--sifa-fs-sm);
}

.sifa-quote-form .sifa-quote-file-name {
	min-width: 0;
	color: var(--sifa-charcoal);
	font-weight: 500;
	overflow-wrap: anywhere;
}

.sifa-quote-form .sifa-quote-file-size {
	flex: 0 0 auto;
	color: var(--sifa-text-muted);
}

.sifa-quote-form.sifa-quote-form .sifa-quote-file-remove {
	flex: 0 0 auto;
	padding: 0;
	background-color: transparent;
	border: 0;
	border-radius: 3px;
	color: var(--sifa-primary);
	font-size: var(--sifa-fs-sm);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
	transition: color var(--sifa-transition);
}

.sifa-quote-form.sifa-quote-form .sifa-quote-file-remove:hover {
	color: var(--sifa-primary-strong);
}

.sifa-quote-form.sifa-quote-form .sifa-quote-file-remove:focus-visible {
	outline: none;
	box-shadow: var(--sifa-ring-primary);
}

/* ---------------------------------------------------------------------------
   11. Errors
   --------------------------------------------------------------------------- */

.sifa-quote-form .sifa-quote-error {
	display: none;
	margin-top: 8px;
	color: var(--sifa-error);
	font-size: var(--sifa-fs-sm);
	font-weight: 500;
	line-height: 1.45;
}

.sifa-quote-form .sifa-quote-error.is-visible,
.sifa-quote-form .sifa-quote-field.has-error .sifa-quote-error {
	display: block;
}

.sifa-quote-form.sifa-quote-form .sifa-quote-field.has-error .sifa-quote-input,
.sifa-quote-form.sifa-quote-form .sifa-quote-field.has-error .sifa-quote-select,
.sifa-quote-form.sifa-quote-form .sifa-quote-field.has-error .sifa-quote-textarea,
.sifa-quote-form.sifa-quote-form .sifa-quote-field.has-error .sifa-quote-file {
	border-color: var(--sifa-error);
}

.sifa-quote-form.sifa-quote-form .sifa-quote-field.has-error .sifa-quote-input:focus,
.sifa-quote-form.sifa-quote-form .sifa-quote-field.has-error .sifa-quote-select:focus,
.sifa-quote-form.sifa-quote-form .sifa-quote-field.has-error .sifa-quote-textarea:focus {
	border-color: var(--sifa-error);
	box-shadow: var(--sifa-ring-error);
}

/* ---------------------------------------------------------------------------
   12. Notice and success
   --------------------------------------------------------------------------- */

.sifa-quote-form .sifa-quote-notice {
	display: none;
	margin: 0 0 var(--sifa-gap);
	padding: 14px 16px;
	border: 1px solid transparent;
	border-radius: var(--sifa-radius);
	font-size: var(--sifa-fs-sm);
	font-weight: 500;
	line-height: 1.5;
}

.sifa-quote-form .sifa-quote-notice.is-visible {
	display: block;
}

.sifa-quote-form .sifa-quote-notice--success {
	background-color: #eaf6ef;
	border-color: rgba(27, 122, 67, 0.25);
	color: #135a34;
}

.sifa-quote-form .sifa-quote-notice--error {
	background-color: #fbedec;
	border-color: rgba(179, 38, 30, 0.25);
	color: #8c1d18;
}

/* The panel the script swaps in for the form after a successful submit. */
.sifa-quote-form .sifa-quote-success {
	max-width: 560px;
	margin: 0 auto;
	padding: 40px 24px;
	color: var(--sifa-charcoal);
	font-size: 17px;
	line-height: 1.65;
	text-align: center;
}

.sifa-quote-form .sifa-quote-success::before {
	content: "";
	display: block;
	width: 56px;
	height: 56px;
	margin: 0 auto 18px;
	border-radius: 50%;
	background-color: var(--sifa-success-soft);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%231B7A43' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round' d='m5 12.5 4.5 4.5 9-10'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 26px;
}

/* ---------------------------------------------------------------------------
   13. Submit and loading
   --------------------------------------------------------------------------- */

.sifa-quote-form.sifa-quote-form .sifa-quote-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 54px;
	padding: 0 34px;
	background-color: var(--sifa-primary);
	border: 0;
	border-radius: var(--sifa-radius);
	box-shadow: 0 2px 6px rgba(178, 54, 0, 0.25);
	color: #ffffff;
	font-family: var(--sifa-font-body);
	font-size: var(--sifa-fs-control);
	font-weight: 600;
	letter-spacing: 0.01em;
	cursor: pointer;
	transition:
		background-color var(--sifa-transition),
		box-shadow var(--sifa-transition),
		transform var(--sifa-transition);
}

.sifa-quote-form.sifa-quote-form .sifa-quote-submit:hover {
	background-color: var(--sifa-primary-strong);
	box-shadow: 0 4px 14px rgba(178, 54, 0, 0.3);
	transform: translateY(-1px);
}

.sifa-quote-form.sifa-quote-form .sifa-quote-submit:active {
	box-shadow: 0 1px 3px rgba(178, 54, 0, 0.25);
	transform: translateY(0);
}

.sifa-quote-form.sifa-quote-form .sifa-quote-submit:focus-visible {
	outline: none;
	box-shadow: var(--sifa-ring-primary);
}

.sifa-quote-form.sifa-quote-form .sifa-quote-submit[disabled] {
	background-color: var(--sifa-slate);
	box-shadow: none;
	transform: none;
	cursor: not-allowed;
}

/* Sending: the fields recede, the button stays legible and gains a spinner. */
.sifa-quote-form.is-loading {
	pointer-events: none;
}

.sifa-quote-form.is-loading .sifa-quote-field,
.sifa-quote-form.is-loading .sifa-quote-legend {
	opacity: 0.55;
}

.sifa-quote-form.is-loading .sifa-quote-submit::after {
	content: "";
	width: 18px;
	height: 18px;
	border: 2.5px solid rgba(255, 255, 255, 0.4);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: sifa-quote-spin 700ms linear infinite;
}

@keyframes sifa-quote-spin {
	to {
		transform: rotate(360deg);
	}
}

/* ---------------------------------------------------------------------------
   14. Off-screen content
   --------------------------------------------------------------------------- */

/*
 * The honeypot is moved off-screen rather than hidden with display:none or the
 * hidden attribute, both of which a bot can cheaply detect and skip.
 */
.sifa-quote-form .sifa-quote-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.sifa-quote-form .sifa-quote-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	border: 0;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* ---------------------------------------------------------------------------
   15. reCAPTCHA
   --------------------------------------------------------------------------- */

.sifa-quote-form .sifa-quote-recaptcha {
	max-width: 100%;
	margin-bottom: var(--sifa-gap);
	overflow-x: auto;
}

/* ---------------------------------------------------------------------------
   16. Responsive scale
   --------------------------------------------------------------------------- */

@media (max-width: 1024px) {
	.sifa-quote-form {
		--sifa-fs-heading: 30px;
		--sifa-fs-legend: 20px;
		--sifa-fs-intro: 16px;
		--sifa-fs-body: 15px;
		--sifa-space-section: 34px;
	}
}

@media (max-width: 640px) {
	.sifa-quote-form {
		--sifa-fs-heading: 26px;
		--sifa-fs-legend: 18px;
		--sifa-fs-intro: 15px;
		--sifa-fs-body: 14px;
		--sifa-fs-sm: 13px;
		--sifa-control-h: 48px;
		--sifa-space-section: 28px;
		--sifa-gap: 16px;
		--sifa-radius-card: 14px;
	}

	.sifa-quote-form .sifa-quote-section--contact .sifa-quote-section-body {
		grid-template-columns: minmax(0, 1fr);
	}

	.sifa-quote-form.sifa-quote-form .sifa-quote-submit {
		width: 100%;
	}
}

/* ---------------------------------------------------------------------------
   17. Reduced motion
   --------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.sifa-quote-form,
	.sifa-quote-form *,
	.sifa-quote-form *::before,
	.sifa-quote-form *::after {
		transition-duration: 0.01ms;
		animation-duration: 0.01ms;
		animation-iteration-count: 1;
	}
}
