/**
 * Solar Ready Hub — Contact Us template (template-contact.php)
 *
 * The banner is the shared .srh-page-banner. Everything below is new: the
 * detail cards, the two-column enquiry block, the form controls and the map.
 */

.srh-contact-page {
	display: block;
}

/* ==========================================================================
   1. Contact detail cards
   ========================================================================== */

.srh-contact-details {
	background: var(--srh-white);
}

.srh-contact-details__grid {
	display: grid;
	gap: var(--srh-space-6);
	margin: 0;
	padding: 0;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	list-style: none;
}

.srh-contact-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--srh-space-3);
	margin: 0;
	padding: var(--srh-space-6);
	border-radius: var(--srh-radius-lg);
	background: var(--srh-green-10);
	transition: background-color var(--srh-transition), transform var(--srh-transition);
}

.srh-contact-card:hover {
	background: var(--srh-white);
	box-shadow: var(--srh-shadow-md);
	transform: translateY(-4px);
}

.srh-contact-card__icon {
	display: inline-flex;
	width: 52px;
	height: 52px;
	align-items: center;
	justify-content: center;
	border-radius: var(--srh-radius-md);
	background: var(--srh-white);
	color: var(--srh-green);
	transition: background-color var(--srh-transition), color var(--srh-transition);
}

.srh-contact-card:hover .srh-contact-card__icon {
	background: var(--srh-green);
	color: var(--srh-white);
}

.srh-contact-card__label {
	margin: 0;
	color: var(--srh-grey-500);
	font-size: var(--srh-fs-sm);
	font-weight: var(--srh-fw-medium);
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.srh-contact-card__value {
	margin: 0;
	color: var(--srh-ink);
	font-size: var(--srh-fs-lead);
	font-weight: var(--srh-fw-medium);
	line-height: 1.45;
	overflow-wrap: anywhere;
}

.srh-contact-card__value a {
	color: inherit;
	text-decoration: none;
}

.srh-contact-card__value a:hover,
.srh-contact-card__value a:focus {
	color: var(--srh-green);
}

@media (max-width: 1024px) {
	.srh-contact-details__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.srh-contact-details__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ==========================================================================
   2. Enquiry section
   ========================================================================== */

.srh-contact-form {
	background: #f7f7f7;
}

.srh-contact-form__grid {
	display: grid;
	align-items: start;
	gap: clamp(2rem, 1rem + 4vw, 4rem);
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}

.srh-contact-form__aside {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--srh-space-5);
	position: sticky;
	top: calc(var(--srh-header-height) + 1.5rem);
}

.srh-contact-form__text {
	max-width: 38ch;
	margin: 0;
	color: var(--srh-grey-500);
	line-height: var(--srh-lh-body);
}

.srh-contact-form__promises {
	display: flex;
	flex-direction: column;
	gap: var(--srh-space-3);
	margin: 0;
	padding: 0;
	list-style: none;
}

.srh-contact-form__promises li {
	display: flex;
	align-items: flex-start;
	gap: var(--srh-space-3);
	margin: 0;
	color: var(--srh-ink);
	font-size: var(--srh-fs-body);
	line-height: 1.5;
}

.srh-contact-form__tick {
	display: inline-flex;
	width: 24px;
	height: 24px;
	flex: 0 0 24px;
	align-items: center;
	justify-content: center;
	border-radius: var(--srh-radius-circle);
	background: var(--srh-green);
	color: var(--srh-white);
}

.srh-contact-form__panel {
	padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
	border-radius: var(--srh-radius-lg);
	background: var(--srh-white);
	box-shadow: var(--srh-shadow-md);
}

@media (max-width: 900px) {
	.srh-contact-form__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.srh-contact-form__aside {
		position: static;
	}
}

/* ==========================================================================
   3. Form controls
   ========================================================================== */

.srh-form {
	margin: 0;
}

/* Plugin forms get the same field styling as the built-in one. */
.srh-contact-form__embed input[type="text"],
.srh-contact-form__embed input[type="email"],
.srh-contact-form__embed input[type="tel"],
.srh-contact-form__embed textarea,
.srh-contact-form__embed select {
	border-radius: var(--srh-radius-md);
	background: var(--srh-grey-50);
}

.srh-contact-form__embed input[type="submit"],
.srh-contact-form__embed button[type="submit"] {
	padding: 16px 28px;
	border: 0;
	border-radius: var(--srh-radius-pill);
	background: var(--srh-green);
	color: var(--srh-white);
	font-weight: var(--srh-fw-semibold);
	transition: background-color var(--srh-transition);
}

.srh-contact-form__embed input[type="submit"]:hover,
.srh-contact-form__embed button[type="submit"]:hover {
	background: var(--srh-green-dark);
}

.srh-form__row {
	display: grid;
	gap: var(--srh-space-4);
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.srh-form__field {
	margin: 0 0 var(--srh-space-4);
}

.srh-form__row .srh-form__field {
	margin-bottom: 0;
}

.srh-form__row + .srh-form__field,
.srh-form__row + .srh-form__row {
	margin-top: var(--srh-space-4);
}

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

.srh-form__field label span {
	color: var(--srh-green);
}

.srh-form__field input,
.srh-form__field textarea,
.srh-form__field select {
	border-radius: var(--srh-radius-md);
	background: var(--srh-grey-50);
}

.srh-form__field textarea {
	min-height: 150px;
	resize: vertical;
}

/* Honeypot — hidden from people, still reachable by bots parsing the DOM.
   display:none would be too obvious to a sophisticated crawler. */
.srh-form__hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.srh-form__privacy {
	margin: 0 0 var(--srh-space-5);
	color: var(--srh-grey-500);
	font-size: var(--srh-fs-sm);
	line-height: 1.5;
}

.srh-form__privacy a {
	color: var(--srh-green);
	text-decoration: underline;
}

.srh-form__actions {
	margin: 0;
}

.srh-form__actions .srh-btn {
	gap: var(--srh-space-2);
}

@media (max-width: 560px) {
	.srh-form__row {
		grid-template-columns: minmax(0, 1fr);
	}

	.srh-form__row .srh-form__field + .srh-form__field {
		margin-top: var(--srh-space-4);
	}

	.srh-form__actions .srh-btn {
		width: 100%;
	}
}

/* ==========================================================================
   4. Notices
   ========================================================================== */

.srh-notice {
	display: flex;
	align-items: flex-start;
	gap: var(--srh-space-3);
	margin: 0 0 var(--srh-space-6);
	padding: var(--srh-space-4) var(--srh-space-5);
	border-radius: var(--srh-radius-md);
	font-size: var(--srh-fs-body);
	line-height: 1.5;
}

.srh-notice svg {
	flex: 0 0 auto;
	margin-top: 2px;
}

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

.srh-notice--error {
	background: var(--srh-yellow-20);
	color: #7a4a00;
}

/* ==========================================================================
   5. Map
   ========================================================================== */

.srh-map {
	position: relative;
	display: block;
	width: 100%;
	height: var(--srh-map-height, 440px);
	overflow: hidden;
	background: var(--srh-grey-100);
}

.srh-map__frame {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	filter: grayscale(0.25);
}

.srh-map__static {
	display: block;
	width: 100%;
	height: 100%;
}

.srh-map__static img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (max-width: 640px) {
	.srh-map {
		height: min(var(--srh-map-height, 440px), 320px);
	}
}
