/*
 * Online booking (book_appt.jsp, book_appt_group.jsp): new look.
 * - No "ONLINE BOOKING" header bar and no "Power by" footer.
 * - Salon info as a blue/teal banner at the top (.bk-salon).
 * - The form is one white rounded card (.bk-card) over the banner, with the salon note on top (.bk-note).
 * - Personal Info / Appointment Info / Payment Info tabs as a pill switch (tabs built by booking-tabs.js).
 * - Pill buttons with icons: Reset / Next, and the bottom CANCEL / SUBMIT.
 * Loaded after style-booking.css, booking-screens.css and booking-tabs.css, so it wins over them.
 */

/* ---------------------------------------------------------------- page */
main.main-container {
	background: #EEF3F6 !important;
	padding-top: 0 !important;
	padding-bottom: 100px !important; /* room for the fixed CANCEL / SUBMIT bar */
}

/* no header bar any more: pickers and the top message start at the very top */
.inline-picker { margin-top: 0 !important; min-height: 100vh !important; }
.inline-picker .header-center { top: 0 !important; }
.top-message { top: 0 !important; }

/* ---------------------------------------------------------------- salon banner */
.bk-salon {
	position: relative;
	overflow: hidden;
	color: #fff;
	padding: 26px 22px 52px !important;
	margin-bottom: -28px; /* the card below sits over the bottom of the banner */
	background:
		radial-gradient(circle at 92% 8%, rgba(255, 255, 255, 0.16) 0, rgba(255, 255, 255, 0.16) 2px, transparent 2px) ,
		radial-gradient(circle at 95% 0%, transparent 0 60px, rgba(255, 255, 255, 0.10) 61px 62px, transparent 63px 95px, rgba(255, 255, 255, 0.08) 96px 97px, transparent 98px),
		linear-gradient(115deg, #1260B8 0%, #0B7FB3 45%, #17AFBD 100%);
}
.bk-salon::after { /* soft wave at the bottom */
	content: "";
	position: absolute;
	left: -10%;
	right: -10%;
	bottom: -40px;
	height: 80px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.07);
}
.bk-salon-name {
	font-size: 26px;
	font-weight: 800;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: 0.2px;
	margin-bottom: 16px;
	word-break: break-word;
}
.bk-salon-row {
	display: flex;
	align-items: flex-start;
	font-size: 17px;
	line-height: 1.35;
	margin-bottom: 8px;
}
.bk-salon-row svg {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	margin: 0 18px 0 0;
	opacity: 0.9;
}
.bk-salon-row,
.bk-salon-row a,
.bk-salon-row a:hover {
	color: #fff;
}
.bk-salon-row a.bk-web,
.bk-salon-row a.bk-web:hover {
	color: #7FF0FF;
	font-weight: 500;
}

/* ---------------------------------------------------------------- card */
.bk-card {
	position: relative;
	background: #fff;
	border-radius: 22px;
	padding: 14px 14px 18px !important;
	box-shadow: 0 4px 16px rgba(16, 60, 90, 0.08);
}
#divBodyAppt { margin-top: 0 !important; padding: 0 6px; }
#divError { position: relative; }
.bk-card #booking .box-content {
	box-shadow: none !important;
	padding-left: 6px !important;
	padding-right: 6px !important;
	background: transparent;
}
.bk-call-box { /* "Please call salon" when online booking is off */
	position: relative;
	margin: 0 6px;
}

.bk-note {
	background: #E8F4FC;
	border-radius: 14px;
	padding: 14px 16px;
	color: #5D6B78;
	font-size: 16px;
	line-height: 1.45;
	margin-bottom: 12px;
	word-break: break-word;
}
.bk-note b, .bk-note strong { color: #2F3B46; }

/* ---------------------------------------------------------------- tabs as a pill switch */
.bk-tabs {
	background: #E6F3FA !important;
	border: 0 !important;
	border-radius: 999px;
	padding: 5px !important;
	margin: 4px 0 10px !important;
	box-shadow: none !important;
	gap: 4px;
}
.bk-tab {
	border: 0 !important;
	margin: 0 !important;
	border-radius: 999px;
	padding: 13px 6px !important;
	font-size: 17px;
	font-weight: 600;
	color: #6F808C;
	background: transparent;
	transition: background-color .15s, color .15s, box-shadow .15s;
}
.bk-tab:hover { background: rgba(255, 255, 255, 0.5); }
.bk-tab.active {
	background: #fff;
	color: #0B79A8;
	box-shadow: 0 2px 8px rgba(11, 121, 168, 0.18);
}
.bk-tab.disabled { color: #A9B7C1; }
.bk-tab .bk-num { display: none !important; }

@media (max-width: 480px) {
	.bk-tab { font-size: 16px !important; padding: 12px 2px !important; }
}

/* ---------------------------------------------------------------- pill buttons */
.bk-btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	border-radius: 999px !important;
	font-size: 18px !important;
	font-weight: 700 !important;
	line-height: 1.2;
	padding: 11px 24px !important;
	min-width: 140px;
	width: auto !important;
	background: #fff;
	text-transform: none;
	box-shadow: none;
}
.bk-btn svg {
	width: 22px;
	height: 22px;
	flex: 0 0 auto;
}
.bk-btn-reset,
.bk-btn-reset:hover,
.bk-btn-reset:focus {
	color: #E0352B !important;
	border: 1.5px solid #E0352B !important;
	background: #fff !important;
}
.bk-btn-reset svg { margin-right: 12px; }
.bk-btn-next,
.bk-btn-next:hover,
.bk-btn-next:focus {
	color: #0B79A8 !important;
	border: 1.5px solid #0B79A8 !important;
	background: #F0F9FD !important;
}
.bk-btn-next svg { margin-left: 14px; }

/* bottom bar: CANCEL / SUBMIT. Icons are drawn with CSS so the page code can keep reading and setting
   the button text ("NEXT" / "SUBMIT"). booking-tabs.js adds .bk-is-next while SUBMIT reads NEXT. */
.button-bottom > .container { background: transparent !important; }
.button-bottom .cancel-submit {
	background: #EEF3F6 !important;
	padding: 10px 16px 14px !important;
	gap: 16px;
}
#cancelBtn,
#submitBtn {
	flex: 1 1 0;
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto !important;
	border-radius: 999px !important;
	font-size: 19px !important;
	font-weight: 800 !important;
	padding: 13px 44px !important;
	letter-spacing: 0.3px;
}
#cancelBtn {
	background: #FDE3E3 !important;
	color: #E0352B !important;
	border: 1.5px solid #E0352B !important;
}
#submitBtn {
	background: #0B79A8 !important;
	color: #fff !important;
	border: 1.5px solid #0B79A8 !important;
	box-shadow: 0 4px 10px rgba(11, 121, 168, 0.25);
}
#cancelBtn::before,
#submitBtn::after {
	content: "";
	position: absolute;
	top: 50%;
	width: 22px;
	height: 22px;
	margin-top: -11px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}
#cancelBtn::before {
	left: 22px;
	width: 16px;
	height: 16px;
	margin-top: -8px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 2l12 12M14 2L2 14' stroke='%23E0352B' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}
#submitBtn::after { /* double check */
	right: 20px;
	width: 30px;
	margin-top: -11px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 22' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12l6 7L21 3'/%3E%3Cpath d='M12 19L27 2'/%3E%3C/svg%3E");
}
#submitBtn.bk-is-next::after { /* arrow down while it reads NEXT */
	width: 22px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 3v16M4 12l7 7 7-7'/%3E%3C/svg%3E");
}
#cancelBtn.disabled-btn,
#submitBtn.disabled-btn { opacity: 0.45; }

@media (max-width: 380px) {
	#cancelBtn, #submitBtn { font-size: 17px !important; padding: 12px 36px !important; }
	#cancelBtn::before { left: 16px; }
	#submitBtn::after { right: 12px; }
	.bk-btn { min-width: 120px; padding: 10px 18px !important; }
}
