/* Availability alert banner. Sizes follow the 1440px Figma frame. */

.section-alert {
	position: relative;
	overflow: hidden;
	padding: 56px 0 56px;
	background: var(--color-primary);
	color: #fff;
	text-align: center;
}

.section-alert__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.section-alert__inner {
	position: relative;
	z-index: 1;
}

.section-alert__title {
	margin: 0;
	font-size: 32px;
	font-weight: 500;
	line-height: 1.2;
}

.section-alert__text {
	margin: 8px 0 0;
	font-size: 17px;
	line-height: 1.4;
}

.alert-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 288px;
	margin: 26px auto 0;
}

.section-alert .alert-form__input {
	width: 100%;
	height: 40px;
	padding: 0 8px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 0;
	background: #fff;
	font: inherit;
	font-size: 15px;
	color: var(--color-text);
	box-shadow: none;
	box-sizing: border-box;
	outline: none;
}

.section-alert .alert-form__input::placeholder {
	color: #6b6b6b;
}

.section-alert .alert-form__input:focus-visible {
	border-color: var(--color-dark);
}

.alert-form__submit {
	height: 40px;
	margin-top: 12px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: var(--color-dark);
	font: inherit;
	font-size: 16px;
	font-weight: 500;
	color: #fff;
	cursor: pointer;
	transition: opacity var(--transition);
}

.alert-form__submit:hover {
	opacity: 0.85;
}

.alert-form__submit:disabled {
	opacity: 0.6;
	cursor: wait;
}

.alert-form__message {
	margin: 0;
	font-size: 14px;
}

.alert-form__message:empty {
	display: none;
}

.alert-form__message.is-error {
	color: #fff;
	font-weight: 600;
}

.alert-form__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (max-width: 768px) {
	.section-alert {
		padding: 48px 0;
	}

	.section-alert__title {
		font-size: 26px;
	}

	.section-alert__text {
		font-size: 15px;
	}
}
