/**
 * Book appointment page styles.
 *
 * @package Novacare
 */

/* -------------------------------------------------------------------------
   Page shell
   ------------------------------------------------------------------------- */
.site-main--book-appointment {
	padding-block: 0 4rem;
	background-color: #f8f5f0;
}

.book-appointment__flow {
	max-width: 44rem;
	margin-inline: auto;
}

.book-appointment__step-content {
	margin-top: 2rem;
}

.book-appointment-panel[hidden] {
	display: none !important;
}

.book-appointment-confirmed-wrap[hidden] {
	display: none !important;
}

.site-main--book-appointment.is-confirmed [data-booking-wizard] {
	display: none;
}

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */
.book-appointment-hero {
	padding-block: clamp(3rem, 6vw, 4.5rem) 2.25rem;
	text-align: center;
	background-color: #f8f5f0;
}

.book-appointment-hero__inner {
	max-width: 36rem;
	margin-inline: auto;
}

.book-appointment-hero__eyebrow {
	margin: 0 0 0.875rem;
	font-family: var(--nv-font-sans);
	font-size: 0.6875rem;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #b8965a;
}

.book-appointment-hero__title {
	margin: 0;
	font-family: var(--nv-font-serif);
	font-size: clamp(2.5rem, 5vw, 3.25rem);
	font-weight: 500;
	line-height: 1.08;
	color: #1c1917;
}

/* -------------------------------------------------------------------------
   Stepper
   ------------------------------------------------------------------------- */
.booking-stepper {
	margin-inline: auto;
	padding-inline: 0.25rem;
}

.booking-stepper__list {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	margin: 0;
	padding: 0;
	list-style: none;
}

.booking-stepper__item {
	position: relative;
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 0;
	padding: 0 0.125rem;
}

.booking-stepper__marker {
	position: relative;
	z-index: 1;
	display: flex;
	justify-content: center;
	width: 100%;
}

.booking-stepper__circle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.375rem;
	height: 2.375rem;
	border: 1px solid #d9d5ce;
	border-radius: 50%;
	background-color: #faf8f4;
	color: #b8b2a8;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.booking-stepper__number {
	font-family: var(--nv-font-sans);
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1;
}

.booking-stepper__label {
	display: block;
	margin-top: 0.625rem;
	font-family: var(--nv-font-sans);
	font-size: 0.8125rem;
	font-weight: 400;
	line-height: 1.25;
	color: #b8b2a8;
	text-align: center;
}

.booking-stepper__line {
	position: absolute;
	top: 1.1875rem;
	left: calc(50% + 1.1875rem);
	width: calc(100% - 2.375rem);
	height: 1px;
	background-color: #e5e2dc;
	pointer-events: none;
}

.booking-stepper__item.is-active .booking-stepper__circle {
	border-color: #2d4739;
	background-color: #2d4739;
	color: #ffffff;
}

.booking-stepper__item.is-active .booking-stepper__label {
	font-weight: 600;
	color: #2d4739;
}

.booking-stepper__item.is-complete .booking-stepper__circle {
	border-color: #2d4739;
	background-color: #2d4739;
	color: #ffffff;
}

.booking-stepper__item.is-complete .booking-stepper__label {
	color: #6b6356;
}

.booking-stepper__check {
	display: none;
}

.booking-stepper__item.is-complete .booking-stepper__number {
	display: none;
}

.booking-stepper__item.is-complete .booking-stepper__check {
	display: block;
}

.booking-stepper__item.is-complete .booking-stepper__line {
	background-color: #2d4739;
}

.booking-stepper__item.is-active .booking-stepper__line {
	background-color: #e5e2dc;
}

@media (max-width: 640px) {
	.booking-stepper__label {
		font-size: 0.6875rem;
	}

	.booking-stepper__circle {
		width: 2rem;
		height: 2rem;
	}

	.booking-stepper__number {
		font-size: 0.8125rem;
	}

	.booking-stepper__line {
		top: 1rem;
		left: calc(50% + 1rem);
		width: calc(100% - 2rem);
	}
}

/* -------------------------------------------------------------------------
   Card
   ------------------------------------------------------------------------- */
.book-appointment-card {
	padding: clamp(1.5rem, 3vw, 2rem);
	border-radius: 1rem;
	background-color: #ffffff;
	box-shadow: 0 10px 40px rgba(28, 25, 23, 0.06);
}

.book-appointment-card__header {
	margin-bottom: 1.5rem;
}

.book-appointment-card__title {
	margin: 0 0 0.5rem;
	font-family: var(--nv-font-serif);
	font-size: clamp(1.375rem, 2.5vw, 1.625rem);
	font-weight: 500;
	line-height: 1.2;
	color: #1c1917;
}

.book-appointment-card__subtitle {
	margin: 0;
	font-family: var(--nv-font-sans);
	font-size: 0.875rem;
	font-weight: 400;
	line-height: 1.6;
	color: #8a8278;
}

.book-appointment-card--placeholder {
	text-align: center;
}

/* -------------------------------------------------------------------------
   Treatment grid
   ------------------------------------------------------------------------- */
.book-appointment-treatments {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.75rem;
}

@media (min-width: 640px) {
	.book-appointment-treatments {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.book-appointment-treatment {
	position: relative;
	display: block;
	padding: 1rem 1.125rem;
	border: 1px solid #e8e4dc;
	border-radius: 0.75rem;
	background-color: #ffffff;
	cursor: pointer;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.book-appointment-treatment:hover {
	border-color: #c8c2b8;
}

.book-appointment-treatment.is-selected {
	border-color: #2d4739;
	border-width: 2px;
	padding: calc(1rem - 1px) calc(1.125rem - 1px);
	box-shadow: 0 0 0 1px rgba(45, 71, 57, 0.04);
}

.book-appointment-treatment__check {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.375rem;
	height: 1.375rem;
	border-radius: 50%;
	background-color: #2d4739;
	color: #ffffff;
	opacity: 0;
	transform: scale(0.85);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.book-appointment-treatment.is-selected .book-appointment-treatment__check {
	opacity: 1;
	transform: scale(1);
}

.book-appointment-treatment__content {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding-right: 1.5rem;
}

.book-appointment-treatment__title {
	font-family: var(--nv-font-sans);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.35;
	color: #1c1917;
}

.book-appointment-treatment__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.625rem;
	font-family: var(--nv-font-sans);
	font-size: 0.8125rem;
	font-weight: 400;
	line-height: 1.4;
	color: #8a8278;
}

.book-appointment-treatment__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 0.3125rem;
}

.book-appointment-treatment__icon {
	flex-shrink: 0;
	color: #a8a29e;
}

/* -------------------------------------------------------------------------
   Form actions
   ------------------------------------------------------------------------- */
.book-appointment-form__actions {
	margin-top: 1.5rem;
}

.book-appointment-form__actions--split {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 0.75rem;
	align-items: stretch;
}

.book-appointment-form__actions--split .book-appointment-form__note {
	grid-column: 1 / -1;
}

.book-appointment-form__back {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	padding: 0.875rem 1.25rem;
	border: 1px solid #e8e4dc;
	border-radius: 0.625rem;
	background-color: #ffffff;
	color: #6b6356;
	font-family: var(--nv-font-sans);
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.book-appointment-form__back:hover,
.book-appointment-form__back:focus-visible {
	border-color: #c8c2b8;
	background-color: #faf8f4;
}

.book-appointment-form__continue {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 3rem;
	padding: 0.875rem 1.5rem;
	border: 0;
	border-radius: 0.625rem;
	background-color: #2d4739;
	color: #ffffff;
	font-family: var(--nv-font-sans);
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.book-appointment-form__continue:hover,
.book-appointment-form__continue:focus-visible {
	background-color: #243a30;
}

.book-appointment-form__continue--confirm {
	background-color: #5a7562;
}

.book-appointment-form__continue--confirm:hover,
.book-appointment-form__continue--confirm:focus-visible {
	background-color: #4a6354;
}

.book-appointment-form__actions--split .book-appointment-form__continue {
	width: 100%;
}

.book-appointment-form__note {
	margin: 0.875rem 0 0;
	font-family: var(--nv-font-sans);
	font-size: 0.8125rem;
	font-weight: 400;
	line-height: 1.5;
	text-align: center;
	color: #8a8278;
}

/* -------------------------------------------------------------------------
   Physician list
   ------------------------------------------------------------------------- */
.book-appointment-physicians {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.book-appointment-physician {
	position: relative;
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem 1.125rem;
	border: 1px solid #e8e4dc;
	border-radius: 0.75rem;
	background-color: #ffffff;
	cursor: pointer;
	transition: border-color 0.2s ease;
}

.book-appointment-physician:hover {
	border-color: #c8c2b8;
}

.book-appointment-physician.is-selected {
	border-color: #2d4739;
	border-width: 2px;
	padding: calc(1rem - 1px) calc(1.125rem - 1px);
}

.book-appointment-physician__avatar {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	overflow: hidden;
	border-radius: 50%;
	background-color: #ece8df;
	color: #8a8278;
}

.book-appointment-physician__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.book-appointment-physician__avatar--fallback {
	background-color: #e8e4dc;
	color: #8a8278;
}

.book-appointment-physician__content {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.125rem;
	min-width: 0;
	padding-right: 1.75rem;
}

.book-appointment-physician__name {
	font-family: var(--nv-font-sans);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.35;
	color: #1c1917;
}

.book-appointment-physician__specialty {
	font-family: var(--nv-font-sans);
	font-size: 0.8125rem;
	font-weight: 400;
	line-height: 1.4;
	color: #8a8278;
}

.book-appointment-physician__check {
	position: absolute;
	top: 50%;
	right: 1rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.375rem;
	height: 1.375rem;
	border-radius: 50%;
	background-color: #2d4739;
	color: #ffffff;
	opacity: 0;
	transform: translateY(-50%) scale(0.85);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.book-appointment-physician.is-selected .book-appointment-physician__check {
	opacity: 1;
	transform: translateY(-50%) scale(1);
}

/* -------------------------------------------------------------------------
   Calendar & times
   ------------------------------------------------------------------------- */
.book-appointment-calendar__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1rem;
}

.book-appointment-calendar__month {
	margin: 0;
	font-family: var(--nv-font-serif);
	font-size: 1.125rem;
	font-weight: 500;
	line-height: 1.2;
	color: #1c1917;
}

.book-appointment-calendar__nav {
	display: inline-flex;
	gap: 0.5rem;
}

.book-appointment-calendar__nav-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border: 1px solid #e8e4dc;
	border-radius: 0.375rem;
	background-color: #ffffff;
	color: #6b6356;
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.book-appointment-calendar__nav-btn:hover,
.book-appointment-calendar__nav-btn:focus-visible {
	border-color: #c8c2b8;
	background-color: #faf8f4;
}

.book-appointment-calendar__weekdays,
.book-appointment-calendar__grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 0.375rem;
}

.book-appointment-calendar__weekdays {
	margin-bottom: 0.5rem;
}

.book-appointment-calendar__weekday {
	font-family: var(--nv-font-sans);
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1;
	text-align: center;
	color: #b8b2a8;
}

.book-appointment-calendar__day {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 1;
	border: 0;
	border-radius: 0.375rem;
	background: transparent;
	color: #1c1917;
	font-family: var(--nv-font-sans);
	font-size: 0.875rem;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.book-appointment-calendar__day:hover:not(:disabled) {
	background-color: #f3f0ea;
}

.book-appointment-calendar__day.is-selected {
	background-color: #2d4739;
	color: #ffffff;
	font-weight: 500;
}

.book-appointment-calendar__day:disabled {
	color: #d6d3d1;
	cursor: not-allowed;
}

.book-appointment-calendar__day.is-empty {
	visibility: hidden;
	pointer-events: none;
}

.book-appointment-times {
	margin-top: 1.75rem;
}

.book-appointment-times__label {
	margin: 0 0 0.875rem;
	font-family: var(--nv-font-sans);
	font-size: 0.6875rem;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #b8b2a8;
}

.book-appointment-times__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.625rem;
}

@media (min-width: 640px) {
	.book-appointment-times__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.book-appointment-time {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.625rem;
	padding: 0.625rem 0.75rem;
	border: 1px solid #e8e4dc;
	border-radius: 0.5rem;
	background-color: #ffffff;
	color: #1c1917;
	font-family: var(--nv-font-sans);
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.book-appointment-time:hover {
	border-color: #c8c2b8;
}

.book-appointment-time.is-selected {
	border-color: #2d4739;
	background-color: #2d4739;
	color: #ffffff;
}

/* -------------------------------------------------------------------------
   Details form & summary
   ------------------------------------------------------------------------- */
.book-appointment-fields__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

@media (min-width: 640px) {
	.book-appointment-fields__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.book-appointment-field--full {
	margin-top: 1rem;
}

.book-appointment-field__label {
	display: block;
	margin-bottom: 0.5rem;
	font-family: var(--nv-font-sans);
	font-size: 0.6875rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #6b6356;
}

.book-appointment-field__input,
.book-appointment-field__textarea {
	width: 100%;
	padding: 0.875rem 1rem;
	border: 1px solid #e8e4dc;
	border-radius: 0.5rem;
	background-color: #f5f3ef;
	color: #1c1917;
	font-family: var(--nv-font-sans);
	font-size: 0.9375rem;
	line-height: 1.4;
}

.book-appointment-field__input:focus,
.book-appointment-field__textarea:focus {
	outline: 2px solid rgba(45, 71, 57, 0.25);
	outline-offset: 1px;
	border-color: #2d4739;
}

.book-appointment-field__textarea {
	min-height: 7rem;
	resize: vertical;
}

.book-appointment-summary {
	margin-top: 1.5rem;
	padding: 1.25rem 1.5rem;
	border-radius: 0.75rem;
	background-color: #ece8df;
}

.book-appointment-summary__eyebrow {
	margin: 0 0 1rem;
	font-family: var(--nv-font-sans);
	font-size: 0.6875rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #b8965a;
}

.book-appointment-summary__list {
	margin: 0;
}

.book-appointment-summary__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.875rem 0;
	border-top: 1px solid rgba(28, 25, 23, 0.08);
}

.book-appointment-summary__row:first-child {
	border-top: 0;
	padding-top: 0;
}

.book-appointment-summary__row dt,
.book-appointment-summary__row dd {
	margin: 0;
	font-family: var(--nv-font-sans);
	font-size: 0.875rem;
	line-height: 1.4;
}

.book-appointment-summary__row dt {
	color: #6b6356;
	font-weight: 400;
}

.book-appointment-summary__row dd {
	color: #1c1917;
	font-weight: 600;
	text-align: right;
}

/* -------------------------------------------------------------------------
   Confirmation screen
   ------------------------------------------------------------------------- */
.site-main--book-appointment-confirmed {
	padding-block: clamp(3rem, 8vw, 5rem) 4rem;
}

.book-appointment-confirmed {
	max-width: 34rem;
	margin-inline: auto;
	text-align: center;
}

.book-appointment-confirmed__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 4.5rem;
	height: 4.5rem;
	margin-bottom: 1.25rem;
	border-radius: 50%;
	background-color: #dce6df;
	color: #2d4739;
}

.book-appointment-confirmed__eyebrow {
	margin: 0 0 0.875rem;
	font-family: var(--nv-font-sans);
	font-size: 0.6875rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #b8965a;
}

.book-appointment-confirmed__title {
	margin: 0 0 0.875rem;
	font-family: var(--nv-font-serif);
	font-size: clamp(2rem, 4vw, 2.75rem);
	font-weight: 500;
	line-height: 1.1;
	color: #1c1917;
}

.book-appointment-confirmed__message {
	margin: 0 auto 2rem;
	max-width: 28rem;
	font-family: var(--nv-font-sans);
	font-size: 0.9375rem;
	font-weight: 400;
	line-height: 1.65;
	color: #6b6356;
}

.book-appointment-confirmed__card {
	margin-bottom: 1.5rem;
	padding: 0.25rem 1.5rem;
	border-radius: 1rem;
	background-color: #ffffff;
	box-shadow: 0 10px 40px rgba(28, 25, 23, 0.06);
	text-align: left;
}

.book-appointment-confirmed__list {
	margin: 0;
}

.book-appointment-confirmed__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 0;
	border-top: 1px solid #ece8df;
}

.book-appointment-confirmed__row:first-child {
	border-top: 0;
}

.book-appointment-confirmed__row dt,
.book-appointment-confirmed__row dd {
	margin: 0;
	font-family: var(--nv-font-sans);
	font-size: 0.9375rem;
	line-height: 1.4;
}

.book-appointment-confirmed__row dt {
	color: #6b6356;
	font-weight: 400;
}

.book-appointment-confirmed__row dd {
	color: #1c1917;
	font-weight: 600;
	text-align: right;
}

.book-appointment-confirmed__home {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 3rem;
	padding: 0.875rem 1.5rem;
	border-radius: 0.625rem;
	background-color: #2d4739;
	color: #ffffff;
	font-family: var(--nv-font-sans);
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.book-appointment-confirmed__home:hover,
.book-appointment-confirmed__home:focus-visible {
	background-color: #243a30;
	color: #ffffff;
}

