/* Contact Form 7 in the Barnsley Singers style. Loaded only when Contact Form 7 is active. */
.wpcf7 .wpcf7-form {
	max-width: 40rem;
}
.wpcf7 .wpcf7-form p {
	margin-block: 0 1.25rem;
}
.wpcf7 .wpcf7-form label {
	display: block;
	font-weight: 600;
	color: var(--wp--preset--color--ink, #1A1A1A);
}
.wpcf7 .wpcf7-form-control-wrap {
	display: block;
	margin-top: 0.35rem;
	font-weight: 400;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 input[type="date"],
.wpcf7 select,
.wpcf7 textarea {
	box-sizing: border-box;
	width: 100%;
	padding: 0.7rem 0.85rem;
	font: inherit;
	font-size: var(--wp--preset--font-size--medium, 1.0625rem);
	line-height: 1.4;
	color: var(--wp--preset--color--ink, #1A1A1A);
	background: #fff;
	border: 1px solid var(--wp--preset--color--secondary, #4A4A4A);
	border-radius: 0;
}
.wpcf7 textarea {
	min-height: 10rem;
	resize: vertical;
}
.wpcf7 input:focus-visible,
.wpcf7 select:focus-visible,
.wpcf7 textarea:focus-visible {
	outline: 3px solid var(--wp--preset--color--red, #BD1522);
	outline-offset: 2px;
	border-color: #000;
}
.wpcf7 input[type="checkbox"],
.wpcf7 input[type="radio"] {
	width: 1.15rem;
	height: 1.15rem;
	accent-color: var(--wp--preset--color--red, #BD1522);
	vertical-align: -0.15em;
}
.wpcf7 .wpcf7-list-item {
	margin: 0 1rem 0 0;
}
.wpcf7 .wpcf7-list-item-label {
	font-weight: 400;
}

/* Send button: matches the theme's buttons. */
.wpcf7 .wpcf7-submit {
	padding: 0.85rem 1.75rem;
	font-family: var(--wp--preset--font-family--heading, inherit);
	font-size: 1rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #fff;
	background: var(--wp--preset--color--red, #BD1522);
	border: 0;
	border-radius: 0;
	cursor: pointer;
}
.wpcf7 .wpcf7-submit:hover,
.wpcf7 .wpcf7-submit:focus-visible {
	background: #000;
}
.wpcf7 .wpcf7-submit:focus-visible {
	outline: 3px solid var(--wp--preset--color--red, #BD1522);
	outline-offset: 2px;
}
.wpcf7 .wpcf7-submit:disabled {
	opacity: 0.6;
	cursor: wait;
}

/* Errors: red border plus text, so colour is never the only signal. */
.wpcf7 .wpcf7-form-control.wpcf7-not-valid {
	border: 2px solid var(--wp--preset--color--red, #BD1522);
}
.wpcf7 .wpcf7-not-valid-tip {
	margin-top: 0.35rem;
	font-size: var(--wp--preset--font-size--small, 0.9375rem);
	font-weight: 600;
	color: var(--wp--preset--color--red, #BD1522);
}
.wpcf7 form .wpcf7-response-output {
	margin: 1.5rem 0 0;
	padding: 0.85rem 1rem;
	border: 2px solid var(--wp--preset--color--secondary, #4A4A4A);
	background: var(--wp--preset--color--paper, #F5F5F5);
	color: var(--wp--preset--color--ink, #1A1A1A);
}
.wpcf7 form.sent .wpcf7-response-output {
	border-color: #000;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output {
	border-color: var(--wp--preset--color--red, #BD1522);
}

/* Once a message is sent, the form makes way for the confirmation (theme 1.5.2). */
.wpcf7 form.sent > *:not(.wpcf7-response-output):not(.hidden-fields-container) {
	display: none !important;
}
.wpcf7 form.sent .wpcf7-response-output {
	position: relative;
	margin: 0;
	padding: 1.25rem 1.5rem 1.25rem 4rem;
	border: 0;
	border-left: 6px solid var(--wp--preset--color--red, #BD1522);
	background: var(--wp--preset--color--paper, #F5F5F5);
	color: var(--wp--preset--color--ink, #1A1A1A);
	font-size: var(--wp--preset--font-size--large, 1.25rem);
	line-height: 1.4;
}
/* Tick: black circle with a white check. */
.wpcf7 form.sent .wpcf7-response-output::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 1.25rem;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 50%;
	background: #000;
	transform: translateY(-50%);
}
.wpcf7 form.sent .wpcf7-response-output::after {
	content: "";
	position: absolute;
	top: 50%;
	left: calc(1.25rem + 0.6rem);
	width: 0.45rem;
	height: 0.8rem;
	border: solid #fff;
	border-width: 0 3px 3px 0;
	transform: translateY(-60%) rotate(45deg);
}
.wpcf7 form:focus {
	outline: none;
}
