/**
 * HBA – Book A Session page styles (patterns hba/book-hero, hba/book-form,
 * hba/clinic-hours; the "Prefer To Book Straight Away?" card reuses the FAQ
 * card styles in faq.css). Measured from the 1920px design; values scale
 * fluidly below that. Loaded only on pages that use these patterns.
 */

/* ==========================================================================
   Hero (hba/book-hero)
   ========================================================================== */
.hba-book-hero {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: clamp(360px, 30.16vw, 579px);
	padding-top: clamp(2.5rem, 3.4vw, 65px);
	padding-bottom: clamp(2.5rem, 3.4vw, 65px);
	background: #f6efeb;
}
.hba-book-hero > .hba-book-hero__media.wp-block-image {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 45.21%;
	max-width: none;
	margin: 0 !important;
}
.hba-book-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: left center;
	border-radius: 0;
}
.hba-book-hero > * {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}
.hba-book-hero > .hba-book-hero__content {
	position: relative;
	z-index: 1;
	width: 100%;
}
.hba-book-hero .hba-book-hero__content > * {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	max-width: min(760px, 48vw);
}
.hba-sections .hba-book-hero p.is-style-hba-eyebrow {
	margin-bottom: 0;
	line-height: 1.2;
}
.hba-book-hero .hba-book-hero__title {
	font-size: var(--wp--preset--font-size--display);
	line-height: 1.105;
}
.hba-book-hero .wp-block-separator.is-style-hba-accent {
	width: 122px;
	max-width: 122px;
}
.hba-book-hero .hba-book-hero__content > .hba-book-hero__title {
	margin-top: clamp(0.25rem, 0.42vw, 8px) !important;
}
.hba-book-hero .hba-book-hero__content > .wp-block-separator {
	margin-top: clamp(0.75rem, 1.25vw, 24px) !important;
}
.hba-book-hero .hba-book-hero__content > .hba-book-hero__text {
	margin-top: clamp(1.25rem, 2vw, 38px) !important;
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.4;
	color: #232323;
}

/* ==========================================================================
   Request form card (hba/book-form + block hba/booking-form)
   ========================================================================== */
.hba-book-form-section {
	padding-top: clamp(3rem, 6vw, 115px);
	padding-bottom: clamp(3rem, 6.35vw, 122px);
}
.hba-book-form-section > * {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}
.hba-book-card {
	padding: clamp(1.75rem, 1.8vw, 35px) clamp(1.25rem, 2.15vw, 41px) clamp(1.75rem, 2.1vw, 40px);
	border: 1px solid #c0c5d9;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 14px 34px rgba(35, 35, 35, 0.08);
}
.hba-book-card > * {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}
.hba-book-card .hba-book-card__title {
	font-size: clamp(34px, calc(10.4px + 2.167vw), 52px);
	line-height: 1.2;
}
.hba-book-card__text {
	margin-top: 0 !important;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.4;
	color: #232323;
}
.hba-booking-form {
	margin-top: clamp(1.75rem, 2.6vw, 50px) !important;
	scroll-margin-top: 140px;
}
.hba-booking-form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px 44px;
}
.hba-field {
	position: relative;
	margin: 0;
}
.hba-field label {
	display: block;
	margin-bottom: 4px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	color: #000;
}
.hba-field input,
.hba-field select {
	box-sizing: border-box;
	width: 100%;
	height: 54px;
	margin: 0;
	padding: 0 16px 0 44px;
	border: 1px solid #cfcfcf;
	border-radius: 6px;
	background: #fff 12px center / 20px 20px no-repeat;
	font-family: inherit;
	font-size: 16px;
	color: #111;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.hba-field select {
	appearance: none;
	padding-right: 44px;
	cursor: pointer;
	background-image: var(--hba-icon), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23660033' stroke-width='1.6'/%3E%3C/svg%3E");
	background-position: 12px center, right 18px center;
	background-size: 20px 20px, 12px 8px;
	background-repeat: no-repeat;
}
.hba-field input {
	background-image: var(--hba-icon);
}
.hba-field input::placeholder {
	font-size: 14px;
	color: rgba(0, 0, 0, 0.5);
	opacity: 1;
}
.hba-field select:invalid {
	font-size: 14px;
	color: rgba(0, 0, 0, 0.5);
}
.hba-field select option {
	font-size: 16px;
	color: #111;
}
.hba-field input:focus,
.hba-field select:focus {
	outline: none;
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 3px rgba(102, 0, 51, 0.12);
}
.hba-field .is-icon-user { --hba-icon: url("../icons/book-user.svg"); }
.hba-field .is-icon-email { --hba-icon: url("../icons/book-email.svg"); background-size: 24px 18px; }
.hba-field .is-icon-phone { --hba-icon: url("../icons/book-phone.svg"); }
.hba-field .is-icon-pin { --hba-icon: url("../icons/book-pin.svg"); }
.hba-field .is-icon-calendar { --hba-icon: url("../icons/book-calendar.svg"); }
.hba-field .is-icon-clock { --hba-icon: url("../icons/book-clock.svg"); }

/* Date: show "Select A Date" until a date is picked */
.hba-field input[type="date"] {
	cursor: pointer;
}
.hba-field input[type="date"]::-webkit-calendar-picker-indicator {
	opacity: 0;
	cursor: pointer;
}
.hba-field.is-empty input[type="date"]:not(:focus) {
	color: transparent;
}
.hba-field.is-empty:not(:focus-within)::after {
	content: "Select A Date";
	position: absolute;
	left: 44px;
	bottom: 18px;
	font-size: 14px;
	line-height: 1.2;
	color: rgba(0, 0, 0, 0.5);
	pointer-events: none;
}

.hba-booking-form__submit {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	width: 100%;
	height: 56px;
	margin-top: 30px;
	border: 0;
	border-radius: 6px;
	background: var(--wp--preset--color--primary);
	box-shadow: 0 6px 14px rgba(102, 0, 51, 0.25);
	font-family: inherit;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
	color: #fff;
	cursor: pointer;
	transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.hba-booking-form__submit::before {
	content: "";
	width: 22px;
	height: 19px;
	background: url("../icons/book-send.svg") center / contain no-repeat;
}
.hba-booking-form__submit:hover,
.hba-booking-form__submit:focus-visible {
	background: var(--wp--preset--color--primary-dark);
	box-shadow: 0 10px 22px rgba(102, 0, 51, 0.3);
	transform: translateY(-2px);
}
.hba-booking-form__submit:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 3px;
}
.hba-booking-form__privacy {
	margin: 14px 0 0;
	font-size: 14px;
	line-height: 1.4;
	text-align: center;
	color: var(--wp--preset--color--muted);
}
.hba-booking-form__privacy a {
	color: var(--wp--preset--color--primary);
}
.hba-booking-form__hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.hba-booking-form__notice {
	margin: 0 0 24px;
	padding: 16px 20px;
	border-radius: 8px;
	font-size: 16px;
	line-height: 1.5;
	outline: none;
}
.hba-booking-form__notice strong {
	display: block;
	font-weight: 600;
}
.hba-booking-form__notice.is-success {
	border: 1px solid #b7d8c0;
	background: #eef7f0;
	color: #1f4d2b;
}
.hba-booking-form__notice.is-error {
	border: 1px solid #e4b9c6;
	background: #fbeff2;
	color: #660033;
}

/* ==========================================================================
   Clinic locations with availability (hba/clinic-hours)
   ========================================================================== */
.hba-hours-section {
	padding-top: clamp(3rem, 2.9vw, 56px);
	padding-bottom: clamp(3rem, 2.9vw, 55px);
}
.hba-hours-section > * {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}
.hba-sections .hba-hours-section p.is-style-hba-eyebrow {
	margin-bottom: 0;
	line-height: 1.2;
}
.hba-hours-section .hba-hours-section__title {
	margin-top: clamp(0.5rem, 1.2vw, 23px) !important;
	font-size: clamp(38px, calc(12.8px + 2.667vw), 64px);
	line-height: 1.2;
}
.hba-hours-section__text {
	margin-top: clamp(0.5rem, 0.3vw, 6px) !important;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.4;
	color: #232323;
}
.hba-hours-section .hba-hours-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(1.25rem, 3.85vw, 74px);
	margin-top: clamp(2rem, 2.5vw, 48px) !important;
}
.hba-hours-cards > * {
	margin: 0 !important;
}
.hba-hours-card {
	display: grid;
	grid-template-columns: clamp(64px, 4.72vw, 91px) minmax(0, 1fr);
	grid-template-rows: clamp(64px, 4.72vw, 91px) auto auto auto;
	column-gap: 20px;
	align-content: start;
	min-height: clamp(0px, 21.9vw, 421px);
	padding: 25px 34px 30px 33px;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 16px;
}
.hba-hours-card::before {
	content: "";
	grid-column: 1;
	grid-row: 1;
	background: url("../icons/book-clinic-pin-v2.svg") center / contain no-repeat;
}
.hba-hours-card > * {
	margin: 0 !important;
	grid-column: 2;
}
.hba-hours-card .hba-hours-card__name {
	grid-row: 1;
	align-self: center;
	font-size: clamp(30px, calc(9.6px + 2vw), 48px);
	font-weight: 500;
	line-height: 1.1;
}
.hba-hours-card__address {
	grid-row: 2;
	margin-top: -8px !important;
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.58;
	color: #232323;
}
.hba-hours-card .hba-hours-card__rule {
	grid-column: 1 / -1;
	grid-row: 3;
	width: 100%;
	max-width: none;
	margin-top: 35px !important;
	border: 0;
	border-top: 1.2px solid rgba(0, 0, 0, 0.2);
	opacity: 1;
}
.hba-hours-card > .hba-hours-card__rule {
	margin-top: 27px !important;
}
.hba-hours-card .hba-hours-list {
	grid-column: 1 / -1;
	grid-row: 4;
	display: flex;
	flex-direction: column;
	gap: 24px;
	margin-top: 40px !important;
	padding: 0;
	list-style: none;
}
.hba-hours-list li {
	display: flex;
	align-items: center;
	gap: 20px;
	margin: 0;
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.3;
	color: #232323;
}
.hba-hours-list li::before {
	content: "";
	flex: 0 0 32px;
	height: 32px;
	background: url("../icons/book-cal-days.svg") center / contain no-repeat;
}
.hba-hours-list li.is-icon-star::before {
	background-image: url("../icons/book-cal-star.svg");
}
.hba-hours-section .hba-hours-note {
	display: flex;
	align-items: center;
	gap: 20px;
	box-sizing: border-box;
	width: fit-content;
	max-width: 100%;
	min-height: 60px;
	margin: clamp(2rem, 2.9vw, 55px) auto 0 !important;
	padding: 10px 27px 10px 25px;
	border: 1px solid var(--wp--preset--color--primary);
	border-radius: 30px;
	background: #ece0e6;
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.3;
	text-align: left;
	white-space: nowrap;
	color: #232323;
}
.hba-hours-note::before {
	content: "";
	flex: 0 0 32px;
	height: 32px;
	background: url("../icons/book-cal-clock.svg") center / contain no-repeat;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1099px) {
	.hba-hours-card {
		padding: 22px 24px 26px;
	}
}

@media (max-width: 899px) {
	.hba-hours-section .hba-hours-cards {
		grid-template-columns: minmax(0, 1fr);
		max-width: 640px;
		margin-left: auto !important;
		margin-right: auto !important;
	}
	.hba-hours-card {
		min-height: 0;
	}
}

@media (max-width: 781px) {
	.hba-book-hero {
		min-height: 0;
		padding-top: 0;
		padding-bottom: 2.75rem;
	}
	.hba-book-hero > .hba-book-hero__media.wp-block-image {
		position: relative;
		width: auto;
		height: clamp(240px, 62vw, 460px);
		margin-left: calc(var(--wp--style--root--padding-left) * -1) !important;
		margin-right: calc(var(--wp--style--root--padding-right) * -1) !important;
		margin-bottom: 2rem !important;
	}
	.hba-book-hero__media img {
		object-position: 70% center;
		-webkit-mask-image: none;
		mask-image: none;
	}
	.hba-book-hero .hba-book-hero__content > * {
		max-width: 100%;
	}

	.hba-booking-form__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
	}
	.hba-booking-form__submit {
		margin-top: 26px;
	}

	.hba-hours-card {
		grid-template-columns: 56px minmax(0, 1fr);
		grid-template-rows: 56px auto auto auto;
		column-gap: 14px;
		padding: 20px 20px 24px;
	}
	.hba-hours-card__address {
		grid-column: 1 / -1;
		margin-top: 14px !important;
		font-size: 17px;
	}
	.hba-hours-card > .hba-hours-card__rule {
		margin-top: 22px !important;
	}
	.hba-hours-card .hba-hours-list {
		gap: 16px;
		margin-top: 22px !important;
	}
	.hba-hours-list li {
		gap: 14px;
		font-size: 17px;
	}
	.hba-hours-list li::before {
		flex-basis: 28px;
		height: 28px;
	}
	.hba-hours-section .hba-hours-note {
		white-space: normal;
		gap: 14px;
		padding: 10px 20px 10px 16px;
		font-size: 16px;
	}
	.hba-hours-note::before {
		flex-basis: 28px;
		height: 28px;
	}
}

/* "Prefer To Book Straight Away?" card (no label above the heading) */
@media (min-width: 782px) {
	.hba-question:has(> .hba-question__title:first-child) {
		padding-top: clamp(2.25rem, 2.4vw, 46px);
		padding-bottom: clamp(2.25rem, 2.9vw, 56px);
	}
}
.hba-question > .hba-question__title:first-child {
	margin-top: 0 !important;
	line-height: 1.1;
}

/* ==========================================================================
   Form extras: message field, note, compact card (hba/acu-ready)
   ========================================================================== */
.hba-field--full {
	margin-top: 20px;
}
.hba-field textarea {
	box-sizing: border-box;
	display: block;
	width: 100%;
	height: 86px;
	min-height: 86px;
	margin: 0;
	padding: 14px 16px 12px 44px;
	border: 1px solid #cfcfcf;
	border-radius: 6px;
	background: #fff url("../icons/book-message.svg") 13px 16px / 19px 18px no-repeat;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.4;
	color: #111;
	resize: vertical;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.hba-field textarea::placeholder {
	font-size: 14px;
	color: rgba(0, 0, 0, 0.5);
	opacity: 1;
}
.hba-field textarea:focus {
	outline: none;
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 3px rgba(102, 0, 51, 0.12);
}
.hba-booking-form__note {
	margin: 26px 0 0;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.56;
	text-align: center;
	color: #232323;
}
.hba-booking-form__note + .hba-booking-form__privacy {
	margin-top: 8px;
}

.hba-book-card--compact {
	padding: clamp(1rem, 0.35vw, 6px) clamp(1rem, 1.1vw, 21px) clamp(1.25rem, 1.25vw, 24px);
	box-shadow: none;
}
.hba-book-card--compact .hba-book-card__text {
	margin-top: 8px !important;
	line-height: 1.56;
}
.hba-book-card--compact .hba-booking-form {
	margin-top: clamp(1rem, 1.35vw, 26px) !important;
}
.hba-book-card--compact .hba-field label {
	margin-bottom: 7px;
}
.hba-book-card--compact .hba-booking-form__grid {
	gap: 20px 26px;
}
.hba-book-card--compact .hba-field input,
.hba-book-card--compact .hba-field select {
	height: 50px;
}
.hba-book-card--compact .hba-booking-form__submit {
	margin-top: 31px;
}

@media (max-width: 781px) {
	.hba-booking-form__note {
		font-size: 15px;
	}
}
