/**
 * Annual Events Manager — public styles.
 *
 * Plain CSS, no build step: the plugin installs as a ZIP with no Node runtime.
 * Mobile-first; the wizard and ticket cards must be usable at 320px wide.
 */

.aem-edition,
.aem-events-list {
	max-width: 720px;
	margin: 0 auto;
	font-size: 16px;
	line-height: 1.5;
}

.aem-steps {
	display: flex;
	gap: 0.5rem;
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
}

.aem-steps li {
	flex: 1;
	padding: 0.5rem;
	text-align: center;
	border-bottom: 3px solid #dcdcde;
	color: #646970;
}

.aem-steps li[aria-current="step"] {
	border-bottom-color: #2271b1;
	color: #1d2327;
	font-weight: 600;
}

.aem-ticket {
	border: 1px solid #dcdcde;
	border-radius: 4px;
	padding: 1rem;
	margin-bottom: 1rem;
}

.aem-ticket h3 {
	margin-top: 0;
}

.aem-ticket .aem-price {
	font-size: 1.25rem;
	font-weight: 600;
}

.aem-ticket .aem-remaining {
	color: #646970;
	font-size: 0.875rem;
}

.aem-ticket.is-sold-out {
	opacity: 0.6;
}

.aem-qty {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 0.5rem;
}

.aem-qty button {
	width: 2.25rem;
	height: 2.25rem;
	font-size: 1.25rem;
}

.aem-field {
	margin-bottom: 1rem;
}

.aem-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.25rem;
}

.aem-field input[type="text"],
.aem-field input[type="email"],
.aem-field input[type="tel"],
.aem-field input[type="number"],
.aem-field select,
.aem-field textarea {
	width: 100%;
	max-width: 100%;
}

.aem-field .aem-error {
	color: #b32d2e;
	font-size: 0.875rem;
	margin-top: 0.25rem;
}

.aem-field input[aria-invalid="true"] {
	border-color: #b32d2e;
}

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

.aem-actions {
	display: flex;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

.aem-review-table {
	width: 100%;
	border-collapse: collapse;
}

.aem-review-table th,
.aem-review-table td {
	border-bottom: 1px solid #dcdcde;
	padding: 0.5rem;
	text-align: left;
}

.aem-review-table .aem-total td {
	font-weight: 700;
	border-bottom: none;
}

.aem-confirm-box,
.aem-ticket-box {
	border: 1px solid #00a32a;
	border-radius: 4px;
	padding: 1.5rem;
	margin-bottom: 1.5rem;
	background: #f6fff7;
}

.aem-reference {
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: 0.05em;
}

.aem-ticket-code {
	font-family: ui-monospace, monospace;
	font-size: 1.125rem;
}

@media (max-width: 480px) {
	.aem-steps {
		font-size: 0.8rem;
	}

	.aem-actions {
		flex-direction: column;
	}

	.aem-actions .button {
		width: 100%;
		text-align: center;
	}
}

/* Edition overview above the ticket step. */
.aem-overview { margin: 0 0 2rem; }
.aem-overview-title { margin: 0 0 0.5rem; }
.aem-overview-meta { list-style: none; margin: 0 0 1rem; padding: 0; color: #50575e; }
.aem-overview-lead { font-size: 1.125em; margin: 0 0 1rem; }
.aem-day { margin: 1.25rem 0 0.5rem; }
.aem-session { display: flex; gap: 1rem; padding: 0.5rem 0; border-top: 1px solid #dcdcde; }
.aem-session-time { flex: 0 0 6.5rem; color: #50575e; font-variant-numeric: tabular-nums; }
.aem-session-sub { color: #50575e; font-size: 0.9em; }
.aem-speakers { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.aem-speaker img { width: 100%; max-width: 120px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; display: block; margin-bottom: 0.5rem; }
