/* Shared on-site forms: the job application form and the contact form
   render the same markup skeleton under .kkh-form. */
.kkh-form {
	margin-top: 1.5rem;
}

/* The contact form reads as a card, not a full-width band. */
.kkh-contact {
	max-width: 40rem;
	margin-left: auto;
	margin-right: auto;
}

.kkh-form-title {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: 1.125rem;
	margin: 0 0 0.875rem;
}

.kkh-form-fields {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--preset--border-radius--md);
	padding: var(--wp--preset--spacing--30);
	display: grid;
	gap: 1rem;
}

.kkh-form-field {
	margin: 0;
	display: grid;
	gap: 0.25rem;
}

.kkh-form-fields label {
	font-weight: 600;
}

.kkh-form-fields input,
.kkh-form-fields textarea {
	box-sizing: border-box;
	width: 100%;
	background: var(--wp--preset--color--background);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--preset--border-radius--sm);
	padding: 0.625rem 0.75rem;
	font: inherit;
}

/* The honeypot field is present for bots, invisible for everyone. */
.kkh-form-hp {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.kkh-form-submit {
	margin: 0;
}

.kkh-form-submit .wp-block-button__link {
	width: 100%;
}

.kkh-form-notice {
	margin: 0 0 0.875rem;
	font-weight: 600;
}

.kkh-form-notice--ok {
	color: var(--wp--preset--color--primary);
}

.kkh-form-notice--err {
	color: var(--wp--preset--color--ink);
}

/* The contact details themselves live in the global sheet: the footer
   renders them on every page, while this sheet only loads on Contact.
   Only the contact-page-specific layouts (strip, map, notes, form)
   stay here. */

/* On the contact page the details form a horizontal strip above the
   full-width map; the footer keeps its stacked list. */
.kkh-contact-strip .kkh-contact-details {
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	column-gap: 2.5rem;
	row-gap: 0.75rem;
}

.kkh-contact-strip .kkh-contact-details__line {
	align-items: center;
	text-align: left;
}

/* Map on the contact page: full width, in a frame that matches the
   card look; a lower, cinematic ratio on wide screens. */
.kkh-contact-map-frame {
	display: block;
	width: 100%;
	aspect-ratio: 21 / 9;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--preset--border-radius--md);
	background: var(--wp--preset--color--surface);
}

@media (max-width: 600px) {
	.kkh-contact-map-frame {
		aspect-ratio: 4 / 3;
	}
}

/* Info notes on the contact page: two editable groups in the page
   content, given the card look and an icon by class — the text can be
   rewritten in the block editor without touching the icon. */
.kkh-note {
	position: relative;
	padding: var(--wp--preset--spacing--30);
	padding-left: calc(var(--wp--preset--spacing--30) + 2.25rem);
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--preset--border-radius--md);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}

.kkh-note p {
	margin: 0;
}

.kkh-note::before {
	content: "";
	position: absolute;
	left: var(--wp--preset--spacing--30);
	top: calc(var(--wp--preset--spacing--30) + 0.15em);
	width: 1.25rem;
	height: 1.25rem;
	background-color: var(--wp--preset--color--primary);
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4'/%3E%3Cpath d='M12 8h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}

.kkh-note--ship::before {
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2'/%3E%3Cpath d='M15 18H9'/%3E%3Cpath d='M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.62l-3.48-4.35A1 1 0 0 0 16.52 8H14'/%3E%3Ccircle cx='17' cy='18' r='2'/%3E%3Ccircle cx='7' cy='18' r='2'/%3E%3C/svg%3E");
}