/* BS House Booking — stile frontend coerente con brainspace.it */

.bsh-form {
	--bsh-primary: #911d09;
	--bsh-primary-dark: #6e1607;
	--bsh-text: #333;
	--bsh-muted: #767676;
	--bsh-border: #ddd;
	--bsh-bg-soft: #faf6f5;
	--bsh-radius: 50px;
	--bsh-radius-box: 12px;

	font-family: "Noto Sans", Arial, sans-serif;
	color: var(--bsh-text);
	max-width: 720px;
	margin: 0 auto;
}

.bsh-form * {
	box-sizing: border-box;
}

/* L'attributo hidden deve vincere sui display espliciti (flex/grid) qui sotto. */
.bsh-form [hidden],
.bsh-form[hidden] {
	display: none !important;
}

/* ---- Titoli step ---- */

.bsh-step-title {
	display: flex;
	align-items: center;
	gap: 0.6em;
	color: var(--bsh-primary);
	font-size: 1.15rem;
	font-weight: 700;
	margin: 1.5em 0 0.75em;
}

.bsh-step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.8em;
	height: 1.8em;
	flex: 0 0 auto;
	border-radius: 50%;
	background: var(--bsh-primary);
	color: #fff;
	font-size: 0.85em;
}

/* ---- Chip giorni / slot ---- */

.bsh-days,
.bsh-slots {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.bsh-chip {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 10px 22px;
	border: 2px solid var(--bsh-primary) !important;
	border-radius: var(--bsh-radius);
	background: #fff !important;
	color: var(--bsh-primary) !important;
	font: inherit;
	font-weight: 600;
	line-height: 1.25;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.bsh-chip small {
	font-size: 0.72em;
	font-weight: 400;
	opacity: 0.8;
}

.bsh-chip:hover:not(:disabled) {
	transform: translateY(-1px);
}

.bsh-chip.is-selected {
	background: var(--bsh-primary) !important;
	color: #fff !important;
}

.bsh-chip:disabled {
	border-color: var(--bsh-border);
	color: var(--bsh-muted);
	background: #f4f4f4;
	cursor: not-allowed;
}

.bsh-chip:focus-visible {
	outline: 3px solid rgba(145, 29, 9, 0.35);
	outline-offset: 2px;
}

/* ---- Avviso lock ---- */

.bsh-lock-notice {
	display: flex;
	align-items: center;
	gap: 0.5em;
	margin-top: 1em;
	padding: 10px 18px;
	background: var(--bsh-bg-soft);
	border: 1px solid rgba(145, 29, 9, 0.25);
	border-radius: var(--bsh-radius-box);
	color: var(--bsh-primary);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

/* ---- Form ---- */

.bsh-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px 20px;
}

.bsh-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0 0 12px;
}

.bsh-field-wide {
	grid-column: 1 / -1;
}

.bsh-field label {
	font-weight: 600;
	font-size: 0.92rem;
}

.bsh-field input[type="text"],
.bsh-field input[type="email"],
.bsh-field input[type="tel"],
.bsh-field input[type="number"] {
	padding: 10px 14px;
	border: 1px solid var(--bsh-border);
	border-radius: 8px;
	font: inherit;
	color: var(--bsh-text);
	background: #fff;
	width: 100%;
}

.bsh-field input:focus {
	border-color: var(--bsh-primary);
	outline: 2px solid rgba(145, 29, 9, 0.2);
}

.bsh-hint {
	color: var(--bsh-muted);
	font-size: 0.8rem;
}

.bsh-error {
	color: #b32d1a;
	font-size: 0.82rem;
	min-height: 1em;
}

.bsh-error:empty {
	display: none;
}

/* ---- Honeypot ---- */

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

/* ---- Privacy ---- */

.bsh-privacy {
	margin: 1em 0;
	border: 1px solid var(--bsh-border);
	border-radius: var(--bsh-radius-box);
	padding: 12px 18px;
	background: var(--bsh-bg-soft);
	font-size: 0.9rem;
}

.bsh-privacy summary {
	cursor: pointer;
	font-weight: 600;
	color: var(--bsh-primary);
}

.bsh-privacy-text {
	margin-top: 0.75em;
	max-height: 260px;
	overflow-y: auto;
	line-height: 1.55;
}

.bsh-consent label {
	display: flex;
	align-items: flex-start;
	gap: 0.6em;
	font-weight: 400;
	font-size: 0.92rem;
	cursor: pointer;
}

.bsh-consent input[type="checkbox"] {
	margin-top: 3px;
	accent-color: var(--bsh-primary);
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
}

/* ---- Messaggi + bottone ---- */

.bsh-message {
	padding: 12px 18px;
	border-radius: var(--bsh-radius-box);
	background: #fdecea;
	border: 1px solid #f0b8ae;
	color: #8c1d09;
	font-size: 0.95rem;
}

.bsh-actions {
	margin-top: 1em;
}

.bsh-btn {
	display: inline-block;
	padding: 14px 48px;
	border: none;
	border-radius: var(--bsh-radius);
	font: inherit;
	font-weight: 700;
	font-size: 1.05rem;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.1s ease;
}

.bsh-btn-primary {
	background: var(--bsh-primary);
	color: #fff;
}

.bsh-btn-primary:hover:not(:disabled) {
	background: var(--bsh-primary-dark);
	transform: translateY(-1px);
}

.bsh-btn-primary:disabled {
	opacity: 0.6;
	cursor: wait;
}

/* ---- Conferma ---- */

.bsh-confirmation {
	margin-top: 1.5em;
	padding: 28px;
	border-radius: var(--bsh-radius-box);
	background: var(--bsh-bg-soft);
	border: 2px solid var(--bsh-primary);
}

.bsh-confirmation-title {
	color: var(--bsh-primary);
	margin: 0 0 0.5em;
}

.bsh-summary {
	margin: 1em 0 0;
	display: grid;
	gap: 6px;
}

.bsh-summary-row {
	display: flex;
	gap: 1em;
	border-bottom: 1px dashed var(--bsh-border);
	padding-bottom: 6px;
}

.bsh-summary-row dt {
	flex: 0 0 110px;
	font-weight: 700;
	color: var(--bsh-primary);
}

.bsh-summary-row dd {
	margin: 0;
	overflow-wrap: anywhere;
    word-break: break-word;
}
button.bsh-chip.bsh-day {
    flex-grow: 1;
}

.el

.bsh-loading,
.bsh-empty {
	color: var(--bsh-muted);
	font-style: italic;
}

/* ---- Responsive ---- */

@media (max-width: 560px) {
	.bsh-grid {
		grid-template-columns: 1fr;
	}

	.bsh-chip {
		flex: 1 1 calc(50% - 10px);
	}

	.bsh-btn {
		width: 100%;
	}
}
