/* ============================================================
   Onyoda — Contact page (Contact Form 7)
   Page heading + lead + brand form styling (same input treatment
   as checkout: cream ground, sienna hairline, Hanken labels,
   sienna primary button). Uses theme.json design tokens.
   ============================================================ */

/* ---------- Page heading ("Contact") ----------
   page.html <main> carries 40px top padding (spacing|50); +50px here
   brings the heading to the ~90px used across the other pages. */
.wp-block-post-title {
	margin: 50px 0 40px;
	text-align: center;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 400;
	font-size: 54px;
	color: var(--wp--preset--color--sienna);
}

/* ---------- Lead paragraph ---------- */
.onyoda-contact__lead {
	max-width: 620px;
	margin: 0 auto 44px;
	font-family: var(--wp--preset--font-family--body);
	font-size: 15px;
	font-weight: 300;
	line-height: 1.7;
	color: color-mix(in srgb, var(--wp--preset--color--sienna) 90%, transparent);
}

/* ---------- Form container (centered, 620px) ---------- */
.wpcf7 {
	max-width: 620px;
	margin: 0 auto 96px;
}
.onyoda-cf7__row {
	margin: 0 0 20px;
}
.onyoda-cf7__row label {
	display: block;
	margin-bottom: 8px;
	font-family: var(--wp--preset--font-family--body);
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0.02em;
	color: color-mix(in srgb, var(--wp--preset--color--sienna) 70%, transparent);
}
.onyoda-cf7__req {
	color: var(--wp--preset--color--sienna);
}

/* ---------- Inputs — identical to checkout ---------- */
.onyoda-cf7 input[type="text"],
.onyoda-cf7 input[type="email"],
.onyoda-cf7 textarea {
	width: 100%;
	box-sizing: border-box;
	background: var(--wp--preset--color--cream);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--sienna) 18%, transparent);
	border-radius: 2px;
	color: var(--wp--preset--color--sienna);
	font-family: var(--wp--preset--font-family--body);
	font-size: 14px;
	line-height: 1.4;
	padding: 14px 16px;
}
.onyoda-cf7 input[type="text"]:focus,
.onyoda-cf7 input[type="email"]:focus,
.onyoda-cf7 textarea:focus {
	border-color: var(--wp--preset--color--sienna);
	box-shadow: none;
	outline: none;
}
.onyoda-cf7 input::placeholder,
.onyoda-cf7 textarea::placeholder {
	color: color-mix(in srgb, var(--wp--preset--color--sienna) 45%, transparent);
}
.onyoda-cf7 textarea {
	min-height: 160px;
	resize: vertical;
}

/* ---------- Submit — sienna, matches cart/checkout buttons ---------- */
.onyoda-cf7__submit {
	margin: 8px 0 0;
}
.onyoda-cf7 .wpcf7-submit {
	background: var(--wp--preset--color--sienna);
	color: var(--wp--preset--color--cream);
	border: none;
	border-radius: 0;
	font-family: var(--wp--preset--font-family--body);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	padding: 16px 40px;
	cursor: pointer;
	transition: background 0.4s ease;
}
.onyoda-cf7 .wpcf7-submit:hover {
	background: var(--wp--preset--color--espresso);
}
.onyoda-cf7 .wpcf7-spinner {
	background-color: var(--wp--preset--color--sienna);
}

/* ---------- CF7 validation / response messages ---------- */
.wpcf7 .wpcf7-not-valid-tip {
	margin-top: 6px;
	font-family: var(--wp--preset--font-family--body);
	font-size: 13px;
	color: #a3341f;
}
.wpcf7 .wpcf7-not-valid {
	border-color: #a3341f !important;
}
.wpcf7 .wpcf7-response-output {
	margin: 24px 0 0;
	padding: 14px 18px;
	border-radius: 2px;
	font-family: var(--wp--preset--font-family--body);
	font-size: 14px;
}
.wpcf7 form.sent .wpcf7-response-output {
	border-color: #5a6b4a;
	background: #f0f3ec;
	color: #3d4a31;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
	border-color: #a3341f;
	background: #faf1ee;
	color: #a3341f;
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
	.wp-block-post-title {
		margin-top: 24px;
		font-size: 42px;
	}
}
