/* Hall Booking Configurator */
.hbc-app {
	--hbc-accent: #3d5afe;
	--hbc-ink: #1d2130;
	--hbc-muted: #6b7183;
	--hbc-line: #e3e6ee;
	--hbc-soft: #f5f6fa;
	--hbc-radius: 14px;
	--hbc-free: #22a35a;
	--hbc-partial: #e6a417;
	--hbc-full: #d64545;
	color: var(--hbc-ink);
	font-size: 15px;
	line-height: 1.45;
	margin: 2em 0;
}
.hbc-app *, .hbc-app *::before, .hbc-app *::after { box-sizing: border-box; }
.hbc-app button { font: inherit; color: inherit; cursor: pointer; }
.hbc-app button:disabled { cursor: not-allowed; }
.hbc-app h3 { font-size: 1.2em; margin: 0 0 .8em; }
.hbc-app h4 { font-size: .95em; margin: 1.4em 0 .6em; text-transform: uppercase; letter-spacing: .04em; color: var(--hbc-muted); }
.hbc-muted, .hbc-hint { color: var(--hbc-muted); font-size: .92em; }
.hbc-hint { background: var(--hbc-soft); border-radius: 10px; padding: 14px 16px; }

/* steps */
.hbc-steps { display: flex; gap: 6px; list-style: none; margin: 0 0 18px; padding: 0; counter-reset: s; overflow-x: auto; }
.hbc-steps li { flex: 1; min-width: 130px; }
.hbc-steps button { width: 100%; display: flex; align-items: center; gap: 10px; background: none; border: 0; border-bottom: 3px solid var(--hbc-line); padding: 10px 4px; text-align: left; color: var(--hbc-muted); font-weight: 600; }
.hbc-steps span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--hbc-line); font-size: .85em; flex: none; }
.hbc-steps .is-done button { color: var(--hbc-ink); border-color: color-mix(in srgb, var(--hbc-accent) 40%, transparent); }
.hbc-steps .is-done span { background: color-mix(in srgb, var(--hbc-accent) 18%, #fff); color: var(--hbc-accent); }
.hbc-steps .is-active button { color: var(--hbc-accent); border-color: var(--hbc-accent); }
.hbc-steps .is-active span { background: var(--hbc-accent); color: #fff; }

/* layout */
.hbc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.hbc-main, .hbc-aside { background: #fff; border: 1px solid var(--hbc-line); border-radius: var(--hbc-radius); padding: 22px; }
.hbc-aside { position: sticky; top: 24px; }
@media (max-width: 900px) {
	.hbc-grid { grid-template-columns: 1fr; }
	.hbc-aside { position: static; order: -1; }
	.hbc-preview { max-width: 420px; margin: 0 auto; }
}

/* calendar + time */
.hbc-when { display: grid; grid-template-columns: minmax(260px, 320px) minmax(0, 1fr); gap: 28px; }
@media (max-width: 1100px) { .hbc-when { grid-template-columns: 1fr; } }
.hbc-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; text-transform: capitalize; }
.hbc-cal-head button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--hbc-line); background: #fff; font-size: 20px; line-height: 1; }
.hbc-cal-head button:disabled { opacity: .3; }
.hbc-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.hbc-dow { text-align: center; font-size: .78em; color: var(--hbc-muted); padding: 4px 0; text-transform: uppercase; }
.hbc-day { position: relative; aspect-ratio: 1; border: 1px solid transparent; border-radius: 10px; background: var(--hbc-soft); font-weight: 600; }
.hbc-day::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; }
.hbc-day.st-available::after { background: var(--hbc-free); }
.hbc-day.st-partial::after { background: var(--hbc-partial); }
.hbc-day.st-full { color: var(--hbc-muted); text-decoration: line-through; }
.hbc-day.st-full::after { background: var(--hbc-full); }
.hbc-day.st-closed, .hbc-day.st-loading { background: transparent; color: #c3c7d2; }
.hbc-day.st-loading { animation: hbc-pulse 1s infinite alternate; }
.hbc-day:not(:disabled):hover { border-color: var(--hbc-accent); }
.hbc-day.is-sel { background: var(--hbc-accent); color: #fff; }
.hbc-day.is-sel::after { background: #fff; }
@keyframes hbc-pulse { to { opacity: .4; } }
.hbc-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: .8em; color: var(--hbc-muted); }
.hbc-legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; background: #c3c7d2; }
.hbc-legend .st-available::before { background: var(--hbc-free); }
.hbc-legend .st-partial::before { background: var(--hbc-partial); }
.hbc-legend .st-full::before { background: var(--hbc-full); }
.hbc-time h3 { text-transform: capitalize; }

.hbc-tl { margin-bottom: 6px; }
.hbc-tl-bar { position: relative; height: 26px; border-radius: 8px; background: color-mix(in srgb, var(--hbc-free) 14%, #fff); overflow: hidden; }
.hbc-tl-bar > div { position: absolute; top: 0; bottom: 0; }
.hbc-tl-buf { background: repeating-linear-gradient(45deg, #e9ebf1 0 4px, #f7f8fb 4px 8px); }
.hbc-tl-busy { background: #c9cdd8; }
.hbc-tl-sel { background: var(--hbc-accent); opacity: .9; border-radius: 6px; transition: left .15s, width .15s; }
.hbc-tl-ticks { position: relative; height: 18px; font-size: .72em; color: var(--hbc-muted); }
.hbc-tl-ticks span { position: absolute; transform: translateX(-50%); top: 2px; }
.hbc-tl-legend { font-size: .78em; color: var(--hbc-muted); }
.hbc-tl-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin: 0 4px 0 0; vertical-align: -1px; }
.hbc-tl-legend .k-busy { background: #c9cdd8; }
.hbc-tl-legend .k-sel { background: var(--hbc-accent); margin-left: 12px; }

.hbc-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 6px; }
.hbc-chip { padding: 8px 0; border-radius: 8px; border: 1px solid var(--hbc-line); background: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.hbc-chip:hover { border-color: var(--hbc-accent); }
.hbc-chip.is-sel { background: var(--hbc-accent); border-color: var(--hbc-accent); color: #fff; }
.hbc-dur { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hbc-dur input { flex: 1; min-width: 180px; accent-color: var(--hbc-accent); }
.hbc-dur-out strong { font-size: 1.1em; font-variant-numeric: tabular-nums; }
.hbc-dur-out span { color: var(--hbc-muted); }

/* layouts */
.hbc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.hbc-card { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 10px 10px 14px; border-radius: 12px; border: 2px solid var(--hbc-line); background: #fff; transition: border-color .15s, box-shadow .15s; }
.hbc-card:hover { border-color: color-mix(in srgb, var(--hbc-accent) 50%, transparent); }
.hbc-card.is-sel { border-color: var(--hbc-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--hbc-accent) 14%, transparent); }
.hbc-card .hbc-plan { margin-bottom: 6px; }
.hbc-card-t { font-weight: 700; }
.hbc-card-m { font-size: .85em; color: var(--hbc-accent); font-weight: 600; }
.hbc-card-d { font-size: .82em; color: var(--hbc-muted); }
.hbc-guests { display: flex; align-items: center; gap: 12px; }
.hbc-guests input[type=range] { flex: 1; accent-color: var(--hbc-accent); }
.hbc-guests input[type=number] { width: 80px; padding: 8px; border: 1px solid var(--hbc-line); border-radius: 8px; font: inherit; font-weight: 700; text-align: center; }

/* extras */
.hbc-extras { display: grid; gap: 8px; }
.hbc-extra { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--hbc-line); border-radius: 12px; transition: background .15s, border-color .15s; }
.hbc-extra.is-sel { border-color: var(--hbc-accent); background: color-mix(in srgb, var(--hbc-accent) 6%, #fff); }
.hbc-extra-i small { display: block; color: var(--hbc-muted); font-size: .85em; }
.hbc-extra-p { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hbc-extra-p small { color: var(--hbc-muted); font-weight: 400; }
.hbc-step { display: inline-flex; align-items: center; border: 1px solid var(--hbc-line); border-radius: 20px; overflow: hidden; }
.hbc-step button { width: 34px; height: 32px; border: 0; background: var(--hbc-soft); font-size: 18px; line-height: 1; }
.hbc-step button:disabled { opacity: .35; }
.hbc-step span { min-width: 32px; text-align: center; font-weight: 700; }
.hbc-switch { position: relative; display: inline-block; width: 46px; height: 26px; }
.hbc-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.hbc-switch span { position: absolute; inset: 0; background: #cdd1db; border-radius: 26px; transition: background .2s; cursor: pointer; }
.hbc-switch span::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.hbc-switch input:checked + span { background: var(--hbc-accent); }
.hbc-switch input:checked + span::before { transform: translateX(20px); }
.hbc-switch input:focus-visible + span { outline: 2px solid var(--hbc-accent); outline-offset: 2px; }
@media (max-width: 520px) { .hbc-extra { grid-template-columns: 1fr auto; } .hbc-extra-p { grid-column: 1; grid-row: 2; } .hbc-extra-c { grid-row: 1 / span 2; grid-column: 2; } }

/* form */
.hbc-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.hbc-f { display: flex; flex-direction: column; gap: 5px; font-size: .9em; font-weight: 600; }
.hbc-f em, .hbc-check em { color: var(--hbc-full); font-style: normal; }
.hbc-f input, .hbc-f select, .hbc-f textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--hbc-line); border-radius: 10px; font: inherit; font-weight: 400; background: #fff; }
.hbc-f input:focus, .hbc-f select:focus, .hbc-f textarea:focus { outline: none; border-color: var(--hbc-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hbc-accent) 18%, transparent); }
.hbc-f-wide { grid-column: 1 / -1; }
.hbc-check { display: flex; gap: 8px; align-items: flex-start; font-size: .92em; }
.hbc-check input { margin-top: 3px; accent-color: var(--hbc-accent); }
.hbc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 600px) { .hbc-form { grid-template-columns: 1fr; } }

/* nav */
.hbc-err { color: var(--hbc-full); font-weight: 600; min-height: 1.4em; margin-top: 16px; }
.hbc-err:empty { min-height: 0; margin: 0; }
.hbc-nav { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--hbc-line); }
.hbc-sp { flex: 1; }
.hbc-btn { border: 0; border-radius: 10px; padding: 12px 22px; background: var(--hbc-accent); color: #fff !important; font-weight: 700; transition: filter .15s; }
.hbc-btn:hover { filter: brightness(1.08); }
.hbc-btn:disabled { opacity: .6; }
.hbc-btn-ghost { background: transparent; color: var(--hbc-ink) !important; border: 1px solid var(--hbc-line); }

/* aside */
.hbc-preview { margin-bottom: 14px; }
.hbc-preview-cap { text-align: center; font-size: .82em; color: var(--hbc-muted); margin-top: 4px; }
.hbc-sum { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0 0 12px; font-size: .92em; }
.hbc-sum dt { color: var(--hbc-muted); }
.hbc-sum dd { margin: 0; font-weight: 600; text-align: right; }
.hbc-lines { list-style: none; margin: 0; padding: 0; font-size: .9em; }
.hbc-lines li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--hbc-line); }
.hbc-lines b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.hbc-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; }
.hbc-total strong { font-size: 1.6em; color: var(--hbc-accent); font-variant-numeric: tabular-nums; }
.hbc-dep { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--hbc-soft); font-size: .88em; }

/* floor plan */
.hbc-plan { display: block; width: 100%; height: auto; }
.hbc-plan .p-wall { fill: #fbfbfd; stroke: #9aa1b2; stroke-width: 2.5; }
.hbc-plan .p-door { fill: #fff; }
.hbc-plan .p-stage { fill: #2b3042; }
.hbc-plan .p-floor { fill: color-mix(in srgb, var(--hbc-accent) 7%, #fff); stroke: color-mix(in srgb, var(--hbc-accent) 35%, #fff); stroke-dasharray: 5 4; }
.hbc-plan .p-seat { fill: var(--hbc-accent); }
.hbc-plan .p-table { fill: #fff; stroke: #8e95a8; stroke-width: 1.5; }
.hbc-plan .p-person { fill: color-mix(in srgb, var(--hbc-accent) 75%, #000); opacity: .75; }
.hbc-plan .p-bar { fill: #b06a2c; }
.hbc-plan .p-equip { fill: #2b3042; stroke: #fff; stroke-width: 1; }
.hbc-plan .p-cone { fill: #6b7183; }
.hbc-plan .p-stroke { stroke: #2b3042; stroke-width: 1.5; }
.hbc-plan .p-light { fill: #ffcf33; stroke: #c99a00; stroke-width: .8; }
.hbc-plan .p-screen { fill: #6b7183; }
.hbc-plan .p-lbl { font: 700 11px/1 system-ui, sans-serif; fill: #fff; text-anchor: middle; letter-spacing: .08em; }
.hbc-plan .p-sm { font-size: 9px; fill: #6b7183; }
.hbc-plan .p-inv { fill: #fff; }
.hbc-plan text:not(.p-inv):not([class*="p-sm"]) { fill: #fff; }
.hbc-plan .p-floor ~ text.p-sm { fill: var(--hbc-accent); }

/* done */
.hbc-done { text-align: center; max-width: 560px; margin: 0 auto; background: #fff; border: 1px solid var(--hbc-line); border-radius: var(--hbc-radius); padding: 40px 28px; }
.hbc-done-ic { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; font-size: 32px; color: #fff; background: var(--hbc-free); }
.hbc-done h2 { margin: 0 0 10px; }

@media (max-width: 600px) {
	.hbc-steps li { min-width: 0; flex: 0 0 auto; }
	.hbc-steps li.is-active { flex: 1; }
	.hbc-steps li:not(.is-active) button { font-size: 0; gap: 0; }
	.hbc-steps span { font-size: 13px; }
	.hbc-main, .hbc-aside { padding: 16px; }
}
