/* ==========================================================================
   Newsletter [baby_name_newsletter]
   ========================================================================== */

.bnn-wrap {
	--bnn-pink: #f6339a;
	--bnn-pink-hover: #ff4da6;
	--bnn-border: rgba(148, 163, 184, 0.28);
	--bnn-placeholder: #94a3b8;
	--bnn-font: "Poppins", ui-sans-serif, system-ui, sans-serif;

	box-sizing: border-box;
	width: 100%;
	max-width: 420px;
	font-family: var(--bnn-font);
}

.bnn-wrap *,
.bnn-wrap *::before,
.bnn-wrap *::after {
	box-sizing: border-box;
}

.bnn-form {
	display: flex;
	align-items: stretch;
	gap: 10px;
	width: 100%;
}

.bnn-input {
	flex: 1 1 auto;
	min-width: 0;
	height: 48px !important;
	padding: 0 18px !important;
	border-radius: 14px !important;
	border: 1px solid var(--bnn-border) !important;
	background: transparent;
	color: #e2e8f0 !important;
	font-family: inherit;
	font-size: 0.95rem !important;
	font-weight: 400;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.bnn-input::placeholder {
	color: var(--bnn-placeholder);
	opacity: 1;
}

.bnn-input:focus {
	border-color: rgba(246, 51, 154, 0.55);
	box-shadow: 0 0 0 3px rgba(246, 51, 154, 0.15);
}

.bnn-input.is-invalid {
	border-color: #f87171;
}

.bnn-btn {
	flex: 0 0 auto;
	height: 48px;
	min-width: 88px;
	padding: 0 22px;
	border: none;
	border-radius: 14px;
	background: var(--bnn-pink);
	color: #fff;
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transition:
		background-color 0.2s ease,
		transform 0.2s ease,
		box-shadow 0.2s ease;
	box-shadow: 0 8px 18px rgba(246, 51, 154, 0.28);
}

.bnn-btn:hover,
.bnn-btn:focus-visible {
	background: var(--bnn-pink-hover);
	transform: translateY(-1px);
	box-shadow: 0 10px 22px rgba(246, 51, 154, 0.4);
	outline: none;
}

.bnn-btn:active {
	transform: translateY(0);
}

.bnn-btn:disabled {
	opacity: 0.7;
	cursor: wait;
	transform: none;
}

.bnn-msg {
	margin: 10px 0 0;
	font-size: 0.85rem;
	font-weight: 600;
	line-height: 1.4;
}

.bnn-msg.is-success {
	color: #4ade80;
}

.bnn-msg.is-error {
	color: #fb7185;
}

.bnn-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
	pointer-events: none !important;
	overflow: hidden !important;
}

.bnn-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 480px) {
	.bnn-form {
		flex-direction: column;
		gap: 10px;
	}

	.bnn-input,
	.bnn-btn {
		width: 100%;
		height: 46px;
	}
}