/**
 * VBP Contact Form widget.
 *
 * TEMPLATE FILE: compiled by Elementor into uploads/elementor/css/vbp-contact-form.css with the
 * ELEMENTOR_SCREEN_* placeholders replaced by the Site Settings breakpoints.
 * Do not use relative url()s here (icons are rendered as <img> from PHP).
 *
 * Figma (desktop, 1546px): two white cards 25px apart, radius 25, 645px tall.
 * Details card 774px: 71px left / 41px right, 50px title, 20px text, gold 50px icon circles.
 * Form card 747px: 46px sides, 28px title, 48px grey fields 20px apart, 56px gold Submit.
 * Mobile: details card 350px (28px sides); the form drops its card, white fields with a blue-grey
 * border, centred "Contact us today!" title.
 */

.vbp-contact-form {
	--vbp-contact-card: #fff;
	--vbp-contact-title: #000;
	--vbp-contact-text: #686868;
	--vbp-contact-value: #060606;
	--vbp-contact-accent: #c9a227;
	--vbp-contact-accent-hover: var(--vbp-color-gold-light, #f3d693);
	--vbp-contact-field: #eaeaea;
	--vbp-contact-field-border: #f0f0f0;
	--vbp-contact-placeholder: #b1b1b1;
	--vbp-contact-error: #c0392b;

	display: grid;
	grid-template-columns: minmax(0, 774fr) minmax(0, 747fr);
	gap: 25px;
	font-family: var(--vbp-font);
}

.vbp-contact-form__info,
.vbp-contact-form__panel {
	box-sizing: border-box;
	border-radius: 25px;
	background-color: var(--vbp-contact-card);
}

/* ---------- Details card ---------- */

.vbp-contact-form__info {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 645px;
	padding: 64px 5.3% 64px 9.2%;
	box-shadow: 0 4px 64.3px rgba(0, 0, 0, 0.06);
}

.vbp-contact-form .vbp-contact-form__title {
	max-width: 529px;
	margin: 0 0 32px;
	color: var(--vbp-contact-title);
	font-family: inherit;
	font-size: 50px;
	font-weight: 700;
	line-height: 59px;
	letter-spacing: -1.5px;
}

.vbp-contact-form .vbp-contact-form__text {
	margin: 0 0 44px;
	color: var(--vbp-contact-text);
	font-size: 20px;
	line-height: 1.54;
}

.vbp-contact-form .vbp-contact-form__details {
	display: flex;
	flex-wrap: wrap;
	gap: 40px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vbp-contact-form__detail {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0;
}

.vbp-contact-form__icon {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background-color: var(--vbp-contact-accent);
}

.vbp-contact-form .vbp-contact-form__icon img {
	display: block;
	width: 24px;
	height: 24px;
	max-width: none;
}

.vbp-contact-form .vbp-contact-form__detail--address .vbp-contact-form__icon img {
	width: 22px;
	height: 22px;
}

.vbp-contact-form__detail-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 161px;
	line-height: 1.43;
}

.vbp-contact-form__label {
	color: var(--vbp-contact-text);
	font-size: 18px;
}

.vbp-contact-form .vbp-contact-form__value {
	color: var(--vbp-contact-value);
	font-size: 20px;
	font-weight: 600;
	text-decoration: none;
	transition: color 0.3s ease;
}

.vbp-contact-form a.vbp-contact-form__value:hover,
.vbp-contact-form a.vbp-contact-form__value:focus-visible {
	color: var(--vbp-contact-accent);
}

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

.vbp-contact-form__panel {
	padding: 28px 6.2% 30px;
}

.vbp-contact-form .vbp-contact-form__form-title {
	margin: 0 0 25px;
	color: var(--vbp-contact-title);
	font-family: inherit;
	font-size: 28px;
	font-weight: 700;
	line-height: 36px;
	letter-spacing: 0.2px;
}

.vbp-contact-form__form-title-mobile {
	display: none;
}

.vbp-contact-form__form {
	margin: 0;
}

.vbp-contact-form__fields {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-bottom: 25px;
}

.vbp-contact-form__field {
	display: flex;
	flex-direction: column;
}

.vbp-contact-form .vbp-contact-form__field-label {
	margin: 0 0 6px;
	color: var(--vbp-contact-text);
	font-size: 20px;
	font-weight: 600;
	line-height: 24px;
}

.vbp-contact-form .vbp-contact-form__field--message .vbp-contact-form__field-label {
	margin-bottom: 10px;
}

/* Reset Hello Elementor's form styles. */
.vbp-contact-form .vbp-contact-form__input {
	box-sizing: border-box;
	display: block;
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 0 20px;
	border: 1px solid var(--vbp-contact-field-border);
	border-radius: 8px;
	outline: 0;
	background-color: var(--vbp-contact-field);
	box-shadow: none;
	color: var(--vbp-contact-value);
	font-family: inherit;
	font-size: 20px;
	line-height: normal;
	transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.vbp-contact-form .vbp-contact-form__textarea {
	height: 117px;
	padding: 13px 20px;
	resize: vertical;
}

.vbp-contact-form .vbp-contact-form__input::placeholder {
	color: var(--vbp-contact-placeholder);
	opacity: 1;
}

.vbp-contact-form .vbp-contact-form__input:focus {
	border-color: var(--vbp-contact-accent);
	box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2);
}

.vbp-contact-form .vbp-contact-form__input[aria-invalid="true"] {
	border-color: var(--vbp-contact-error);
}

.vbp-contact-form__error {
	color: var(--vbp-contact-error);
	font-size: 15px;
	line-height: 1.3;
}

.vbp-contact-form__error:not(:empty) {
	margin-top: 6px;
}

/* Honeypot: kept out of sight and out of the tab order. */
.vbp-contact-form__trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.vbp-contact-form .vbp-contact-form__submit,
.vbp-contact-form .vbp-contact-form__submit:hover,
.vbp-contact-form .vbp-contact-form__submit:focus {
	position: relative;
	isolation: isolate;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 56px;
	margin: 0;
	padding: 0 20px;
	border: 0;
	border-radius: 8px;
	background-color: var(--vbp-contact-accent);
	color: #000;
	font-family: inherit;
	font-size: 22px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}

/* Same hover as the site's gold buttons: the light-gold fill fades in behind the label. */
.vbp-contact-form .vbp-contact-form__submit::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 0;
	border-radius: inherit;
	background-color: var(--vbp-contact-accent-hover);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.vbp-contact-form .vbp-contact-form__submit:hover::before,
.vbp-contact-form .vbp-contact-form__submit:focus-visible::before {
	opacity: 1;
}

.vbp-contact-form .vbp-contact-form__submit:focus-visible {
	outline: 2px solid #000;
	outline-offset: 2px;
}

.vbp-contact-form .vbp-contact-form__submit[disabled] {
	cursor: progress;
	opacity: 0.7;
}

.vbp-contact-form .vbp-contact-form__status {
	margin: 0;
	font-size: 18px;
	line-height: 1.4;
}

.vbp-contact-form .vbp-contact-form__status:not(:empty) {
	margin-top: 16px;
}

.vbp-contact-form__status.is-success {
	color: #2e7d32;
}

.vbp-contact-form__status.is-error {
	color: var(--vbp-contact-error);
}

/* ---------- Tablet ---------- */

@media (max-width: 1024px) {
	.vbp-contact-form__info {
		min-height: 0;
		padding: 48px 32px;
	}

	.vbp-contact-form .vbp-contact-form__title {
		margin-bottom: 20px;
		font-size: 36px;
		line-height: 1.18;
		letter-spacing: -1px;
	}

	.vbp-contact-form .vbp-contact-form__text {
		margin-bottom: 36px;
		font-size: 18px;
	}

	.vbp-contact-form .vbp-contact-form__details {
		flex-direction: column;
		gap: 23px;
	}

	.vbp-contact-form .vbp-contact-form__value {
		font-size: 18px;
	}

	.vbp-contact-form__panel {
		padding: 28px 32px 30px;
	}

	.vbp-contact-form .vbp-contact-form__form-title {
		font-size: 26px;
		line-height: 34px;
	}

	.vbp-contact-form .vbp-contact-form__field-label {
		font-size: 18px;
	}

	.vbp-contact-form .vbp-contact-form__input {
		font-size: 18px;
	}
}

/* ---------- Mobile ---------- */

@media (max-width: 767px) {
	.vbp-contact-form {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}

	.vbp-contact-form__info {
		padding: 40px 28px;
	}

	.vbp-contact-form .vbp-contact-form__title {
		max-width: none;
		margin-bottom: 14px;
		color: #272727;
		font-size: 28px;
		font-weight: 600;
		line-height: 1.13;
		letter-spacing: 0;
	}

	.vbp-contact-form .vbp-contact-form__text {
		margin-bottom: 39px;
		color: rgba(104, 104, 104, 0.9);
		font-size: 18px;
		line-height: 28px;
	}

	.vbp-contact-form__detail-text {
		min-width: 0;
	}

	/* The form sits straight on the page. */
	.vbp-contact-form__panel {
		padding: 0;
		border-radius: 0;
		background-color: transparent;
	}

	.vbp-contact-form .vbp-contact-form__form-title {
		margin-bottom: 24px;
		font-size: 24px;
		line-height: 36px;
		text-align: center;
	}

	.vbp-contact-form__form-title-desktop {
		display: none;
	}

	.vbp-contact-form__form-title-mobile {
		display: inline;
	}

	.vbp-contact-form__fields {
		gap: 17px;
		margin-bottom: 22px;
	}

	.vbp-contact-form .vbp-contact-form__field-label {
		margin-bottom: 4px;
		font-size: 18px;
		font-weight: 700;
		line-height: 22px;
	}

	.vbp-contact-form .vbp-contact-form__field--message .vbp-contact-form__field-label {
		margin-bottom: 9px;
	}

	/* 16px+ text keeps iOS from zooming into the field. */
	.vbp-contact-form .vbp-contact-form__input {
		height: 42px;
		padding: 0 17px;
		border: 1px solid #c3cad9;
		background-color: #fff;
		font-size: 16px;
	}

	.vbp-contact-form .vbp-contact-form__textarea {
		height: 101px;
		padding: 11px 17px;
		font-size: 18px;
	}

	.vbp-contact-form .vbp-contact-form__submit,
	.vbp-contact-form .vbp-contact-form__submit:hover,
	.vbp-contact-form .vbp-contact-form__submit:focus {
		font-size: 18px;
	}
}
