/* ECHOS Events: registration call-to-action and form.
   Self-contained: brand colours come from the theme's custom properties when
   they exist and fall back to the same values when another theme is active. */

.echos-reg-cta {
	display: grid;
	gap: 0.5rem;
}

.echos-reg-cta__seats {
	margin: 0;
	font-weight: 700;
	color: var(--color-primary-strong, #0e6a86);
}

.echos-reg-cta__note,
.echos-reg__message {
	margin: 0;
	padding: 0.75rem 1rem;
	border-radius: 8px;
	background: var(--color-primary-soft, #e8f5fa);
	color: var(--color-ink, #031722);
	font-weight: 600;
}

.echos-reg-cta[data-state="full"] .echos-reg-cta__note,
.echos-reg-cta[data-state="closed"] .echos-reg-cta__note,
.echos-reg[data-state="full"] .echos-reg__message,
.echos-reg[data-state="closed"] .echos-reg__message {
	background: #fbe9e9;
	color: #7a1212;
}

.echos-reg-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 3.1rem;
	padding: 0.7rem 1.75rem;
	border: 0;
	border-radius: 999px;
	background: var(--color-primary-strong, #0e6a86);
	color: #fff;
	font: inherit;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.echos-reg-btn:hover,
.echos-reg-btn:focus-visible {
	background: var(--color-primary-stronger, #0b5a73);
	color: #fff;
}

.echos-reg-btn[disabled] {
	opacity: 0.65;
	cursor: progress;
}

.echos-reg-btn[hidden],
.echos-reg [hidden] {
	display: none;
}

.echos-reg {
	padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem);
	border: 1px solid rgb(3 23 34 / 0.1);
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 10px 40px -18px rgb(3 23 34 / 0.22);
	scroll-margin-top: 6rem;
}

.echos-reg h2 {
	margin: 0 0 1rem;
}

.echos-reg__intro,
.echos-reg__privacy,
.echos-reg__hint {
	margin: 0 0 1.25rem;
	font-size: 0.9rem;
	color: var(--color-text-muted, #5b6770);
}

.echos-reg__privacy {
	margin: 0.75rem 0 0;
}

.echos-reg__hint {
	margin: 0;
}

.echos-reg__form {
	display: grid;
	gap: 1.1rem;
}

.echos-reg__grid {
	display: grid;
	gap: 1.1rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.echos-reg__field {
	display: grid;
	gap: 0.35rem;
	align-content: start;
}

.echos-reg__field--wide {
	grid-column: 1 / -1;
}

.echos-reg__field > label,
.echos-reg__set legend {
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--color-ink, #031722);
}

.echos-reg__req {
	color: var(--color-danger, #b70007);
}

.echos-reg input[type="text"],
.echos-reg input[type="tel"],
.echos-reg input[type="email"],
.echos-reg select {
	width: 100%;
	min-height: 3rem;
	padding: 0.6rem 0.95rem;
	border: 1.5px solid var(--color-border, #d7d7d7);
	border-radius: 8px;
	background: #fff;
	color: inherit;
	font: inherit;
}

.echos-reg input:focus,
.echos-reg select:focus {
	outline: none;
	border-color: var(--color-primary-strong, #0e6a86);
	box-shadow: 0 0 0 3px rgb(23 153 193 / 0.25);
}

.echos-reg [aria-invalid="true"] {
	border-color: var(--color-danger, #b70007);
}

/* Numbers and emails are typed left to right but sit on the reading side in Arabic. */
[dir="rtl"] .echos-reg input[dir="ltr"] {
	text-align: right;
}

.echos-reg__set {
	display: grid;
	gap: 0.6rem;
	margin: 0;
	padding: 1rem 1.1rem;
	border: 1.5px solid var(--color-border, #d7d7d7);
	border-radius: 8px;
}

.echos-reg__set legend {
	padding: 0 0.4rem;
}

.echos-reg__check {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	font-weight: 400;
	cursor: pointer;
}

.echos-reg__check input {
	flex: none;
	width: 1.2rem;
	height: 1.2rem;
	margin-top: 0.3rem;
	accent-color: var(--color-primary-strong, #0e6a86);
}

.echos-reg__when,
.echos-reg__left {
	color: var(--color-text-muted, #5b6770);
	font-size: 0.9rem;
}

.echos-reg__error {
	margin: 0;
	font-size: 0.875rem;
	color: var(--color-danger, #b70007);
}

.echos-reg__status {
	margin: 0;
	font-weight: 700;
}

.echos-reg__status:empty {
	display: none;
}

.echos-reg__status.is-error {
	color: var(--color-danger, #b70007);
}

.echos-reg__submit {
	justify-self: start;
	min-width: 12rem;
}

.echos-reg__hp {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.echos-reg__result {
	padding: 1.5rem;
	border-radius: 14px;
	border-inline-start: 6px solid var(--color-primary, #1799c1);
	background: var(--color-primary-soft, #e8f5fa);
	outline: none;
}

.echos-reg__result.is-success {
	border-inline-start-color: #1b7a43;
	background: #e6f4ec;
}

.echos-reg__result.is-pending {
	border-inline-start-color: #fea62b;
	background: #fff5e2;
}

.echos-reg__result h3 {
	margin: 0 0 0.4rem;
}

.echos-reg__result p {
	margin: 0 0 1rem;
}

.echos-reg__result dl {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.3rem 1rem;
	margin: 0;
}

.echos-reg__result dt {
	color: var(--color-text-muted, #5b6770);
}

.echos-reg__result dd {
	margin: 0;
	font-weight: 700;
}

/* ---------------------------------------------------------------------------
   Ticket card: shown after a confirmed registration and on "My ticket".
   ------------------------------------------------------------------------ */

.echos-reg__result {
	scroll-margin-top: 6rem;
}

.echos-ticket {
	display: grid;
	gap: 1rem;
	margin: 0 0 1rem;
	padding: clamp(1rem, 0.8rem + 1vw, 1.5rem);
	border: 1px solid rgb(3 23 34 / 0.12);
	border-radius: 14px;
	border-top: 5px solid var(--color-primary, #1799c1);
	background: #fff;
	color: var(--color-text, #222);
	text-align: start;
}

.echos-ticket--pending,
.echos-ticket--waitlist {
	border-top-color: #fea62b;
}

.echos-ticket--rejected,
.echos-ticket--cancelled {
	border-top-color: var(--color-danger, #b70007);
}

.echos-ticket .echos-ticket__event {
	margin: 0;
	font-size: 1.15rem;
	line-height: 1.35;
	color: var(--color-ink, #031722);
}

.echos-ticket .echos-ticket__when,
.echos-ticket .echos-ticket__note,
.echos-ticket .echos-ticket__actions {
	margin: 0;
}

.echos-ticket__when,
.echos-ticket__note {
	font-size: 0.95rem;
	color: var(--color-text-muted, #5b6770);
}

.echos-ticket__when {
	margin-top: 0.3rem;
}

.echos-ticket__body {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.25rem;
}

/* Sharp squares at any size: a blurred QR code is harder to scan from a screen. */
.echos-ticket__qr {
	flex: none;
	width: 220px;
	max-width: 100%;
	height: auto;
	margin-inline: auto;
	border: 1px solid rgb(3 23 34 / 0.12);
	border-radius: 10px;
	background: #fff;
	image-rendering: pixelated;
}

.echos-ticket .echos-ticket__list {
	flex: 1 1 14rem;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.3rem 1rem;
	margin: 0;
}

.echos-ticket__list dt {
	margin: 0;
	font-weight: 400;
	color: var(--color-text-muted, #5b6770);
}

.echos-ticket__list dd {
	margin: 0;
	font-weight: 700;
	overflow-wrap: anywhere;
}

/* Stronger than a theme's link colour inside page content. */
.echos-ticket .echos-reg-btn,
.echos-reg .echos-reg-btn {
	color: #fff;
	text-decoration: none;
}

.echos-ticket .echos-reg-btn {
	display: inline-flex;
}

.echos-ticket__hint {
	margin: 0;
	font-size: 0.95rem;
}

/* "My ticket" page. */
.echos-lookup__results:focus {
	outline: none;
}

.echos-lookup__again {
	margin: 1rem 0 0;
}

.echos-lookup__link {
	padding: 0;
	border: 0;
	background: none;
	color: var(--color-primary-strong, #0e6a86);
	font: inherit;
	font-weight: 700;
	text-decoration: underline;
	cursor: pointer;
}

.echos-reg-cta__ticket {
	margin: 0;
	font-size: 0.9rem;
	text-align: center;
}
