/* WeknowHomes Forms 1.0: branded request forms. Uses the theme's colors and fonts. */
.wkhf {
	--wkhf-navy: var(--color-navy, #000099);
	--wkhf-red: var(--color-action, #990022);
	--wkhf-line: var(--color-divider, #dedede);
	--wkhf-soft: #eef0ff;
	padding: 28px;
	border-radius: var(--radius-card, 24px);
	background: var(--color-paper, #f7f7f7);
	scroll-margin-top: 24px;
}
.wkhf h2 {
	margin: 0 0 8px;
	font-family: var(--font-heading, Georgia, serif);
	font-weight: 400;
	font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem);
	color: var(--wkhf-navy);
}
.wkhf-sub a { white-space: nowrap; }
.wkhf-sub {
	margin: 0 0 20px;
	color: var(--color-muted, #555);
}
.wkhf-form {
	display: grid;
	gap: 20px;
}
.wkhf fieldset {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}
.wkhf legend {
	padding: 0;
	margin-bottom: 10px;
	font-weight: 700;
	font-size: .9375rem;
	color: var(--color-ink, #202020);
}

/* Request type picker */
.wkhf-type-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}
.wkhf-type {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	min-height: 56px;
	padding: 10px 12px;
	border: 1px solid var(--wkhf-line);
	border-radius: var(--radius-control, 10px);
	background: #fff;
	cursor: pointer;
	font-weight: 400;
	transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.wkhf-type:hover {
	border-color: var(--wkhf-navy);
}
.wkhf-type input {
	flex: 0 0 auto;
	width: 18px;
	min-height: 0;
	height: 18px;
	margin: 2px 0 0;
	padding: 0;
	accent-color: var(--wkhf-navy);
}
.wkhf-type-text {
	display: grid;
	gap: 2px;
	line-height: 1.3;
}
.wkhf-type strong {
	color: var(--wkhf-navy);
	font-size: .9375rem;
}
.wkhf-type small {
	color: var(--color-muted, #555);
	font-size: .8125rem;
}
.wkhf-type:has(input:checked) {
	border-color: var(--wkhf-navy);
	background: var(--wkhf-soft);
	box-shadow: inset 0 0 0 1px var(--wkhf-navy);
}
.wkhf-type:has(input:focus-visible) {
	outline: 3px solid var(--wkhf-navy);
	outline-offset: 2px;
}

/* Panels: only the chosen request is shown (works without JavaScript too). */
.wkhf-panel {
	display: none;
	padding: 20px !important;
	border-radius: 16px;
	background: #fff;
	border: 1px solid var(--wkhf-line) !important;
}
.wkhf-panel.wkhf-you { display: block; }
.wkhf-form:has(input[name="type"][value="general"]:checked) [data-panel="general"],
.wkhf-form:has(input[name="type"][value="rental"]:checked) [data-panel="rental"],
.wkhf-form:has(input[name="type"][value="tour"]:checked) [data-panel="tour"],
.wkhf-form:has(input[name="type"][value="list"]:checked) [data-panel="list"],
.wkhf-form:has(input[name="type"][value="management"]:checked) [data-panel="management"],
.wkhf-form:has(input[name="type"][value="valuation"]:checked) [data-panel="valuation"],
.wkhf-form:has(input[name="type"][value="development"]:checked) [data-panel="development"] {
	display: block;
}
/* Browsers without :has() and without JavaScript: show every panel. */
@supports not selector(:has(*)) {
	.wkhf-form:not(.is-js) .wkhf-panel { display: block; }
}
.wkhf-form.is-js .wkhf-panel { display: none; }
.wkhf-form.is-js .wkhf-panel.is-active,
.wkhf-form.is-js .wkhf-panel.wkhf-you { display: block; }
.wkhf-panel.is-active { animation: wkhf-in .25s ease; }
@keyframes wkhf-in { from { opacity: 0; transform: translateY(4px); } }

.wkhf-panel-title {
	float: left;
	width: 100%;
	margin: 0 0 4px !important;
	font-family: var(--font-heading, Georgia, serif);
	font-weight: 400 !important;
	font-size: 1.375rem !important;
	color: var(--wkhf-navy) !important;
}
.wkhf-panel-title + * { clear: both; }
.wkhf-intro {
	margin: 0 0 16px;
	color: var(--color-muted, #555);
	font-size: .9375rem;
	line-height: 1.55;
}
.wkhf-notice {
	margin: -4px 0 16px;
	padding: 10px 12px;
	border-left: 3px solid var(--wkhf-red);
	border-radius: 6px;
	background: #fff5f7;
	font-size: .875rem;
	line-height: 1.5;
}

/* Fields */
.wkhf-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 14px;
}
.wkhf-field {
	display: grid;
	gap: 6px;
	align-content: start;
	margin: 0;
	min-width: 0;
}
.wkhf-span { grid-column: 1 / -1; }
.wkhf-field label,
.wkhf-label {
	font-weight: 700;
	font-size: .875rem;
	color: var(--color-ink, #202020);
}
.wkhf-req { color: var(--wkhf-red); }
.wkhf input:not([type="radio"]):not([type="checkbox"]),
.wkhf select,
.wkhf textarea {
	width: 100%;
	min-height: 48px;
	padding: 10px 12px;
	border: 1px solid var(--color-control-border, #767676);
	border-radius: var(--radius-control, 10px);
	background: #fff;
	color: var(--color-ink, #202020);
	font: inherit;
	font-size: 1rem; /* 16px stops iPhone from zooming in */
}
.wkhf textarea { resize: vertical; min-height: 96px; }
.wkhf input:focus-visible,
.wkhf select:focus-visible,
.wkhf textarea:focus-visible {
	outline: 3px solid rgb(0 0 153 / 25%);
	outline-offset: 0;
	border-color: var(--wkhf-navy);
}
.wkhf [aria-invalid="true"] {
	border-color: var(--wkhf-red) !important;
	background: #fffafb !important;
}
.wkhf-error {
	color: var(--wkhf-red);
	font-size: .8125rem;
	font-weight: 700;
}
.wkhf-error:empty { display: none; }

/* Radio / checkbox chips */
.wkhf-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.wkhf-chips .wkhf-label { flex: 1 1 100%; }
.wkhf-chips label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 8px 14px;
	border: 1px solid var(--wkhf-line);
	border-radius: 999px;
	background: #fff;
	font-weight: 400;
	font-size: .9375rem;
	cursor: pointer;
}
.wkhf-chips input {
	width: 18px;
	height: 18px;
	min-height: 0;
	margin: 0;
	accent-color: var(--wkhf-navy);
}
.wkhf-chips label:has(input:checked) {
	border-color: var(--wkhf-navy);
	background: var(--wkhf-soft);
}
.wkhf-chips label:has(input:focus-visible) {
	outline: 3px solid var(--wkhf-navy);
	outline-offset: 2px;
}
.wkhf-checks label {
	flex: 1 1 100%;
	border-radius: var(--radius-control, 10px);
}

/* Send */
.wkhf-actions {
	display: grid;
	gap: 10px;
}
.wkhf-submit {
	width: 100%;
	min-height: 54px;
	font-size: 1rem;
	cursor: pointer;
	border: 0;
}
.wkhf-submit[disabled] { opacity: .7; cursor: progress; }
.wkhf-submit.is-busy span::after {
	content: "";
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-left: 10px;
	vertical-align: -2px;
	border: 2px solid rgb(255 255 255 / 40%);
	border-top-color: #fff;
	border-radius: 50%;
	animation: wkhf-spin .8s linear infinite;
}
@keyframes wkhf-spin { to { transform: rotate(360deg); } }
.wkhf-legal {
	margin: 0;
	color: var(--color-muted, #555);
	font-size: .8125rem;
	line-height: 1.5;
	text-align: center;
}
.wkhf-status:empty { display: none; }
.wkhf-status,
.wkhf-alert {
	margin: 0;
	padding: 12px 14px;
	border-radius: 10px;
	background: #fff5f7;
	color: var(--wkhf-red);
	font-weight: 700;
	font-size: .9375rem;
}
.wkhf-alert { margin-bottom: 16px; }
.wkhf-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Thank-you */
.wkhf-done {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	padding: 24px;
	border-radius: 16px;
	background: #fff;
	border: 1px solid var(--wkhf-line);
	animation: wkhf-in .3s ease;
}
.wkhf-done:focus { outline: none; }
.wkhf-done h3 {
	margin: 0 0 6px;
	font-family: var(--font-heading, Georgia, serif);
	font-weight: 400;
	font-size: 1.5rem;
	color: var(--wkhf-navy);
}
.wkhf-done p { margin: 0; color: var(--color-ink, #202020); line-height: 1.6; }
.wkhf-check {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--wkhf-navy);
	position: relative;
}
.wkhf-check::after {
	content: "";
	position: absolute;
	left: 16px;
	top: 10px;
	width: 10px;
	height: 18px;
	border: solid #fff;
	border-width: 0 3px 3px 0;
	transform: rotate(45deg);
}
.wkhf.is-sent .wkhf-form { display: none; }

/* Arriving from a "Rental application" style link: brief highlight. */
.wkhf.is-flash { animation: wkhf-flash 1.2s ease; }
@keyframes wkhf-flash {
	0% { box-shadow: 0 0 0 0 rgb(0 0 153 / 0%); }
	30% { box-shadow: 0 0 0 6px rgb(0 0 153 / 18%); }
	100% { box-shadow: 0 0 0 0 rgb(0 0 153 / 0%); }
}

@media (min-width: 768px) {
	.wkhf { padding: 32px; }
}
/* Two-column contact section on computers: the form column is narrow, keep fields comfortable. */
@media (min-width: 1024px) and (max-width: 1199px) {
	.contact-section .wkhf-type-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 599px) {
	.wkhf { padding: 20px 16px; border-radius: 18px; }
	.wkhf-panel { padding: 16px !important; }
	.wkhf-grid { grid-template-columns: 1fr; }
	.wkhf-type small { display: none; }
	.wkhf-type { min-height: 48px; align-items: center; padding: 10px; }
	.wkhf-type input { margin-top: 0; }
	.wkhf-type strong { font-size: .875rem; }
}
@media (max-width: 359px) {
	.wkhf-type-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.wkhf *, .wkhf { animation: none !important; transition: none !important; }
}
