/* ═══════════════════════════════════════════════════════════
   CONTACT – Figma "Contact Us" (12056:4512). Mobile-first.
   Form markup comes from Contact Form 7 (CF7 CSS disabled).
   ═══════════════════════════════════════════════════════════ */

/* ── Head: title + intro, green pills top-right ─────────── */

.contact-head {
	--s: 0.3;
	position: relative;
	padding-top: 120px;
}

.contact-head__shapes {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

/* A: 574 × 575 at x 1107; B: 378 × 575 at x 735; both y −250 (under the header). */
.contact-head__pill {
	position: absolute;
	top: calc(-250px * var(--s));
	height: calc(575px * var(--s));
	background: var(--color-green);
	border-radius: var(--radius-pill) 0 0 var(--radius-pill);
}

.contact-head__pill--a {
	left: calc(100% - 333px * var(--s));
	width: calc(574px * var(--s));
}

.contact-head__pill--b {
	left: calc(100% - 705px * var(--s));
	width: calc(378px * var(--s));
}

.contact-head__text {
	position: relative;
	z-index: 1;
	max-width: 469px;
}

.contact-head__title {
	color: var(--color-black);
	font-size: var(--text-display);
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: var(--ls-base);
	text-transform: uppercase;
}

.contact-head__intro {
	margin-top: 16px;
}

/* ── Body ────────────────────────────────────────────────── */

.contact-body {
	position: relative;
	padding-top: 48px;
}

.contact-body__pill {
	display: none;
	--deco-color: var(--color-green);
}

/* CF7 form (html_class="tc-form") */
.tc-form {
	position: relative;
	z-index: 1;
}

.tc-form .hidden-fields-container {
	display: none;
}

.tc-form .wpcf7-response-output:empty {
	display: none;
}

.tc-form__row {
	display: grid;
	gap: 20px;
}

.tc-form__row + .tc-form__row {
	margin-top: 20px;
}

.tc-form .wpcf7-form-control-wrap {
	display: block;
}

.tc-form input[type="text"],
.tc-form input[type="email"],
.tc-form input[type="tel"],
.tc-form textarea {
	display: block;
	width: 100%;
	min-height: 35px;
	padding: 6px 20px;
	border: 1px solid var(--color-green);
	border-radius: 0;
	background: transparent;
	color: var(--color-black);
	font-size: var(--text-body);
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: var(--ls-base);
	transition: border-color var(--transition-base), box-shadow var(--transition-base);
	-webkit-appearance: none;
	appearance: none;
}

.tc-form textarea {
	height: 128px;
	resize: vertical;
}

.tc-form ::placeholder {
	color: rgba(24, 14, 2, 0.4);
	text-transform: uppercase;
	opacity: 1;
}

.tc-form input:focus,
.tc-form textarea:focus {
	outline: none;
	border-color: var(--color-green-dark);
	box-shadow: 0 0 0 1px var(--color-green-dark);
}

.tc-form .wpcf7-not-valid {
	border-color: #C0392B;
}

.tc-form .wpcf7-not-valid-tip {
	display: block;
	margin-top: 6px;
	color: #C0392B;
	font-size: var(--text-small);
}

.tc-form__submit {
	margin-top: 40px;
}

.tc-form input[type="submit"] {
	display: block;
	width: 100%;
	min-height: 39px;
	padding: 8px 20px;
	border: 1px solid var(--color-green-dark);
	border-radius: 0;
	background: var(--color-green-dark);
	color: var(--color-offwhite);
	font-size: var(--text-button);
	font-weight: 500;
	letter-spacing: var(--ls-base);
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color var(--transition-base), border-color var(--transition-base);
	-webkit-appearance: none;
	appearance: none;
}

.tc-form input[type="submit"]:hover,
.tc-form input[type="submit"]:focus-visible {
	border-color: var(--color-orange);
	background: var(--color-orange);
}

.tc-form .wpcf7-spinner {
	display: none;
}

.tc-form.submitting input[type="submit"] {
	opacity: 0.6;
	cursor: progress;
}

.tc-form .wpcf7-response-output {
	margin: 20px 0 0;
	padding: 12px 20px;
	border: 1px solid var(--color-green);
	font-size: var(--text-body);
}

.tc-form.invalid .wpcf7-response-output,
.tc-form.failed .wpcf7-response-output,
.tc-form.spam .wpcf7-response-output {
	border-color: #C0392B;
}

.tc-form.sent .wpcf7-response-output {
	background: var(--color-green-light);
}

.wpcf7 .screen-reader-response {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

/* ── Details row + map ───────────────────────────────────── */

.contact-details {
	position: relative;
	display: grid;
	gap: 24px;
	margin-top: 48px;
	padding-top: 40px;
	border-top: 1px solid var(--color-line);
	font-size: 16px;
	line-height: 18px;
}

.contact-details address {
	font-style: normal;
}

.contact-details__phones {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.contact-details a:hover,
.contact-details a:focus-visible {
	color: var(--color-green-dark);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.contact-map {
	position: relative;
	margin-top: 40px;
	aspect-ratio: 4 / 3;
	background: var(--color-green-light);
}

.contact-map iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

@media (min-width: 768px) {
	.contact-head {
		--s: 0.6;
		padding-top: 100px;
	}

	.contact-body__pill {
		display: block;
		left: calc(-143px * 0.6);
		top: 120px;
		width: calc(378px * 0.6);
		height: calc(575px * 0.6);
	}

	.tc-form__row--split {
		grid-template-columns: 1fr 1fr;
	}

	.contact-details {
		grid-template-columns: repeat(3, auto);
		justify-content: space-between;
		align-items: end;
	}

	.contact-map {
		aspect-ratio: 940 / 350;
	}
}

@media (min-width: 1200px) {
	.contact-head {
		--s: 1;
		padding-top: 150px;   /* title y 277 */
	}

	.contact-head__text {
		margin-left: 50px;
	}

	.contact-head__intro {
		margin-top: 20px;
	}

	/* Form y 541, inset 50 (940 wide). */
	.contact-body {
		padding-top: 100px;
	}

	.contact-form,
	.contact-map {
		margin-inline: 50px;
	}

	/* Figma "Rectangle 3": 378 × 575 at x −143, y 708 (167 below form top). */
	.contact-body__pill {
		left: -143px;
		top: 267px;
		width: 378px;
		height: 575px;
	}

	/* Address x 300, phones x 657, email x 921 – bottom-aligned, y ≈ 1013. */
	/* Rule at y 963 runs from the address (x 300) to the frame line (x 1290). */
	.contact-details {
		margin: 100px 100px 0;
		padding-top: 0;
		border-top: 0;
	}

	.contact-details::before {
		content: "";
		position: absolute;
		top: -50px;
		left: 0;
		right: -150px;
		height: 1px;
		background: var(--color-line);
	}

	.contact-map {
		margin-top: 50px;
	}
}
