/**
 * Window Smart Home - Contact Us template
 * Info cards, message form + map.
 * (The shared page banner lives in assets/css/page-banner.css. The FAQ
 * accordion - .wsh-faq__* - lives in base.css since the FAQ page template
 * uses it too.)
 */

/* ==========================================================================
   1. Info cards
   ========================================================================== */

.wsh-contact-info__grid {
	display: grid;
	gap: var(--wsh-space-6);
	grid-template-columns: repeat(4, 1fr);
}

.wsh-info-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--wsh-space-2);
	padding: var(--wsh-space-8) var(--wsh-space-6);
	border-radius: var(--wsh-radius-xl);
	background: var(--wsh-grey-50);
	color: inherit;
	text-align: center;
	transition: box-shadow var(--wsh-transition), transform var(--wsh-transition);
}

a.wsh-info-card:hover {
	box-shadow: var(--wsh-shadow-lg);
	transform: translateY(-4px);
}

.wsh-info-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin-bottom: var(--wsh-space-2);
	border-radius: var(--wsh-radius-circle);
	background: var(--wsh-blue);
	color: var(--wsh-white);
	transition: background-color var(--wsh-transition);
}

a.wsh-info-card:hover .wsh-info-card__icon {
	background: var(--wsh-green);
}

.wsh-info-card__title {
	color: var(--wsh-ink);
	font-weight: var(--wsh-fw-semibold);
}

.wsh-info-card__text {
	color: var(--wsh-grey-500);
	font-size: var(--wsh-fs-sm);
	line-height: var(--wsh-lh-body);
}

@media (max-width: 900px) {
	.wsh-contact-info__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.wsh-contact-info__grid {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   2. Message form + map
   ========================================================================== */

.wsh-contact-form__inner {
	display: grid;
	gap: var(--wsh-space-12);
	grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
	align-items: start;
}

.wsh-contact-form__inner--no-map {
	grid-template-columns: minmax(0, 1fr);
	max-width: 40rem;
}

.wsh-contact-form__text {
	margin: var(--wsh-space-4) 0 var(--wsh-space-6);
	color: var(--wsh-grey-500);
	font-size: var(--wsh-fs-lead);
	line-height: var(--wsh-lh-loose);
}

.wsh-form-notice {
	margin: 0 0 var(--wsh-space-5);
	padding: 12px 18px;
	border-radius: var(--wsh-radius-md);
	font-size: var(--wsh-fs-sm);
	font-weight: var(--wsh-fw-medium);
}

.wsh-form-notice--success {
	background: var(--wsh-green-10);
	color: var(--wsh-green-dark);
}

.wsh-form-notice--error {
	background: rgba(220, 53, 69, 0.1);
	color: #b3261e;
}

.wsh-form__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.wsh-form__row {
	margin-bottom: var(--wsh-space-5);
}

.wsh-form__row--split {
	display: grid;
	gap: var(--wsh-space-5);
	grid-template-columns: repeat(2, 1fr);
}

.wsh-form__field label {
	display: block;
	margin-bottom: var(--wsh-space-2);
	color: var(--wsh-ink);
	font-size: var(--wsh-fs-sm);
	font-weight: var(--wsh-fw-medium);
}

.wsh-form__submit {
	margin-top: var(--wsh-space-2);
}

.wsh-contact-form__map {
	min-height: 420px;
	border-radius: var(--wsh-radius-xl);
	overflow: hidden;
	box-shadow: var(--wsh-shadow-lg);
}

.wsh-contact-form__map iframe {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 420px;
	border: 0;
}

@media (max-width: 900px) {
	.wsh-contact-form__inner {
		grid-template-columns: 1fr;
	}

	.wsh-form__row--split {
		grid-template-columns: 1fr;
	}
}
