/* The theme hides the legacy booking block until its JavaScript opens it. */
#contact .ps-contact-intake .booking-form {
	display: block;
}

.ps-contact-intake:has(input[name="reserve"]:not(:checked)) .booking-form:not(.ps-contact-animated),
#contact .ps-contact-intake:has(input[name="reserve"]:not(:checked)) .booking-form:not(.ps-contact-animated) {
	display: none;
}

/* Counterparts of the theme rules scoped to CF7 checkbox and select wrappers. */
#contact .ps-contact-choice {
	cursor: pointer;
	font-family: OpenSansRegular, sans-serif;
	font-weight: normal;
}

#contact .ps-contact-choice input[type="checkbox"] {
	width: 18px;
}

#contact .ps-contact-select {
	vertical-align: middle;
}

/* Show a chosen date after blur without the legacy form's JavaScript. */
#contact .ps-contact-intake .date:is(:valid, :out-of-range)::before {
	display: none;
}

#contact .ps-contact-intake .date:is(:valid, :out-of-range)::-webkit-datetime-edit {
	display: block;
}

/* Incomplete submissions need a warning distinct from the theme's success banner. */
#contact .ps-contact-intake .ps-contact-validation {
	background-color: #fcedea;
	color: #692b20;
	border-left-color: #e2401c;
	margin: 2em .5em 1em 0;
}

.ps-contact-intake .ps-contact-validation[hidden] {
	display: none;
}

.ps-contact-intake textarea.ps-contact-autogrow {
	box-sizing: border-box;
	overflow-y: hidden;
}

@media (prefers-reduced-motion: no-preference) {
	.ps-contact-intake textarea.ps-contact-autogrow {
		transition: min-height 260ms ease-out;
	}
}

#contact .ps-contact-intake textarea.ps-contact-measure {
	position: fixed;
	top: 0;
	left: 0;
	box-sizing: border-box;
	height: 0;
	min-height: 0;
	max-width: none;
	overflow: hidden;
	visibility: hidden;
}

.ps-receipt-page .entry-header .entry-title,
.ps-receipt-page .ps-thanks {
	max-width: 660px;
	margin-inline: auto;
}

.ps-receipt-page .entry-header .entry-title {
	color: #194f58;
	font-family: OpenSansBold, sans-serif;
	font-size: clamp(28px, 3.2vw, 42px);
	letter-spacing: -.035em;
	line-height: 1.12;
}

.ps-thanks {
	box-sizing: border-box;
	padding: clamp(20px, 5vw, 48px);
	border-radius: 8px 48px;
	background: linear-gradient(145deg, #fff 35%, #e1f1ef);
	box-shadow: 0 6px 22px rgba(28, 63, 68, .08);
	color: #283e42;
	line-height: 1.6;
}

.ps-thanks .ps-thanks__lead {
	margin: 0 0 .55em;
	color: #194f58;
	font-family: OpenSansBold, sans-serif;
	font-size: clamp(19px, 2vw, 24px);
	line-height: 1.35;
}

.ps-thanks .ps-thanks__reference {
	margin: 1.25em 0 0;
	color: #566969;
	font-size: 13px;
	line-height: 1.5;
}

.ps-thanks__reference code {
	padding: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	overflow-wrap: anywhere;
	user-select: all;
}

.ps-thanks__tip { margin: 1.5rem 0; padding: 1rem 1.25rem; background: #fff6d9; border-radius: .5rem; color: #493d22; }
.ps-thanks__tip p { margin: .25em 0 0; }
.ps-thanks a { color: #175865; text-decoration: underline; text-underline-offset: .18em; }
.ps-thanks__home { display: inline-block; padding-block: .45em; font-weight: bold; }
