/* Bodywork Class Tracker: public booking page. Mobile first. */
.bct-app {
	--bct-accent: #2f5d50;
	--bct-accent-dark: #234438;
	--bct-line: rgba(128, 128, 128, 0.35);
	--bct-open: #2f7a4f;
	--bct-few: #b26a00;
	--bct-full: #a33a3a;
	max-width: 720px;
	margin: 0 auto;
	font-size: 1rem;
	line-height: 1.5;
	box-sizing: border-box;
}
.bct-app *, .bct-app *::before, .bct-app *::after { box-sizing: border-box; }

.bct-day {
	margin: 1.75rem 0 0.6rem;
	font-size: 1.1rem;
	font-weight: 700;
}
.bct-day:first-child { margin-top: 0.5rem; }

.bct-card {
	border: 1px solid var(--bct-line);
	border-radius: 12px;
	padding: 1rem;
	margin: 0 0 0.75rem;
}
.bct-card-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.5rem;
}
.bct-title { margin: 0; font-size: 1.1rem; line-height: 1.3; }
.bct-meta { margin: 0.35rem 0 0; opacity: 0.8; font-size: 0.95rem; }
.bct-desc { margin: 0.6rem 0 0; white-space: pre-line; }

.bct-pill {
	display: inline-block;
	padding: 0.15rem 0.65rem;
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 600;
	color: #fff;
	white-space: nowrap;
}
.bct-pill-open { background: var(--bct-open); }
.bct-pill-few { background: var(--bct-few); }
.bct-pill-full { background: var(--bct-full); }

.bct-btn {
	display: inline-block;
	width: 100%;
	margin-top: 0.85rem;
	padding: 0.8rem 1.25rem;
	border: 0;
	border-radius: 10px;
	background: var(--bct-accent);
	color: #fff;
	font: inherit;
	font-weight: 600;
	text-align: center;
	cursor: pointer;
	min-height: 48px;
}
.bct-btn:hover, .bct-btn:focus { background: var(--bct-accent-dark); color: #fff; }
.bct-btn[disabled] { opacity: 0.6; cursor: default; }
.bct-btn-alt { background: transparent; color: var(--bct-accent); border: 2px solid var(--bct-accent); }
.bct-btn-alt:hover, .bct-btn-alt:focus { background: var(--bct-accent); color: #fff; }
.bct-btn-danger { background: var(--bct-full); }
.bct-btn-danger:hover, .bct-btn-danger:focus { background: #7f2b2b; }

.bct-link {
	background: none;
	border: 0;
	padding: 0.75rem 0.5rem;
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
	color: inherit;
	opacity: 0.8;
}

.bct-form { margin-top: 0.75rem; }
.bct-field { margin: 0 0 0.75rem; }
.bct-field label { display: block; margin: 0 0 0.25rem; font-weight: 600; font-size: 0.95rem; }
.bct-field .bct-optional { font-weight: 400; opacity: 0.7; }
.bct-field input {
	display: block;
	width: 100%;
	min-height: 48px;
	padding: 0.6rem 0.75rem;
	border: 1px solid var(--bct-line);
	border-radius: 8px;
	font: inherit;
	font-size: 16px; /* stops iOS zooming into the field */
}
.bct-actions { display: flex; flex-direction: column; align-items: stretch; gap: 0.1rem; }
.bct-actions .bct-btn { margin-top: 0.25rem; }
.bct-actions .bct-link { align-self: center; }

.bct-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px; height: 1px;
	overflow: hidden;
}

.bct-note { margin: 0.75rem 0; font-size: 0.95rem; opacity: 0.85; }
.bct-msg {
	margin: 0.75rem 0 0;
	padding: 0.65rem 0.85rem;
	border-radius: 8px;
	font-size: 0.95rem;
}
.bct-msg-ok { background: rgba(47, 122, 79, 0.14); border: 1px solid var(--bct-open); }
.bct-msg-err { background: rgba(163, 58, 58, 0.12); border: 1px solid var(--bct-full); }
.bct-empty, .bct-loading { opacity: 0.75; padding: 1rem 0; }

@media (min-width: 600px) {
	.bct-btn { width: auto; }
	.bct-actions { flex-direction: row; align-items: center; gap: 0.75rem; }
	.bct-actions .bct-link { align-self: auto; }
	.bct-field input { max-width: 420px; }
}

/* ---------- view toggle + calendar ---------- */
.bct-toolbar { display: inline-flex; border: 1px solid var(--bct-line); border-radius: 999px; overflow: hidden; margin: 0 0 1rem; }
.bct-tab { background: none; border: 0; padding: 0.5rem 1.1rem; font: inherit; font-size: 0.95rem; cursor: pointer; color: inherit; min-height: 40px; }
.bct-tab-on { background: var(--bct-accent); color: #fff; font-weight: 600; }

.bct-cal-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 0.5rem; }
.bct-cal-title { margin: 0; font-size: 1.2rem; text-align: center; flex: 1; }
.bct-cal-nav { width: 44px; height: 44px; border: 1px solid var(--bct-line); border-radius: 50%; background: none; font-size: 1.6rem; line-height: 1; cursor: pointer; color: inherit; padding: 0; }
.bct-cal-nav[disabled] { opacity: 0.3; cursor: default; }

.bct-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.bct-cal-dow { text-align: center; font-size: 0.75rem; font-weight: 600; opacity: 0.7; padding: 0.25rem 0; }
.bct-cal-day {
	display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
	min-height: 52px; padding: 6px 2px 4px; border: 1px solid transparent; border-radius: 10px;
	background: none; font: inherit; color: inherit; text-align: center;
}
.bct-cal-num { font-size: 0.95rem; line-height: 1.2; }
.bct-cal-empty { opacity: 0.4; }
.bct-cal-has { border-color: var(--bct-line); cursor: pointer; font-weight: 600; background: rgba(47, 93, 80, 0.07); }
.bct-cal-has:hover, .bct-cal-has:focus-visible { border-color: var(--bct-accent); }
.bct-cal-sel { background: var(--bct-accent); border-color: var(--bct-accent); color: #fff; }
.bct-cal-dots { display: flex; gap: 3px; margin-top: 5px; justify-content: center; flex-wrap: wrap; }
.bct-cal-times { display: none; }

.bct-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; vertical-align: middle; border: 1px solid rgba(255, 255, 255, 0.85); }
.bct-dot-open { background: var(--bct-open); }
.bct-dot-few { background: var(--bct-few); }
.bct-dot-full { background: var(--bct-full); }
.bct-legend { font-size: 0.8rem; opacity: 0.8; margin: 0.6rem 0 0; }
.bct-legend .bct-dot { margin: 0 0.15rem 0 0.6rem; border-color: transparent; }
.bct-legend .bct-dot:first-child { margin-left: 0; }
.bct-cal-panel { margin-top: 1rem; scroll-margin-top: 1rem; }
.bct-cal-panel .bct-day:first-child { margin-top: 0.5rem; }

@media (min-width: 600px) {
	.bct-cal-day { min-height: 84px; padding: 8px 4px; }
	.bct-cal-dots { display: none; }
	.bct-cal-times { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; width: 100%; }
	.bct-cal-time { display: block; font-size: 0.72rem; font-weight: 600; border-radius: 6px; padding: 1px 0; color: #fff; }
	.bct-cal-time-open { background: var(--bct-open); }
	.bct-cal-time-few { background: var(--bct-few); }
	.bct-cal-time-full { background: var(--bct-full); }
}

/* Booking choice (radio buttons) */
.bct-field .bct-legend { font-weight: 600; font-size: 0.95rem; margin: 0 0 0.35rem; }
.bct-field .bct-radio { display: flex; align-items: center; gap: 0.5rem; font-weight: 400; margin: 0 0 0.35rem; cursor: pointer; }
.bct-field .bct-radio input { width: auto; max-width: none; margin: 0; flex: 0 0 auto; }
