/* MWAP Walk — Form gate selector styling
   "Are you a HOST or a WALKER?" choice selector with two cards. */

.mwap-form-gate {
	max-width: 800px;
	margin: 40px auto 0;
	padding: 0 20px;
	font-family: 'GT Walsheim Pro', -apple-system, sans-serif;
	color: var(--mwap-text);
}

.mwap-form-gate__title {
	margin: 0 0 12px;
	font-size: 28px;
	font-weight: 800;
	letter-spacing: -0.5px;
	color: var(--mwap-text);
	text-align: center;
}

.mwap-form-gate__subtitle {
	margin: 0 0 40px;
	font-size: 15px;
	color: #6b7680;
	text-align: center;
	line-height: 1.6;
}

.mwap-form-gate__choices {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
	margin-bottom: 32px;
}

/* Compact horizontal card: icon left, label + description stacked right. */
.mwap-form-gate__choice {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 18px;
	border: 2px solid #e1e6eb;
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
	font-family: inherit;
	text-align: left;
	transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
	position: relative;
}

/* Scoped under .mwap-form-gate so this (0,2,1) beats the theme's [type=button]:hover
   (0,2,0) pink — see STYLES.md "theme-pink hover trap". */
.mwap-form-gate .mwap-form-gate__choice:hover {
	border-color: var(--mwap-accent, #199bd7);
	background: #f0f6fc;
	transform: translateY(-2px);
	box-shadow: 0 6px 24px rgba(25, 155, 215, 0.15);
}

.mwap-form-gate .mwap-form-gate__choice:focus-visible {
	outline: none;
	border-color: var(--mwap-accent, #199bd7);
	box-shadow: 0 0 0 3px rgba(25, 155, 215, 0.25);
}

.mwap-form-gate__choice-icon {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--mwap-accent, #199bd7);
}
/* Brand icons have different aspect ratios (Register square, Join-Walk tall) — fix the
   height and let width follow so neither is squished. */
.mwap-form-gate__choice-icon svg {
	height: 34px;
	width: auto;
	max-width: 100%;
	display: block;
}

.mwap-form-gate__choice-text {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.mwap-form-gate__choice-label {
	font-size: 16px;
	font-weight: 700;
	color: var(--mwap-text);
	display: block;
}

.mwap-form-gate__choice-desc {
	font-size: 13px;
	color: #6b7680;
	line-height: 1.4;
	margin: 0;
	display: block;
}

/* Selected state (when a choice is made) */
.mwap-form-gate__choice.is-selected {
	border-color: var(--mwap-accent, #199bd7);
	background: var(--mwap-accent, #199bd7);
	color: #fff;
}
/* Keep the selected look on hover too (don't fall back to the light-blue hover tint). */
.mwap-form-gate .mwap-form-gate__choice.is-selected:hover {
	background: var(--mwap-accent, #199bd7);
	border-color: var(--mwap-accent, #199bd7);
}

.mwap-form-gate__choice.is-selected .mwap-form-gate__choice-icon,
.mwap-form-gate__choice.is-selected .mwap-form-gate__choice-label,
.mwap-form-gate__choice.is-selected .mwap-form-gate__choice-desc {
	color: #fff;
}

.mwap-form-gate__choice.is-selected::after {
	content: '✓';
	position: absolute;
	top: 10px;
	right: 10px;
	width: 22px;
	height: 22px;
	background: #fff;
	color: var(--mwap-accent, #199bd7);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 13px;
}

/* Once a choice is made, collapse the intro heading + subtitle (the selected choice
   tile and the form below make the context clear without them). */
.mwap-form-gate.has-choice .mwap-form-gate__title,
.mwap-form-gate.has-choice .mwap-form-gate__subtitle {
	display: none;
}
/* Tighten the choices row once selected — descriptions become redundant. */
.mwap-form-gate.has-choice .mwap-form-gate__choices {
	margin-bottom: 24px;
}
.mwap-form-gate.has-choice .mwap-form-gate__choice-desc {
	display: none;
}

/* Form container (hidden by default, shown when choice made) */
.mwap-form-gate__form-wrapper {
	display: none;
	animation: fadeIn .3s ease;
}

.mwap-form-gate__form-wrapper.is-active {
	display: block;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Mobile: keep 2 columns but tighten everything */
@media (max-width: 600px) {
	.mwap-form-gate {
		padding: 0 12px;
		margin-top: 24px;
	}

	.mwap-form-gate__title {
		font-size: 22px;
		margin-bottom: 6px;
	}

	.mwap-form-gate__subtitle {
		font-size: 13px;
		margin-bottom: 20px;
	}

	/* Stay 2-column, just tighter gap */
	.mwap-form-gate__choices {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
		margin-bottom: 20px;
	}

	.mwap-form-gate__choice {
		padding: 10px 10px;
		gap: 8px;
		border-radius: 10px;
	}

	.mwap-form-gate__choice-icon {
		width: 28px;
		height: 28px;
	}

	.mwap-form-gate__choice-icon svg {
		height: 24px;
	}

	.mwap-form-gate__choice-label {
		font-size: 13px;
	}

	/* Hide description on mobile — label alone is clear enough */
	.mwap-form-gate__choice-desc {
		display: none;
	}
}
