/* ==========================================================================
   Conference Manager — public registration flow

   Dressed for the GenNow Rising "Ignite" theme (1.17.4): dark surfaces,
   Voltaire for the conference name, Montserrat for everything else, the
   Ignite gradient (plum → magenta → pink) on the main buttons. Sky blue
   carries links, seat dots and focus; pink is kept for "nearly gone" so
   it still means something. QR codes keep a white backing: phones read
   dark-on-light codes far more reliably.
   All rendered inline by public/js/public.js.
   ========================================================================== */

/* The ticket pop-up is added to <body>, outside the app, so it needs the
   same colours declared on itself. */
.ccm-conference-app,
.ccm-modal-overlay {
	--ccm-accent: #57c3f0;        /* logo sky blue: links, dots, focus */
	--ccm-accent-dark: #8ad6f6;   /* its hover, lighter on a dark page */
	--ccm-accent-soft: rgba(87, 195, 240, 0.12);
	--ccm-ignite: linear-gradient(90deg, #672e80, #c21a80 55%, #f05883);
	--ccm-magenta: #f05883;       /* logo pink — "nearly gone" only */
	--ccm-magenta-soft: rgba(240, 88, 131, 0.4);
	--ccm-text: #eef0f8;
	--ccm-text-soft: #cfd3e4;
	--ccm-text-muted: #9aa0ba;
	--ccm-border: rgba(255, 255, 255, 0.12);
	--ccm-surface: #0e1020;
	--ccm-surface-2: #151831;
	--ccm-field: rgba(255, 255, 255, 0.04);
	--ccm-tint: rgba(87, 195, 240, 0.08);
	--ccm-tint-warm: rgba(194, 26, 128, 0.14);
	--ccm-danger: #ff9cb3;
	--ccm-danger-soft: rgba(240, 88, 131, 0.12);
	--ccm-success: #7ee2b8;
	--ccm-success-soft: rgba(126, 226, 184, 0.12);
	color-scheme: dark; /* date pickers, menus and scrollbars drawn dark too */
}

.ccm-conference-app {
	max-width: 900px;
	margin: 0 auto;
	font-size: 15px;
	color: var(--ccm-text);
	font-family: Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	line-height: 1.55;
}

/* ---------- Hero banner ---------- */

.ccm-hero {
	border-radius: 24px 24px 0 0;
	overflow: hidden;
	line-height: 0;
}

.ccm-hero-banner {
	width: 100%;
	height: 260px;
	object-fit: cover;
	display: block;
}

/* ---------- Card shell ---------- */

.ccm-card {
	border: 1px solid var(--ccm-border);
	border-radius: 24px;
	padding: 30px 30px 28px;
	background: var(--ccm-surface);
	box-shadow: 0 40px 120px -50px rgba(0, 0, 0, 0.9);
}

.ccm-details-card.has-banner {
	border-radius: 0 0 24px 24px;
	border-top: none;
}

.ccm-title {
	margin: 0 0 24px;
	font: 400 40px/1 Voltaire, "Arial Narrow", sans-serif;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ccm-text);
}

/* ---------- Landing: two columns on desktop ----------
   Event facts sit on a tinted panel at the left, sessions and the
   action at the right, so a wide screen isn't one stretched column.
   Collapses to a single column under 760px (see the media query at the
   end of this file). With no sessions to list there's nothing to put in
   the right column, so .is-single drops back to one. */

.ccm-details-card.ccm-split {
	display: grid;
	grid-template-columns: 1fr 1.25fr;
	padding: 0;
	overflow: hidden;
}

.ccm-details-card.ccm-split.is-single {
	grid-template-columns: 1fr;
}

.ccm-split-left {
	background:
		radial-gradient(90% 70% at 0% 0%, var(--ccm-tint) 0%, transparent 70%),
		radial-gradient(90% 70% at 100% 100%, var(--ccm-tint-warm) 0%, transparent 70%),
		var(--ccm-surface-2);
	border-right: 1px solid var(--ccm-border);
	padding: 36px 34px;
}

.ccm-split.is-single .ccm-split-left {
	border-right: 0;
	border-bottom: 1px solid var(--ccm-border);
}

.ccm-split-right {
	padding: 36px 34px;
}

/* ---------- Event facts ---------- */

.ccm-facts {
	margin: 0;
}

.ccm-facts dt {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--ccm-magenta);
	margin-bottom: 4px;
}

.ccm-facts dd {
	margin: 0;
	font-size: 17px;
	font-weight: 600;
	color: var(--ccm-text);
}

.ccm-fact {
	margin-bottom: 20px;
}

.ccm-fact:last-child {
	margin-bottom: 0;
}

.ccm-fact-sub {
	display: block;
	font-size: 14px;
	font-weight: 400;
	color: var(--ccm-text-muted);
}

.ccm-fee-pill {
	display: inline-block;
	background: var(--ccm-accent-soft);
	color: var(--ccm-accent);
	font-size: 13px;
	font-weight: 700;
	padding: 5px 12px;
	border-radius: 20px;
}

.ccm-description {
	margin: 22px 0 0;
	line-height: 1.7;
	color: var(--ccm-text-soft);
	font-size: 14.5px;
}

/* ---------- Sessions ---------- */

.ccm-topics-heading {
	font-size: 17px;
	font-weight: 700;
	margin: 0 0 3px;
	color: var(--ccm-text);
}

.ccm-topics-hint {
	margin: 0 0 18px;
	font-size: 14px;
	color: var(--ccm-text-muted);
}

.ccm-topics-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 20px;
}

.ccm-topic-item {
	border: 1px solid var(--ccm-border);
	border-radius: 16px;
	padding: 14px 18px;
	background: var(--ccm-field);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 14px;
}

.ccm-topic-name {
	font-weight: 600;
	font-size: 17px;
	display: block;
}

.ccm-topic-description {
	margin: 3px 0 0;
	font-size: 13px;
	color: var(--ccm-text-muted);
}

.ccm-topic-seats {
	font-size: 14px;
	color: var(--ccm-text-muted);
	text-align: right;
	flex: none;
	white-space: nowrap;
}

/* Seats as dots — discrete places rather than a progress bar, and
   filled means still available, matching the number beside them. */
.ccm-topic-dots {
	display: flex;
	gap: 3px;
	margin-top: 8px;
}

.ccm-topic-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	flex: none;
}

.ccm-topic-dot.is-on {
	background: var(--ccm-accent);
}

/* Nearly gone: the logo's pink, used nowhere else so it carries meaning. */
.ccm-topic-item.is-low {
	border-color: var(--ccm-magenta-soft);
}

.ccm-topic-item.is-low .ccm-topic-dot.is-on {
	background: var(--ccm-magenta);
}

.ccm-topic-item.is-low .ccm-topic-seats {
	color: var(--ccm-magenta);
	font-weight: 600;
}

/* Full: steps back so the eye skips it. */
.ccm-topic-item.is-full {
	background: transparent;
	opacity: 0.6;
}

.ccm-topic-item.is-full .ccm-topic-name,
.ccm-topic-item.is-full .ccm-topic-seats {
	color: var(--ccm-text-muted);
}

.ccm-topic-item.is-full .ccm-topic-dot {
	background: rgba(255, 255, 255, 0.08);
}

.ccm-notice {
	color: var(--ccm-danger);
	font-weight: 600;
	background: var(--ccm-danger-soft);
	border-radius: 12px;
	padding: 12px 16px;
}

.ccm-error {
	color: var(--ccm-danger);
	background: var(--ccm-danger-soft);
	border-radius: 12px;
	padding: 12px 16px;
	margin: 10px 0;
}

/* ---------- Buttons ---------- */

.ccm-btn {
	display: inline-block;
	padding: 12px 24px;
	border-radius: 999px;
	border: none;
	cursor: pointer;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, background 0.2s ease;
}

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

.ccm-btn-primary {
	background: var(--ccm-ignite);
	color: #fff;
	box-shadow: 0 10px 40px -10px rgba(194, 26, 128, 0.7);
}

.ccm-btn-primary:hover {
	filter: brightness(1.08);
	transform: translateY(-1px);
	box-shadow: 0 16px 50px -10px rgba(194, 26, 128, 0.9);
}

.ccm-btn-primary:disabled {
	opacity: 0.5;
	cursor: default;
	box-shadow: none;
	transform: none;
	filter: none;
}

.ccm-btn-large {
	padding: 15px 28px;
	font-size: 16px;
	display: block;
	width: 100%;
	text-align: center;
}

.ccm-btn-secondary {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.24);
	color: var(--ccm-text);
}

.ccm-btn-secondary:hover {
	background: rgba(255, 255, 255, 0.12);
}

.ccm-btn-link {
	background: none;
	border: none;
	color: var(--ccm-accent);
	cursor: pointer;
	padding: 8px 0;
	font-family: inherit;
	font-weight: 600;
	font-size: 14px;
}

.ccm-btn-link:hover {
	color: var(--ccm-accent-dark);
	text-decoration: underline;
}

/* ---------- Role selection: bullet-style option list ---------- */

.ccm-role-list {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ccm-role-option {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 14px;
	text-align: left;
	background: var(--ccm-field);
	color: var(--ccm-text);
	font-family: inherit;
	border: 1px solid var(--ccm-border);
	border-radius: 16px;
	padding: 16px 18px;
	cursor: pointer;
	transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.ccm-role-option:hover {
	border-color: rgba(240, 88, 131, 0.5);
	background: var(--ccm-surface-2);
	transform: translateX(4px);
}

.ccm-role-bullet {
	flex: none;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--ccm-ignite);
	box-shadow: 0 0 0 4px rgba(240, 88, 131, 0.18);
}

.ccm-role-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.ccm-role-name {
	font-weight: 700;
	font-size: 15.5px;
}

.ccm-role-badge {
	font-size: 12px;
	color: var(--ccm-text-muted);
	font-weight: 500;
}

.ccm-role-arrow {
	flex: none;
	font-size: 22px;
	color: var(--ccm-text-muted);
	line-height: 1;
}

/* ---------- Form fields ---------- */

.ccm-field-row {
	display: block;
	margin-bottom: 18px;
}

.ccm-field-row span {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
	font-size: 14px;
}

.ccm-field-row input[type="text"],
.ccm-field-row input[type="email"],
.ccm-field-row input[type="tel"],
.ccm-field-row input[type="number"],
.ccm-field-row input[type="date"],
.ccm-field-row input[type="password"],
.ccm-field-row input[type="file"],
.ccm-field-row select,
.ccm-field-row textarea {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid var(--ccm-border);
	border-radius: 14px;
	background: var(--ccm-surface-2);
	color: var(--ccm-text);
	box-sizing: border-box;
	font-size: 16px; /* 16px stops iPhones zooming in on the field */
	font-family: inherit;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ccm-field-row input::placeholder,
.ccm-field-row textarea::placeholder {
	color: var(--ccm-text-muted);
}

.ccm-field-row input:focus,
.ccm-field-row select:focus,
.ccm-field-row textarea:focus {
	outline: none;
	border-color: var(--ccm-accent);
	box-shadow: 0 0 0 3px var(--ccm-accent-soft);
}

.ccm-field-row input[type="checkbox"],
.ccm-field-row input[type="radio"],
.ccm-inline-option input {
	accent-color: #c21a80;
}

/* Keyboard-visible focus rings on every interactive element — kept
   distinct from :hover styling so Tab-navigating users always get a clear,
   consistent indicator of where they are, not just mouse users. */
.ccm-btn:focus-visible,
.ccm-role-option:focus-visible,
.ccm-btn-link:focus-visible {
	outline: 3px solid var(--ccm-accent);
	outline-offset: 3px;
}

.ccm-field-row textarea {
	min-height: 90px;
}

.ccm-inline-option {
	display: block;
	font-weight: normal;
	margin-bottom: 6px;
}

.ccm-dob-feedback {
	color: var(--ccm-danger);
	background: var(--ccm-danger-soft);
	border-radius: 10px;
	padding: 8px 12px;
	font-size: 13px;
	margin: 6px 0 0;
	font-weight: 600;
}

.ccm-form-heading {
	margin: 30px 0 14px;
	border-bottom: 1px solid var(--ccm-border);
	padding-bottom: 10px;
	font: 400 22px/1.1 Voltaire, "Arial Narrow", sans-serif;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ccm-text);
}

.ccm-form-paragraph {
	color: var(--ccm-text-muted);
	margin-bottom: 16px;
}

.ccm-honeypot {
	/* display:none removes the field from the render tree entirely, which
	   is what makes browser autofill and password-manager extensions
	   reliably skip it. The earlier off-screen-only approach
	   (position:absolute; left:-9999px) left it "visible enough" that
	   autofill sometimes filled it anyway, silently rejecting real
	   submissions as spam. Kept the rest as a harmless fallback. */
	display: none !important;
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ccm-group-toggle {
	margin-bottom: 8px;
}

.ccm-group-participants {
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid var(--ccm-border);
	border-radius: 16px;
	padding: 16px;
	margin-bottom: 18px;
}

.ccm-participant-row {
	display: grid;
	/* name | age | topic | remove */
	grid-template-columns: 1fr 84px 1fr auto;
	gap: 8px;
	align-items: center;
	margin-bottom: 10px;
}

/* Without a topic field in the form the row is just name + age + remove. */
.ccm-participant-row.is-no-topic {
	grid-template-columns: 1fr 84px auto;
}

/* Rows after the first get a hairline above them, so one person's three
   fields read as a set rather than blending into the next person's. */
.ccm-participant-row + .ccm-participant-row {
	border-top: 1px solid var(--ccm-border);
	padding-top: 10px;
}

.ccm-participant-row input,
.ccm-participant-row .ccm-participant-topic {
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid var(--ccm-border);
	border-radius: 10px;
	background: var(--ccm-surface-2);
	color: var(--ccm-text);
	font: inherit;
}

.ccm-participant-row input:focus,
.ccm-participant-row .ccm-participant-topic:focus {
	outline: none;
	border-color: var(--ccm-accent);
	box-shadow: 0 0 0 3px var(--ccm-accent-soft);
}

/* Age is 2-3 digits — the spinners just steal width on a narrow row. */
.ccm-participant-age {
	-moz-appearance: textfield;
	text-align: center;
}

.ccm-participant-age::-webkit-outer-spin-button,
.ccm-participant-age::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Phones: name gets its own line, age and topic share the next. */
@media (max-width: 560px) {
	.ccm-participant-row,
	.ccm-participant-row.is-no-topic {
		grid-template-columns: 84px 1fr auto;
	}

	.ccm-participant-row > input:first-child {
		grid-column: 1 / -1;
	}
}

/* ---------- Transport question ---------- */

.ccm-transport {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

/* Indented and ruled so it reads as a follow-up to the Yes above it
   rather than a separate question. */
.ccm-transport-pickup {
	margin: 6px 0 0 4px;
	padding-left: 14px;
	border-left: 2px solid var(--ccm-magenta-soft);
}

.ccm-transport-pickup label {
	display: block;
	font-size: 13.5px;
	color: var(--ccm-text-muted);
	margin-bottom: 4px;
}

.ccm-transport-pickup select {
	width: 100%;
	max-width: 320px;
	padding: 10px 12px;
	border: 1px solid var(--ccm-border);
	border-radius: 10px;
	background: var(--ccm-surface-2);
	color: var(--ccm-text);
	font: inherit;
}

/* ---------- Success / payment screens ---------- */

.ccm-success {
	text-align: center;
}

.ccm-amount-due {
	font-size: 17px;
	background: var(--ccm-accent-soft);
	color: var(--ccm-accent);
	padding: 14px 18px;
	border-radius: 14px;
	font-weight: 700;
}

.ccm-amount-note {
	color: var(--ccm-text-muted);
	font-weight: normal;
	font-size: 13px;
}

.ccm-payment-methods {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 14px;
	margin: 18px 0;
}

.ccm-payment-method-card {
	border: 1px solid var(--ccm-border);
	border-radius: 16px;
	padding: 18px;
	background: var(--ccm-field);
	text-align: center;
}

.ccm-payment-method-card h4 {
	margin-top: 0;
	color: var(--ccm-text);
}

/* White backing: payment apps scan dark-on-light codes most reliably. */
.ccm-qr-image {
	max-width: 176px;
	width: 100%;
	height: auto;
	padding: 8px;
	background: #fff;
	border-radius: 12px;
	box-sizing: border-box;
}

.ccm-bank-details {
	list-style: none;
	margin: 0;
	padding: 0;
	text-align: left;
	color: var(--ccm-text-soft);
}

.ccm-bank-details li {
	margin-bottom: 4px;
}

.ccm-pm-instructions-text {
	font-size: 13px;
	color: var(--ccm-text-muted);
	margin-top: 8px;
	margin-bottom: 0;
}

.ccm-loading {
	text-align: center;
	color: var(--ccm-text-muted);
	padding: 60px 0;
	font-size: 22px;
	letter-spacing: 2px;
}

/* ---------- Cash payment (registration desk) ---------- */

.ccm-cash-section {
	border: 1.5px dashed rgba(87, 195, 240, 0.5);
	border-radius: 16px;
	padding: 16px 18px;
	margin-bottom: 20px;
	background: var(--ccm-accent-soft);
}

.ccm-cash-section h4 {
	margin: 0 0 6px;
	font-size: 15px;
}

.ccm-cash-note {
	font-size: 12.5px;
	color: var(--ccm-text-muted);
	margin: 0 0 12px;
}

/* ---------- Ticket print/download popup ---------- */

.ccm-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(7, 8, 15, 0.78);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	padding: 20px;
	font-family: Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--ccm-text);
}

.ccm-modal {
	background: var(--ccm-surface);
	border: 1px solid var(--ccm-border);
	border-radius: 24px;
	padding: 30px;
	max-width: 480px;
	width: 100%;
	max-height: 88vh;
	overflow-y: auto;
	position: relative;
	box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.9);
}

.ccm-modal h2 {
	margin: 0 0 16px;
	font: 400 28px/1.05 Voltaire, "Arial Narrow", sans-serif;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ccm-success);
}

.ccm-modal-close {
	position: absolute;
	top: 14px;
	right: 16px;
	background: none;
	border: none;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	color: var(--ccm-text-muted);
}

.ccm-modal-close:hover {
	color: var(--ccm-text);
}

.ccm-ticket-preview {
	border: 1.5px dashed var(--ccm-border);
	border-radius: 14px;
	padding: 16px;
	margin-bottom: 12px;
	text-align: center;
}

.ccm-ticket-name {
	font-weight: 700;
	font-size: 15px;
	margin-bottom: 8px;
}

/* White backing, as for the payment codes: the door scanner reads it. */
.ccm-ticket-qr {
	width: 130px;
	height: 130px;
	padding: 6px;
	background: #fff;
	border-radius: 10px;
	box-sizing: border-box;
	margin-bottom: 8px;
}

.ccm-ticket-number {
	font-family: ui-monospace, Consolas, monospace;
	font-weight: 700;
	letter-spacing: 0.5px;
}

.ccm-modal-actions {
	display: flex;
	gap: 10px;
	margin-top: 16px;
}

.ccm-modal-note {
	font-size: 12px;
	color: var(--ccm-text-muted);
	margin-top: 14px;
	margin-bottom: 0;
}

/* Printing a ticket: black on white, whatever the screen looks like. */
@media print {
	body * {
		visibility: hidden;
	}
	.ccm-modal-overlay,
	.ccm-modal-overlay * {
		visibility: visible;
	}
	.ccm-modal-overlay {
		--ccm-text: #000;
		--ccm-text-muted: #444;
		--ccm-border: #999;
		--ccm-success: #000;
		position: absolute;
		inset: 0;
		background: none;
		backdrop-filter: none;
		color: #000;
	}
	.ccm-modal {
		background: #fff;
		border: 0;
		box-shadow: none;
	}
	.ccm-modal-close,
	.ccm-modal-actions,
	.ccm-modal-note {
		display: none !important;
	}
}

@media (max-width: 760px) {
	.ccm-details-card.ccm-split {
		grid-template-columns: 1fr;
	}
	.ccm-split-left {
		border-right: 0;
		border-bottom: 1px solid var(--ccm-border);
		padding: 24px 20px;
	}
	.ccm-split-right {
		padding: 24px 20px 22px;
	}
	.ccm-title {
		font-size: 32px;
		margin-bottom: 18px;
	}

	/* Facts go side by side to keep the sessions near the top of the
	   screen, wrapping pair-by-pair when the values are long. */
	.ccm-facts {
		display: flex;
		flex-wrap: wrap;
		gap: 14px 24px;
	}
	.ccm-fact {
		margin-bottom: 0;
	}
	.ccm-facts dt {
		font-size: 11px;
	}
	.ccm-facts dd {
		font-size: 15.5px;
	}
	.ccm-topic-name {
		font-size: 16px;
	}
}

@media (max-width: 600px) {
	.ccm-card {
		padding: 22px 18px 22px;
		border-radius: 20px;
	}
	.ccm-details-card.ccm-split {
		padding: 0;
		border-radius: 20px;
	}
	.ccm-hero-banner {
		height: 170px;
	}
	.ccm-title {
		font-size: 28px;
	}
}
