/* Applied only on pages that contain [himwebx_contact]. */
body.hwx-contact-page {
	overflow-x: clip;
}

body.hwx-contact-page .entry-header,
body.hwx-contact-page .page-header,
body.hwx-contact-page .wp-block-post-title,
body.hwx-contact-page .entry-title,
body.hwx-contact-page .page-title,
body.hwx-contact-page .elementor-widget-theme-post-title {
	display: none !important;
}

body.hwx-contact-page .hwx-contact {
	position: relative;
	width: 100vw;
	max-width: none;
	margin-inline: calc(50% - 50vw);
	overflow: visible;
}

.hwx-contact__enquiry-aside {
	align-self: start;
}

.hwx-contact [hidden] {
	display: none !important;
}

.hwx-contact__hero h1,
.hwx-contact__enquiry h2,
.hwx-contact__success h2,
.hwx-contact__step legend {
	line-height: 1.02;
	padding-block: 0.025em 0.07em;
	word-break: normal;
	overflow-wrap: break-word;
}

.hwx-contact__hero h1 {
	font-size: clamp(3.4rem, 7.5vw, 7.5rem);
	margin: 26px 0 28px;
}

.hwx-contact__hero-foot > p,
.hwx-contact__choice > span:not(.hwx-contact__choice-number),
.hwx-contact__controls button {
	min-width: 0;
	max-width: 100%;
	overflow-wrap: anywhere;
}

.hwx-contact__choice > span:not(.hwx-contact__choice-number) {
	flex: 1 1 auto;
}

.hwx-contact__controls button {
	line-height: 1.3;
	white-space: normal;
}

@media (max-width: 560px) {
	.hwx-contact__hero h1 {
		font-size: clamp(2.7rem, 12.8vw, 4rem);
		line-height: 1.04;
		margin: 18px 0 20px;
	}

	.hwx-contact__hero-foot > p {
		max-width: 100%;
	}

	.hwx-contact__hero-cta {
		margin-top: 16px;
	}

	.hwx-contact__hero-index {
		bottom: 16px;
	}
}

@media (min-width: 561px) and (max-width: 850px) {
	.hwx-contact__hero h1 {
		font-size: clamp(3rem, 7.6vw, 4.5rem);
		margin: 22px 0 24px;
	}

	.hwx-contact__hero-foot {
		gap: 18px;
	}

	.hwx-contact__hero-foot > p {
		flex: 1 1 260px;
	}
}
