/*
|--------------------------------------------------------------------------
| NM Laylo Signup
|--------------------------------------------------------------------------
*/

.nm-laylo {
	box-sizing: border-box;

	width: 100%;
	max-width: 470px;

	color: #fff;
}


.nm-laylo *,
.nm-laylo *::before,
.nm-laylo *::after {
	box-sizing: border-box;
}


/*
|--------------------------------------------------------------------------
| Header
|--------------------------------------------------------------------------
*/

.nm-laylo__header {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 24px;
	align-items: end;

	margin: 0 0 18px;
}


.nm-laylo__title {
	max-width: 310px;

	margin: 0;

	font-size: 16px;
	font-weight: 500;
	line-height: 1.18;
	letter-spacing: -0.035em;
}


/*
|--------------------------------------------------------------------------
| SMS / Email switch
|--------------------------------------------------------------------------
*/

.nm-laylo__modes {
	display: flex;
	gap: 14px;
	align-items: center;
	justify-content: flex-end;
}


.nm-laylo__mode {
	position: relative;

	margin: 0;
	padding: 0 0 4px;

	color: rgba(255, 255, 255, 0.38);
	background: transparent;

	border: 0;
	outline: 0;

	font-family: inherit;
	font-size: 9px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0.16em;
	text-transform: uppercase;

	cursor: pointer;

	transition:
		color 150ms ease,
		opacity 150ms ease;
}


.nm-laylo__mode::after {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;

	height: 1px;

	background: currentColor;

	content: "";

	opacity: 0;

	transform: scaleX(0);
	transform-origin: left;

	transition:
		opacity 150ms ease,
		transform 150ms ease;
}


.nm-laylo__mode:hover,
.nm-laylo__mode:focus-visible,
.nm-laylo__mode.is-active {
	color: #fff;
}


.nm-laylo__mode.is-active::after {
	opacity: 1;

	transform: scaleX(1);
}


/*
|--------------------------------------------------------------------------
| Form
|--------------------------------------------------------------------------
*/

.nm-laylo__form {
	margin: 0;
	padding: 0;
}


.nm-laylo__field {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;

	width: 100%;
	height: 54px;

	border: 1px solid rgba(255, 255, 255, 0.48);
	border-radius: 999px;

	overflow: hidden;

	transition: border-color 150ms ease;
}


.nm-laylo__field:focus-within {
	border-color: rgba(255, 255, 255, 0.9);
}


.nm-laylo__input {
	width: 100%;
	min-width: 0;
	height: 100%;

	margin: 0;
	padding: 0 20px;

	color: #fff;
	background: transparent;

	border: 0;
	border-radius: 0;
	outline: 0;
	box-shadow: none;

	font-family: inherit;
	font-size: 13px;
	font-weight: 400;
	line-height: 1;

	-webkit-appearance: none;
	appearance: none;
}


.nm-laylo__input::placeholder {
	color: rgba(255, 255, 255, 0.38);

	opacity: 1;
}


.nm-laylo__submit {
	display: inline-flex;
	gap: 10px;
	align-items: center;
	justify-content: center;

	min-width: 108px;
	height: 44px;

	margin: 4px;
	padding: 0 18px;

	color: #000;
	background: #fff;

	border: 0;
	border-radius: 999px;
	outline: 0;

	font-family: inherit;
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.12em;
	text-transform: uppercase;

	cursor: pointer;

	transition:
		background 150ms ease,
		color 150ms ease,
		opacity 150ms ease;
}


.nm-laylo__submit:hover,
.nm-laylo__submit:focus-visible {
	color: #000;
	background: #ff5e5a;
}


.nm-laylo__submit:disabled {
	cursor: wait;

	opacity: 0.45;
}


/*
|--------------------------------------------------------------------------
| Status
|--------------------------------------------------------------------------
*/

.nm-laylo__status {
	min-height: 0;

	margin: 9px 0 0;

	color: rgba(255, 255, 255, 0.72);

	font-size: 10px;
	line-height: 1.3;
}


.nm-laylo__status:empty {
	display: none;
}


.nm-laylo.is-success .nm-laylo__status {
	color: #ff5e5a;
}


/*
|--------------------------------------------------------------------------
| Legal
|--------------------------------------------------------------------------
*/

.nm-laylo__legal {
	max-width: 450px;

	margin: 12px 0 0;

	color: rgba(255, 255, 255, 0.38);

	font-size: 8px;
	font-weight: 400;
	line-height: 1.38;
}


.nm-laylo__legal a {
	color: rgba(255, 255, 255, 0.58);

	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}


.nm-laylo__legal a:hover,
.nm-laylo__legal a:focus-visible {
	color: #fff;
}


/*
|--------------------------------------------------------------------------
| Honeypot
|--------------------------------------------------------------------------
*/

.nm-laylo__honeypot {
	position: absolute !important;

	width: 1px !important;
	height: 1px !important;

	margin: -1px !important;
	padding: 0 !important;

	overflow: hidden !important;

	border: 0 !important;

	clip: rect(0, 0, 0, 0) !important;
	clip-path: inset(50%) !important;

	white-space: nowrap !important;
}


/*
|--------------------------------------------------------------------------
| Loading / Success
|--------------------------------------------------------------------------
*/

.nm-laylo.is-loading .nm-laylo__field {
	opacity: 0.65;
}


.nm-laylo.is-success .nm-laylo__field {
	border-color: rgba(255, 94, 90, 0.75);
}


/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 781px) {

	.nm-laylo {
		max-width: 100%;
	}


	.nm-laylo__header {
		grid-template-columns: 1fr;
		gap: 12px;

		margin-bottom: 16px;
	}


	.nm-laylo__title {
		max-width: 290px;

		font-size: 18px;
	}


	.nm-laylo__modes {
		justify-content: flex-start;
	}


	.nm-laylo__field {
		height: 56px;
	}


	.nm-laylo__input {
		padding-right: 12px;
		padding-left: 18px;

		font-size: 13px;
	}


	.nm-laylo__submit {
		min-width: 96px;
		height: 46px;

		padding-right: 14px;
		padding-left: 14px;
	}


	.nm-laylo__legal {
		font-size: 8px;
	}

}
