/*
 * Contact Us page — hero (image/heading/description/social) + the
 * "Send us a message" form. Adapted from the supplied contact-form.html
 * design reference (its .cf7-* classes were built for a Contact Form 7
 * markup shape; this theme's own custom form uses its own class names,
 * same visual result) into the site's existing Sora/#7FB04F design tokens
 * (see assets/css/about.css, assets/css/custom.css for the same palette).
 */

.contact-form-section {
	--cf-font: 'Sora', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	--cf-heading: #1B250E;
	--cf-body: #364153;
	--cf-muted: #98989A;
	--cf-border: #EEF3F6;
	--cf-field-bg: #F7F7F8;
	--cf-green: #7FB04F;
	--cf-green-dark: #6a9a3e;
	--cf-error: #e74c3c;
	--cf-max-width: 1704px;
}

.contact-form-section {
	max-width: 1880px;
	margin: 40px auto 0;
	padding: 0 40px;
}

.contact-form-section__panel {
	max-width: var(--cf-max-width);
	margin: 0 auto;
	display: flex;
	gap: 8px;
	background: #fff;
	border: 2px solid #F1F1F3;
	border-radius: 30px;
	padding: 8px;
}

/* =============================================================================
   Left column — image / heading / description / social
   ============================================================================= */

.contact-form-section__intro {
	flex: 0 0 42%;
	max-width: 42%;
	display: flex;
	flex-direction: column;
	background: #F6F9EC;
	border-radius: 24px;
	padding: 60px;
}

.contact-form-section__image-wrap {
	border-radius: 20px;
	overflow: hidden;
	margin-bottom: 32px;
}

.contact-form-section__image {
	display: block;
	width: 100%;
	height: 280px;
	object-fit: cover;
}

.contact-form-section__heading {
	font-family: var(--cf-font);
	font-size: 42px;
	font-weight: 600;
	line-height: 50px;
	color: var(--cf-heading);
	margin: 0 0 24px;
}

.contact-form-section__description {
	font-family: var(--cf-font);
	font-size: 20px;
	font-weight: 400;
	line-height: 30px;
	color: var(--cf-muted);
	margin: 0;
}

.contact-form-section__social {
	margin-top: auto;
	padding-top: 40px;
}

.contact-form-section__social-label {
	display: block;
	font-family: var(--cf-font);
	font-size: 20px;
	font-weight: 500;
	line-height: 30px;
	color: var(--cf-heading);
	margin-bottom: 16px;
}

.contact-form-section__social-icons {
	display: flex;
	gap: 20px;
}

.contact-form-section__social-icon {
	width: 64px;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--cf-border);
	border-radius: 12px;
	background: #fff;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.contact-form-section__social-icon:hover {
	border-color: var(--cf-green);
	background: rgba(127, 176, 79, 0.06);
}

.contact-form-section__social-icon img,
.contact-form-section__social-icon svg {
	width: 24px;
	height: 24px;
}

/* =============================================================================
   Right column — the form
   ============================================================================= */

.contact-form-section__form-wrap {
	flex: 1 1 auto;
	min-width: 0;
	background: #fff;
	border-radius: 24px;
	padding: 60px;
}

.contact-form__row {
	display: flex;
	gap: 24px;
	margin-bottom: 24px;
}

.contact-form__row--full {
	flex-direction: column;
}

.contact-form__field {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.contact-form__field label {
	font-family: var(--cf-font);
	font-size: 20px;
	font-weight: 500;
	line-height: 30px;
	color: var(--cf-heading);
}

.contact-form__required {
	color: var(--cf-error);
	margin-left: 2px;
}

.contact-form__field input[type="text"],
.contact-form__field input[type="email"],
.contact-form__field input[type="tel"],
.contact-form__field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 24px;
	border: 1px solid var(--cf-border);
	border-radius: 12px;
	background-color: var(--cf-field-bg);
	font-family: var(--cf-font);
	font-size: 18px;
	font-weight: 400;
	color: var(--cf-heading);
	outline: none;
	transition: border-color 0.2s ease, background-color 0.2s ease;
	appearance: none;
}

.contact-form__field textarea {
	min-height: 130px;
	height: 130px;
	resize: vertical;
}

.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder {
	color: var(--cf-muted);
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
	border-color: var(--cf-green);
	background-color: #fff;
	box-shadow: 0 0 0 3px rgba(127, 176, 79, 0.12);
}

.contact-form__field.is-invalid input,
.contact-form__field.is-invalid textarea {
	border-color: var(--cf-error);
}

.contact-form__error {
	display: none;
	font-family: var(--cf-font);
	font-size: 13px;
	color: var(--cf-error);
}

.contact-form__error:not(:empty) {
	display: block;
}

/* --- File upload --- */

.contact-form__file-box {
	background: var(--cf-field-bg);
	border: 1px solid var(--cf-border);
	border-radius: 16px;
	padding: 40px 20px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.contact-form__file-inner {
	display: flex;
	align-items: center;
	gap: 12px;
}

.contact-form__file-button {
	font-family: var(--cf-font);
	font-size: 14px;
	font-weight: 500;
	color: var(--cf-green);
	background: transparent;
	border: 1px solid var(--cf-green);
	border-radius: 8px;
	padding: 10px 16px;
	cursor: pointer;
	transition: background 0.15s ease;
}

.contact-form__file-button:hover {
	background: rgba(127, 176, 79, 0.06);
}

.contact-form__file-name {
	font-family: var(--cf-font);
	font-size: 14px;
	color: var(--cf-muted);
}

.contact-form__file-input {
	/* Visually hidden, but still focusable/keyboard-operable via the button's click(). */
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.contact-form__file-note {
	font-family: var(--cf-font);
	font-size: 12px;
	color: var(--cf-muted);
}

/* --- Honeypot (never shown to real visitors) --- */

.contact-form__honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* --- Footer row: captcha + submit --- */

.contact-form__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 16px;
	flex-wrap: wrap;
	gap: 20px;
}

.contact-form__submit {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--cf-font);
	font-size: 16px;
	font-weight: 500;
	background-color: var(--cf-green);
	color: #fff;
	border: none;
	border-radius: 12px;
	padding: 16px 28px;
	height: 62px;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.1s ease, opacity 0.2s ease;
	margin-left: auto;
}

.contact-form__submit:hover {
	background-color: var(--cf-green-dark);
}

.contact-form__submit:active {
	transform: scale(0.98);
}

.contact-form__submit:disabled {
	opacity: 0.7;
	cursor: default;
	transform: none;
}

.contact-form__response {
	margin-top: 20px;
	padding: 14px 18px;
	border-radius: 8px;
	font-family: var(--cf-font);
	font-size: 14px;
	font-weight: 500;
}

.contact-form__response.is-success {
	background: #eafbea;
	border: 1px solid var(--cf-green);
	color: #2e7d32;
}

.contact-form__response.is-error {
	background: #fdecea;
	border: 1px solid var(--cf-error);
	color: #c0392b;
}

/* =============================================================================
   Responsive
   ============================================================================= */

@media (max-width: 1400px) {
	.contact-form-section__panel {
		flex-direction: column;
		gap: 8px;
	}

	.contact-form-section__intro,
	.contact-form-section__form-wrap {
		flex: none;
		max-width: 100%;
		padding: 40px;
	}
}

@media (max-width: 680px) {
	.contact-form-section {
		padding: 0 16px;
		margin-top: 24px;
	}

	.contact-form-section__panel {
		border-radius: 20px;
	}

	.contact-form-section__intro,
	.contact-form-section__form-wrap {
		padding: 24px;
		border-radius: 16px;
	}

	.contact-form-section__heading {
		font-size: 30px;
		line-height: 38px;
	}

	.contact-form-section__description {
		font-size: 18px;
		line-height: 28px;
	}

	.contact-form__row {
		flex-direction: column;
		gap: 16px;
		margin-bottom: 16px;
	}

	.contact-form__footer {
		flex-direction: column;
		align-items: stretch;
	}

	.contact-form__submit {
		width: 100%;
		justify-content: center;
		margin-left: 0;
	}
}
