/* NextHouse Strona: formularz kontaktowy */
.nhf {
	--nhf-bg: transparent;
	--nhf-ink: #ffffff;
	--nhf-muted: rgba(255, 255, 255, .62);
	--nhf-faint: rgba(255, 255, 255, .22);
	--nhf-gold: #9a7c4f;
	--nhf-gold-l: #c5b89a;
	--nhf-err: #e8a29a;
	--nhf-field: rgba(255, 255, 255, .03);
	font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	color: var(--nhf-ink);
	background: var(--nhf-bg);
	max-width: 760px;
}
.nhf--light {
	--nhf-ink: #1a1109;
	--nhf-muted: #6f6253;
	--nhf-faint: #d9cfbd;
	--nhf-err: #a5352a;
	--nhf-field: #faf9f6;
}
.nhf *, .nhf *::before, .nhf *::after { box-sizing: border-box; }
.nhf [hidden] { display: none !important; }

.nhf .nhf-title {
	margin: 0 0 12px;
	font-family: 'DM Serif Display', Georgia, serif;
	font-size: clamp(30px, 3.6vw, 44px);
	font-weight: 400;
	line-height: 1.08;
	letter-spacing: 0;
	text-transform: none;
	color: var(--nhf-ink);
}
.nhf .nhf-lead {
	margin: 0 0 34px;
	max-width: 520px;
	font-size: 15px;
	font-weight: 300;
	line-height: 1.65;
	color: var(--nhf-muted);
	text-wrap: pretty;
}
.nhf .nhf-lead a { color: var(--nhf-gold-l); }

.nhf .nhf-label {
	display: block;
	margin: 0 0 10px;
	padding: 0;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: .02em;
	color: var(--nhf-gold-l);
}
.nhf--light .nhf-label { color: var(--nhf-gold); }
.nhf .nhf-label span { color: var(--nhf-gold); }

/* Temat: wybór jednym kliknięciem */
.nhf .nhf-topics { margin: 0 0 34px; padding: 0; border: 0; min-width: 0; }
.nhf .nhf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.nhf .nhf-chip { position: relative; margin: 0; cursor: pointer; }
.nhf .nhf-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.nhf .nhf-chip span {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 9px 16px;
	border: 1px solid var(--nhf-faint);
	border-radius: 0;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.2;
	color: var(--nhf-ink);
	transition: border-color .18s, background-color .18s, color .18s;
}
.nhf .nhf-chip:hover span { border-color: var(--nhf-gold); }
.nhf .nhf-chip input:checked + span { background: var(--nhf-gold); border-color: var(--nhf-gold); color: #fff; }
.nhf .nhf-chip input:focus-visible + span { outline: 2px solid var(--nhf-gold-l); outline-offset: 2px; }

/* Pola */
.nhf .nhf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 32px; margin-bottom: 30px; }
.nhf .nhf-field { min-width: 0; }
.nhf .nhf-field--full { grid-column: 1 / -1; }
.nhf .nhf-input {
	display: block;
	width: 100%;
	margin: 0;
	padding: 12px 14px;
	background: var(--nhf-field);
	border: 0;
	border-bottom: 1px solid var(--nhf-faint);
	border-radius: 0;
	box-shadow: none;
	font: inherit;
	font-size: 16px;
	font-weight: 300;
	line-height: 1.4;
	color: var(--nhf-ink);
	transition: border-color .18s, background-color .18s;
	-webkit-appearance: none;
	appearance: none;
}
.nhf .nhf-input:hover { border-bottom-color: var(--nhf-gold-l); }
.nhf .nhf-input:focus { outline: none; border-bottom-color: var(--nhf-gold); background: rgba(154, 124, 79, .08); }
.nhf .nhf-textarea { min-height: 120px; resize: vertical; }
.nhf .nhf-field.is-error .nhf-input { border-bottom-color: var(--nhf-err); }
.nhf .nhf-err { display: block; margin-top: 7px; font-size: 13px; color: var(--nhf-err); }

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

/* Zgoda */
.nhf .nhf-consent { position: relative; display: flex; gap: 14px; align-items: flex-start; margin: 0 0 24px; cursor: pointer; }
.nhf .nhf-consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.nhf .nhf-box {
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	margin-top: 1px;
	border: 1px solid var(--nhf-gold-l);
	position: relative;
	transition: background-color .15s, border-color .15s;
}
.nhf .nhf-consent input:checked + .nhf-box { background: var(--nhf-gold); border-color: var(--nhf-gold); }
.nhf .nhf-consent input:checked + .nhf-box::after {
	content: "";
	position: absolute;
	left: 6px;
	top: 2px;
	width: 6px;
	height: 11px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
.nhf .nhf-consent input:focus-visible + .nhf-box { outline: 2px solid var(--nhf-gold-l); outline-offset: 2px; }
.nhf .nhf-consent.is-error .nhf-box { border-color: var(--nhf-err); }
.nhf .nhf-consent-text { font-size: 13px; font-weight: 300; line-height: 1.6; color: var(--nhf-muted); text-wrap: pretty; }
.nhf .nhf-consent-text a { color: var(--nhf-gold-l); text-decoration: underline; text-underline-offset: 2px; }
.nhf--light .nhf-consent-text a { color: var(--nhf-gold); }

.nhf .nhf-rc { margin: 0 0 24px; min-height: 78px; }
.nhf .nhf-rc.is-error iframe { outline: 1px solid var(--nhf-err); }
.nhf .nhf-rc-note { margin: 16px 0 0; font-size: 12px; color: var(--nhf-muted); }
.nhf .nhf-rc-note a { color: inherit; }

/* Wysyłka */
.nhf .nhf-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.nhf .nhf-required { margin: 0; font-size: 13px; color: var(--nhf-muted); }
.nhf .nhf-required span { color: var(--nhf-gold); }
.nhf .nhf-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 220px;
	height: 54px;
	margin: 0;
	padding: 0 36px;
	background: var(--nhf-gold);
	border: 1px solid var(--nhf-gold);
	border-radius: 0;
	box-shadow: none;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: #fff;
	cursor: pointer;
	transition: background-color .2s, border-color .2s;
}
.nhf .nhf-submit:hover { background: #7d6340; border-color: #7d6340; color: #fff; }
.nhf .nhf-submit:focus-visible { outline: 2px solid var(--nhf-gold-l); outline-offset: 3px; }
.nhf .nhf-submit[disabled] { opacity: .6; cursor: progress; }
.nhf .nhf-status { margin: 16px 0 0; font-size: 14px; color: var(--nhf-err); min-height: 1px; }
.nhf .nhf-status:empty { display: none; }

/* Po wysłaniu */
.nhf .nhf-done { padding: 12px 0; outline: none; }
.nhf .nhf-done-mark {
	width: 56px;
	height: 56px;
	margin: 0 0 24px;
	border: 1px solid var(--nhf-gold);
	position: relative;
}
.nhf .nhf-done-mark::after {
	content: "";
	position: absolute;
	left: 20px;
	top: 13px;
	width: 12px;
	height: 22px;
	border: solid var(--nhf-gold);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
.nhf .nhf-done .nhf-lead { margin-bottom: 0; }

@media (max-width: 600px) {
	.nhf .nhf-grid { grid-template-columns: 1fr; gap: 22px; }
	.nhf .nhf-chip span { min-height: 38px; padding: 8px 13px; font-size: 13.5px; }
	.nhf .nhf-foot { flex-direction: column-reverse; align-items: stretch; }
	.nhf .nhf-submit { width: 100%; min-width: 0; padding: 0 16px; letter-spacing: .1em; white-space: nowrap; }
	.nhf .nhf-required { text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
	.nhf * { transition: none !important; }
}
