.niomah-contact {
	background: var(--wp--preset--color--warm-white, #faf8f5);
	color: var(--wp--preset--color--ink, #272522);
	padding: clamp(2.5rem, 6vw, 6rem) clamp(1rem, 4vw, 4rem);
}

.niomah-contact > .wp-block-post-content {
	max-width: min(100%, 62rem);
}

.niomah-contact .niomah-contact-intro {
	max-width: 52rem;
	text-align: center;
}

.niomah-contact-intro p {
	max-width: 41rem;
	margin-inline: auto;
}

.niomah-contact-intro h1 {
	font-size: clamp(2.8rem, 6vw, 5.5rem);
	line-height: 1;
	text-wrap: balance;
}

.niomah-contact :is(.niomah-contact-main, .niomah-contact-quick) {
	margin-block-start: clamp(2.5rem, 5vw, 5.5rem);
	padding-block-start: clamp(1.5rem, 4vw, 3rem);
	border-block-start: 1px solid #d9d4cf;
}

.niomah-contact-main {
	gap: clamp(1.75rem, 5vw, 5rem);
}

.niomah-contact-main .wp-block-column {
	min-width: 0;
}

.niomah-contact h2 {
	font-size: clamp(2rem, 4vw, 3.3rem);
	line-height: 1.08;
}

.niomah-contact-details section + section {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid #d9d4cf;
}

.niomah-contact-details :is(h3, p) {
	margin-block: 0 .3rem;
	overflow-wrap: anywhere;
}

.niomah-contact-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.niomah-contact-field:nth-last-child(-n+2) {
	grid-column: 1 / -1;
}

.niomah-contact-field label {
	display: block;
	margin-bottom: .35rem;
	font-weight: 600;
}

.niomah-contact-field label span,
.niomah-contact-privacy {
	font-size: .9rem;
}

.niomah-contact-field :is(input, select, textarea) {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	min-height: 46px;
	padding: .65rem .75rem;
	border: 1px solid #aaa39c;
	border-radius: 0;
	background: #fff;
	color: inherit;
	font: inherit;
}

.niomah-contact-field textarea {
	resize: vertical;
}

.niomah-contact-form button {
	margin-top: 1rem;
	min-height: 46px;
	cursor: pointer;
}

.niomah-contact :is(a, button, input, select, textarea):focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.niomah-contact [aria-invalid="true"] {
	border-color: #8a3835;
}

.niomah-contact-error {
	margin-block: .35rem 0;
	color: #822e2b;
}

.niomah-contact-notice {
	margin-bottom: 1rem;
	padding: .9rem 1rem;
	border: 1px solid #a49a90;
	background: #fff;
}

.niomah-contact-notice :last-child {
	margin-bottom: 0;
}

.niomah-contact #niomah-contact-result {
	scroll-margin-block-start: 1rem;
}

.niomah-contact-quick .wp-block-column {
	min-width: 0;
	padding: 1rem;
	border: 1px solid #d9d4cf;
}

.niomah-contact-quick h3 {
	margin-block: 0;
	font-size: clamp(1.35rem, 2.1vw, 1.9rem);
}

.niomah-contact-quick h3 a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
}

.niomah-contact-quick h3 a::after {
	content: '';
	flex: 0 0 .38em;
	width: .38em;
	height: .38em;
	margin-inline-start: .5em;
	border-inline-end: 1px solid currentColor;
	border-block-start: 1px solid currentColor;
	transform: rotate(45deg);
}

.niomah-contact-quick .wp-block-column p {
	margin-block: .4rem 0;
}

@media (max-width: 560px) {
	.niomah-contact-fields { grid-template-columns: minmax(0, 1fr); }
	.niomah-contact-form button { width: 100%; }
}
