/**
 * "Be First! New Interview Alerts" signup.
 *
 * Designed against the dark purple footer (#392642) using the site's existing
 * purple accent, so it reads as part of the chrome rather than a bolted-on form.
 */

.meetem-ml {
	--meetem-ml-accent: #a855f7;
	--meetem-ml-accent-strong: #8224e3;
	--meetem-ml-ink: #ffffff;
	--meetem-ml-muted: rgba(255, 255, 255, 0.62);

	max-width: 420px;
}

.meetem-ml__title {
	margin: 0 0 8px;
	color: var(--meetem-ml-ink);
	font-size: 20px;
	line-height: 1.25;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.meetem-ml__text {
	margin: 0 0 18px;
	color: var(--meetem-ml-muted);
	font-size: 14px;
	line-height: 1.55;
}

/* The field and its button share one pill so they read as a single control. */
.meetem-ml__field {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 6px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.07);
	transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.meetem-ml__field:focus-within {
	border-color: var(--meetem-ml-accent);
	background: rgba(255, 255, 255, 0.1);
	box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.18);
}

.meetem-ml__input,
.meetem-ml .meetem-ml__input {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	padding: 10px 8px 10px 16px;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: var(--meetem-ml-ink);
	font-size: 15px;
	line-height: 1.4;
	outline: none;
}

.meetem-ml__input::placeholder {
	color: rgba(255, 255, 255, 0.45);
}

/* The theme styles bare inputs globally; keep ours flat on every state. */
.meetem-ml__input:focus,
.meetem-ml__input:hover {
	border: 0;
	background: transparent;
	box-shadow: none;
	outline: none;
}

/* The Elementor global kit styles every bare <button> on the site:
 *
 *   .elementor-kit-1864 button { border-radius: 8px; padding: 18px 32px; font-size: 16px; }
 *
 * That selector is (0,1,1) and beats a lone class like .meetem-ml__button (0,1,0)
 * regardless of load order, so it was squaring off our pill, fattening it to 52px
 * tall and bumping the label to 16px. !important on exactly the three properties
 * the kit sets — anything else here is uncontested and left alone. */
.meetem-ml__button {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 42px;
	padding: 0 22px !important;
	border: 0;
	border-radius: 999px !important;
	background: var(--meetem-ml-accent-strong);
	color: #fff;
	font-size: 14px !important;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
}

.meetem-ml__button:hover:not(:disabled) {
	background: var(--meetem-ml-accent);
	transform: translateY(-1px);
}

.meetem-ml__button:active:not(:disabled) {
	transform: translateY(0);
}

.meetem-ml__button:disabled {
	cursor: default;
	opacity: 0.75;
}

.meetem-ml__button:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

/* Spinner only exists while loading. */
.meetem-ml__spinner {
	display: none;
	width: 15px;
	height: 15px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: meetem-ml-spin 0.6s linear infinite;
}

.meetem-ml.is-loading .meetem-ml__spinner {
	display: block;
}

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

@media (prefers-reduced-motion: reduce) {
	.meetem-ml__spinner {
		animation-duration: 2s;
	}

	.meetem-ml__button:hover:not(:disabled) {
		transform: none;
	}
}

/* Honeypot — visually gone, still reachable to the bots that fill it in. */
.meetem-ml__hp {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
}

.meetem-ml__message {
	margin: 12px 0 0;
	min-height: 1em;
	font-size: 13px;
	line-height: 1.5;
	color: var(--meetem-ml-muted);
}

.meetem-ml.is-error .meetem-ml__message {
	color: #ffb4b4;
}

.meetem-ml.is-error .meetem-ml__field {
	border-color: #ff8080;
}

.meetem-ml.is-success .meetem-ml__message {
	color: #9ff0c0;
	font-weight: 600;
}

.meetem-ml.is-success .meetem-ml__field {
	border-color: #5fd39a;
}

@media (max-width: 600px) {
	.meetem-ml {
		max-width: none;
	}

	/* Stack on phones — a side-by-side button squeezes the input too far. */
	.meetem-ml__field {
		flex-direction: column;
		gap: 8px;
		padding: 10px;
		border-radius: 20px;
	}

	.meetem-ml__input {
		width: 100%;
		padding: 8px 12px;
		text-align: center;
	}

	.meetem-ml__button {
		width: 100%;
	}
}
