.jkf,
.jkf * {
	box-sizing: border-box;
}

.jkf {
	--jkf-surface: var(--jkf-light-surface, #fbfaf7);
	--jkf-text: var(--jkf-light-text, #181a17);
	--jkf-border: var(--jkf-light-border, #d6d1c8);
	--jkf-input: #fefefd;
	--jkf-placeholder: #6a6862;
	--jkf-muted: #5f615c;
	--jkf-error: #9d2020;
	width: min(100%, var(--jkf-max-width, 760px));
	margin-inline: auto;
	padding: 52px 58px 56px;
	border: 1px solid var(--jkf-border);
	border-color: color-mix(in srgb, var(--jkf-border) 72%, transparent);
	border-top: 3px solid var(--jkf-secondary, #3f5d2e);
	border-radius: var(--jkf-radius, 4px);
	background: var(--jkf-surface);
	color: var(--jkf-text);
	font-family: var(--jkf-font-family, inherit);
	font-size: 16px;
	line-height: 1.5;
}

.jkf label,
.jkf input,
.jkf select,
.jkf textarea,
.jkf button {
	font-family: inherit;
}

.jkf[data-theme="dark"] {
	--jkf-surface: #1d1f1c;
	--jkf-text: #f2f1ec;
	--jkf-border: #62655e;
	--jkf-input: #292c28;
	--jkf-placeholder: #b8bab4;
	--jkf-muted: #c4c6c0;
	--jkf-error: #ffaaaa;
	--jkf-secondary: #b8cc9c;
}

.jkf [hidden] {
	display: none !important;
}

.jkf__form {
	display: grid;
	gap: 24px;
}

.jkf__row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px;
}

.jkf__field {
	display: grid;
	gap: 9px;
	min-width: 0;
}

.jkf label {
	display: inline-block;
	color: var(--jkf-text);
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.4;
}

.jkf__required {
	color: var(--jkf-primary, #a84f18);
}

.jkf input[type="text"],
.jkf input[type="email"],
.jkf input[type="tel"],
.jkf select,
.jkf textarea {
	display: block;
	width: 100%;
	margin: 0;
	border: 1px solid var(--jkf-border);
	border-radius: var(--jkf-radius, 4px);
	background: var(--jkf-input);
	box-shadow: none;
	color: var(--jkf-text);
	font: inherit;
	font-size: 16px;
	line-height: 1.45;
	transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.jkf input[type="text"],
.jkf input[type="email"],
.jkf input[type="tel"],
.jkf select {
	min-height: 56px;
	padding: 13px 16px;
}

.jkf select {
	cursor: pointer;
}

.jkf textarea {
	min-height: 152px;
	padding: 15px 16px;
	resize: vertical;
}

.jkf input::placeholder,
.jkf textarea::placeholder {
	color: var(--jkf-placeholder);
	opacity: 1;
}

.jkf input:focus-visible,
.jkf select:focus-visible,
.jkf textarea:focus-visible,
.jkf input[type="checkbox"]:focus-visible,
.jkf__submit:focus-visible,
.jkf a:focus-visible {
	outline: 3px solid var(--jkf-secondary, #3f5d2e);
	outline-offset: 3px;
}

.jkf [aria-invalid="true"] {
	border-color: var(--jkf-error) !important;
}

.jkf__field-error {
	min-height: 0;
	color: var(--jkf-error);
	font-size: 14px;
	font-weight: 600;
}

.jkf__field-error:empty {
	display: none;
}

.jkf__error-summary {
	padding: 13px 15px;
	border-left: 4px solid var(--jkf-error);
	background: var(--jkf-surface);
	background: color-mix(in srgb, var(--jkf-error) 9%, var(--jkf-surface));
	color: var(--jkf-text);
	font-weight: 650;
}

.jkf__consent {
	display: grid;
	grid-template-columns: 20px minmax(0, 1fr);
	gap: 12px;
	align-items: start;
	margin-top: 5px;
	padding-top: 24px;
	border-top: 1px solid var(--jkf-border);
}

.jkf__consent input[type="checkbox"] {
	width: 19px;
	height: 19px;
	margin: 2px 0 0;
	accent-color: var(--jkf-secondary, #3f5d2e);
	cursor: pointer;
}

.jkf__consent label {
	font-size: 14px;
	font-weight: 500;
}

.jkf a {
	color: var(--jkf-secondary, #3f5d2e);
	font-weight: 700;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.jkf__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	width: 100%;
	min-height: 59px;
	margin: 0;
	padding: 15px 22px;
	border: 0;
	border-radius: var(--jkf-radius, 4px);
	background: var(--jkf-primary, #a84f18);
	box-shadow: none;
	color: #fffdf9;
	cursor: pointer;
	font: inherit;
	font-size: 16px;
	font-weight: 750;
	line-height: 1.2;
	text-align: center;
	white-space: nowrap;
	transition: filter 160ms ease, transform 120ms ease;
}

.jkf__submit:hover {
	filter: brightness(0.88);
}

.jkf__submit:active {
	transform: translateY(1px);
}

.jkf__submit:disabled {
	cursor: wait;
	filter: saturate(0.55);
	opacity: 0.78;
}

.jkf__arrow {
	font-size: 20px;
	font-weight: 500;
	line-height: 1;
}

.jkf__success {
	padding: 38px 4px 28px;
	text-align: left;
}

.jkf__success h2 {
	margin: 0 0 14px;
	color: var(--jkf-text);
	font: inherit;
	font-size: clamp(28px, 5vw, 40px);
	font-weight: 780;
	line-height: 1.1;
}

.jkf__success p {
	max-width: 58ch;
	margin: 0;
	color: var(--jkf-muted);
	font-size: 17px;
	line-height: 1.65;
}

.jkf__honeypot {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.jkf-confirm-page {
	display: grid;
	min-height: 100dvh;
	margin: 0;
	padding: 24px;
	place-items: center;
	background: #f1f0eb;
	color: #181a17;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.jkf-confirm {
	width: min(100%, 620px);
	padding: clamp(32px, 7vw, 58px);
	border: 1px solid #d6d1c8;
	border-top: 3px solid #3f5d2e;
	border-radius: 6px;
	background: #fbfaf7;
}

.jkf-confirm h1 {
	margin: 0 0 18px;
	font-size: clamp(30px, 6vw, 44px);
	line-height: 1.08;
}

.jkf-confirm p {
	margin: 0 0 28px;
	color: #53564f;
	font-size: 17px;
	line-height: 1.65;
}

.jkf-confirm__button {
	width: 100%;
	min-height: 56px;
	padding: 14px 20px;
	border: 0;
	border-radius: 4px;
	background: #a84f18;
	color: #fffdf9;
	cursor: pointer;
	font: inherit;
	font-weight: 750;
}

.jkf-confirm__button:hover {
	filter: brightness(0.88);
}

.jkf-confirm__button:focus-visible,
.jkf-confirm__home:focus-visible {
	outline: 3px solid #3f5d2e;
	outline-offset: 3px;
}

.jkf-confirm__home {
	display: inline-block;
	margin-top: 24px;
	color: #3f5d2e;
	font-weight: 700;
	text-underline-offset: 3px;
}

@media (prefers-color-scheme: dark) {
	.jkf[data-theme="auto"] {
		--jkf-surface: #1d1f1c;
		--jkf-text: #f2f1ec;
		--jkf-border: #62655e;
		--jkf-input: #292c28;
		--jkf-placeholder: #b8bab4;
		--jkf-muted: #c4c6c0;
		--jkf-error: #ffaaaa;
		--jkf-secondary: #b8cc9c;
	}

	.jkf-confirm-page {
		background: #141613;
		color: #f2f1ec;
	}

	.jkf-confirm {
		border-color: #62655e;
		border-top-color: #b8cc9c;
		background: #1d1f1c;
	}

	.jkf-confirm p {
		color: #c4c6c0;
	}

	.jkf-confirm__home {
		color: #b8cc9c;
	}
}

@media (max-width: 680px) {
	.jkf {
		padding: 34px 22px 38px;
	}

	.jkf__form {
		gap: 21px;
	}

	.jkf__row {
		grid-template-columns: minmax(0, 1fr);
		gap: 21px;
	}

	.jkf__submit {
		white-space: normal;
	}
}

@media (prefers-reduced-motion: reduce) {
	.jkf *,
	.jkf *::before,
	.jkf *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
