/**
 * contact_module.css
 *
 * Full-width heading above a two-column split: body copy left, CF7 form right.
 *
 * CF7 form grid: pairs of fields sit in a 2-column CSS grid.
 * To make the textarea and submit span full width, add class="full-width"
 * to the <p> wrapper in the CF7 form template editor.
 */

/* ---------------------------------------------------------------
   Section
--------------------------------------------------------------- */
.contact-module {
	background-color: var(--white);
	padding: 30px 40px 90px;
}

/* ---------------------------------------------------------------
   Inner wrapper — block context for heading + body
--------------------------------------------------------------- */
.contact-module__inner {
	/*max-width: 1400px;*/
	margin: 0 auto;
}

/* ---------------------------------------------------------------
   Two-column body grid: content ~42%, form ~58%
--------------------------------------------------------------- */
.contact-module__body {
	display: grid;
	grid-template-columns: 42% 1fr;
	gap: 80px;
	align-items: start;
}

/* ---------------------------------------------------------------
   Left: heading + body copy
--------------------------------------------------------------- */
.contact-module__heading {
	font-size: clamp(34px, 6vw, 78px);
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: -0.02em;
	line-height: 1;
	color: var(--black);
	margin: 0 0 40px;
	width: 100%;
}

.contact-module__content {
	font-size:18px;
	line-height: 24px;
	color: var(--black);
	width: 90%;
}

.contact-module__content p {
	margin: 0 0 20px;
}

.contact-module__content p:last-child {
	margin-bottom: 0;
}

/* ---------------------------------------------------------------
   Right: CF7 form wrapper
--------------------------------------------------------------- */
.contact-module__form .wpcf7 {
	width: 100%;
}

/* CF7 form grid — 2 equal columns */
.contact-module__form .wpcf7 form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px 30px;
}

/* Each <p> wrapper = one grid cell */
.contact-module__form .wpcf7 form > p {
	margin: 0;
}

/* Span both columns — add class="full-width" to the CF7 <p> in form editor */
.contact-module__form .wpcf7 form > p.full-width {
	grid-column: 1 / -1;
}

/* Also span the CF7 response div */
.contact-module__form .wpcf7 .wpcf7-response-output {
	grid-column: 1 / -1;
	margin: 8px 0 0;
}

/* ---------------------------------------------------------------
   Field inputs, selects, textarea
--------------------------------------------------------------- */
.contact-module__form .wpcf7 input[type="text"],
.contact-module__form .wpcf7 input[type="email"],
.contact-module__form .wpcf7 input[type="tel"],
.contact-module__form .wpcf7 select,
.contact-module__form .wpcf7 textarea {
	width: 100%;
	display: block;
	padding: 12px 15px;
	font-size:16px;
	font-family: inherit;
	color: var(--black);
	background-color: var(--white);
	border: 1px solid var(--black);
	border-radius: 0;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.2s ease;
	box-sizing: border-box;
}

.contact-module__form .wpcf7 input[type="text"]:focus,
.contact-module__form .wpcf7 input[type="email"]:focus,
.contact-module__form .wpcf7 input[type="tel"]:focus,
.contact-module__form .wpcf7 select:focus,
.contact-module__form .wpcf7 textarea:focus {
	border-color: var(--black);
}

/* Placeholder colour */
.contact-module__form .wpcf7 input::placeholder,
.contact-module__form .wpcf7 textarea::placeholder {
	color: var(--black);
}

/* Select — custom arrow */
.contact-module__form .wpcf7 select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 40px;
	cursor: pointer;
}

/* Textarea */
.contact-module__form .wpcf7 textarea {
	min-height: 200px;
	resize: vertical;
}

/* ---------------------------------------------------------------
   Submit button — yellow
--------------------------------------------------------------- */
.contact-module__form .wpcf7 input[type="submit"],
.contact-module__form .wpcf7 .wpcf7-submit {
	display: inline-block;
	padding: 15px 25px;
	background-color: var(--yellow);
	color: var(--black);
	font-size: 16px;
	font-weight: 700;
	letter-spacing: -3%;
	border: 0;
	border-radius: 0;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: background-color 0.2s ease;
	margin-top:8px;
}

.contact-module__form .wpcf7 input[type="submit"]:hover,
.contact-module__form .wpcf7 .wpcf7-submit:hover {
	background-color: var(--yellow-hover);
}

.contact-module__form .wpcf7 input[type="submit"]:focus-visible,
.contact-module__form .wpcf7 .wpcf7-submit:focus-visible {
	outline: 2px solid var(--yellow);
	outline-offset: 3px;
}

/* CF7 validation error highlight */
.contact-module__form .wpcf7 .wpcf7-not-valid {
	border-color: var(--main-color);
}

.contact-module__form .wpcf7 .wpcf7-not-valid-tip {
  font-size: 12px;
  display: block;
  margin-top: 0px;
  left: 17px;
  position: absolute;
  width: 190px;
  top: 0px;
}



.contact-module__heading {
  width: 50%;
}

@media (max-width: 1140px) {
.contact-module__heading {
  width: 70%;
}
}

/* ---------------------------------------------------------------
   Responsive — 1100px: tighten gap
--------------------------------------------------------------- */
@media (max-width: 1100px) {
	.contact-module {
		padding: var(--section-pad);
	}

	.contact-module__body {
		gap: 56px;
	}
	.contact-module__heading {
  	width: 80%;
	}
}

/* ---------------------------------------------------------------
   Responsive — 900px: stack columns
--------------------------------------------------------------- */
@media (max-width: 900px) {
	.contact-module__body {
		grid-template-columns: 1fr;
		gap: 48px;
		
	}

	.contact-module__heading {
		width: 100%;
	}

	.contact-module__heading {
		margin-bottom: 28px;
	}
		.contact-module {
		padding: 0px 20px 40px;
	}
	.contact-module__content {
		font-size: 15px;
		line-height: 21px;
		width: 100%;
	}
}

/* ---------------------------------------------------------------
   Responsive — 600px: single-column form fields
--------------------------------------------------------------- */
@media (max-width: 600px) {

	.contact-module__form .wpcf7 form {
		grid-template-columns: 1fr;
	}

	.contact-module__form .wpcf7 form > p.full-width {
		grid-column: 1;
	}
}
