/*
 * Contact card layout, plus the field chrome Contact Form 7 does not share
 * with the kit. The heading face and the orange button come from the kit.
 * The card title is smaller than a page h2 so it fits beside the photo.
 */

.wagons-contact-card {
	display: grid;
	grid-template-columns: minmax(0, 543px) minmax(0, 1fr);
	gap: 40px;
	align-items: stretch;
	margin: 0;
	padding: 40px;
	background: #f3f3f3;
	border-radius: 24px;
}

.wagons-contact-card__media {
	margin: 0;
	border-radius: 16px;
	overflow: hidden;
}

.wagons-contact-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: none;
}

.wagons-contact-card__media img[hidden] {
	display: none;
}

.wagons-contact-card__copy {
	display: grid;
	align-content: center;
	gap: 8px;
}

.wagons-contact-card h2 {
	margin: 0;
	font-size: 40px;
}

.wagons-contact-card__copy > p {
	margin: 0;
}

.wagons-contact {
	display: grid;
	gap: 20px;
	margin: 16px 0 0;
}

.wagons-contact-form div[style="height: auto; display: block;"] {
	display: grid !important;
	gap: 20px;
	margin: 0;
}

.wagons-contact__field {
	display: grid;
	gap: 4px;
	margin: 0;
	color: var(--e-global-color-thmv_dark);
	font-size: 14px;
	line-height: 150%;
	cursor: pointer;
}

.wagons-contact__field.first {
	border-bottom: 1px solid #D9D9D9;
	padding-bottom: 20px;
}

.wagons-contact__field input,
.wagons-contact__field select,
.wagons-contact__field textarea {
	width: 100%;
	margin: 0;
	padding: 12px 16px;
	color: var(--e-global-color-thmv_dark);
	font-size: 16px;
	background: #fff;
	border: 1px solid #D9D9D9;
	border-radius: 8px;
	box-shadow: none;
}

.wagons-contact__field textarea {
	min-height: 120px;
	resize: vertical;
}

.wagons-contact__field select {
	appearance: none;
	padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%23152C12' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	background-size: 12px 8px;
}

.wagons-contact__field input::placeholder,
.wagons-contact__field textarea::placeholder {
	color: #A1A1A1;
}

.wagons-contact__field input:focus,
.wagons-contact__field select:focus,
.wagons-contact__field textarea:focus {
	border: 2px solid #152C12;
}

.wagons-contact__field input.wpcf7-not-valid,
.wagons-contact__field select.wpcf7-not-valid,
.wagons-contact__field textarea.wpcf7-not-valid {
	border: 2px solid #DC2626;
}
.wpcf7-not-valid-tip {
	color: #DC2626;
	font-size: 12px;
	line-height: 150%;
	margin-top: 4px;
}

.wpcf7 form .wpcf7-response-output {
	border-radius: 8px;
	border: 2px solid var(--e-global-color-accent);
	padding: 14px 20px 14px 60px;
	margin-left: 0;
	margin-right: 0;
	font-size: 16px;
	line-height: 150%;
	background-image: url("../img/caution.svg");
	background-repeat: no-repeat;
	background-position: 20px center;
	background-size: 20px 20px;
}

.wpcf7 form.sent .wpcf7-response-output {
	border-color: 2px solid var(--e-global-color-text);
	background-image: url("../img/tick-circle.svg");
}

.wagons-contact__check {
	margin: 0;
	color: var(--e-global-color-thmv_dark);
	font-size: 16px;
	line-height: 150%;
}

.wagons-contact .wpcf7-list-item {
	margin: 0;
}

.wagons-contact .wpcf7-checkbox label {
	display: flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
}

.wagons-contact .wpcf7-checkbox input {
	width: 24px;
	height: 24px;
	margin: 0;
	flex: 0 0 auto;
	appearance: none;
	background: #fff;
	border: 1px solid #D9D9D9;
	border-radius: 4px;
}

.wagons-contact .wpcf7-checkbox input:checked {
	border-color: var(--e-global-color-thmv_dark);
	background-color: var(--e-global-color-thmv_dark);
	background-image: url("../img/tick.svg");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 14px 11px;
}

.wagons-contact .wpcf7-checkbox input:focus-visible {
	outline: 2px solid var(--e-global-color-thmv_dark);
	outline-offset: 2px;
}

.wagons-contact__note {
	margin: -20px 0 0 36px;
	color: #6B7280;
	font-size: 12px;
	line-height: 150%;
}

.wagons-contact__notice {
	padding: 12px 16px;
	background: #E3E3E3;
	border-radius: 8px;
	font-size: 14px;
	line-height: 150%;
}

.wagons-contact__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 4px 0 0;
}

.wagons-contact .elementor-button {
	width: auto;
	cursor: pointer;
}

.wagons-contact-card .wpcf7-response-output {
	margin: 16px 0 0;
	border-color: var(--e-global-color-thmv_dark);
}

@media (max-width: 1024px) {
	.wagons-contact-card {
		grid-template-columns: 1fr;
		margin: 0;
	}

	.wagons-contact-card__media {
		display: none;
	}
}
