/* SLC Toolkit: Family Law Forms. Scoped to .slc-sf so the theme is untouched. Colours match the site's
   "Get started" sections (navy and gold). Inside an Elementor .slcds-card the form drops its own card. */
.slc-sf {
	--sf-navy: #10243a;
	--sf-gold: #c5a059;
	--sf-gold-d: #786032;
	--sf-cream: #f7f5f0;
	--sf-text: #46566a;
	--sf-mute: #6b7686;
	--sf-line: #aac0d0;
	--sf-line-l: #d3dfe7;
	--sf-green: #2e6b4a;
	--sf-green-l: #e8f2ec;
	--sf-red: #8f3427;
	--sf-red-l: #f9e9e6;
	--sf-ring: 0 0 0 3px rgba(197, 160, 89, .35);
	position: relative;
	max-width: 660px;
	margin: 0 auto;
	padding: 30px 28px;
	border: 1px solid var(--sf-line-l);
	border-radius: 11px;
	background: #fff;
	color: var(--sf-text);
	font-size: 16px;
	line-height: 1.55;
	text-align: left;
}
.slcds-card > .slc-sf,
.slcds-card .elementor-widget-container > .slc-sf,
.slcds-card .elementor-shortcode > .slc-sf { max-width: none; padding: 0; border: 0; border-radius: 0; background: none; }
.slc-sf *, .slc-sf *::before, .slc-sf *::after { box-sizing: border-box; }
.slc-sf [hidden] { display: none !important; }
.slc-sf .slc-sf__ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Result handed over by the divorce check */
.slc-sf__check {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0 0 22px;
	padding: 13px 15px;
	border: 1px solid #cfe2d6;
	border-radius: 10px;
	background: var(--sf-green-l);
}
.slc-sf__check > .slc-sf__ic { width: 22px; height: 22px; margin-top: 1px; padding: 3px; border-radius: 50%; background: var(--sf-green); color: #fff; stroke-width: 2.6; }
.slc-sf__check > div { flex: 1; min-width: 0; }
.slc-sf .slc-sf__check strong { display: block; color: var(--sf-navy); font-size: 16px; }
.slc-sf .slc-sf__check span { display: block; color: var(--sf-mute); font-size: 13.5px; }
.slc-sf .slc-sf__link {
	flex: none;
	margin: 0;
	padding: 2px 4px;
	border: 0;
	background: none;
	color: var(--sf-gold-d);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
	box-shadow: none;
}
.slc-sf .slc-sf__link:hover { color: var(--sf-navy); background: none; }

/* Fields */
.slc-sf__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 18px; }
.slc-sf__field--wide { grid-column: 1 / -1; }
.slc-sf .slc-sf__field label,
.slc-sf .slc-sf__checks legend {
	display: block;
	margin: 0 0 7px;
	padding: 0;
	color: var(--sf-navy);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
}
.slc-sf .slc-sf__field label span,
.slc-sf .slc-sf__checks legend span { color: var(--sf-mute); font-weight: 400; font-size: 14px; }
.slc-sf .slc-sf__field input,
.slc-sf .slc-sf__field select,
.slc-sf .slc-sf__field textarea {
	display: block;
	width: 100%;
	max-width: none;
	min-height: 48px;
	height: auto;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid var(--sf-line);
	border-radius: 6px;
	background-color: #fff;
	color: var(--sf-navy);
	font: inherit;
	font-size: 16px;
	line-height: 1.4;
	box-shadow: none;
	transition: border-color .15s, box-shadow .15s;
}
.slc-sf .slc-sf__field select {
	-webkit-appearance: none;
	appearance: none;
	padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310243a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 13px center;
	background-size: 18px;
}
.slc-sf .slc-sf__field textarea { min-height: 104px; resize: vertical; }
.slc-sf .slc-sf__field input:focus,
.slc-sf .slc-sf__field select:focus,
.slc-sf .slc-sf__field textarea:focus { outline: none; border-color: var(--sf-gold); box-shadow: var(--sf-ring); }
.slc-sf .slc-sf__field [aria-invalid="true"] { border-color: var(--sf-red); }

/* "Choose all that apply" */
.slc-sf .slc-sf__checks { min-width: 0; margin: 0; padding: 0; border: 0; }
.slc-sf .slc-sf__checks[aria-invalid="true"] legend { color: var(--sf-red); }
.slc-sf .slc-sf__checks .slc-sf__tick { margin: 0 0 9px !important; }

/* Checkboxes: locked against theme checkbox styles (same fix as the divorce check, 1.19.1) */
.slc-sf .slc-sf__tick {
	display: flex !important;
	align-items: flex-start !important;
	gap: 10px !important;
	width: auto !important;
	margin: 16px 0 0 !important;
	padding: 0 !important;
	color: var(--sf-text) !important;
	font-size: 15px !important;
	font-weight: 400 !important;
	line-height: 1.45 !important;
	text-align: left !important;
	cursor: pointer;
}
.slc-sf .slc-sf__tick input[type="checkbox"] {
	-webkit-appearance: auto !important;
	appearance: auto !important;
	position: static !important;
	flex: 0 0 18px !important;
	width: 18px !important;
	height: 18px !important;
	min-height: 0 !important;
	margin: 1px 0 0 !important;
	padding: 0 !important;
	opacity: 1 !important;
	accent-color: var(--sf-navy);
	box-shadow: none !important;
}
.slc-sf .slc-sf__tick span { flex: 1 1 auto !important; display: block !important; width: auto !important; }

/* "Which best describes your situation?": tap-to-choose cards. The radio is kept for keyboards and
   screen readers but drawn as the gold dot, so theme radio styles cannot reach it. */
.slc-sf .slc-sf__choices { min-width: 0; margin: 0 0 22px; padding: 0; border: 0; }
.slc-sf .slc-sf__choices legend { display: block; margin: 0 0 10px; padding: 0; color: var(--sf-navy); font-size: 15px; font-weight: 700; line-height: 1.3; }
.slc-sf .slc-sf__choices[aria-invalid="true"] legend { color: var(--sf-red); }
.slc-sf .slc-sf__choice-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.slc-sf .slc-sf__choice {
	position: relative !important;
	display: flex !important;
	align-items: flex-start !important;
	gap: 11px !important;
	margin: 0 !important;
	padding: 13px 14px !important;
	border: 1px solid var(--sf-line-l) !important;
	border-radius: 9px !important;
	background: #fff !important;
	color: var(--sf-text) !important;
	font-size: 15px !important;
	font-weight: 400 !important;
	line-height: 1.4 !important;
	text-align: left !important;
	cursor: pointer;
	transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.slc-sf .slc-sf__choice:hover { border-color: var(--sf-gold) !important; }
.slc-sf .slc-sf__choices[aria-invalid="true"] .slc-sf__choice { border-color: #e2b9b1 !important; }
.slc-sf .slc-sf__choice input[type="radio"] {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	opacity: 0 !important;
	cursor: pointer;
}
.slc-sf .slc-sf__choice-dot {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	margin-top: 1px;
	border: 2px solid var(--sf-line);
	border-radius: 50%;
	background: #fff;
	transition: border-color .15s, box-shadow .15s;
}
.slc-sf .slc-sf__choice-text { flex: 1 1 auto; min-width: 0; }
.slc-sf .slc-sf__choice-text strong { display: block; color: var(--sf-navy); font-size: 15px; font-weight: 700; line-height: 1.3; }
.slc-sf .slc-sf__choice-text span { display: block; margin-top: 3px; color: var(--sf-mute); font-size: 13.5px; line-height: 1.4; }
.slc-sf .slc-sf__choice:has(input:checked) { border-color: var(--sf-navy) !important; background: var(--sf-cream) !important; box-shadow: inset 0 0 0 1px var(--sf-navy); }
.slc-sf .slc-sf__choice input:checked + .slc-sf__choice-dot { border-color: var(--sf-navy); background: var(--sf-gold); box-shadow: inset 0 0 0 3px #fff; }
.slc-sf .slc-sf__choice input:focus-visible + .slc-sf__choice-dot { box-shadow: var(--sf-ring); }

/* [slc_start_file_button] on the thank-you page */
.slc-sf-startnow[hidden] { display: none !important; }
.slc-sf-startnow { max-width: 520px; margin: 24px auto; padding: 22px 24px; border: 1px solid #d3dfe7; border-top: 3px solid #c5a059; border-radius: 11px; background: #fff; text-align: center; }
.slc-sf-startnow .slc-sf-startnow__lead { margin: 0 0 14px; color: #10243a; font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 700; line-height: 1.3; }
.slc-sf.slc-sf-startnow .slc-sf-startnow__btn { margin-top: 0; }
.slc-sf-startnow .slc-sf-startnow__fine { margin: 12px 0 0; color: #6b7686; font-size: 14px; line-height: 1.5; }
.slc-sf .slc-sf__start { color: var(--sf-navy); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.slc-sf__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.slc-sf__ts { margin-top: 18px; min-height: 0; }

.slc-sf__error {
	margin: 18px 0 0;
	padding: 12px 16px;
	border-radius: 8px;
	background: var(--sf-red-l);
	color: var(--sf-red);
	font-size: 15px;
}

/* Button: same as the site's form buttons (navy, gold on hover) */
.slc-sf .slc-sf__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 52px;
	margin: 22px 0 0;
	padding: 13px 20px;
	border: 2px solid var(--sf-navy);
	border-radius: 6px;
	background: var(--sf-navy);
	color: #fff;
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
	box-shadow: none;
	transition: background-color .2s, border-color .2s, color .2s;
}
.slc-sf .slc-sf__btn:hover { border-color: var(--sf-gold); background: var(--sf-gold); color: var(--sf-navy); }
.slc-sf .slc-sf__btn:focus { outline: none; }
.slc-sf .slc-sf__btn:focus-visible { box-shadow: var(--sf-ring); }
.slc-sf .slc-sf__btn .slc-sf__ic { width: 18px; height: 18px; }
.slc-sf .slc-sf__btn.is-loading { opacity: .8; cursor: wait; }
.slc-sf .slc-sf__btn.is-loading .slc-sf__ic { display: none; }
.slc-sf .slc-sf__btn.is-loading::after { content: ""; width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: slc-sf-spin .8s linear infinite; }
@keyframes slc-sf-spin { to { transform: rotate(360deg); } }

.slc-sf .slc-sf__fine {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px;
	margin: 14px 0 0;
	color: var(--sf-mute);
	font-size: 13px;
	text-align: center;
}
.slc-sf .slc-sf__fine a { color: var(--sf-navy); }

/* After sending */
.slc-sf__done { padding: 6px 0 2px; text-align: center; outline: none; }
.slc-sf__okicon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	margin: 4px 0 14px;
	border-radius: 50%;
	background: var(--sf-green-l);
	color: var(--sf-green);
}
.slc-sf__okicon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.slc-sf .slc-sf__done h3 { margin: 0 0 10px; color: var(--sf-navy); font-family: Georgia, "Times New Roman", serif; font-size: 26px; font-weight: 700; line-height: 1.25; }
.slc-sf .slc-sf__done p { max-width: 500px; margin: 0 auto 12px; }
.slc-sf .slc-sf__next { padding: 12px 16px; border-left: 3px solid var(--sf-gold); border-radius: 0 8px 8px 0; background: var(--sf-cream); text-align: left; }
.slc-sf .slc-sf__muted { color: var(--sf-mute); font-size: 14px; }
.slc-sf .slc-sf__done a { color: var(--sf-navy); font-weight: 700; }

@media (max-width: 600px) {
	.slc-sf { padding: 24px 18px; }
	.slc-sf__grid { grid-template-columns: 1fr; }
	.slc-sf .slc-sf__choice-list { grid-template-columns: 1fr; gap: 8px; }
	.slc-sf .slc-sf__choice { padding: 11px 13px !important; }
}
