/**
 * Contact page.
 *
 * Notched black callout on the left, enquiry form on the right, following the
 * current site's layout: the card takes half the width, the form 41.66%, and
 * the 8.33% between them is the gutter.
 */

.sterling-contact {
	background-color: #fff;
}

.sterling-contact__row > .e-con-inner {
	align-items: flex-start;
}

/* Callout card
   ------------------------------------------------------------------------ */

/* Explicit widths with flex:none rather than a percentage flex-basis. The card
   will not shrink below its min-content width, so with shrinkable items the
   form absorbed the whole overflow and collapsed to a fraction of its share. */
.sterling-contact__card {
	flex: none;
	width: 50%;
	max-width: 50%;
	min-width: 0;
	gap: 0;
	/* Hug the copy rather than stretching to the form's height. */
	align-self: flex-start;
	padding: 2.5rem;
	background-color: var(--sterling-black, #0e0e0e);
	/* Cut corner, top right — the current site's card geometry. */
	clip-path: polygon(0 0, 0 100%, 100% 100%, 100% 30px, calc(100% - 24px) 0);
	filter: drop-shadow(4px 4px 10px rgba(0, 0, 0, 0.1));
}

.elementor-widget-heading.sterling-contact__lead .elementor-heading-title {
	margin: 0 0 1.05rem;
	color: #fff;
	font-family: "Poppins", "Helvetica Neue", Arial, sans-serif;
	font-size: clamp(1.25rem, 2vw, 1.5rem);
	font-weight: 700;
	line-height: 1.15;
	text-transform: none;
	letter-spacing: 0.03em;
}

.elementor-widget-text-editor.sterling-contact__note {
	margin-bottom: 1.35rem;
	color: #fff;
	font-family: "Poppins", "Helvetica Neue", Arial, sans-serif;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.4;
}

.sterling-contact__note p:last-child {
	margin-bottom: 0;
}

.elementor-widget-heading.sterling-contact__phone .elementor-heading-title {
	margin: 0;
	color: #fff;
	font-family: "Poppins", "Helvetica Neue", Arial, sans-serif;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: 0;
}

.sterling-contact__phone a {
	color: inherit;
	text-decoration: none;
	transition: color 0.18s ease;
}

.sterling-contact__phone a:hover,
.sterling-contact__phone a:focus-visible {
	color: var(--sterling-gold, #bd9b51);
}

/* Form
   ------------------------------------------------------------------------ */

.sterling-contact__form {
	flex: none;
	width: 41.666%;
	max-width: 41.666%;
	min-width: 0;
	/* The 8.333% between the two columns is the current site's gutter. */
	margin-left: 8.333%;
}

/* Elementor only ships the multi-step form stylesheet here, so the field
   sizing rules never arrive and the inputs fall back to their size="1" width.
   Lay the form out in full rather than depending on that conditional CSS. */
.sterling-contact__form .elementor-form-fields-wrapper {
	display: flex;
	flex-direction: column;
	row-gap: 1.5rem;
}

.sterling-contact__form .elementor-field-group {
	display: block;
	width: 100%;
	max-width: 100%;
	padding: 0;
}

.sterling-contact__form .elementor-field-group > .elementor-field-label {
	margin-bottom: 0.5rem;
	padding: 0;
	color: var(--sterling-ink, #231f20);
	font-family: "Poppins", "Helvetica Neue", Arial, sans-serif;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
}

.sterling-contact__form .elementor-field-textual {
	display: block;
	width: 100%;
	padding: 10px;
	background-color: #eee;
	border: 0;
	border-radius: 0;
	color: var(--sterling-ink, #231f20);
	font-family: "Poppins", "Helvetica Neue", Arial, sans-serif;
	font-size: 1rem;
	line-height: 1.4;
}

.sterling-contact__form .elementor-field-textual:focus {
	outline: 2px solid var(--sterling-gold, #bd9b51);
	outline-offset: 0;
}

.sterling-contact__form textarea.elementor-field-textual {
	min-height: 120px;
	resize: vertical;
}

/* Contrast note: the current site sets white on #bd9b51, which is only 2.6:1.
   Inking the label reads at roughly 8:1, matching the About Us button and the
   gold category panel. */
.sterling-contact__form .elementor-button[type="submit"] {
	padding: 0.6rem 1.4rem;
	background-color: var(--sterling-gold, #bd9b51);
	color: var(--sterling-ink, #231f20);
	font-family: "Poppins", "Helvetica Neue", Arial, sans-serif;
	font-size: 0.875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	border: 0;
	border-radius: 0;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.sterling-contact__form .elementor-button[type="submit"]:hover,
.sterling-contact__form .elementor-button[type="submit"]:focus-visible {
	background-color: var(--sterling-black, #0e0e0e);
	color: #fff;
}

/* Breakpoints
   ------------------------------------------------------------------------ */

@media (max-width: 1024px) {
	.sterling-contact__card,
	.sterling-contact__form {
		width: 100%;
		max-width: 100%;
		margin-left: 0;
	}

	.sterling-contact__card {
		padding: 1.875rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sterling-contact__phone a,
	.sterling-contact__form .elementor-button[type="submit"] {
		transition: none;
	}
}
