/* =========================================================
   League Registration Wizard
   Dark event-page design (aligned with unified intake form)
   Centra No2 Black headings, Inter body
   ========================================================= */

.pgcs-league-reg-wizard {
	--pgcs-bg: #000;
	--pgcs-yellow: #ffc700;
	--pgcs-yellow-deep: #ffb800;
	--pgcs-text: #fff;
	--pgcs-muted: #888;
	--pgcs-line: rgba(255, 255, 255, 0.4);
	--pgcs-line-strong: rgba(255, 255, 255, 0.7);
	--pgcs-gradient-primary: linear-gradient(90deg, #4ed9e6 0%, #c5ff3b 100%);
	--pgcs-gradient-secondary: linear-gradient(90deg, #ffc700 0%, #ffb800 100%);
	--pgcs-card: #111;
	--pgcs-card-border: #1a1a1a;

	display: none;
	position: fixed;
	inset: 0;
	z-index: 99999;
	align-items: center;
	justify-content: center;
	font-family: 'Inter', sans-serif;
	color: var(--pgcs-text);
}

.pgcs-league-reg-wizard *,
.pgcs-league-reg-wizard *::before,
.pgcs-league-reg-wizard *::after {
	box-sizing: border-box;
}

.pgcs-league-reg-wizard.pgcs-wizard--open {
	display: flex;
}

.pgcs-league-reg-wizard__backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.75);
	cursor: pointer;
}

.pgcs-league-reg-wizard__container {
	position: relative;
	background: var(--pgcs-bg);
	border: 1px solid rgba(255, 199, 0, 0.25);
	border-radius: 16px;
	max-width: 1200px;
	width: 95vw;
	max-height: 90vh;
	overflow-y: auto;
	padding: 0;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
	display: flex;
	flex-direction: column;
	color: var(--pgcs-text);
	font-family: 'Inter', sans-serif;
}

/* Header / Progress */
.pgcs-league-reg-wizard__header {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px 24px 12px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	background: #1a1a1a;
	border-radius: 16px 16px 0 0;
}

.pgcs-league-reg-wizard__stepper {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	width: 100%;
}

.pgcs-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	position: relative;
	font-size: 10px;
	font-weight: 600;
	color: #bbb;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.pgcs-step__label {
	white-space: nowrap;
}

.pgcs-step--active {
	color: #fff;
}

.pgcs-step--done {
	color: #aaa;
}

.pgcs-step__num {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #3a3a3a;
	color: #bbb;
	font-size: 12px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s;
	letter-spacing: 0;
	text-transform: none;
}

.pgcs-step--active .pgcs-step__num {
	background: var(--pgcs-yellow);
	color: #000;
}

.pgcs-step--done .pgcs-step__num {
	background: #2f2f2f;
	color: transparent;
	position: relative;
	border: 1px solid rgba(255, 199, 0, 0.35);
}

.pgcs-step--done .pgcs-step__num::before {
	content: '✓';
	color: var(--pgcs-yellow);
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pgcs-step__connector {
	flex: 1;
	height: 1px;
	background: #3a3a3a;
	margin: 0 8px;
	margin-bottom: 14px;
	min-width: 24px;
	transition: background 0.3s;
}

.pgcs-step--done + .pgcs-step__connector {
	background: var(--pgcs-yellow);
}

/* Slot label row: slot text + actions aligned end */
.pgcs-league-reg-wizard__slot-label {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	padding: 8px 24px;
	background: rgba(255, 199, 0, 0.08);
	border-bottom: 1px solid rgba(255, 199, 0, 0.25);
	font-size: 12px;
	font-weight: 600;
	color: var(--pgcs-yellow);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.pgcs-league-reg-wizard__slot-text {
	margin-right: auto;
	min-width: 0;
}

.pgcs-league-reg-wizard__slot-text:empty {
	display: none;
}

.pgcs-league-reg-wizard__header-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	flex-shrink: 0;
	margin-left: auto;
}

.pgcs-league-reg-wizard__header-actions .pgcs-wizard-btn {
	padding: 7px 14px;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.2;
	white-space: nowrap;
}

.pgcs-league-reg-wizard__header-actions .pgcs-wizard-btn--ghost {
	background: transparent;
	color: var(--pgcs-yellow);
	border: 1px solid var(--pgcs-yellow);
}

.pgcs-league-reg-wizard__header-actions .pgcs-wizard-btn--ghost:hover {
	background: var(--pgcs-gradient-secondary);
	color: #000;
	border-color: transparent;
	opacity: 1;
}

.pgcs-league-reg-wizard__header-actions .pgcs-wizard-my-regs {
	background: var(--pgcs-gradient-secondary);
	color: #000;
	border: none;
}

.pgcs-league-reg-wizard__header-actions .pgcs-wizard-my-regs:hover {
	opacity: 0.92;
	color: #000;
}

/* Body */
.pgcs-league-reg-wizard__body {
	padding: 20px 24px 24px;
	flex: 1;
	background: transparent;
}

.pgcs-wizard-step__title {
	font-family: 'Centra No2 Black', sans-serif;
	font-size: clamp(22px, 3vw, 32px);
	font-weight: 900;
	margin: 0 0 18px;
	color: #fff;
	line-height: 1;
	letter-spacing: -0.02em;
	text-transform: uppercase;
}

/* Slots table (step 1) */
.pgcs-slots-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	color: var(--pgcs-text);
}

.pgcs-slots-table th,
.pgcs-slots-table td {
	padding: 10px 10px;
	text-align: left;
	border-bottom: 1px solid rgba(255, 199, 0, 0.25);
}

.pgcs-slots-table th {
	font-family: 'Inter', sans-serif;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--pgcs-yellow);
}

.pgcs-slot-row td {
	vertical-align: middle;
	color: rgba(255, 255, 255, 0.85);
}

.pgcs-slot-row--unavailable {
	opacity: 0.45;
}

.pgcs-slot-row input[type="radio"] {
	accent-color: var(--pgcs-yellow);
	width: 16px;
	height: 16px;
}

.pgcs-wizard-slots-loading {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--pgcs-muted);
	padding: 20px 0;
	font-size: 14px;
}

/* Form elements — yellow labels + underline inputs */
.pgcs-form-row {
	margin-bottom: 16px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.pgcs-form-label {
	display: block;
	font-family: 'Inter', sans-serif;
	font-size: 11px;
	font-weight: 600;
	margin: 0;
	color: var(--pgcs-yellow);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	line-height: 1.3;
}

.pgcs-form-label .required {
	color: var(--pgcs-yellow);
}

.pgcs-form-hint {
	margin: 4px 0 0;
	font-size: 12px;
	color: var(--pgcs-muted);
	line-height: 1.5;
}

.pgcs-form-input,
.pgcs-league-reg-wizard input[type="text"],
.pgcs-league-reg-wizard input[type="email"],
.pgcs-league-reg-wizard input[type="tel"],
.pgcs-league-reg-wizard input[type="number"],
.pgcs-league-reg-wizard select,
.pgcs-league-reg-wizard textarea {
	width: 100%;
	border: none;
	border-bottom: 1px solid var(--pgcs-line);
	border-radius: 0;
	text-align: left;
	font-family: 'Inter', sans-serif;
	font-size: 15px;
	font-weight: 400;
	color: var(--pgcs-text);
	background: transparent;
	transition: border-color 0.2s;
	outline: none;
	box-sizing: border-box;
	min-height: 36px;
	padding: 6px 0;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}

.pgcs-league-reg-wizard select {
	padding-right: 28px;
	cursor: pointer;
	background-image: none;
}

.pgcs-league-reg-wizard select option {
	background: #111;
	color: #fff;
}

.pgcs-form-input:focus,
.pgcs-league-reg-wizard input:focus,
.pgcs-league-reg-wizard select:focus,
.pgcs-league-reg-wizard textarea:focus {
	border-color: var(--pgcs-yellow);
	box-shadow: none;
	color: #fff;
	background: transparent;
}

.pgcs-form-input:hover,
.pgcs-league-reg-wizard input:hover,
.pgcs-league-reg-wizard select:hover,
.pgcs-league-reg-wizard textarea:hover {
	background: transparent;
	border-bottom-color: var(--pgcs-line-strong);
}

.pgcs-form-input::placeholder,
.pgcs-league-reg-wizard input::placeholder,
.pgcs-league-reg-wizard textarea::placeholder {
	color: rgba(255, 255, 255, 0.35);
	font-weight: 400;
}

/* Autofill on dark */
.pgcs-league-reg-wizard input:-webkit-autofill,
.pgcs-league-reg-wizard input:-webkit-autofill:hover,
.pgcs-league-reg-wizard input:-webkit-autofill:focus,
.pgcs-league-reg-wizard input:-webkit-autofill:active,
.pgcs-league-reg-wizard textarea:-webkit-autofill,
.pgcs-league-reg-wizard select:-webkit-autofill {
	-webkit-text-fill-color: #fff !important;
	caret-color: #fff;
	color: #fff !important;
	border: none !important;
	border-bottom: 1px solid var(--pgcs-line) !important;
	border-radius: 0 !important;
	box-shadow: 0 0 0 1000px #000 inset !important;
	background-color: transparent !important;
	background-image: none !important;
	transition: background-color 99999s ease-in-out 0s;
}

.pgcs-league-reg-wizard input:-webkit-autofill:focus,
.pgcs-league-reg-wizard textarea:-webkit-autofill:focus,
.pgcs-league-reg-wizard select:-webkit-autofill:focus {
	border-bottom-color: var(--pgcs-yellow) !important;
	box-shadow: 0 0 0 1000px #000 inset !important;
}

.pgcs-radio-group {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 20px;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.85);
}

.pgcs-radio-group label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	text-transform: none;
	letter-spacing: 0;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.85);
}

.pgcs-radio-group input[type="radio"] {
	accent-color: var(--pgcs-yellow);
	width: 16px;
	height: 16px;
}

.pgcs-wizard-team-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px 32px;
	margin-bottom: 16px;
}

.pgcs-wizard-team-fields .pgcs-form-row:first-child,
.pgcs-wizard-team-fields .pgcs-form-row:last-child {
	grid-column: 1 / -1;
}

/* Player cards */
.pgcs-player-card {
	border: 1px solid var(--pgcs-card-border);
	border-radius: 12px;
	margin-bottom: 12px;
	overflow: hidden;
	background: var(--pgcs-card);
	transition: border-color 0.2s;
}

.pgcs-player-card:hover {
	border-color: #333;
}

.pgcs-player-card__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px;
	background: transparent;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	cursor: pointer;
}

.pgcs-player-card__title {
	font-family: 'Centra No2 Black', sans-serif;
	font-weight: 900;
	font-size: 16px;
	color: #fff;
	display: flex;
	align-items: center;
	gap: 8px;
	text-transform: uppercase;
	letter-spacing: -0.01em;
}

.pgcs-player-card__status {
	font-size: 11px;
	padding: 3px 10px;
	border-radius: 0;
	background: transparent;
	color: var(--pgcs-yellow);
	border: 1px solid var(--pgcs-yellow);
	font-weight: 600;
}

.pgcs-player-card__body {
	padding: 12px 14px;
}

.pgcs-player-fields {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 14px 20px;
}

.pgcs-player-actions {
	margin-top: 10px;
	display: flex;
	justify-content: flex-end;
}

/* Add player + consent */
.pgcs-add-player-wrap {
	margin: 4px 0 12px;
}

.pgcs-consent-row {
	margin-top: 4px;
}

.pgcs-consent-label {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 13px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.7);
	cursor: pointer;
	font-family: 'Inter', sans-serif;
}

.pgcs-consent-label input[type="checkbox"] {
	accent-color: var(--pgcs-yellow);
	width: 16px;
	height: 16px;
	margin-top: 2px;
	flex-shrink: 0;
}

.pgcs-consent-label a {
	color: var(--pgcs-yellow);
	text-decoration: underline;
}

.pgcs-consent-label a:hover {
	opacity: 0.8;
}

/* Payment step (step 3) */
.pgcs-payment-table,
.pgcs-invoice-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	margin-bottom: 14px;
	color: var(--pgcs-text);
}

.pgcs-payment-table th,
.pgcs-payment-table td,
.pgcs-invoice-table td {
	padding: 10px 12px;
	text-align: left;
	border-bottom: 1px solid  rgba(255, 199, 0, 0.25);
	vertical-align: top;
}

.pgcs-payment-table th {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--pgcs-yellow);
}

.pgcs-payment-table td {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.9);
}

.pgcs-pay-options {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.pgcs-pay-option {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0;
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.85);
	cursor: pointer;
	text-transform: none;
	letter-spacing: 0;
}

.pgcs-pay-option input[type="radio"] {
	accent-color: var(--pgcs-yellow);
	width: 15px;
	height: 15px;
	margin: 1px 0 0;
	flex-shrink: 0;
}

.pgcs-pay-option span {
	min-width: 0;
}

.pgcs-invoice-total td {
	font-weight: 700;
	font-size: 15px;
	border-top: 1px solid var(--pgcs-yellow);
	border-bottom: none;
	color: #fff;
	padding-top: 14px;
}

.pgcs-invoice-total-amount {
	color: var(--pgcs-yellow);
	font-size: 16px;
}

.pgcs-your-invoice {
	background: var(--pgcs-card);
	border: 1px solid var(--pgcs-card-border);
	border-radius: 12px;
	padding: 14px 16px;
}

.pgcs-your-invoice h3 {
	margin: 0 0 10px;
	font-family: 'Inter', sans-serif;
	font-size: 12px;
	font-weight: 700;
	color: var(--pgcs-yellow);
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

/* Actions bar */
.pgcs-wizard-actions {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 10px;
	margin-top: 20px;
	padding-top: 0;
	border-top: none;
	flex-wrap: wrap;
}

/* Buttons */
.pgcs-wizard-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 20px;
	border-radius: 999px;
	font-family: 'Inter', sans-serif;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	border: none;
	transition: opacity 0.2s, transform 0.2s;
	text-decoration: none;
	white-space: nowrap;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	line-height: 1.2;
}

.pgcs-wizard-btn--primary {
	background: var(--pgcs-gradient-primary);
	color: #000;
}

.pgcs-wizard-btn--primary:hover {
	opacity: 0.92;
	transform: translateX(2px);
	color: #000;
}

.pgcs-wizard-btn--primary:disabled {
	opacity: 0.35;
	cursor: not-allowed;
	transform: none;
}

.pgcs-wizard-btn--ghost {
	background: transparent;
	color: var(--pgcs-yellow);
	border: none;
	font-size: 12px;
	padding: 10px 16px;
}

.pgcs-wizard-btn--ghost:hover {
	opacity: 0.8;
	color: var(--pgcs-yellow);
}

.pgcs-wizard-btn--danger {
	background: transparent;
	color: #fca5a5;
	border: 1px solid rgba(220, 38, 38, 0.45);
	margin-right: auto;
	border-radius: 999px;
}

.pgcs-wizard-btn--danger:hover {
	background: rgba(220, 38, 38, 0.15);
	color: #fca5a5;
	opacity: 0.92;
}

.pgcs-wizard-btn--cancel {
	background: transparent;
	color: #fca5a5;
	border: 1px solid rgba(220, 38, 38, 0.45);
	font-size: 12px;
	padding: 8px 16px;
	border-radius: 999px;
}

.pgcs-wizard-btn--cancel:hover {
	background: rgba(220, 38, 38, 0.15);
}

/* Confirmation */
.pgcs-wizard-confirmed {
	text-align: center;
	padding: 40px 20px;
}

.pgcs-confirmed-icon {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: rgba(255, 199, 0, 0.12);
	color: var(--pgcs-yellow);
	font-size: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 20px;
}

.pgcs-wizard-confirmed h2 {
	font-family: 'Centra No2 Black', sans-serif;
	font-size: 28px;
	font-weight: 900;
	margin: 0 0 12px;
	color: #fff;
	text-transform: uppercase;
}

.pgcs-confirmed-message {
	color: rgba(255, 255, 255, 0.8);
	font-size: 16px;
	margin: 0 auto 24px;
	line-height: 1.7;
	max-width: 560px;
}

/* My Registrations panel */
.pgcs-my-regs-panel {
	position: absolute;
	inset: 0;
	background: var(--pgcs-bg);
	border-radius: 16px;
	padding: 32px;
	overflow-y: auto;
	z-index: 10;
	color: var(--pgcs-text);
}

.pgcs-my-regs-panel__header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 28px;
	gap: 16px;
}

.pgcs-my-regs-panel__header h2 {
	font-family: 'Centra No2 Black', sans-serif;
	font-size: clamp(24px, 3.5vw, 36px);
	font-weight: 900;
	color: #fff;
	margin: 0;
	text-transform: uppercase;
	letter-spacing: -0.02em;
	line-height: 1;
}

.pgcs-wizard-close-panel {
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: #888;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	flex-shrink: 0;
}

.pgcs-wizard-close-panel:hover {
	background: #1a1a1a;
	color: #fff;
}

.pgcs-my-regs-lookup {
	margin-top: 16px;
}

.pgcs-my-regs-list {
	margin-top: 24px;
	color: rgba(255, 255, 255, 0.8);
	font-size: 14px;
}

/* Spinner */
.pgcs-spinner {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 3px solid #333;
	border-top-color: var(--pgcs-yellow);
	border-radius: 50%;
	animation: pgcs-spin 0.7s linear infinite;
	vertical-align: middle;
}

@keyframes pgcs-spin {
	to { transform: rotate(360deg); }
}

/* Error banner */
.pgcs-payment-error,
.pgcs-wizard-slots-error {
	background: rgba(220, 38, 38, 0.15);
	border: 1px solid rgba(220, 38, 38, 0.35);
	border-radius: 0;
	padding: 12px 14px;
	color: #fca5a5;
	font-size: 13px;
	margin-bottom: 16px;
	font-family: 'Inter', sans-serif;
}

/* League button trigger */
.pgcs-league-register-btn {
	cursor: pointer;
}

/* Admin dashboard card colours */
.pgcs-dashboard-card--league-reg-types { --pgcs-card-accent: #c8a84b; }
.pgcs-dashboard-card--league-registrations { --pgcs-card-accent: #3b82f6; }
.pgcs-dashboard-card--stripe { --pgcs-card-accent: #6366f1; }

/* Mobile */
@media (max-width: 600px) {
	.pgcs-league-reg-wizard__header {
		padding: 12px 16px 10px;
	}

	.pgcs-league-reg-wizard__stepper {
		justify-content: flex-start;
		overflow-x: auto;
	}

	.pgcs-step__connector {
		min-width: 16px;
	}

	.pgcs-league-reg-wizard__body {
		padding: 16px;
	}

	.pgcs-league-reg-wizard__slot-label {
		flex-wrap: wrap;
		padding: 8px 16px;
	}

	.pgcs-wizard-step__title {
		font-size: 22px;
		margin-bottom: 14px;
	}

	.pgcs-wizard-team-fields {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.pgcs-wizard-team-fields .pgcs-form-row:first-child,
	.pgcs-wizard-team-fields .pgcs-form-row:last-child {
		grid-column: 1;
	}

	.pgcs-player-fields {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.pgcs-wizard-actions {
		flex-direction: column-reverse;
		align-items: stretch;
	}

	.pgcs-wizard-btn {
		width: 100%;
		justify-content: center;
	}

	.pgcs-wizard-btn--danger {
		margin-right: 0;
	}

	.pgcs-league-reg-wizard__header-actions {
		width: 100%;
	}

	.pgcs-league-reg-wizard__header-actions .pgcs-wizard-btn {
		flex: 1;
	}

	.pgcs-my-regs-panel {
		padding: 24px 20px;
	}
}
