/*
 * Exoride - EventBooking registration wizard (individual + group)
 * Design tokens extracted from templates/yootheme/css/theme.9.css (YOOtheme customizer output)
 * so the wizard matches the site's real colors/typography instead of approximating them.
 */

.eb-registration-wizard,
.eb-group-registration-form {
	--eb-color-bg: #121212;
	--eb-color-surface: #1f1f1f;
	--eb-color-primary: #d02144;
	--eb-color-primary-grad: linear-gradient(135deg, #f56d52, #bb022e);
	--eb-color-primary-grad-hover: linear-gradient(135deg, #f68069, #c50230);
	--eb-color-text: rgba(255, 255, 255, .86);
	--eb-color-text-muted: rgba(255, 255, 255, .45);
	--eb-color-success: #a3ffa4;
	--eb-color-danger: #fe6c6e;
	--eb-shadow-md: 0 8px 45px 0 rgba(0, 0, 0, .6);
	--eb-font-heading: 'Josefin Sans', sans-serif;
	--eb-font-body: 'Fira Sans Condensed', sans-serif;
}

/* ---------- Step indicator ---------- */
.eb-wizard-steps {
	display: flex;
	list-style: none;
	margin: 0 0 30px;
	padding: 0;
	gap: 4px;
}

.eb-wizard-step {
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	position: relative;
	font-family: var(--eb-font-body);
	color: var(--eb-color-text-muted);
}

.eb-wizard-step:not(:last-child)::after {
	content: '';
	position: absolute;
	top: 16px;
	left: 55%;
	width: 90%;
	height: 2px;
	background: rgba(255, 255, 255, .12);
	z-index: 0;
}

.eb-wizard-step.is-done:not(:last-child)::after {
	background: var(--eb-color-primary);
}

.eb-wizard-step-circle {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 500px;
	background: var(--eb-color-surface);
	border: 2px solid rgba(255, 255, 255, .18);
	font-family: var(--eb-font-heading);
	font-weight: 700;
	font-size: 13px;
	color: var(--eb-color-text-muted);
	margin-bottom: 8px;
}

.eb-wizard-step.is-active .eb-wizard-step-circle {
	background: var(--eb-color-primary-grad);
	border-color: transparent;
	color: #fff;
}

.eb-wizard-step.is-done .eb-wizard-step-circle {
	background: var(--eb-color-primary);
	border-color: transparent;
	color: #fff;
}

.eb-wizard-step-label {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.eb-wizard-step.is-active .eb-wizard-step-label {
	color: var(--eb-color-text);
}

.eb-wizard-step-empty {
	display: none;
}

@media (max-width: 639px) {
	.eb-wizard-step-label {
		display: none;
	}
}

/* ---------- Layout ---------- */
.eb-wizard-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
}

.eb-wizard-main {
	flex: 1 1 0;
	min-width: 280px;
}

.eb-wizard-side {
	flex: 0 0 320px;
	max-width: 320px;
}

@media (max-width: 959px) {
	.eb-wizard-side {
		flex: 1 1 100%;
		max-width: 100%;
		order: -1;
	}
}

.eb-wizard-step-title {
	font-family: var(--eb-font-heading);
	font-weight: 700;
	text-transform: uppercase;
	font-size: 20px;
	margin: 0 0 20px;
	color: var(--eb-color-text);
}

.eb-wizard-step-panel {
	display: none;
}

.eb-wizard-step-panel.is-active {
	display: block;
	animation: eb-wizard-fade .25s ease;
}

@keyframes eb-wizard-fade {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: translateY(0); }
}

/* ---------- Identification toggle ---------- */
.eb-identification-toggle {
	display: flex;
	gap: 8px;
	margin-bottom: 20px;
}

.eb-identification-toggle-btn {
	flex: 1 1 0;
	padding: 10px 16px;
	background: transparent;
	border: 2px solid rgba(255, 255, 255, .18);
	color: var(--eb-color-text-muted);
	font-family: var(--eb-font-heading);
	font-weight: 700;
	font-style: italic;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-size: 12px;
	cursor: pointer;
}

.eb-identification-toggle-btn.is-active {
	border-color: transparent;
	background: var(--eb-color-primary-grad);
	color: #fff;
}

.eb-identification-pane.eb-identification-pane-hidden,
.eb-identification-pane.eb-wizard-step-hidden {
	display: none;
}

.eb-identification-hint {
	font-family: var(--eb-font-body);
	font-size: 12px;
	color: var(--eb-color-text-muted);
	margin: 0 0 14px;
}

/* ---------- Floating price + Exo'points panel ---------- */
.eb-price-panel {
	position: sticky;
	top: 20px;
	background: var(--eb-color-surface);
	box-shadow: var(--eb-shadow-md);
	padding: 24px;
}

/* Currency suffix ("CHF") on the amount fields: Bootstrap's default light-grey addon reads
   poorly against this site's dark theme - replace with black. */
.eb-price-panel .input-group-text,
.eb-group-registration-form .input-group-text {
	background-color: #000;
	color: var(--eb-color-text);
	border-color: rgba(255, 255, 255, .18);
}

.eb-price-panel-event-title {
	font-family: var(--eb-font-heading);
	font-weight: 700;
	text-transform: uppercase;
	font-size: 15px;
	color: var(--eb-color-text);
}

.eb-price-panel-event-date {
	font-family: var(--eb-font-body);
	font-size: 13px;
	color: var(--eb-color-text-muted);
	margin-bottom: 16px;
}

.eb-price-panel-amount {
	border-top: 1px solid rgba(255, 255, 255, .08);
	padding-top: 12px;
}

/* Payment processing fee depends on the payment method, chosen only on the last wizard step
   (Récapitulatif) - hide it (and the resulting gross total) until that step is reached. */
.eb-price-panel.eb-price-panel-fee-hidden #eb-payment-processing-fee-container,
.eb-price-panel.eb-price-panel-fee-hidden #eb-gross-amount-container {
	display: none;
}

.eb-price-panel-exopoints {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, .08);
	font-family: var(--eb-font-body);
	font-size: 13px;
	color: var(--eb-color-text-muted);
}

.eb-exopoints-icon {
	color: #f56d52;
}

.eb-exopoints-text strong {
	color: var(--eb-color-text);
}

@media (max-width: 959px) {
	.eb-price-panel {
		position: sticky;
		bottom: 0;
		top: auto;
		z-index: 20;
	}
}

/* ---------- Navigation ---------- */
.eb-wizard-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 30px;
	gap: 12px;
}

.eb-wizard-btn-back[disabled] {
	visibility: hidden;
}

/* ---------- Group registration (shell reskin, IDs untouched) ---------- */
.eb-group-registration-form .eb-form-heading {
	font-family: var(--eb-font-heading);
	font-weight: 700;
	text-transform: uppercase;
	font-size: 20px;
	margin: 0 0 20px;
	color: var(--eb-color-text);
}

.eb-member-accordion-item {
	background: var(--eb-color-surface);
	box-shadow: var(--eb-shadow-md);
	margin-bottom: 16px;
}

.eb-member-accordion-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 20px;
	cursor: pointer;
	font-family: var(--eb-font-heading);
	font-weight: 700;
	text-transform: uppercase;
	font-size: 14px;
	color: var(--eb-color-text);
}

.eb-member-accordion-body {
	padding: 0 20px 20px;
	display: none;
}

.eb-member-accordion-item.is-open .eb-member-accordion-body {
	display: block;
}

.eb-member-subsection-title {
	font-family: var(--eb-font-heading);
	font-weight: 700;
	text-transform: uppercase;
	font-size: 13px;
	color: var(--eb-color-text-muted);
	margin: 20px 0 10px;
}
