/**********************************
 * Public booking page (book.php)
 *
 * Built on top of the design tokens defined in css/custom.css
 * (--ink, --accent, --surface, --line, --muted, --radius, etc).
 * Page-scoped so it doesn't affect any other page -- in particular
 * reschedule.php/reschedule2.php share some of the same class names
 * (.BookingInfoCalendar, #BookCalendarNew, .time-slot-to-choose, etc)
 * via the old rules still in custom.css, and are intentionally left
 * alone; this file only loads on book.php.
 *********************************/

body {
	background: var(--bg);
	font-family: 'Inter', sans-serif;
}
h1, h3, h5, .CoachNameArea, .MeetingTitle {
	font-family: 'Space Grotesk', sans-serif;
	letter-spacing: -0.01em;
}

#FullURLMessage, #EmptyURLMessage, #MeetingListModal .modal-content, #NoConnectedCalendarModal .modal-content {
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--line);
}
#FullURLMessage {
	box-shadow: 0 20px 50px rgba(18,32,61,0.10);
}

/* ---------- Empty-URL state ---------- */
#EmptyURLMessage {
	background: var(--surface);
	padding: 60px 30px;
	text-align: center;
	border-radius: var(--radius);
	box-shadow: 0 20px 50px rgba(18,32,61,0.10);
}
#EmptyURLMessage .fs-2 {
	font-size: 17px !important;
	color: var(--muted);
	max-width: 420px;
	margin: 0 auto;
}

/* ---------- Left pane: coach + calendar ---------- */
.BookingInfoCalendar {
	background: radial-gradient(120% 160% at 100% 0%, #1D3A63 0%, var(--ink) 55%);
	color: #fff;
	padding: 36px 28px !important;
}
.ProfileImageArea img, .ProfileImageAreaBook {
	border-radius: 50%;
	width: 84px;
	height: 84px;
	border: 3px solid rgba(255,255,255,0.85);
	box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.CoachNameArea {
	font-size: 19px !important;
	font-weight: 700;
	margin-top: 14px;
	color: #fff !important;
}

.BookMonthHolder {
	position: relative;
	background: rgba(255,255,255,0.08);
	color: #fff !important;
	font-size: 15px !important;
	font-weight: 700;
	border-radius: 10px;
	padding: 10px 0 !important;
	text-align: center;
}
/* Positioned absolutely (rather than floated, like the markup used to)
   so the month name stays visually centered in the bar regardless of
   whether #PreviousMonth is currently hidden (it's d-none until there's
   an earlier month to go back to), and so each arrow's own glyph can be
   centered inside its little rounded button independent of the other. */
.BookMonthHolder #PreviousMonth, .BookMonthHolder #NextMonth {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 6px;
	background: rgba(255,255,255,0.12);
	cursor: pointer;
	font-weight: 700;
	line-height: 1;
}
.BookMonthHolder #PreviousMonth {
	left: 10px;
}
.BookMonthHolder #NextMonth {
	right: 10px;
}
.BookMonthHolder #PreviousMonth:hover, .BookMonthHolder #NextMonth:hover {
	background: rgba(255,255,255,0.22);
}

#BookCalendarNew {
	border-collapse: separate;
	border-spacing: 6px;
}
#BookCalendarNew th {
	text-transform: uppercase;
	text-align: center;
	color: rgba(255,255,255,0.55);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .04em;
	padding-bottom: 6px;
}
#BookCalendarNew td {
	background: rgba(255,255,255,0.05);
	opacity: 1;
	text-align: center;
	padding: 0;
	vertical-align: middle;
	border: none;
	border-radius: 10px;
	height: 42px;
}
#BookCalendarNew td .day-wrapper {
	width: 100%;
	margin: auto;
}
/* custom.css has a more specific #BookCalendarNew td.has-availability
   .day-wrapper rule setting a 4px solid bottom border -- match its
   specificity to reset it, since this page shows availability via the
   dot on .day-field instead. */
#BookCalendarNew td.has-availability .day-wrapper {
	border-bottom: none;
	padding-bottom: 0;
}
#BookCalendarNew td .day-field {
	font-size: 13px;
	color: rgba(255,255,255,0.45);
}
#BookCalendarNew td .time-slot {
	display: none;
}
#BookCalendarNew td.has-availability .day-field {
	color: #fff;
	font-weight: 700;
	position: relative;
}
#BookCalendarNew td.has-availability .day-field::after {
	content: "";
	display: block;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--accent);
	margin: 3px auto 0;
}
#BookCalendarNew td.today {
	/* custom.css's older rule for this same selector sets a 3px solid
	   border and a 5px radius -- reset both since this page shows "today"
	   as an inset ring instead, at the same 10px radius as every other
	   cell (a literal border here would also shift cell size). */
	border: none;
	border-radius: 10px;
	box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.5);
}
#BookCalendarNew td.has-availability {
	cursor: pointer;
}
#BookCalendarNew td.has-availability:hover {
	background: rgba(255,255,255,0.14);
}
#BookCalendarNew td.active {
	background: var(--accent) !important;
}
#BookCalendarNew td.active .day-field {
	color: #fff;
}
#BookCalendarNew td.active .day-field::after {
	background: #fff;
}
#BookCalendarNew td.inactive {
	opacity: 0;
	pointer-events: none;
}

/* ---------- Right pane: meeting info + slots ---------- */
.SchedulePane {
	background: var(--surface) !important;
	padding: 44px 40px !important;
}
.MeetingTitle {
	font-size: 22px !important;
	color: var(--ink);
}
.ChangeMeetingTypeLink {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--accent);
	text-decoration: none;
	padding: 0;
	margin-top: 2px;
}
.ChangeMeetingTypeLink:hover, .ChangeMeetingTypeLink:focus {
	color: #E85A3A;
	text-decoration: underline;
}
.DurationArea {
	color: var(--muted);
	font-size: 13.5px !important;
	margin-top: 6px;
}
.DurationArea svg {
	width: 14px;
	height: 14px;
	vertical-align: -2px;
}
.MeetingDescription {
	color: var(--muted);
	font-size: 13.5px !important;
	margin-top: 8px;
	max-width: 360px;
	margin-left: auto;
	margin-right: auto;
}

.WhatTimeLabel {
	font-size: 16px !important;
	font-weight: 700;
	color: var(--ink);
	padding-top: 30px !important;
	padding-bottom: 16px !important;
}

#NoAvailabilityMessage .fs-4 {
	font-size: 15px !important;
	color: var(--muted);
}

#SelectedDate {
	font-size: 15px !important;
	font-weight: 700;
	color: var(--ink);
	margin-bottom: 14px !important;
}

/* Timezone select-style button, matching the pattern used in the Quick
   Book modal on the dashboard so both booking surfaces feel the same. */
.tz-select {
	width: 100%;
	max-width: 320px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	text-align: left;
	border: 1px solid var(--line);
	border-radius: 9px;
	background: var(--bg);
	color: var(--text);
	font-weight: 400;
	font-size: 13.5px;
	padding: 9px 12px;
}
.tz-select:hover, .tz-select:focus {
	background: var(--bg);
	color: var(--text);
	border-color: var(--ink-soft);
}
#TimeSlotsNew {
	/* custom.css's older rule for this id caps the WHOLE panel (heading +
	   timezone picker + slot grid) at 500px with its own scrollbar. This
	   page scrolls just the slot grid instead (#TimeSlotsToChoose below),
	   so neutralize the outer one to avoid nested/double scrollbars. */
	max-height: none;
	overflow: visible;
}
#TimeSlotsNew .dropdown-menu {
	border: 1px solid var(--line);
	border-radius: 10px;
	box-shadow: 0 12px 28px rgba(18,32,61,0.14);
	padding: 6px;
	max-height: 280px;
	overflow-y: auto;
}
#TimeSlotsNew .dropdown-item {
	border-radius: 7px;
	padding: 8px 10px;
	font-size: 13.5px;
}
#TimeSlotsNew .dropdown-item:hover, #TimeSlotsNew .dropdown-item:focus {
	background: var(--accent-soft);
	color: var(--ink);
}
#TimeSlotsNew .dropdown-item.active {
	background: var(--accent);
	color: #fff;
}
#TimeSlotsNew .dropdown-header {
	font-size: 10.5px;
	font-weight: 700;
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: .03em;
}

#TimeSlotsToChoose {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
	max-height: 360px;
	overflow-y: auto;
	padding-right: 2px;
}
.time-slot-to-choose {
	border: 1px solid var(--line);
	background: var(--bg);
	color: var(--text);
	border-radius: 9px;
	padding: 10px 8px;
	font-size: 13.5px;
	font-weight: 600;
	text-align: center;
	cursor: pointer;
	transition: border-color .12s ease, background .12s ease, color .12s ease;
}
.time-slot-to-choose:hover {
	/* custom.css's older rule bumps border-width to 2px on hover; pin it
	   back to 1px here so only the color transitions, not the box size. */
	border-width: 1px;
	border-color: var(--accent);
	background: var(--accent-soft);
	color: var(--ink);
}

/* ---------- Choose-a-meeting modal ---------- */
#MeetingListModal .modal-header {
	background: var(--surface);
	border-bottom: 1px solid var(--line);
	padding: 34px 30px 24px;
	position: relative;
}
.MeetingListCloseButton {
	position: absolute;
	top: 18px;
	right: 18px;
}
#MeetingListModal .ProfileImageAreaBook {
	width: 76px;
	height: 76px;
	border-color: var(--line);
	box-shadow: none;
}
#MeetingCoachName {
	color: var(--ink);
	font-size: 19px !important;
}
#MeetingListModal .modal-header p:not(#MeetingCoachName) {
	color: var(--muted);
	font-size: 13.5px;
}
#MeetingListModal .modal-title {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--muted);
	margin-top: 10px;
}
#MeetingListModal .modal-body {
	background: var(--bg);
	padding: 26px;
}
#MeetingArea .card {
	border: 1px solid var(--line);
	border-radius: 14px;
	height: 100%;
	transition: border-color .15s ease, box-shadow .15s ease;
}
#MeetingArea .card:hover {
	border-color: var(--accent);
	box-shadow: 0 8px 20px rgba(18,32,61,0.08);
}
#MeetingArea .card-body {
	padding: 22px 20px;
}
#MeetingArea .title {
	font-family: 'Space Grotesk', sans-serif;
	font-size: 16px;
	font-weight: 700;
	color: var(--ink);
}
#MeetingArea .meeting-duration {
	color: var(--muted);
	font-size: 12.5px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .02em;
	margin-top: 4px;
}
#MeetingArea .card-body hr {
	border-color: var(--line);
	opacity: 1;
	margin: 14px 0;
}
#MeetingArea .description {
	color: var(--muted);
	font-size: 13px;
}
#MeetingArea .SelectMeeting {
	background: var(--accent);
	border-color: var(--accent);
	border-radius: 9px;
	font-weight: 600;
	font-size: 13.5px;
	padding: 7px 22px;
}
#MeetingArea .SelectMeeting:hover {
	background: #E85A3A;
	border-color: #E85A3A;
}

/* ---------- Confirm-booking modal ---------- */
#calendar_booking .modal-content, #SuccessBookModal .modal-content {
	border-radius: var(--radius);
	overflow: hidden;
}
#calendar_booking .modal-header {
	background: var(--ink);
	color: #fff;
	padding: 22px 24px;
}
#calendar_booking .modal-header .btn-close {
	filter: invert(1) grayscale(100%) brightness(200%);
}
#calendar_booking .modal-title {
	color: #fff;
	font-size: 20px;
	margin: 2px 0 10px;
}
.BookingSummaryEyebrow {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: rgba(255,255,255,0.55);
}
.BookingSummaryMeta {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}
.BookingSummaryMetaItem {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13.5px;
	color: rgba(255,255,255,0.85);
}
.BookingSummaryMetaItem svg {
	width: 14px;
	height: 14px;
	color: rgba(255,255,255,0.6);
}
#calendar_booking .form-label {
	font-size: 12px;
	font-weight: 600;
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: .02em;
}
#calendar_booking .form-control {
	border: 1px solid var(--line);
	border-radius: 9px;
	background: var(--bg);
	color: var(--text);
}
#calendar_booking .form-control:focus {
	border-color: var(--accent);
	box-shadow: 0 0 0 .2rem var(--accent-soft);
}
#calendar_booking_submit {
	background: var(--accent);
	border-color: var(--accent);
	border-radius: 9px;
	font-weight: 600;
}
#calendar_booking_submit:hover {
	background: #E85A3A;
	border-color: #E85A3A;
}

/* ---------- Success modal ---------- */
#SuccessBookModal #alert-success svg {
	width: 64px;
	height: 64px;
	color: var(--momentum);
}
#SuccessBookModal .fs-2 {
	font-size: 21px !important;
	color: var(--ink);
}
#SuccessBookModal .fs-4:not(#SuccessTime):not(#SuccessTimeZone) {
	font-size: 14px !important;
	color: var(--muted);
}
#MeetingInfoHolder svg {
	width: 16px;
	height: 16px;
	color: var(--muted);
}
#SuccessTitle {
	font-size: 15px !important;
	color: var(--ink);
}
#SuccessTime, #SuccessTimeZone {
	font-size: 14px !important;
	color: var(--text);
}
#SuccessBookModal .fs-3.fw-bold {
	font-size: 15px !important;
	color: var(--ink);
}
#BookAnotherSession {
	background: var(--accent);
	border-color: var(--accent);
	border-radius: 9px;
	font-weight: 600;
}
#BookAnotherSession:hover {
	background: #E85A3A;
	border-color: #E85A3A;
}

@media (max-width: 767px) {
	.BookingInfoCalendar {
		padding: 28px 22px !important;
	}
	.SchedulePane {
		padding: 32px 22px !important;
	}
	#TimeSlotsToChoose {
		grid-template-columns: repeat(2, 1fr);
	}
}
