/* SkyFarmers call-back form. Everything is scoped under .sfcb so theme styles don't leak in or out. */

.sfcb {
	--sfcb-green: #0b4d1a;
	--sfcb-green-hover: #083a13;
	--sfcb-green-tint: #eef5ec;
	--sfcb-yellow: #e8c32e;
	--sfcb-text: #1d2a1f;
	--sfcb-muted: #6b776d;
	--sfcb-border: #d9dfd7;
	--sfcb-error: #c0392b;
	--sfcb-radius: 8px;

	max-width: 780px;
	margin: 0 auto;
	color: var(--sfcb-text);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.4;
}

.sfcb *,
.sfcb *::before,
.sfcb *::after {
	box-sizing: border-box;
}

.sfcb svg {
	display: block;
	width: 100%;
	height: 100%;
}

/* ---- Layout ---- */

/* auto-fit wraps on the form's own width, so it also works inside narrow page-builder columns. */
.sfcb-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 0 24px;
}

.sfcb-field {
	margin: 0 0 22px;
}

.sfcb-label {
	display: block;
	margin: 0 0 10px;
	padding: 0;
	font-size: 16px;
	font-weight: 600;
	color: var(--sfcb-text);
}

.sfcb-req {
	color: var(--sfcb-error);
}

/* ---- Text inputs with icons ---- */

.sfcb-input {
	position: relative;
}

.sfcb-input-icon {
	position: absolute;
	top: 50%;
	left: 16px;
	width: 22px;
	height: 22px;
	transform: translateY(-50%);
	color: var(--sfcb-muted);
	pointer-events: none;
}

.sfcb .sfcb-input input,
.sfcb .sfcb-select select {
	display: block;
	width: 100%;
	height: 56px;
	margin: 0;
	padding: 0 16px 0 52px;
	border: 1px solid var(--sfcb-border);
	border-radius: var(--sfcb-radius);
	background: #fff;
	box-shadow: none;
	color: var(--sfcb-text);
	font: inherit;
	font-size: 16px; /* 16px stops iOS zooming in on focus. */
	transition: border-color 0.15s, box-shadow 0.15s;
}

.sfcb .sfcb-input input::placeholder {
	color: #9aa49c;
	opacity: 1;
}

.sfcb .sfcb-input input:focus,
.sfcb .sfcb-select select:focus {
	border-color: var(--sfcb-green);
	outline: none;
	box-shadow: 0 0 0 3px rgba(11, 77, 26, 0.15);
}

/* ---- Dropdown ---- */

.sfcb-select {
	position: relative;
}

.sfcb .sfcb-select select {
	padding: 0 48px 0 20px;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}

.sfcb .sfcb-select select:invalid,
.sfcb .sfcb-select select.is-empty {
	color: #6f7a71;
}

.sfcb-select-icon {
	position: absolute;
	top: 50%;
	right: 18px;
	width: 20px;
	height: 20px;
	transform: translateY(-50%);
	color: var(--sfcb-text);
	pointer-events: none;
}

/* ---- Errors ---- */

.sfcb-field.has-error input,
.sfcb-field.has-error select {
	border-color: var(--sfcb-error);
}

.sfcb-error {
	margin: 6px 0 0;
	color: var(--sfcb-error);
	font-size: 14px;
}

.sfcb-error[hidden] {
	display: none;
}

.sfcb-alert {
	margin: 0 0 20px;
	padding: 12px 16px;
	border-left: 4px solid var(--sfcb-error);
	border-radius: 4px;
	background: #fdf0ee;
	color: #7d2418;
}

/* ---- Interest cards ---- */

.sfcb-interests {
	margin: 4px 0 26px;
	padding: 0;
	border: 0;
	min-width: 0;
}

.sfcb-interests .sfcb-label {
	font-weight: 400;
	margin-bottom: 18px;
}

.sfcb-interests .sfcb-label strong {
	font-weight: 600;
}

.sfcb-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 10px;
}

.sfcb-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 22px 8px 18px;
	border: 1px solid var(--sfcb-border);
	border-radius: var(--sfcb-radius);
	background: #fff;
	text-align: center;
	cursor: pointer;
	transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}

.sfcb-card:hover {
	border-color: #a9bba5;
}

.sfcb-card-icon {
	width: 52px;
	height: 52px;
	color: var(--sfcb-green);
}

.sfcb-card-icon .sfcb-accent {
	fill: var(--sfcb-yellow);
}

.sfcb-card-icon .sfcb-accent-stroke {
	stroke: var(--sfcb-yellow);
}

.sfcb-card-label {
	flex: 1;
	display: flex;
	align-items: center;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--sfcb-text);
}

/* The real checkbox stays in the page for keyboard and screen-reader use, but is visually hidden. */
.sfcb-card input[type="checkbox"] {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	border: 0;
	white-space: nowrap;
}

.sfcb-check {
	position: relative;
	width: 24px;
	height: 24px;
	border: 1.5px solid #8fa592;
	border-radius: 4px;
	background: #fff;
	transition: background-color 0.15s, border-color 0.15s;
}

.sfcb-check::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 7px;
	width: 6px;
	height: 12px;
	border: solid #fff;
	border-width: 0 2.5px 2.5px 0;
	transform: rotate(45deg);
	opacity: 0;
}

.sfcb-card.is-checked,
.sfcb-card:has(input:checked) {
	border-color: var(--sfcb-green);
	background: var(--sfcb-green-tint);
	box-shadow: 0 0 0 1px var(--sfcb-green);
}

.sfcb-card.is-checked .sfcb-check,
.sfcb-card input:checked + .sfcb-check {
	border-color: var(--sfcb-green);
	background: var(--sfcb-green);
}

.sfcb-card.is-checked .sfcb-check::after,
.sfcb-card input:checked + .sfcb-check::after {
	opacity: 1;
}

.sfcb-card input:focus-visible + .sfcb-check {
	outline: 3px solid rgba(11, 77, 26, 0.35);
	outline-offset: 2px;
}

/* ---- Submit ---- */

.sfcb .sfcb-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	width: 100%;
	min-height: 64px;
	margin: 0;
	padding: 14px 24px;
	border: 0;
	border-radius: var(--sfcb-radius);
	background: var(--sfcb-green);
	box-shadow: none;
	color: #fff;
	font: inherit;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.15s;
}

.sfcb .sfcb-submit:hover,
.sfcb .sfcb-submit:focus-visible {
	background: var(--sfcb-green-hover);
	color: #fff;
}

.sfcb .sfcb-submit:focus-visible {
	outline: 3px solid rgba(11, 77, 26, 0.35);
	outline-offset: 2px;
}

.sfcb .sfcb-submit[disabled] {
	opacity: 0.7;
	cursor: wait;
}

.sfcb-submit-arrow {
	width: 26px;
	height: 26px;
	color: var(--sfcb-yellow);
}

/* ---- Privacy note ---- */

.sfcb-privacy {
	display: flex;
	align-items: flex-start;
	gap: 18px;
	margin: 22px 0 0;
	padding: 0 12px;
	color: #3d4a3f;
	font-size: 15px;
	line-height: 1.6;
}

.sfcb-privacy-icon {
	flex: 0 0 26px;
	width: 26px;
	height: 26px;
	margin-top: 4px;
	color: var(--sfcb-green);
}

/* ---- Honeypot and thank-you ---- */

.sfcb-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.sfcb-thanks {
	padding: 24px;
	border-left: 4px solid var(--sfcb-green);
	border-radius: 4px;
	background: var(--sfcb-green-tint);
	font-size: 18px;
}

/* ---- Responsive ---- */

@media (max-width: 560px) {
	.sfcb .sfcb-submit {
		font-size: 18px;
	}

	.sfcb-privacy {
		padding: 0;
	}
}
