/* ============================================================
   Hunter Imports — VIP Waitlist Popup
   Mobile-first, WCAG 2.1 AA, prefers-reduced-motion aware.
   ============================================================ */

/* ── Visibilidade ── */

.hi-popup--hidden {
	display: none !important;
}

/* ── Backdrop ── */

.hi-waitlist-popup__backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.72);
	z-index: 9998;
	animation: hi-popup-fadein 200ms ease forwards;
}

/* ── Card wrapper (centrado sobre backdrop) ── */

.hi-waitlist-popup {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
}

/* ── Card ── */

.hi-waitlist-popup__card {
	position: relative;
	background: #0d111e;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 20px;
	padding: 32px 24px 28px;
	width: 100%;
	max-width: min(90vw, 420px);
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
	text-align: center;
	font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
	color: #fff;
	box-sizing: border-box;
	animation: hi-popup-slideup 240ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ── Botão fechar ── */

.hi-waitlist-popup__close {
	position: absolute;
	top: 14px;
	right: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	color: rgba(255, 255, 255, 0.55);
	cursor: pointer;
	transition: color 150ms, border-color 150ms, background 150ms;
}

.hi-waitlist-popup__close:hover,
.hi-waitlist-popup__close:focus-visible {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.3);
	background: rgba(255, 255, 255, 0.06);
	outline: none;
}

/* ── Ícone VIP ── */

.hi-waitlist-popup__icon {
	margin: 0 auto 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
}

/* ── Textos ── */

.hi-waitlist-popup__title {
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 10px;
	color: #fff;
}

.hi-waitlist-popup__desc {
	font-size: 0.9rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.65);
	margin: 0 0 24px;
}

/* ── Formulário ── */

.hi-waitlist-popup__form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.hi-waitlist-popup__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	text-align: left;
}

.hi-waitlist-popup__label {
	font-size: 0.8rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.7);
	letter-spacing: 0.02em;
}

.hi-waitlist-popup__input {
	width: 100%;
	min-height: 48px;
	padding: 12px 16px;
	font-size: 16px; /* evita zoom no iOS */
	font-family: inherit;
	background: rgba(255, 255, 255, 0.08);
	border: 1.5px solid rgba(255, 255, 255, 0.15);
	border-radius: 12px;
	color: #fff;
	outline: none;
	box-sizing: border-box;
	transition: border-color 150ms, background 150ms;
}

.hi-waitlist-popup__input::placeholder {
	color: rgba(255, 255, 255, 0.35);
}

.hi-waitlist-popup__input:focus {
	border-color: rgba(251, 191, 36, 0.6);
	background: rgba(255, 255, 255, 0.1);
}

.hi-waitlist-popup__input:focus-visible {
	outline: 2px solid rgba(251, 191, 36, 0.5);
	outline-offset: 2px;
}

/* ── Mensagem de erro ── */

.hi-waitlist-popup__error {
	font-size: 0.78rem;
	color: #f87171;
	min-height: 18px;
	display: block;
}

/* ── Botão submit ── */

.hi-waitlist-popup__submit {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 24px;
	font-size: 0.95rem;
	font-weight: 700;
	font-family: inherit;
	background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
	color: #0d111e;
	border: none;
	border-radius: 12px;
	cursor: pointer;
	transition: opacity 150ms, transform 100ms;
	width: 100%;
}

.hi-waitlist-popup__submit:hover {
	opacity: 0.92;
}

.hi-waitlist-popup__submit:active {
	transform: scale(0.98);
}

.hi-waitlist-popup__submit:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	transform: none;
}

.hi-waitlist-popup__submit:focus-visible {
	outline: 2px solid #fbbf24;
	outline-offset: 3px;
}

/* ── Aviso de privacidade ── */

.hi-waitlist-popup__privacy {
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.4);
	margin: 4px 0 0;
	line-height: 1.5;
}

.hi-waitlist-popup__privacy a {
	color: rgba(255, 255, 255, 0.55);
	text-decoration: underline;
}

.hi-waitlist-popup__privacy a:hover {
	color: rgba(255, 255, 255, 0.85);
}

/* ── Estado de sucesso ── */

.hi-waitlist-popup__success {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 8px 0 4px;
}

.hi-waitlist-popup__success-title {
	font-size: 1.1rem;
	font-weight: 700;
	color: #fff;
	margin: 0;
}

.hi-waitlist-popup__success-desc {
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.65);
	margin: 0;
	line-height: 1.6;
}

/* ── Tablet / Desktop ── */

@media (min-width: 480px) {
	.hi-waitlist-popup__card {
		padding: 40px 36px 32px;
		border-radius: 24px;
	}

	.hi-waitlist-popup__title {
		font-size: 1.4rem;
	}

	.hi-waitlist-popup__desc {
		font-size: 0.95rem;
	}
}

/* ── Animações ── */

@keyframes hi-popup-fadein {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@keyframes hi-popup-slideup {
	from {
		opacity: 0;
		transform: translateY(24px) scale(0.97);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@media (prefers-reduced-motion: reduce) {
	.hi-waitlist-popup__backdrop,
	.hi-waitlist-popup__card {
		animation: none;
	}

	.hi-waitlist-popup__submit,
	.hi-waitlist-popup__close,
	.hi-waitlist-popup__input {
		transition: none;
	}
}
