/**
 * HID Contact Form — front-end styles.
 * Brand palette: green #67BD50, black #2A2A2A, light-ash #F0F6E7,
 * green-track #D6EAC8, pink #EF5D97.
 */

.hid-contact-form-wrap {
	max-width: 640px;
	margin: 0 auto;
}

.hid-contact-form {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

/* Accessible label hiding (no such utility existed in the plugin). */
.hid-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.hid-contact-field {
	display: block;
}

.hid-contact-input {
	width: 100%;
	box-sizing: border-box;
	padding: 16px 18px;
	font-size: 16px;
	line-height: 1.5;
	color: #2a2a2a;
	background: #fafdf7;
	border: 1.5px solid #e3eed9;
	border-radius: 14px;
	box-shadow: inset 0 1px 2px rgba(42, 42, 42, 0.04);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
	font-family: inherit;
	-webkit-appearance: none;
	appearance: none;
}

.hid-contact-input:hover {
	border-color: #c7e2b6;
	background: #ffffff;
}

.hid-contact-input:focus {
	outline: none;
	background: #ffffff;
	border-color: #67bd50;
	box-shadow: 0 0 0 4px rgba(103, 189, 80, 0.16), inset 0 1px 2px rgba(42, 42, 42, 0.03);
}

.hid-contact-textarea {
	resize: vertical;
	min-height: 150px;
}

/* Make the placeholder text look intentional (these are the only visible labels). */
.hid-contact-input::placeholder {
	color: #8a9a82;
	opacity: 1;
	font-size: 16px;
}
.hid-contact-input:focus::placeholder {
	color: #b3c0aa;
}

.hid-contact-actions {
	margin-top: 4px;
}

.hid-contact-submit {
	display: inline-block;
	width: 100%;
	padding: 16px 28px;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #ffffff;
	background-image: linear-gradient(135deg, #74c95d 0%, #67bd50 55%, #54a43f 100%);
	background-color: #67bd50;
	border: none;
	border-radius: 14px;
	cursor: pointer;
	box-shadow: 0 6px 16px rgba(103, 189, 80, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.22);
	transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
	font-family: inherit;
}

.hid-contact-submit:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(103, 189, 80, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
	filter: brightness(1.03);
}
.hid-contact-submit:active {
	transform: translateY(0);
	box-shadow: 0 4px 12px rgba(103, 189, 80, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.hid-contact-submit:focus-visible {
	outline: none;
	box-shadow: 0 6px 16px rgba(103, 189, 80, 0.32), 0 0 0 4px rgba(103, 189, 80, 0.25);
}
.hid-contact-submit:disabled {
	background-image: none;
	background-color: #a9d49b;
	box-shadow: none;
	transform: none;
	opacity: 0.85;
	cursor: not-allowed;
}

/* Honeypot — hidden from humans. */
.hid-contact-hp {
	position: absolute !important;
	left: -9999px !important;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Feedback message */
.hid-contact-feedback {
	margin-top: 4px;
	font-size: 15px;
	line-height: 1.5;
	display: none;
}
.hid-contact-feedback.is-visible {
	display: block;
}
.hid-contact-feedback.is-success {
	color: #2f7d1c;
	background: #f0f6e7;
	border: 1px solid #d6eac8;
	border-radius: 10px;
	padding: 14px 16px;
}
.hid-contact-feedback.is-error {
	color: #b23b6f;
	background: #fdeef5;
	border: 1px solid #f6cfe0;
	border-radius: 10px;
	padding: 14px 16px;
}

/* ── Captcha modal ─────────────────────────────────────────────────────────── */

.hid-contact-captcha-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(42, 42, 42, 0.55);
	padding: 20px;
}
.hid-contact-captcha-overlay[hidden] {
	display: none;
}

.hid-contact-captcha-box {
	position: relative;
	width: 100%;
	max-width: 360px;
	background: #ffffff;
	border-radius: 16px;
	padding: 28px 26px 26px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
	text-align: center;
	animation: hidCfPop 0.18s ease;
}

@keyframes hidCfPop {
	from { transform: translateY(8px) scale(0.98); opacity: 0; }
	to   { transform: translateY(0)    scale(1);    opacity: 1; }
}

.hid-contact-captcha-close {
	position: absolute;
	top: 10px;
	right: 12px;
	border: none;
	background: none;
	font-size: 26px;
	line-height: 1;
	color: #9aa39a;
	cursor: pointer;
}
.hid-contact-captcha-close:hover { color: #2a2a2a; }

.hid-contact-captcha-title {
	margin: 0 0 10px;
	font-size: 18px;
	font-weight: 700;
	color: #2a2a2a;
}

.hid-contact-captcha-q {
	margin: 0 0 14px;
	font-size: 26px;
	font-weight: 800;
	letter-spacing: 0.5px;
	color: #67bd50;
}

.hid-contact-captcha-input {
	width: 120px;
	text-align: center;
	padding: 12px;
	font-size: 20px;
	font-weight: 700;
	color: #2a2a2a;
	border: 1.5px solid #d6eac8;
	border-radius: 10px;
	margin-bottom: 14px;
}
.hid-contact-captcha-input:focus {
	outline: none;
	border-color: #67bd50;
	box-shadow: 0 0 0 3px rgba(103, 189, 80, 0.18);
}

.hid-contact-captcha-err {
	margin: 0 0 12px;
	color: #b23b6f;
	font-size: 14px;
	font-weight: 600;
}

.hid-contact-captcha-verify {
	width: 100%;
}
