/**
 * Le formulaire de réservation — habillé aux couleurs de HB Clean Auto 64.
 *
 * Les couleurs sont exposées en variables : si la charte change, tout se
 * règle ici, sans toucher au reste de la feuille.
 */

.hb-form {
	--hb-ink: #0A0A0A;
	--hb-surface: #141318;
	--hb-surface-2: #1B1A21;
	--hb-text: #E7E7EA;
	--hb-text-soft: #8F8DA0;
	--hb-line: rgba(231, 231, 234, .12);
	--hb-line-strong: rgba(231, 231, 234, .22);
	--hb-cyan: #00E6FF;
	--hb-magenta: #FF3EB5;
	--hb-danger: #FF6B6B;

	background: var(--hb-surface);
	border: 1px solid var(--hb-line);
	border-radius: 14px;
	padding: clamp(20px, 4vw, 36px);
	color: var(--hb-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	line-height: 1.6;
}

.hb-form *,
.hb-form *::before,
.hb-form *::after {
	box-sizing: border-box;
}

/* --- Fil d'étapes ----------------------------------------------------- */

.hb-steps {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0 0 28px;
	padding: 0;
}

.hb-step {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: .78rem;
	font-weight: 600;
	color: var(--hb-text-soft);
	padding: .5em 1em;
	border: 1px solid var(--hb-line-strong);
	border-radius: 100px;
	transition: color .2s ease, border-color .2s ease;
}

.hb-step span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--hb-line);
	font-size: .7rem;
}

.hb-step.is-active {
	color: var(--hb-ink);
	border-color: transparent;
	background: linear-gradient(120deg, var(--hb-cyan), var(--hb-magenta));
}

.hb-step.is-active span {
	background: rgba(0, 0, 0, .2);
	color: var(--hb-ink);
}

.hb-step.is-done {
	color: var(--hb-cyan);
	border-color: var(--hb-cyan);
}

/* --- Panneaux --------------------------------------------------------- */

.hb-panel {
	display: none;
}

.hb-panel.is-active {
	display: block;
	animation: hb-fade .35s ease;
}

@keyframes hb-fade {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.hb-panel.is-active { animation: none; }
}

.hb-form h3 {
	font-size: 1.25rem;
	font-weight: 700;
	margin: 0 0 20px;
	color: var(--hb-text);
}

.hb-form h4 {
	font-size: .74rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--hb-text-soft);
	margin: 24px 0 12px;
	font-weight: 700;
}

.hb-block[hidden] {
	display: none;
}

/* --- Choix ------------------------------------------------------------ */

.hb-choices {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 10px;
}

.hb-choices-2 {
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.hb-choice {
	display: flex;
	flex-direction: column;
	gap: 4px;
	text-align: left;
	background: var(--hb-surface-2);
	border: 1px solid var(--hb-line-strong);
	border-radius: 10px;
	padding: 16px;
	cursor: pointer;
	color: var(--hb-text);
	font-family: inherit;
	transition: border-color .15s ease, background .15s ease, transform .1s ease;
}

.hb-choice:hover {
	border-color: var(--hb-cyan);
}

.hb-choice:active {
	transform: translateY(1px);
}

.hb-choice strong {
	font-size: .95rem;
	font-weight: 700;
}

.hb-choice span {
	font-size: .8rem;
	color: var(--hb-text-soft);
}

.hb-choice.is-selected {
	border-color: transparent;
	background: linear-gradient(120deg, rgba(0, 230, 255, .16), rgba(255, 62, 181, .16));
	box-shadow: 0 0 0 1px var(--hb-cyan);
}

.hb-choice-sm {
	padding: 12px 14px;
}

/* --- Champs ----------------------------------------------------------- */

.hb-field {
	margin-bottom: 16px;
}

.hb-field label {
	display: block;
	font-size: .82rem;
	font-weight: 600;
	color: var(--hb-text-soft);
	margin-bottom: 6px;
}

.hb-form input[type="text"],
.hb-form input[type="email"],
.hb-form input[type="tel"],
.hb-form input[type="date"],
.hb-form textarea {
	width: 100%;
	background: var(--hb-surface-2);
	border: 1px solid var(--hb-line-strong);
	border-radius: 8px;
	padding: 12px 14px;
	color: var(--hb-text);
	font-family: inherit;
	font-size: .92rem;
}

.hb-form input:focus,
.hb-form textarea:focus {
	outline: none;
	border-color: var(--hb-cyan);
	box-shadow: 0 0 0 3px rgba(0, 230, 255, .15);
}

.hb-form textarea {
	resize: vertical;
}

.hb-grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 16px;
}

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

/* --- Créneaux --------------------------------------------------------- */

.hb-slots {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	min-height: 44px;
}

.hb-slot {
	background: var(--hb-surface-2);
	border: 1px solid var(--hb-line-strong);
	border-radius: 8px;
	padding: 10px 16px;
	color: var(--hb-text);
	font-family: ui-monospace, "SF Mono", Consolas, monospace;
	font-size: .88rem;
	cursor: pointer;
	transition: border-color .15s ease;
}

.hb-slot:hover {
	border-color: var(--hb-cyan);
}

.hb-slot.is-selected {
	background: linear-gradient(120deg, var(--hb-cyan), var(--hb-magenta));
	border-color: transparent;
	color: var(--hb-ink);
	font-weight: 700;
}

/* --- Récapitulatif ---------------------------------------------------- */

.hb-summary {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 10px 20px;
	margin: 0 0 20px;
	padding: 20px;
	background: var(--hb-surface-2);
	border-radius: 10px;
}

.hb-summary dt {
	color: var(--hb-text-soft);
	font-size: .85rem;
}

.hb-summary dd {
	margin: 0;
	font-size: .9rem;
	text-align: right;
}

.hb-summary .hb-total {
	padding-top: 10px;
	border-top: 1px solid var(--hb-line);
	font-weight: 700;
	font-size: 1.05rem;
	color: var(--hb-cyan);
}

/* --- Carte cadeau ----------------------------------------------------- */

.hb-gift {
	margin: 16px 0;
}

.hb-gift-toggle {
	background: none;
	border: 0;
	padding: 0;
	color: var(--hb-cyan);
	font-family: inherit;
	font-size: .88rem;
	font-weight: 600;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.hb-gift-toggle:hover {
	color: var(--hb-magenta);
}

.hb-gift-box {
	margin-top: 14px;
	padding: 18px;
	background: var(--hb-surface-2);
	border: 1px solid var(--hb-line-strong);
	border-radius: 10px;
}

.hb-gift-box label {
	display: block;
	font-size: .8rem;
	font-weight: 600;
	color: var(--hb-text-soft);
	margin-bottom: 8px;
}

.hb-gift-row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.hb-gift-row input {
	flex: 1 1 180px;
	min-width: 0;
	font-family: ui-monospace, "SF Mono", Consolas, monospace;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.hb-gift-msg {
	margin: 12px 0 0;
	font-size: .84rem;
}

.hb-gift-msg.is-ok {
	color: var(--hb-cyan);
}

.hb-gift-msg.is-ko {
	color: var(--hb-danger);
}

/* --- Messages --------------------------------------------------------- */

.hb-note {
	font-size: .82rem;
	color: var(--hb-text-soft);
	background: rgba(0, 230, 255, .06);
	border-left: 2px solid var(--hb-cyan);
	padding: 10px 14px;
	border-radius: 4px;
	margin: 16px 0;
}

.hb-error {
	font-size: .85rem;
	color: var(--hb-danger);
	background: rgba(255, 107, 107, .08);
	border-left: 2px solid var(--hb-danger);
	padding: 10px 14px;
	border-radius: 4px;
	margin: 16px 0;
}

.hb-muted {
	color: var(--hb-text-soft);
	font-size: .85rem;
	margin: 0;
}

.hb-alert-error {
	color: var(--hb-danger);
}

/* --- Navigation ------------------------------------------------------- */

.hb-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid var(--hb-line);
}

.hb-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: inherit;
	font-size: .9rem;
	font-weight: 700;
	padding: .85em 1.6em;
	border-radius: 100px;
	border: 1px solid transparent;
	cursor: pointer;
	transition: box-shadow .2s ease, transform .1s ease, opacity .2s ease;
}

.hb-btn:active {
	transform: translateY(1px);
}

.hb-btn-primary {
	background: linear-gradient(120deg, var(--hb-cyan), var(--hb-magenta));
	color: var(--hb-ink);
}

.hb-btn-primary:hover:not(:disabled) {
	box-shadow: 0 0 0 1px rgba(0, 230, 255, .4), 0 16px 40px -16px rgba(255, 62, 181, .6);
}

.hb-btn-primary:disabled {
	opacity: .4;
	cursor: not-allowed;
}

.hb-btn-ghost {
	background: transparent;
	color: var(--hb-text);
	border-color: var(--hb-line-strong);
}

.hb-btn-ghost:hover {
	border-color: var(--hb-cyan);
	color: var(--hb-cyan);
}

/* --- Confirmation ----------------------------------------------------- */

.hb-done {
	text-align: center;
	padding: 40px 20px;
}

.hb-done-icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 20px;
	border-radius: 50%;
	background: linear-gradient(120deg, var(--hb-cyan), var(--hb-magenta));
	color: var(--hb-ink);
	font-size: 2rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* --- Piège à robots --------------------------------------------------- */

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