/* Canadian Barn Booking — front-end styles
   Brand: ink #1A1A1A, red #E4002B */

.cbb {
	--cbb-ink: #1A1A1A;
	--cbb-red: #E4002B;
	--cbb-line: #E5E2DC;
	--cbb-soft: #F6F4F0;
	--cbb-open: #E6F4EA;
	--cbb-open-ink: #1E7A3C;
	--cbb-book: #FBE3E3;
	--cbb-book-ink: #A32020;
	--cbb-radius: 10px;
	font-family: inherit;
	color: var(--cbb-ink);
	box-sizing: border-box;
}
.cbb *, .cbb *::before, .cbb *::after { box-sizing: border-box; }

/* ---------- Inquiry form ---------- */
.cbb-inquiry {
	max-width: 520px;
	border: 1px solid var(--cbb-line);
	border-radius: 14px;
	padding: 1.5rem;
	background: #fff;
}
.cbb-progress { display: flex; gap: 6px; margin-bottom: 1.5rem; }
.cbb-dot { flex: 1; height: 4px; border-radius: 2px; background: var(--cbb-line); transition: background .2s; }
.cbb-dot.is-active { background: var(--cbb-red); }

.cbb-q { font-size: 1.15rem; margin: 0 0 .35rem; font-weight: 600; }
.cbb-sub { font-size: .85rem; color: #6b6862; margin: 0 0 1rem; }
.cbb-label { display: block; font-size: .8rem; color: #6b6862; margin: .75rem 0 .3rem; }

.cbb-input {
	width: 100%;
	padding: .7rem .8rem;
	border: 1px solid var(--cbb-line);
	border-radius: var(--cbb-radius);
	font-size: 1rem;
	font-family: inherit;
	margin-bottom: .25rem;
	background: #fff;
}
.cbb-input:focus { outline: none; border-color: var(--cbb-ink); }

.cbb-spaces { display: flex; flex-direction: column; gap: .6rem; }
.cbb-space {
	display: flex; align-items: center; gap: .6rem;
	width: 100%; text-align: left;
	padding: .9rem 1rem;
	border: 1px solid var(--cbb-line);
	border-radius: var(--cbb-radius);
	background: #fff; cursor: pointer; font-size: 1rem;
	transition: border-color .15s, color .15s;
}
.cbb-space:hover { border-color: var(--cbb-ink); }
.cbb-space.is-sel { border-color: var(--cbb-red); border-width: 2px; color: var(--cbb-red); }
.cbb-both { border-style: dashed; justify-content: center; }
.cbb-swatch { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex: 0 0 auto; }

.cbb-events { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.cbb-event {
	padding: 1rem; border: 1px solid var(--cbb-line);
	border-radius: var(--cbb-radius); background: #fff;
	cursor: pointer; font-size: .95rem; transition: border-color .15s, color .15s;
}
.cbb-event:hover { border-color: var(--cbb-ink); }
.cbb-event.is-sel { border-color: var(--cbb-red); border-width: 2px; color: var(--cbb-red); }

.cbb-datecheck { font-size: .85rem; margin-top: .6rem; min-height: 1.2em; }
.cbb-datecheck.ok { color: var(--cbb-open-ink); }
.cbb-datecheck.busy { color: var(--cbb-book-ink); }

.cbb-nav { display: flex; gap: .6rem; margin-top: 1.5rem; }
.cbb-btn {
	padding: .75rem 1.25rem; border-radius: var(--cbb-radius);
	border: 1px solid var(--cbb-ink); background: #fff; color: var(--cbb-ink);
	font-size: 1rem; cursor: pointer; font-family: inherit;
}
.cbb-next { flex: 1; background: var(--cbb-ink); color: #fff; }
.cbb-next:hover { background: #000; }
.cbb-back:hover { background: var(--cbb-soft); }

.cbb-error { margin-top: .75rem; color: var(--cbb-book-ink); font-size: .85rem; }

.cbb-done { text-align: center; padding: 1rem 0; }
.cbb-check {
	width: 52px; height: 52px; border-radius: 50%;
	background: var(--cbb-open); color: var(--cbb-open-ink);
	display: flex; align-items: center; justify-content: center;
	font-size: 1.6rem; margin: 0 auto 1rem;
}
.cbb-summary { font-size: .9rem; color: #4a4842; margin: .5rem 0; }

/* ---------- Calendar ---------- */
.cbb-calendar {
	max-width: 520px;
	border: 1px solid var(--cbb-line);
	border-radius: 14px;
	padding: 1.5rem;
	background: #fff;
}
.cbb-cal-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-bottom: 1.1rem; }
.cbb-filter-label { font-size: .8rem; color: #6b6862; margin-right: .2rem; }
.cbb-chip {
	display: inline-flex; align-items: center; gap: .4rem;
	padding: .35rem .75rem; border: 1px solid var(--cbb-line);
	border-radius: 20px; background: #fff; cursor: pointer; font-size: .82rem;
	font-family: inherit; color: var(--cbb-ink);
}
.cbb-chip.is-active { border-color: var(--cbb-ink); border-width: 2px; }

.cbb-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .8rem; }
.cbb-cal-title { font-size: 1.05rem; font-weight: 600; }
.cbb-cal-nav {
	width: 34px; height: 34px; border-radius: 8px;
	border: 1px solid var(--cbb-line); background: #fff;
	font-size: 1.2rem; line-height: 1; cursor: pointer; color: var(--cbb-ink);
}
.cbb-cal-nav:hover { background: var(--cbb-soft); }

.cbb-cal-dow { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; margin-bottom: 6px; }
.cbb-cal-dow span { text-align: center; font-size: .72rem; color: #9a968e; }
.cbb-cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; }

.cbb-cell {
	aspect-ratio: 1; display: flex; flex-direction: column;
	align-items: center; justify-content: center;
	font-size: .85rem; border-radius: 7px; position: relative;
}
.cbb-cell.is-empty { background: transparent; }
.cbb-cell.is-open { background: var(--cbb-open); color: var(--cbb-open-ink); cursor: pointer; }
.cbb-cell.is-open:hover { outline: 2px solid var(--cbb-open-ink); }
.cbb-cell.is-book { background: var(--cbb-book); color: var(--cbb-book-ink); }
.cbb-cell.is-past { color: #c9c6bf; }
.cbb-cell-dots { display: flex; gap: 3px; margin-top: 2px; height: 5px; }
.cbb-cell-dots i { width: 5px; height: 5px; border-radius: 50%; display: inline-block; }

.cbb-cal-legend { display: flex; gap: 1.2rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--cbb-line); }
.cbb-leg { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; color: #6b6862; }
.cbb-leg-box { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.cbb-leg-open { background: var(--cbb-open); }
.cbb-leg-book { background: var(--cbb-book); }
.cbb-cal-note { font-size: .75rem; color: #9a968e; margin: .6rem 0 0; }
.cbb-cal-msg { margin-top: .75rem; font-size: .85rem; }

/* ---------- WhatsApp button ---------- */
.cbb-whatsapp {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	padding: .8rem 1.4rem; border-radius: var(--cbb-radius);
	background: #25D366; color: #0b3d1f; font-weight: 600;
	text-decoration: none; font-size: 1rem;
}
.cbb-whatsapp:hover { background: #1EBE5A; }
.cbb-wa-icon { font-size: 1.2rem; }
.cbb-admin-note { font-size: .85rem; color: #A32020; }

@media (max-width: 560px) {
	.cbb-inquiry, .cbb-calendar { padding: 1.1rem; }
}
