/**
 * Contact form section (.kc-contact, blocks/contact-enquiry, Figma 173:1116): centred
 * heading + intro, then the pink details card (400) beside the grey form card (840).
 * The form fields themselves are styled in theme.css (forms).
 */

/* The Figma frame is 1280 wide (80px margins), wider than the 1240 content column. */
.kc-contact.has-global-padding {
	padding-inline: var( --kc-gutter-wide );
}

.kc-contact {
	--kc-contact-space-bottom: clamp( 4rem, 12.7vw, 11.4375rem );
	padding-top: clamp( 3.5rem, 6.6vw, 5.9375rem );
	padding-bottom: var( --kc-contact-space-bottom );
}

/* A wavy section below rises into this one, so leave room for its wave. */
.kc-contact:not( .kc-wave-bottom ):has( + .kc-wave-top ) {
	padding-bottom: calc( var( --kc-contact-space-bottom ) + var( --kc-wave-h ) );
}

.kc-contact .kc-contact__title {
	margin-block: 0;
	font-size: clamp( 2rem, 3.334vw, 3rem );
	line-height: 1;
	text-align: center;
}

.kc-contact .kc-contact__intro {
	margin-block: 0.75rem 0;
	font-size: 1.125rem;
	line-height: 1.556;
	text-align: center;
}

.kc-contact .kc-contact__layout {
	display: grid;
	grid-template-columns: minmax( 0, 400fr ) minmax( 0, 840fr );
	gap: 2.5rem;
	max-width: 80rem;
	margin-top: clamp( 2.5rem, 5.35vw, 4.8125rem );
}

.kc-contact .kc-contact__layout > * {
	margin-block: 0;
}

/* ------------------------------------------------------ details card ---- */

.kc-contact__card {
	display: flex;
	flex-direction: column;
	gap: 4rem;
	min-height: 61.25rem;
	padding: 2.5rem 2.25rem 5.625rem;
	border-radius: var( --kc-radius-card );
	background: var( --kc-blush );
	color: var( --kc-dark-purple );
}

.kc-contact__label {
	margin: 0 0 1.125rem;
	font-size: 1.5rem;
	line-height: 1.25;
}

.kc-contact__label:last-child {
	margin-bottom: 0;
}

.kc-contact__group--visit .kc-contact__label:not( :last-child ) {
	margin-bottom: 1.5rem;
}

.kc-contact__group--visit .kc-contact__label {
	font-size: 1.875rem;
	line-height: 1.2;
}

/* Figma spaces "Get in Touch" 66px below the hours (the other gaps are 64). */
.kc-contact__group--touch {
	margin-top: 0.125rem;
}

.kc-contact__value {
	margin: 0;
	font-size: 1rem;
	line-height: 1.75;
	overflow-wrap: anywhere;
}

/* A 44px tall hit area without changing the line height. */
.kc-contact__value a {
	display: inline-block;
	color: inherit;
	margin-block: -0.6875rem;
	padding-block: 0.6875rem;
	text-decoration: underline;
	text-decoration-color: transparent;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.2em;
	transition: text-decoration-color 0.2s ease;
}

.kc-contact__value a:is( :hover, :focus-visible ) {
	text-decoration-color: currentColor;
}

.kc-contact__figure {
	margin: auto 0 0;
	padding-top: 2rem;
}

.kc-contact__photo {
	display: block;
	width: 100%;
	height: 18.75rem;
	border-radius: var( --kc-radius-inner );
	object-fit: cover;
}

/* --------------------------------------------------------- form card ---- */

.kc-contact .kc-contact__form {
	padding: 2.625rem 3rem 3rem;
	border-radius: var( --kc-radius-card );
	background: var( --kc-field-bg );
}

.kc-contact .kc-contact__form-title {
	margin-block: 0 2rem;
	font-size: 1.875rem;
	line-height: 1.2;
}

/* Below 1100 the 400px details column gets too narrow for the email address, so the
   details card moves above the form (its groups side by side). */
@media ( max-width: 1100px ) {
	.kc-contact .kc-contact__layout {
		grid-template-columns: minmax( 0, 1fr );
		gap: 1.5rem;
	}

	.kc-contact__card {
		display: grid;
		min-height: 0;
		grid-template-columns: repeat( auto-fit, minmax( 12.5rem, 1fr ) );
		gap: 2rem 1.5rem;
		padding: 2rem 1.75rem;
	}

	.kc-contact__group--touch {
		margin-top: 0;
	}

	.kc-contact__group--visit .kc-contact__label {
		font-size: 1.5rem;
		line-height: 1.25;
	}

	.kc-contact__group--visit .kc-contact__label:not( :last-child ) {
		margin-bottom: 1.125rem;
	}

	.kc-contact__figure {
		grid-column: 1 / -1;
		padding-top: 0;
	}

	.kc-contact__photo {
		height: clamp( 13.75rem, 50vw, 22.5rem );
	}
}

@media ( max-width: 781px ) {
	.kc-contact .kc-contact__intro {
		font-size: 1rem;
	}

	.kc-contact .kc-contact__form {
		padding: 2rem 1.25rem;
	}

	.kc-contact .kc-contact__form-title {
		margin-bottom: 1.5rem;
		font-size: 1.5rem;
	}
}
