/*
 * Contact form v2 — the form becomes a card with a gold header rule, icon-led
 * fields, mono labels, a full-width CTA and a reassurance line. CSS only:
 * the CF7 template (form 5706) and page markup are unchanged.
 * @package log-core
 */

.log-co-form-col {
	position: relative;
	padding: 36px 36px 32px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 20px;
	box-shadow: var(--shadow-md);
	overflow: hidden;
}

.log-co-form-col::before {
	content: '';
	position: absolute;
	inset: 0 0 auto 0;
	height: 4px;
	background: linear-gradient(90deg, var(--sage-700), var(--sage-500), var(--sage-700));
}

.log-co-form-col h2 { font-size: clamp(26px, 3vw, 34px); }
.log-co-form-note { max-width: none; padding-bottom: 20px; border-bottom: 1px dashed var(--line); }
.log-co-form-embed { margin-top: 4px; }

/* Labels */
.log-co-form-embed .wpcf7-form .cu-field-group label {
	font-family: var(--mono, monospace);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--ink-700);
	margin-bottom: 8px;
}
.log-co-form-embed .wpcf7-form .cu-optional { font-family: var(--mono, monospace); letter-spacing: .06em; text-transform: none; }

/* Fields */
.log-co-form-embed input.cu-field,
.log-co-form-embed textarea.cu-field {
	min-height: 52px;
	padding: 14px 16px 14px 46px;
	font-size: 14.5px;
	background-color: var(--paper-50);
	background-repeat: no-repeat;
	background-position: 16px 50%;
	background-size: 18px 18px;
	border: 1.5px solid var(--line);
	border-radius: 12px;
}
.log-co-form-embed input.cu-field:hover,
.log-co-form-embed textarea.cu-field:hover { border-color: rgba(123, 89, 2, .45); }
.log-co-form-embed input.cu-field:focus,
.log-co-form-embed textarea.cu-field:focus {
	background-color: #fff;
	border-color: var(--sage-700);
	box-shadow: 0 0 0 4px rgba(123, 89, 2, .12);
}

/* Field icons (stroke #1c3a5e) */
#cu-name  { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b5902' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4.4 3.6-7 8-7s8 2.6 8 7'/%3E%3C/svg%3E"); }
#cu-email { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b5902' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E"); }
#cu-phone,
#cu-phone2 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b5902' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2Z'/%3E%3C/svg%3E"); }
#cu-message { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b5902' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.6 7.1L4 20l1-4.6A8 8 0 1 1 21 12Z'/%3E%3C/svg%3E"); background-position: 16px 17px; min-height: 96px; height: 96px; resize: vertical; }

/* Submit */
.log-co-form-embed .cu-submit-row { margin-top: 22px; }
.log-co-form-embed .cu-btn-submit {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 16px 24px;
	border: 0;
	border-radius: 12px;
	background: var(--sage-700);
	color: var(--paper);
	font-family: var(--body);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: 0 10px 24px rgba(123, 89, 2, .28);
	transition: transform .25s var(--ease), background .25s, box-shadow .25s;
}
.log-co-form-embed .cu-btn-submit:hover { background: var(--sage-500); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(123, 89, 2, .34); }
.log-co-form-embed .cu-btn-submit:active { transform: translateY(0); }

/* CF7 validation + response */
.log-co-form-embed .wpcf7-not-valid { border-color: #b3261e !important; }
.log-co-form-embed .wpcf7-not-valid-tip { margin-top: 6px; font-size: 12px; color: #b3261e; }
.log-co-form-embed .wpcf7 form .wpcf7-response-output {
	margin: 18px 0 0;
	padding: 12px 16px;
	border-radius: 10px;
	border: 1px solid var(--line);
	background: var(--paper-50);
	font-size: 13px;
}
.log-co-form-embed .wpcf7 form.sent .wpcf7-response-output { border-color: #2e7d32; background: rgba(46, 125, 50, .08); }

@media (max-width: 640px) {
	.log-co-form-col { padding: 28px 20px 24px; border-radius: 16px; }
	.log-co-form-embed input.cu-field,
	.log-co-form-embed textarea.cu-field { font-size: 16px; }
}
