/* Wigdan Events – registration form. Override the variables below in your theme to match your brand. */
.wge {
	--wge-accent: #1f6f5c;
	--wge-accent-ink: #ffffff;
	--wge-ink: #1d2327;
	--wge-muted: #646970;
	--wge-line: #dcdcde;
	--wge-card: #ffffff;
	--wge-soft: #f6f7f7;
	--wge-warn: #b26200;
	--wge-err: #b32d2e;
	--wge-ok: #1a7f37;
	--wge-radius: 12px;
	max-width: 640px;
	margin: 1.5em auto;
	color: var(--wge-ink);
	font: inherit;
	line-height: 1.6;
}
.wge *, .wge *::before, .wge *::after { box-sizing: border-box; }

.wge-sessions { border: 0; margin: 0 0 1.25em; padding: 0; display: grid; gap: .6em; }
.wge-sessions legend { padding: 0; margin-bottom: .75em; display: flex; flex-wrap: wrap; gap: .25em .75em; align-items: baseline; }
.wge-legend-main { font-weight: 700; font-size: 1.1em; }
.wge-legend-rule { color: var(--wge-muted); font-size: .92em; }

.wge-session {
	position: relative;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: .35em .85em;
	padding: .9em 1em 1.1em;
	background: var(--wge-card);
	border: 1.5px solid var(--wge-line);
	border-radius: var(--wge-radius);
	cursor: pointer;
	overflow: hidden;
	transition: border-color .15s, background .15s, opacity .15s;
}
.wge-session:hover { border-color: var(--wge-accent); }
.wge-session input { position: absolute; opacity: 0; pointer-events: none; }
.wge-check {
	width: 1.35em; height: 1.35em; border-radius: 6px;
	border: 2px solid var(--wge-line); background: var(--wge-card);
	display: grid; place-items: center; transition: all .15s;
}
.wge-session input:checked ~ .wge-check { background: var(--wge-accent); border-color: var(--wge-accent); }
.wge-session input:checked ~ .wge-check::after {
	content: ""; width: .35em; height: .65em; margin-top: -.12em;
	border: solid var(--wge-accent-ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.wge-session:has(input:checked) { border-color: var(--wge-accent); background: color-mix(in srgb, var(--wge-accent) 6%, var(--wge-card)); }
.wge-session input:focus-visible ~ .wge-check { outline: 2px solid var(--wge-accent); outline-offset: 2px; }

.wge-session-body { display: flex; flex-direction: column; min-width: 0; }
.wge-session-title { font-weight: 600; }
.wge-session-meta { color: var(--wge-muted); font-size: .88em; }

.wge-seats { font-size: .82em; font-weight: 600; white-space: nowrap; color: var(--wge-muted); }
.wge-session.is-low .wge-seats { color: var(--wge-warn); }
.wge-bar { display: none; position: absolute; inset-inline: 0; bottom: 0; height: 4px; background: var(--wge-soft); }
.wge-session.is-limited .wge-bar { display: block; }
.wge-bar span { display: block; height: 100%; width: 0; background: var(--wge-accent); transition: width .4s; }
.wge-session.is-low .wge-bar span { background: var(--wge-warn); }

.wge-session.is-full { cursor: not-allowed; background: var(--wge-soft); }
.wge-session.is-full .wge-session-body, .wge-session.is-full .wge-check { opacity: .5; }
.wge-session.is-full .wge-seats { color: var(--wge-err); }
.wge-session.is-full .wge-bar span { background: var(--wge-err); width: 100% !important; }
.wge-session.is-locked { opacity: .55; cursor: not-allowed; }

.wge-sessions.is-single .wge-session { cursor: default; grid-template-columns: 1fr auto; }
.wge-sessions.is-single .wge-check { display: none; }

.wge-fields { display: grid; gap: .9em; margin-bottom: 1em; }
.wge-field { display: grid; gap: .3em; }
.wge-field > span { font-weight: 600; font-size: .95em; }
.wge-field small { font-weight: 400; color: var(--wge-muted); margin-inline-start: .3em; }
.wge-field input {
	width: 100%; padding: .7em .85em; font: inherit; color: inherit;
	background: var(--wge-card); border: 1.5px solid var(--wge-line); border-radius: 10px;
}
.wge-field input:focus { outline: none; border-color: var(--wge-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--wge-accent) 20%, transparent); }
.wge[dir="rtl"] .wge-field input[dir="ltr"] { text-align: right; }
.wge-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.wge-submit {
	width: 100%; padding: .85em 1em; font: inherit; font-weight: 700; font-size: 1.05em;
	color: var(--wge-accent-ink); background: var(--wge-accent);
	border: 0; border-radius: 10px; cursor: pointer; transition: filter .15s, opacity .15s;
}
.wge-submit:hover { filter: brightness(1.08); }
.wge-submit:disabled { opacity: .6; cursor: wait; }
.wge-danger { background: var(--wge-err); }

.wge-msg:empty { display: none; }
.wge-msg { margin-bottom: .9em; padding: .7em .9em; border-radius: 10px; font-size: .95em; }
.wge-msg.is-err { background: color-mix(in srgb, var(--wge-err) 9%, var(--wge-card)); color: var(--wge-err); }
.wge-msg.is-ok { background: color-mix(in srgb, var(--wge-ok) 9%, var(--wge-card)); color: var(--wge-ok); }

.wge-notice { padding: 1em 1.1em; margin-bottom: 1em; border-radius: var(--wge-radius); background: var(--wge-soft); border: 1px solid var(--wge-line); }

.wge-result {
	padding: 1.4em 1.4em 1.2em; border-radius: var(--wge-radius);
	background: var(--wge-card); border: 1.5px solid var(--wge-line);
}
.wge-result.is-confirmed, .wge-result.is-pending { border-color: var(--wge-accent); }
.wge-result h3 { margin: 0 0 .6em; font-size: 1.25em; }
.wge-result ul { margin: .3em 0 1em; padding-inline-start: 1.2em; }
.wge-code strong { font-size: 1.35em; letter-spacing: .08em; color: var(--wge-accent); }
.wge-sub { margin: .6em 0 .2em; color: var(--wge-muted); font-size: .95em; }
.wge-cancel-hint { margin-top: 1.2em; padding-top: .9em; border-top: 1px solid var(--wge-line); font-size: .88em; color: var(--wge-muted); }
.wge-cancel-hint a { color: var(--wge-err); }

@media (max-width: 480px) {
	.wge-session { grid-template-columns: auto 1fr; }
	.wge-seats { grid-column: 2; }
}

.wge-price { margin: 0 0 .9em; font-size: 1.05em; }
.wge-price strong { color: var(--wge-accent); }
.wge-pay { margin: 1em 0; padding: 1em 1.1em; border-radius: 10px; background: var(--wge-soft); }
.wge-pay-amount { margin: 0 0 .4em; font-size: 1.1em; }
.wge-pay-amount strong { color: var(--wge-accent); font-size: 1.2em; }
.wge-pay-steps p { margin: .3em 0; }
a.wge-wa { display: block; margin: .9em 0 .4em; text-align: center; text-decoration: none; background: #1f8f4e; color: #fff; }

/* custom questions */
.wge-q[hidden] { display: none !important; }
.wge-q > label, .wge-q > legend { font-weight: 600; font-size: .95em; padding: 0; }
.wge-q small { font-weight: 400; color: var(--wge-muted); margin-inline-start: .3em; }
.wge-help { display: block; color: var(--wge-muted); font-size: .85em; margin-top: -.1em; }
.wge-field textarea, .wge-field select {
	width: 100%; padding: .7em .85em; font: inherit; color: inherit;
	background: var(--wge-card); border: 1.5px solid var(--wge-line); border-radius: 10px;
}
.wge-field textarea { resize: vertical; min-height: 6em; }
.wge-field textarea:focus, .wge-field select:focus { outline: none; border-color: var(--wge-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--wge-accent) 20%, transparent); }
.wge-choices { border: 0; margin: 0; padding: 0; min-width: 0; }
.wge-choices legend { margin-bottom: .45em; }
.wge-options { display: flex; flex-wrap: wrap; gap: .5em; }
.wge-option { position: relative; cursor: pointer; }
.wge-option input { position: absolute; opacity: 0; pointer-events: none; }
.wge-option span {
	display: inline-block; padding: .55em 1.1em; border: 1.5px solid var(--wge-line);
	border-radius: 999px; background: var(--wge-card); transition: all .15s;
}
.wge-option:hover span { border-color: var(--wge-accent); }
.wge-option input:checked + span { background: var(--wge-accent); border-color: var(--wge-accent); color: var(--wge-accent-ink); }
.wge-option input:focus-visible + span { outline: 2px solid var(--wge-accent); outline-offset: 2px; }
.wge-q.is-error input, .wge-q.is-error textarea, .wge-q.is-error select, .wge-q.is-error .wge-option span { border-color: var(--wge-err); }
.wge-q.is-error > label, .wge-q.is-error > legend { color: var(--wge-err); }

.wge-date { display: grid; grid-template-columns: 1fr 1.4fr 1.2fr; gap: .5em; }

/* cancel page */
.wge-cancel-list { list-style: none; padding: 0 !important; margin: .6em 0 1em; display: grid; gap: .5em; }
.wge-cancel-list li { padding: .7em .9em; border: 1.5px solid var(--wge-line); border-radius: 10px; }
.wge-cancel-list li label { display: flex; gap: .6em; align-items: center; cursor: pointer; }
.wge-cancel-list li input { width: 1.15em; height: 1.15em; accent-color: var(--wge-err); flex: none; }
.wge-cancel-list li.is-locked { background: var(--wge-soft); color: var(--wge-muted); }
.wge-lock, .wge-until { display: block; font-size: .85em; margin-top: .2em; color: var(--wge-muted); }
.wge-closed { border-color: var(--wge-warn); background: color-mix(in srgb, var(--wge-warn) 8%, var(--wge-card)); }
.wge-rule { display: block; margin-top: .3em; }

.wge-session.is-past .wge-seats { color: var(--wge-muted, #777); }
.wge-session.is-past .wge-bar { display: none; }
