/* ─────────────────────────────────────────────────────────────────────────
   Contact Form 7 — compatibility layer
   The form markup mirrors the original (.form-row / .field / <label>), so this
   only needs to style the controls CF7 renders. Values measured from the
   original static form: white field, 1px var(--line), radius 12px,
   padding 13px 16px, 14.5px text.
   ───────────────────────────────────────────────────────────────────────── */
.kohen-cf7 .wpcf7-form-control-wrap { display: block; width: 100%; }
.kohen-cf7 form.wpcf7-form { display: flex; flex-direction: column; gap: 16px; }
.kohen-cf7 .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.kohen-cf7 .field { display: flex; flex-direction: column; gap: 7px; }

.kohen-cf7 .field label {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--ink-500);
	text-transform: uppercase;
	letter-spacing: .03em;
}

.kohen-cf7 input[type="text"],
.kohen-cf7 input[type="email"],
.kohen-cf7 input[type="tel"],
.kohen-cf7 textarea {
	width: 100%;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	padding: 13px 16px;
	font-family: inherit;
	font-size: 14.5px;
	color: var(--ink-900);
	transition: border-color .2s ease, box-shadow .2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.kohen-cf7 textarea { resize: vertical; min-height: 110px; }

.kohen-cf7 input:focus,
.kohen-cf7 textarea:focus {
	outline: none;
	border-color: var(--teal-600);
	box-shadow: 0 0 0 3px rgba(22, 152, 171, .14);
}

.kohen-cf7 ::placeholder { color: var(--ink-300); opacity: 1; }

/* The submit already carries .btn .btn-primary; just make it full width. */
.kohen-cf7 .wpcf7-submit { width: 100%; margin-top: 4px; }

/* Validation */
.kohen-cf7 .wpcf7-not-valid { border-color: #d05a5a; }
.kohen-cf7 .wpcf7-not-valid-tip { font-size: 12px; color: #c0392b; margin-top: 5px; display: block; }
.kohen-cf7 .wpcf7-response-output {
	margin: 4px 0 0;
	padding: 12px 16px;
	border-radius: var(--radius-sm);
	font-size: 13.5px;
	border: 1px solid #e6c0c0;
	background: #fdf3f3;
	color: #a33a3a;
}
.kohen-cf7 .wpcf7-spinner { margin: 0 auto; display: block; }

@media (max-width: 620px) {
	.kohen-cf7 .form-row { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────────────────────────────────
   Success card — replaces the form after a successful send.
   Sits on the existing white form card, so it is transparent with dark text.
   ───────────────────────────────────────────────────────────────────────── */
.kohen-success {
	text-align: center;
	padding: 26px 8px 12px;
	animation: kohenSuccessIn .55s cubic-bezier(.34, 1.56, .64, 1) both;
}
@keyframes kohenSuccessIn {
	from { opacity: 0; transform: scale(.9) translateY(18px); }
	to   { opacity: 1; transform: scale(1) translateY(0); }
}

.kohen-success-icon { width: 76px; height: 76px; margin: 0 auto 22px; }
.kohen-success-icon svg { width: 100%; height: 100%; overflow: visible; }

.kohen-success-circle {
	fill: none;
	stroke: var(--teal-600);
	stroke-width: 2.5;
	stroke-dasharray: 166;
	stroke-dashoffset: 166;
	animation: kohenCircle .7s ease forwards .15s;
}
.kohen-success-check {
	fill: none;
	stroke: var(--teal-800);
	stroke-width: 3.5;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 50;
	stroke-dashoffset: 50;
	animation: kohenCheck .35s ease forwards .75s;
}
@keyframes kohenCircle { to { stroke-dashoffset: 0; } }
@keyframes kohenCheck  { to { stroke-dashoffset: 0; } }

.kohen-success-eyebrow {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--teal-600);
	margin-bottom: 10px;
	animation: kohenFadeUp .4s ease both .9s;
}
.kohen-success-title {
	font-size: 22px;
	font-weight: 800;
	color: var(--teal-950);
	margin: 0 0 12px;
	animation: kohenFadeUp .4s ease both 1s;
}
.kohen-success-msg {
	font-size: 15px;
	line-height: 1.7;
	color: var(--ink-700);
	max-width: 34ch;
	margin: 0 auto;
	animation: kohenFadeUp .4s ease both 1.1s;
}
@keyframes kohenFadeUp {
	from { opacity: 0; transform: translateY(10px); }
	to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
	.kohen-success,
	.kohen-success-eyebrow,
	.kohen-success-title,
	.kohen-success-msg { animation: none; }
	.kohen-success-circle,
	.kohen-success-check { animation: none; stroke-dashoffset: 0; }
}

/* ─────────────────────────────────────────────────────────────────────────
   Submit + textarea corrections.

   The submit carries .btn .btn-primary, but those lose to a more specific
   rule and it rendered as a plain white input. Restate the original's measured
   values (teal-700 fill, white text, radius-btn, 15px/28px padding) at a
   specificity nothing else on the page reaches.

   CF7's textarea defaults to rows=10 (246px); the original used rows=2 (110px).
   ───────────────────────────────────────────────────────────────────────── */
.kohen-cf7 form.wpcf7-form input.wpcf7-submit,
.kohen-cf7 form.wpcf7-form input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	width: 100%;
	margin-top: 4px;
	padding: 15px 28px;
	background: var(--teal-700);
	color: #fff;
	border: 1px solid transparent;
	border-radius: var(--radius-btn);
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	box-shadow: 0 10px 24px -10px rgba(18, 138, 158, .55);
	transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.kohen-cf7 form.wpcf7-form input.wpcf7-submit:hover {
	background: var(--teal-800);
	transform: translateY(-2px);
}

.kohen-cf7 form.wpcf7-form input.wpcf7-submit:disabled {
	opacity: .6;
	cursor: default;
	transform: none;
}

.kohen-cf7 form.wpcf7-form textarea {
	height: 110px;
	min-height: 110px;
}

/* CF7 puts the spinner after the button; keep it from adding a stray line. */
.kohen-cf7 .wpcf7-spinner { display: none; }
.kohen-cf7 form.submitting .wpcf7-spinner { display: block; margin: 10px auto 0; }
