/* HomeoValley Connect - built on the Homeo Valley Clinical Green design system. */

.hvc-split,
.hvc-card {
	--hvc-bg: #F5F9F8;
	--hvc-surface: #FFFFFF;
	--hvc-ink: #12312A;
	--hvc-muted: #54756D;
	--hvc-accent: #0E7C6B;
	--hvc-accent-dark: #0A5F52;
	--hvc-accent-deep: #083F35;
	--hvc-tint: #EAF4F1;
	--hvc-tint-strong: #DBEEE9;
	--hvc-line: #DCE8E4;
	--hvc-alert: #C62828;
	--hvc-r-input: 8px;
	--hvc-r-card: 14px;
	--hvc-r-pill: 99px;
	--hvc-sans: Manrope, -apple-system, BlinkMacSystemFont, sans-serif;
	--hvc-serif: Merriweather, Georgia, serif;
	color: var(--hvc-ink);
	font-family: var(--hvc-sans);
}

.hvc-auth-page .page-header,
.hvc-auth-page .entry-header,
.hvc-auth-page .hv-breadcrumb {
	display: none;
}

.hvc-split {
	display: grid;
	grid-template-columns: 0.85fr 1fr;
	max-width: 940px;
	margin: 0 auto;
	border: 1px solid var(--hvc-line);
	border-radius: var(--hvc-r-card);
	background: var(--hvc-surface);
	overflow: hidden;
}

.hvc-aside {
	padding: 44px 36px;
	background: linear-gradient(160deg, var(--hvc-accent) 0%, var(--hvc-accent-dark) 100%);
	color: #fff;
}

.hvc-aside h2 {
	margin: 0 0 22px;
	font-family: var(--hvc-serif);
	font-weight: 700;
	font-size: 27px;
	line-height: 1.15;
	color: #fff;
}

.hvc-points {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 15px;
	line-height: 1.5;
}

.hvc-points li {
	position: relative;
	padding: 0 0 14px 26px;
	color: #EAF4F1;
}

.hvc-points li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 7px;
	width: 9px;
	height: 9px;
	border-radius: var(--hvc-r-pill);
	background: rgba(255, 255, 255, 0.55);
}

.hvc-aside-note {
	margin: 20px 0 0;
	padding-top: 18px;
	border-top: 1px solid rgba(255, 255, 255, 0.22);
	font-size: 13px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.8);
}

.hvc-card {
	max-width: 460px;
	margin: 0 auto;
	padding: 30px;
	border: 1px solid var(--hvc-line);
	border-radius: var(--hvc-r-card);
	background: var(--hvc-surface);
	font-size: 16px;
	line-height: 1.55;
}

.hvc-split .hvc-card {
	max-width: none;
	border: 0;
	border-radius: 0;
	padding: 40px 36px;
}

.hvc-dash {
	max-width: 760px;
}

.hvc-title {
	margin: 0 0 22px;
	font-family: var(--hvc-serif);
	font-weight: 700;
	font-size: 25px;
	line-height: 1.15;
	color: var(--hvc-ink);
}

.hvc-field {
	margin-bottom: 18px;
}

.hvc-field label {
	display: block;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--hvc-muted);
	text-transform: uppercase;
	margin-bottom: 7px;
}

.hvc-field label span {
	color: var(--hvc-alert);
}

.hvc-field input,
.hvc-field select,
.hvc-field textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--hvc-line);
	border-radius: var(--hvc-r-input);
	background: var(--hvc-surface);
	font-family: var(--hvc-sans);
	font-size: 15px;
	color: var(--hvc-ink);
	box-sizing: border-box;
}

.hvc-field textarea {
	resize: vertical;
	line-height: 1.55;
}

.hvc-field input::placeholder,
.hvc-field textarea::placeholder {
	color: #8AA39C;
}

.hvc-field input:focus,
.hvc-field select:focus,
.hvc-field textarea:focus {
	outline: 2px solid var(--hvc-accent);
	outline-offset: 2px;
	border-color: var(--hvc-accent);
}

.hvc-field input:disabled {
	background: var(--hvc-tint);
	color: var(--hvc-muted);
}

.hvc-inline {
	display: flex;
	gap: 8px;
}

.hvc-inline input {
	flex: 1 1 auto;
	min-width: 0;
}

.hvc-btn {
	padding: 12px 20px;
	border-radius: var(--hvc-r-pill);
	font-family: var(--hvc-sans);
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.hvc-btn-primary {
	display: block;
	width: 100%;
	margin-top: 10px;
	padding: 14px 22px;
	border: 0;
	background: var(--hvc-accent);
	color: #fff;
	font-size: 16px;
}

.hvc-btn-primary:hover:not(:disabled) {
	background: var(--hvc-accent-dark);
}

.hvc-btn-primary:active:not(:disabled) {
	transform: translateY(1px);
}

.hvc-btn-primary:disabled {
	background: var(--hvc-tint-strong);
	color: var(--hvc-muted);
	cursor: not-allowed;
}

.hvc-btn-ghost {
	flex: 0 0 auto;
	border: 1px solid var(--hvc-accent);
	background: var(--hvc-surface);
	color: var(--hvc-accent);
}

.hvc-btn-ghost:hover:not(:disabled) {
	background: var(--hvc-tint);
}

.hvc-btn-ghost:disabled {
	border-color: var(--hvc-line);
	color: var(--hvc-muted);
	cursor: not-allowed;
}

.hvc-hint,
.hvc-note {
	margin: 7px 0 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--hvc-muted);
}

.hvc-note {
	font-size: 15px;
	margin: 0;
}

.hvc-msg {
	margin: 6px 0 0;
	font-size: 14px;
	min-height: 1px;
	color: var(--hvc-alert);
}

.hvc-msg.is-ok {
	color: var(--hvc-accent-dark);
}

.hvc-alt {
	margin: 16px 0 0;
	text-align: center;
	font-size: 14px;
	color: var(--hvc-muted);
}

.hvc-alt a {
	color: var(--hvc-accent);
	font-weight: 700;
}

.hvc-hp {
	position: absolute;
	left: -9999px;
	height: 0;
	overflow: hidden;
}

.hvc-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: var(--hvc-r-pill);
	background: var(--hvc-tint);
	color: var(--hvc-accent-dark);
	font-size: 12px;
	font-weight: 700;
}

.hvc-meta {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 9px 20px;
	margin: 0 0 26px;
	font-size: 15px;
}

.hvc-meta dt {
	color: var(--hvc-muted);
}

.hvc-meta dd {
	margin: 0;
	font-weight: 700;
}

.hvc-panel {
	padding: 20px;
	margin-bottom: 16px;
	border: 1px solid var(--hvc-line);
	border-radius: var(--hvc-r-card);
}

.hvc-panel h3 {
	margin: 0 0 10px;
	font-family: var(--hvc-serif);
	font-weight: 700;
	font-size: 18px;
	line-height: 1.2;
}

.hvc-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.hvc-table th,
.hvc-table td {
	padding: 10px 8px;
	text-align: left;
	border-bottom: 1px solid var(--hvc-line);
}

.hvc-table th {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--hvc-muted);
}

.hvc-price {
	text-align: center;
	padding-bottom: 20px;
	margin-bottom: 22px;
	border-bottom: 1px solid var(--hvc-line);
}

.hvc-price-old {
	font-size: 19px;
	color: var(--hvc-muted);
	text-decoration: line-through;
	margin-right: 10px;
}

.hvc-price-new {
	font-family: var(--hvc-serif);
	font-size: 34px;
	font-weight: 700;
	line-height: 1.1;
	color: var(--hvc-accent);
}

.hvc-price .hvc-badge {
	display: block;
	width: fit-content;
	margin: 10px auto 0;
}

.hvc-slots {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 12px;
	border: 1px solid var(--hvc-line);
	border-radius: var(--hvc-r-input);
	background: var(--hvc-bg);
	min-height: 46px;
}

.hvc-slot {
	padding: 9px 14px;
	border: 1px solid var(--hvc-line);
	border-radius: var(--hvc-r-pill);
	background: var(--hvc-surface);
	font-family: var(--hvc-sans);
	font-size: 14px;
	color: var(--hvc-ink);
	cursor: pointer;
}

.hvc-slot:hover {
	border-color: var(--hvc-accent);
}

.hvc-slot.is-active {
	background: var(--hvc-accent);
	border-color: var(--hvc-accent);
	color: #fff;
	font-weight: 700;
}

.hvc-done h3 {
	margin: 0 0 14px;
	font-family: var(--hvc-serif);
	font-size: 22px;
	line-height: 1.15;
	color: var(--hvc-accent-dark);
}

/* Booking page hero: hv-site.php sets min-height:min(78vh,620px) site wide.
   Tighten it only where a HV Connect form is present. */
body .hv-hero {
	min-height: 0 !important;
	padding: 40px 24px 44px !important;
}

body .page-content .hv-hero,
body .entry-content .hv-hero,
body .site-main .hv-hero {
	margin-bottom: 12px !important;
}

body .hv-hero h1 {
	margin-bottom: 12px;
}

body .hv-hero p {
	margin-bottom: 20px;
}

body .hv-hero .hv-hero-btns {
	margin-bottom: 0;
}

#book-form {
	height: 0;
	margin: 0;
	padding: 0;
	scroll-margin-top: 90px;
}

@media (max-width: 768px) {
	.hvc-split {
		grid-template-columns: 1fr;
	}
	.hvc-aside {
		padding: 30px 24px;
	}
	.hvc-aside h2 {
		font-size: 23px;
		margin-bottom: 16px;
	}
	.hvc-points li {
		padding-bottom: 10px;
	}
	.hvc-split .hvc-card {
		padding: 28px 24px;
	}
	.hvc-card {
		padding: 24px;
	}
	.hvc-meta {
		grid-template-columns: 1fr;
		gap: 3px;
	}
	body .hv-hero {
		padding: 30px 18px 34px !important;
	}
	body .page-content .hv-hero,
	body .entry-content .hv-hero,
	body .site-main .hv-hero {
		margin-bottom: 16px !important;
	}
}
/* Links inside our components follow the design system, not the theme.
   The theme paints links red with an underline, which fights the palette. */
.hvc-card a,
.hvc-aside a {
	color: var(--hvc-accent);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.hvc-card a:hover {
	color: var(--hvc-accent-dark);
}

.hvc-card a.hvc-btn,
.hvc-card a.hvc-btn:hover {
	text-decoration: none;
}

.hvc-gate {
	max-width: 520px;
}

.hvc-gate .hvc-title {
	margin-bottom: 10px;
}

.hvc-gate-points {
	list-style: none;
	margin: 20px 0 24px;
	padding: 18px 0;
	border-top: 1px solid var(--hvc-line);
	border-bottom: 1px solid var(--hvc-line);
	font-size: 15px;
	line-height: 1.5;
}

.hvc-gate-points li {
	position: relative;
	padding: 0 0 10px 26px;
	color: var(--hvc-ink);
}

.hvc-gate-points li:last-child {
	padding-bottom: 0;
}

.hvc-gate-points li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 7px;
	width: 8px;
	height: 8px;
	border-radius: var(--hvc-r-pill);
	background: var(--hvc-accent);
}

.hvc-actions {
	display: flex;
	gap: 10px;
}

.hvc-actions .hvc-btn {
	flex: 1 1 0;
	display: block;
	width: auto;
	margin-top: 0;
	padding: 13px 18px;
	text-align: center;
	font-size: 15px;
}

.hvc-btn-outline {
	border: 1px solid var(--hvc-accent);
	background: var(--hvc-surface);
	color: var(--hvc-accent);
}

.hvc-btn-outline:hover {
	background: var(--hvc-tint);
	color: var(--hvc-accent-dark);
}

.hvc-centre {
	text-align: center;
}

@media (max-width: 480px) {
	.hvc-actions {
		flex-direction: column;
	}
}
/* Button links must keep their own colour: the generic link rule above is
   more specific than .hvc-btn-primary and was painting the label green on a
   green ground. */
.hvc-card a.hvc-btn-primary,
.hvc-card a.hvc-btn-primary:hover,
.hvc-card a.hvc-btn-primary:visited,
.hvc-card a.hvc-btn-primary:focus {
	color: #fff;
}

.hvc-card a.hvc-btn-outline,
.hvc-card a.hvc-btn-outline:visited {
	color: var(--hvc-accent);
}

.hvc-card a.hvc-btn-outline:hover {
	color: var(--hvc-accent-dark);
}
/* Dashboard: summary figures, the next visit, and scrollable history tables. */
.hvc-stats {
	display: flex;
	gap: 10px;
	margin-bottom: 20px;
}

.hvc-stat {
	flex: 1 1 0;
	padding: 14px 12px;
	border: 1px solid var(--hvc-line);
	border-radius: var(--hvc-r-card);
	background: var(--hvc-bg);
	text-align: center;
}

.hvc-stat strong {
	display: block;
	font-family: var(--hvc-serif);
	font-size: 22px;
	line-height: 1.1;
	color: var(--hvc-accent);
}

.hvc-stat span {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--hvc-muted);
}

.hvc-next {
	padding: 14px 16px;
	margin-top: 10px;
	border-left: 3px solid var(--hvc-accent);
	border-radius: 0 var(--hvc-r-input) var(--hvc-r-input) 0;
	background: var(--hvc-tint);
}

.hvc-next-when {
	font-family: var(--hvc-serif);
	font-weight: 700;
	font-size: 17px;
	line-height: 1.2;
	color: var(--hvc-ink);
}

.hvc-next-meta {
	margin-top: 4px;
	font-size: 13px;
	color: var(--hvc-muted);
}

.hvc-next-meta code,
.hvc-table code {
	font-size: 13px;
	color: var(--hvc-accent-dark);
	background: none;
	padding: 0;
}

.hvc-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.hvc-scroll .hvc-table {
	min-width: 380px;
}

.hvc-ref {
	font-size: 12px;
	color: var(--hvc-muted);
	word-break: break-all;
}

@media (max-width: 520px) {
	.hvc-stats {
		gap: 6px;
	}
	.hvc-stat {
		padding: 11px 6px;
	}
	.hvc-stat strong {
		font-size: 18px;
	}
	.hvc-stat span {
		font-size: 10px;
	}
}
/* The theme draws a red bar under every h2. Red is reserved for the booking
   action and errors in this palette, so it is removed inside our cards. */
.hvc-card h2::after,
.hvc-card h2::before,
.hvc-aside h2::after,
.hvc-aside h2::before,
.hvc-panel h3::after,
.hvc-panel h3::before {
	display: none !important;
	content: none !important;
}

/* Tighter reassurance panel. On a phone it was eating a whole screen before
   the form appeared. */
@media (max-width: 768px) {
	.hvc-split {
		border-radius: var(--hvc-r-card);
	}

	/* Sign in is why the visitor came, so the form goes first and the panel
	   sits under it as supporting text. */
	.hvc-split .hvc-card {
		order: 1;
		padding: 26px 22px 24px;
	}

	.hvc-aside {
		order: 2;
		padding: 22px 22px 24px;
	}

	.hvc-aside h2 {
		font-size: 19px;
		margin-bottom: 12px;
	}

	.hvc-points {
		font-size: 14px;
		line-height: 1.4;
	}

	.hvc-points li {
		padding: 0 0 8px 22px;
	}

	.hvc-points li::before {
		top: 6px;
		width: 7px;
		height: 7px;
	}

	.hvc-aside-note {
		margin-top: 14px;
		padding-top: 12px;
		font-size: 12.5px;
	}

	.hvc-title {
		font-size: 22px;
		margin-bottom: 18px;
	}
}
/* Roomier fields. 16px is deliberate: iOS zooms the page in when a focused
   input is smaller than that. */
.hvc-field input,
.hvc-field select,
.hvc-field textarea {
	padding: 13px 15px;
	font-size: 16px;
}

.hvc-field label {
	font-size: 12px;
	margin-bottom: 5px;
}

.hvc-field {
	margin-bottom: 14px;
}

.hvc-btn-primary {
	margin-top: 6px;
	padding: 15px 22px;
}

.hvc-inline {
	gap: 7px;
}

.hvc-inline .hvc-btn-ghost {
	padding: 12px 14px;
	font-size: 14px;
}

@media (max-width: 768px) {
	/* Less side padding means the fields themselves get wider, which is what
	   actually matters on a narrow screen. */
	.hvc-split .hvc-card {
		padding: 22px 16px 22px;
	}

	.hvc-card {
		padding: 22px 16px;
	}

	.hvc-aside {
		padding: 20px 16px 22px;
	}

	.hvc-title {
		margin-bottom: 16px;
	}

	.hvc-field {
		margin-bottom: 13px;
	}

	.hvc-hint {
		margin-top: 5px;
	}

	.hvc-alt {
		margin-top: 12px;
	}
}