/* Cheers San Diego: on-site "Check Your Date" form (js/booking.js).
   Uses the v2 palette from css/v2.css; values repeated as fallbacks so this file stands alone. */
.bk-lock, .bk-lock body { overflow: hidden !important; }

.bk {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	font-family: "Inter", Helvetica, Arial, sans-serif;
	color: var(--cx-ink, #2a2019);
	-webkit-text-size-adjust: 100%;
	letter-spacing: normal;
	text-align: left;
}
.bk[hidden] { display: none; }
.bk *, .bk *::before, .bk *::after { box-sizing: border-box; }
.bk__scrim {
	position: absolute;
	inset: 0;
	background: rgba(28, 19, 12, .62);
	animation: bk-fade .22s ease both;
}
.bk__sheet {
	position: relative;
	width: 100%;
	max-width: 560px;
	height: min(720px, calc(100vh - 48px));
	height: min(720px, calc(100dvh - 48px));
	display: flex;
	flex-direction: column;
	background: var(--cx-cream, #fbf7ef);
	border-radius: 24px;
	box-shadow: 0 30px 80px -20px rgba(28, 19, 12, .6);
	overflow: hidden;
	animation: bk-rise .28s cubic-bezier(.2, .8, .2, 1) both;
}

/* head: brand line, close, progress */
.bk__head { padding: 18px 22px 0; flex: none; }
.bk__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bk__brand {
	font-family: "Dancing Script", cursive;
	font-size: 1.6rem;
	line-height: 1;
	color: var(--cx-brown, #532c16);
	margin: 0;
}
.bk__close {
	width: 44px;
	height: 44px;
	margin-right: -8px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--cx-ink, #2a2019);
	display: grid;
	place-items: center;
	cursor: pointer;
}
.bk__close:hover { background: rgba(83, 44, 22, .08); }
.bk__close svg { width: 22px; height: 22px; }
.bk__meta { display: flex; justify-content: space-between; font-size: .8rem; font-weight: 600; color: var(--cx-muted, #7a6c5e); margin: 10px 0 8px; }
.bk__bar { height: 6px; border-radius: 999px; background: var(--cx-line, #e8dfcf); overflow: hidden; }
.bk__fill { height: 100%; width: 0; background: var(--cx-gold, #fbce13); border-radius: inherit; transition: width .3s ease; }

/* body: one question per step */
.bk__body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 26px 22px 18px; }
.bk__step[hidden] { display: none; }
.bk__step { animation: bk-step .24s ease both; border: 0; margin: 0; padding: 0; min-width: 0; }
.bk__q {
	font-size: clamp(1.45rem, 4.6vw, 1.75rem);
	line-height: 1.15;
	letter-spacing: -0.02em;
	font-weight: 700;
	color: var(--cx-espresso, #1c130c);
	margin: 0 0 6px;
	outline: none;
	text-transform: none;
}
.bk__hint { color: var(--cx-muted, #7a6c5e); font-size: .95rem; line-height: 1.45; margin: 0 0 18px; }
.bk__opt { font-weight: 600; font-size: .8rem; color: var(--cx-muted, #7a6c5e); text-transform: uppercase; letter-spacing: .06em; }

/* chips */
.bk__chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.bk__chips--col { flex-direction: column; }
.bk__chip { position: relative; display: block; cursor: pointer; }
.bk__chips--col .bk__chip { width: 100%; }
.bk__chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.bk__chip span {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 52px;
	padding: 12px 18px;
	border: 1.5px solid #d9cdb8;
	border-radius: 16px;
	background: #fff;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.25;
	color: var(--cx-ink, #2a2019);
	transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
	user-select: none;
	-webkit-user-select: none;
}
.bk__chip span::before {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	border: 1.5px solid #bfae92;
	border-radius: 50%;
	background: #fff center / 12px no-repeat;
}
.bk__chip input[type="checkbox"] + span::before { border-radius: 6px; }
.bk__chip:hover span { border-color: var(--cx-brown, #532c16); }
.bk__chip:active span { transform: scale(.98); }
.bk__chip input:checked + span {
	background: var(--cx-espresso, #1c130c);
	border-color: var(--cx-espresso, #1c130c);
	color: #fff;
}
.bk__chip input:checked + span::before {
	border-color: var(--cx-gold, #fbce13);
	background-color: var(--cx-gold, #fbce13);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c130c' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.bk__chip input:focus-visible + span { outline: 3px solid var(--cx-gold, #fbce13); outline-offset: 2px; }

/* text fields */
.bk__field { margin: 0 0 16px; }
.bk__field label { display: block; font-weight: 600; font-size: .9rem; margin: 0 0 6px; color: var(--cx-ink, #2a2019); }
.bk__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bk__input {
	display: block;
	width: 100%;
	min-height: 54px;
	padding: 13px 16px;
	border: 1.5px solid #d9cdb8;
	border-radius: 14px;
	background: #fff;
	color: var(--cx-ink, #2a2019);
	font: 500 1.05rem/1.3 "Inter", Helvetica, Arial, sans-serif;
	-webkit-appearance: none;
	appearance: none;
}
.bk__input[type="date"], .bk__input[type="time"] { font-size: 1.15rem; min-height: 58px; }
.bk__input::-webkit-date-and-time-value { text-align: left; }
textarea.bk__input { min-height: 120px; resize: vertical; }
.bk__input::placeholder { color: #a8998a; }
.bk__input:focus { outline: none; border-color: var(--cx-espresso, #1c130c); box-shadow: 0 0 0 3px rgba(251, 206, 19, .55); }
.bk__input[aria-invalid="true"] { border-color: #b3261e; }
.bk__other { margin-top: 12px; }
.bk__other[hidden] { display: none; }
.bk__sub { font-weight: 700; font-size: 1rem; margin: 26px 0 10px; color: var(--cx-espresso, #1c130c); }

.bk__err {
	min-height: 1.4em;
	margin: 12px 0 0;
	color: #b3261e;
	font-size: .92rem;
	font-weight: 600;
}
.bk__err:empty { min-height: 0; margin: 0; }
.bk__field .bk__err { margin-top: 6px; }

/* foot: back / next */
.bk__foot {
	flex: none;
	display: flex;
	gap: 10px;
	padding: 14px 22px 18px;
	padding-bottom: max(18px, env(safe-area-inset-bottom));
	border-top: 1px solid var(--cx-line, #e8dfcf);
	background: var(--cx-cream, #fbf7ef);
}
.bk__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 54px;
	padding: 14px 24px;
	border: 0;
	border-radius: 999px;
	font: 700 1rem/1 "Inter", Helvetica, Arial, sans-serif;
	letter-spacing: .01em;
	cursor: pointer;
	transition: background-color .2s ease, transform .2s ease;
}
.bk__btn:focus-visible, .bk__close:focus-visible { outline: 3px solid var(--cx-gold, #fbce13); outline-offset: 3px; }
.bk__btn--next { flex: 1; background: var(--cx-gold, #fbce13); color: #241708; box-shadow: 0 1px 0 rgba(0, 0, 0, .2); }
.bk__btn--next:hover { background: #ffdc3d; }
.bk__btn--back { background: transparent; color: var(--cx-ink, #2a2019); border: 1.5px solid #d9cdb8; padding: 14px 20px; }
.bk__btn--back:hover { border-color: var(--cx-brown, #532c16); }
.bk__btn[hidden] { display: none; }
.bk__btn[aria-busy="true"] { opacity: .7; cursor: progress; }

/* thank-you */
.bk__done { text-align: center; padding-top: 28px; }
.bk__done-mark {
	width: 72px;
	height: 72px;
	margin: 0 auto 20px;
	border-radius: 50%;
	background: var(--cx-gold, #fbce13);
	display: grid;
	place-items: center;
	color: var(--cx-espresso, #1c130c);
}
.bk__done-mark svg { width: 36px; height: 36px; }
.bk__done .bk__hint { max-width: 24em; margin-left: auto; margin-right: auto; }
.bk__done a { color: var(--cx-brown, #532c16); font-weight: 700; }

.bk__sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

@keyframes bk-fade { from { opacity: 0; } }
@keyframes bk-rise { from { opacity: 0; transform: translateY(24px) scale(.98); } }
@keyframes bk-up { from { transform: translateY(100%); } }
@keyframes bk-step { from { opacity: 0; transform: translateX(10px); } }

/* phones: full-screen sheet */
@media (max-width: 640px) {
	.bk { padding: 0; align-items: stretch; }
	.bk__sheet { max-width: none; height: 100%; height: 100dvh; border-radius: 0; animation-name: bk-up; }
	.bk__head { padding: 12px 18px 0; padding-top: max(12px, env(safe-area-inset-top)); }
	.bk__body { padding: 22px 18px 16px; }
	.bk__foot { padding-left: 18px; padding-right: 18px; }
	.bk__chips:not(.bk__chips--col) .bk__chip { flex: 1 1 calc(50% - 5px); }
}
@media (max-width: 360px) {
	.bk__row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	.bk__scrim, .bk__sheet, .bk__step { animation: none !important; }
	.bk__fill, .bk__chip span, .bk__btn { transition: none !important; }
}
.bk__q + .bk__chips, .bk__q + .bk__input, .bk__q + .bk__row { margin-top: 20px; }
