/**
 * HNS Contact / Request a Quote page.
 * Relies on shared tokens from hns-home.css. Styles Contact Form 7 markup.
 */

/* —— Hero —— */
.hns-contact-hero {
	position: relative;
	width: 100%;
	height: 382px;
	min-height: 382px;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	overflow: hidden;
	color: var(--hns-white);
}

.hns-contact-hero__media {
	position: absolute;
	inset: 0;
	background: var(--hns-navy);
}

.hns-contact-hero__media img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	object-position: center center;
}

.hns-contact-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		90deg,
		rgba(4, 22, 40, 0.94) 0%,
		rgba(4, 22, 40, 0.78) 32%,
		rgba(4, 22, 40, 0.4) 58%,
		rgba(4, 22, 40, 0.12) 80%,
		rgba(4, 22, 40, 0.04) 100%
	);
	pointer-events: none;
}

.hns-contact-hero__content {
	position: relative;
	z-index: 1;
	padding: 52px 0;
	max-width: 640px;
	width: min(640px, calc(100% - (var(--hns-gutter) * 2)));
	margin: 0 auto 0 max(calc((100% - var(--hns-container)) / 2), var(--hns-gutter));
	text-align: left;
}

.hns-contact-hero__title {
	margin: 0 0 12px;
	font-size: clamp(32px, 3.8vw, 48px);
	font-weight: 800;
	letter-spacing: 0.02em;
	line-height: 1.05;
	text-transform: uppercase;
	color: #ffffff;
}

.hns-contact-hero__subtitle {
	margin: 0;
	font-size: clamp(15px, 1.35vw, 19px);
	font-weight: 400;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.95);
}

/* —— Main two-column —— */
.hns-contact-main {
	background: #f3f5f7;
	padding: 64px 0 72px;
}

.hns-contact-main__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.7fr);
	gap: 28px;
	align-items: start;
}

.hns-contact-form {
	background: #ffffff;
	border: 1px solid #e2e6eb;
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(4, 22, 40, 0.05);
	padding: 36px 36px 40px;
}

.hns-contact-form__title {
	margin: 0 0 16px;
	font-size: clamp(18px, 1.8vw, 22px);
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--hns-navy);
}

.hns-contact-form__fallback {
	color: var(--hns-gray);
}

/* CF7 layout */
.hns-contact-form .wpcf7 {
	margin: 0;
}

.hns-contact-form .wpcf7-form p {
	margin: 0;
}

.hns-contact-form .wpcf7-form br {
	display: none;
}

.hns-cf7-grid {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.hns-cf7-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
}

.hns-cf7-row--2 {
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.hns-cf7-field {
	display: block;
}

.hns-cf7-field label {
	display: block;
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--hns-navy);
}

.hns-cf7-field > p {
	display: flex;
	flex-direction: column;
	gap: 5px;
	margin: 0;
}

.hns-contact-form .wpcf7-form-control-wrap {
	display: block;
}

.hns-contact-form input.wpcf7-form-control,
.hns-contact-form textarea.wpcf7-form-control,
.hns-contact-form select.wpcf7-form-control {
	width: 100%;
	margin: 0;
	padding: 11px 14px;
	border: 1px solid #d8dde3;
	border-radius: 6px;
	background: #fff;
	font-family: var(--hns-font);
	font-size: 14px;
	line-height: 1.4;
	color: var(--hns-text);
	box-shadow: none;
	appearance: none;
}

.hns-contact-form textarea.wpcf7-form-control {
	min-height: 96px;
	height: 96px;
	resize: vertical;
}

.hns-contact-form select.wpcf7-form-control {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23041628' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 36px;
}

.hns-contact-form input.wpcf7-form-control:focus,
.hns-contact-form textarea.wpcf7-form-control:focus,
.hns-contact-form select.wpcf7-form-control:focus {
	outline: 2px solid rgba(241, 90, 34, 0.35);
	border-color: var(--hns-orange);
}

.hns-contact-form .wpcf7-not-valid {
	border-color: #c0392b !important;
}

.hns-contact-form .wpcf7-not-valid-tip {
	font-size: 12px;
	margin-top: 4px;
}

.hns-contact-form .wpcf7-response-output {
	margin: 12px 0 0;
	padding: 12px 14px;
	border-radius: 6px;
}

.hns-cf7-grid > .hns-cf7-row:last-child {
	margin-top: 6px;
}

.hns-cf7-submit,
.hns-contact-form input.wpcf7-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin: 0;
	padding: 14px 20px;
	border: 0;
	border-radius: 6px;
	background: var(--hns-orange);
	color: #fff;
	font-family: var(--hns-font);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s ease;
}

.hns-cf7-submit:hover,
.hns-contact-form input.wpcf7-submit:hover {
	background: var(--hns-orange-hover);
}

/* Aside */
.hns-contact-aside {
	background: #e8ecf0;
	border-radius: 10px;
	padding: 28px 26px;
}

.hns-contact-aside__block + .hns-contact-aside__block {
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px solid #d7dde5;
}

.hns-contact-aside__heading {
	margin: 0 0 16px;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--hns-navy);
}

.hns-contact-aside__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.hns-contact-aside__list li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 14px;
	line-height: 1.45;
	color: var(--hns-text);
}

.hns-contact-aside__list a {
	color: var(--hns-text);
}

.hns-contact-aside__list a:hover {
	color: var(--hns-orange);
}

.hns-contact-aside__icon {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin-top: 1px;
	color: var(--hns-navy);
}

.hns-contact-aside__icon img {
	width: 20px;
	height: 20px;
	filter: brightness(0) saturate(100%);
}

.hns-contact-aside__hours {
	margin: 0 0 4px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--hns-text);
}

/* Help band */
.hns-contact-help {
	background: var(--hns-navy);
	padding: 42px 0;
	color: var(--hns-white);
}

.hns-contact-help__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.hns-contact-help__badge {
	flex: 0 0 auto;
	width: 88px;
	height: 88px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.hns-contact-help__badge img {
	width: 88px;
	height: 88px;
	display: block;
	mix-blend-mode: lighten;
}

.hns-contact-help__copy {
	flex: 1;
	text-align: center;
}

.hns-contact-help__title {
	margin: 0 0 8px;
	font-size: clamp(18px, 1.8vw, 22px);
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #ffffff;
}

.hns-contact-help__text {
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.92);
}

.hns-contact-help__maple {
	flex: 0 0 auto;
	width: 56px;
	height: 56px;
}

.hns-contact-help__maple img {
	width: 56px;
	height: 56px;
	display: block;
}

@media (max-width: 900px) {
	.hns-contact-main__grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.hns-cf7-row--2 {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.hns-contact-hero {
		height: 220px;
		min-height: 220px;
	}

	.hns-contact-hero__content {
		padding: 44px 0;
		margin-left: var(--hns-gutter);
		width: calc(100% - (var(--hns-gutter) * 2));
		max-width: none;
	}

	.hns-contact-main {
		padding: 48px 0 56px;
	}

	.hns-contact-form {
		padding: 28px 22px 32px;
	}

	.hns-contact-help__inner {
		flex-direction: column;
		text-align: center;
	}
}
