/* CodeJack Forms — front end
   Minimal, light, sharp. Hairline rules, mono micro-labels, zero radius.
   Selectors are deliberately specific and a few properties are forced,
   because Kadence/Elementor restyle inputs aggressively. */

.nf-wrap {
	--nf-ink: #0b0b0c;
	--nf-paper: #ffffff;
	--nf-rule: #dcdcd8;
	--nf-rule-strong: #0b0b0c;
	--nf-muted: #6b6b70;
	--nf-field: #ffffff;
	--nf-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
	--nf-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

	box-sizing: border-box;
	max-width: 780px;
	margin: 0 auto;
	color: var(--nf-ink);
	font-family: var(--nf-sans);
	text-align: left;
}

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

.nf-title {
	margin: 0 0 8px;
	font-size: 30px;
	line-height: 1.15;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: var(--nf-ink);
}

.nf-desc {
	margin: 0 0 30px;
	max-width: 52ch;
	font-size: 15px;
	line-height: 1.6;
	color: var(--nf-muted);
}

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

.nf-field {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.nf-full {
	grid-column: 1 / -1;
}

.nf-wrap [hidden] {
	display: none !important;
}

.nf-label {
	display: block;
	margin: 0 0 8px;
	font-family: var(--nf-mono);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--nf-muted);
	transition: color 0.18s ease;
}

.nf-req {
	margin-left: 3px;
	color: var(--nf-accent);
}

.nf-wrap .nf-field input,
.nf-wrap .nf-field textarea {
	width: 100%;
	margin: 0;
	padding: 13px 14px;
	font-family: var(--nf-sans);
	font-size: 15px;
	line-height: 1.5;
	color: var(--nf-ink);
	background: var(--nf-field) !important;
	border: 1px solid var(--nf-rule);
	border-radius: 0 !important;
	box-shadow: none !important;
	outline: none;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
	-webkit-appearance: none;
	appearance: none;
}

.nf-wrap .nf-field textarea {
	resize: vertical;
	min-height: 132px;
}

.nf-wrap .nf-field input::placeholder,
.nf-wrap .nf-field textarea::placeholder {
	color: #a8a8a5;
}

.nf-wrap .nf-field input:focus,
.nf-wrap .nf-field textarea:focus {
	border-color: var(--nf-ink);
	box-shadow: inset 0 -2px 0 0 var(--nf-accent) !important;
}

.nf-field:focus-within .nf-label {
	color: var(--nf-ink);
}

.nf-field.has-error input,
.nf-field.has-error textarea {
	border-color: #c62828;
}

.nf-error {
	display: none;
	margin-top: 6px;
	font-size: 12px;
	line-height: 1.4;
	color: #c62828;
}

.nf-field.has-error .nf-error {
	display: block;
}

/* Honeypot */
.nf-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Button */
.nf-actions {
	margin-top: 28px;
}

.nf-wrap .nf-submit {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 15px 34px;
	font-family: var(--nf-mono);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #fff;
	background: var(--nf-ink);
	border: 1px solid var(--nf-ink);
	border-radius: 0 !important;
	cursor: pointer;
	overflow: hidden;
	transition: color 0.2s ease, border-color 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.nf-wrap .nf-submit::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--nf-accent);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.34s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 0;
}

.nf-wrap .nf-submit:hover::before,
.nf-wrap .nf-submit:focus-visible::before {
	transform: scaleX(1);
}

.nf-wrap .nf-submit:hover,
.nf-wrap .nf-submit:focus-visible {
	border-color: var(--nf-accent);
}

.nf-submit-label,
.nf-spinner {
	position: relative;
	z-index: 1;
}

.nf-submit:focus-visible {
	outline: 2px solid var(--nf-accent);
	outline-offset: 3px;
}

.nf-spinner {
	display: none;
	width: 12px;
	height: 12px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: nf-spin 0.7s linear infinite;
}

.nf-form.is-sending .nf-spinner {
	display: inline-block;
}

.nf-form.is-sending .nf-submit {
	pointer-events: none;
	opacity: 0.75;
}

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

/* Feedback */
.nf-feedback {
	display: none;
	margin-top: 22px;
	padding: 15px 18px;
	font-size: 14px;
	line-height: 1.55;
	border-left: 2px solid var(--nf-accent);
	background: #f7f7f5;
}

.nf-feedback.is-visible {
	display: block;
}

.nf-feedback.is-error {
	border-left-color: #c62828;
	color: #8c1d1d;
}

/* ---------- Layout 1: Bordered Grid (default) ---------- */

.nf-layout-sharp {
	padding: 44px 40px;
	background: var(--nf-paper);
	border: 1px solid var(--nf-rule);
	border-top: 2px solid var(--nf-rule-strong);
}

.nf-layout-sharp .nf-aside {
	display: none;
}

/* ---------- Layout 2: Underline Editorial ---------- */

.nf-layout-editorial .nf-aside {
	display: none;
}

.nf-layout-editorial .nf-title {
	font-size: 40px;
	letter-spacing: -0.03em;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--nf-rule);
}

.nf-layout-editorial .nf-desc {
	margin-top: 16px;
	margin-bottom: 40px;
}

.nf-layout-editorial .nf-grid {
	gap: 34px 40px;
}

.nf-layout-editorial .nf-field input,
.nf-layout-editorial .nf-field textarea {
	padding: 6px 0 11px;
	font-size: 17px;
	border: 0;
	border-bottom: 1px solid var(--nf-rule);
	background: transparent !important;
}

.nf-layout-editorial .nf-field input:focus,
.nf-layout-editorial .nf-field textarea:focus {
	border-bottom-color: var(--nf-accent);
	border-bottom-width: 2px;
	box-shadow: none !important;
	padding-bottom: 10px;
}

.nf-layout-editorial .nf-field textarea {
	min-height: 96px;
}

.nf-layout-editorial .nf-actions {
	margin-top: 44px;
	padding-top: 28px;
	border-top: 1px solid var(--nf-rule);
}

/* ---------- Layout 3: Split Panel ---------- */

.nf-layout-split {
	display: grid;
	grid-template-columns: 0.78fr 1fr;
	max-width: 1000px;
	border: 1px solid var(--nf-rule);
}

.nf-layout-split .nf-aside {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 44px 36px;
	background: var(--nf-ink);
	color: #fff;
	overflow: hidden;
}

.nf-aside-title {
	margin: 0 0 14px;
	font-size: 32px;
	line-height: 1.12;
	font-weight: 600;
	letter-spacing: -0.025em;
	color: #fff;
}

.nf-aside-text {
	margin: 0;
	max-width: 34ch;
	font-size: 14px;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.66);
}

/* Signature: a single accent rule anchored to the panel's top-left corner. */
.nf-aside-mark {
	position: absolute;
	top: 36px;
	left: 36px;
	width: 46px;
	height: 2px;
	background: var(--nf-accent);
}

.nf-layout-split .nf-main {
	padding: 44px 40px;
	background: var(--nf-paper);
}

.nf-layout-split .nf-title,
.nf-layout-split .nf-desc {
	display: none;
}

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

@media (max-width: 880px) {
	.nf-layout-split {
		grid-template-columns: 1fr;
	}

	.nf-layout-split .nf-aside {
		justify-content: flex-start;
		padding: 60px 28px 34px;
	}

	.nf-aside-mark {
		top: 28px;
		left: 28px;
	}
}

@media (max-width: 600px) {
	.nf-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.nf-layout-sharp,
	.nf-layout-split .nf-main {
		padding: 30px 22px;
	}

	.nf-layout-editorial .nf-title {
		font-size: 29px;
	}

	.nf-title {
		font-size: 25px;
	}

	.nf-wrap .nf-submit {
		width: 100%;
		justify-content: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nf-wrap .nf-submit::before,
	.nf-wrap .nf-field input,
	.nf-wrap .nf-field textarea {
		transition: none;
	}

	.nf-spinner {
		animation-duration: 2s;
	}
}
