/* Jonah's Music Coaching forms: Contact Form 7 prints its own markup, which no theme.json key reaches. Loaded only when the plugin
   is active (functions.php) and in the editor. Fields, button and messages on the design system's tokens. */

.wpcf7 form { display: grid; gap: var(--wp--preset--spacing--40); }
.wpcf7 form > p { margin: 0; }
.wpcf7 label { display: grid; gap: var(--wp--preset--spacing--20); font-size: var(--wp--preset--font-size--small); font-weight: var(--wp--custom--font-weight--semibold); }
.wpcf7 .wpcf7-form-control-wrap { display: block; }
.wpcf7 :is(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], textarea, select) {
	width: 100%; box-sizing: border-box; min-height: var(--wp--custom--control--height); padding: var(--wp--preset--spacing--30) var(--wp--custom--control--input-padding-x);
	border: var(--wp--custom--border--hairline) solid var(--wp--preset--color--border-strong); border-radius: var(--wp--custom--radius--input);
	background: var(--wp--preset--color--surface); color: var(--wp--preset--color--contrast); font: inherit; font-weight: var(--wp--custom--font-weight--regular);
}
.wpcf7 textarea { min-height: calc(var(--wp--custom--control--height) * 3); resize: vertical; }
.wpcf7 :is(input, textarea, select):focus-visible { outline: var(--wp--custom--border--focus) solid var(--wp--preset--color--focus); outline-offset: var(--wp--custom--border--focus-offset); }
.wpcf7 input[type="submit"] {
	min-height: var(--wp--custom--control--button-height); padding: 0 var(--wp--custom--control--padding-x); border: 0; border-radius: var(--wp--custom--radius--button);
	background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--on-contrast); font: inherit; font-weight: var(--wp--custom--font-weight--semibold); cursor: pointer;
	transition: background var(--wp--custom--transition--base);
}
.wpcf7 input[type="submit"]:hover { background: var(--wp--preset--color--accent-3); color: var(--wp--preset--color--on-accent); }
.wpcf7 .wpcf7-spinner { margin: 0 var(--wp--preset--spacing--30); }
.wpcf7 .wpcf7-not-valid { border-color: var(--wp--preset--color--error); }
.wpcf7 .wpcf7-not-valid-tip { margin-top: var(--wp--preset--spacing--20); color: var(--wp--preset--color--error); font-size: var(--wp--preset--font-size--small); font-weight: var(--wp--custom--font-weight--semibold); }
.wpcf7 form .wpcf7-response-output { margin: 0; padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40); border: 0; border-radius: var(--wp--custom--radius--input); font-size: var(--wp--preset--font-size--small); }
.wpcf7 form.sent .wpcf7-response-output { background: var(--wp--preset--color--success-surface); color: var(--wp--preset--color--success); }
.wpcf7 form:is(.invalid, .unaccepted, .failed, .spam, .aborted) .wpcf7-response-output { background: var(--wp--preset--color--error-surface); color: var(--wp--preset--color--error); }
