/* Marketing signup overlay + bottom banner.
   Accent colours are CSS variables so the look can be retuned in one place. */
:root {
	--h3xms-accent: #F06502;       /* primary / buttons */
	--h3xms-accent-dark: #c4500a;
	--h3xms-ink: #1d2327;
	--h3xms-amazon: #ff9900;       /* voucher highlight */
}

.h3xms-no-scroll {
	overflow: hidden;
}

/* ---- Overlay / modal ---- */
.h3xms-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba( 15, 23, 32, 0.62 );
	backdrop-filter: blur( 2px );
	animation: h3xms-fade 0.2s ease;
}

@keyframes h3xms-fade {
	from { opacity: 0; }
	to   { opacity: 1; }
}

.h3xms-modal {
	position: relative;
	width: 100%;
	max-width: 920px;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 20px 60px rgba( 0, 0, 0, 0.35 );
	padding: 60px 60px 52px;
	text-align: center;
	animation: h3xms-pop 0.22s cubic-bezier( 0.2, 0.8, 0.3, 1.1 );
	border-top: 10px solid var(--h3xms-accent);
}

/* Decorative "50% Discount" graphic above the heading. */
.h3xms-modal__image {
	display: block;
	width: 100%;
	max-width: 460px;
	height: auto;
	margin: 0 auto 14px;
}

@keyframes h3xms-pop {
	from { transform: translateY( 14px ) scale( 0.97 ); opacity: 0; }
	to   { transform: none; opacity: 1; }
}

.h3xms-modal__close {
	position: absolute;
	top: 10px;
	right: 12px;
	border: 0;
	background: transparent;
	font-size: 26px;
	line-height: 1;
	color: #9aa1a8;
	cursor: pointer;
	padding: 4px 8px;
	border-radius: 6px;
}
.h3xms-modal__close:hover {
	color: var(--h3xms-ink);
	background: #f0f0f1;
}

.h3xms-modal__heading {
	margin: 4px 0 16px;
	font-size: 40px;
	line-height: 1.15;
	color: var(--h3xms-ink);
	font-weight: 800;
}

.h3xms-modal__body {
	margin: 0 0 30px;
	font-size: 19px;
	line-height: 1.55;
	color: #3c434a;
}

/* Form */
.h3xms-form {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	max-width: 560px;
	margin: 0 auto;
}
.h3xms-form__input {
	flex: 1 1 240px;
	min-width: 0;
	padding: 15px 18px;
	font-size: 17px;
	border: 1px solid #c3c4c7;
	border-radius: 10px;
	outline: none;
}
.h3xms-form__input:focus {
	border-color: var(--h3xms-accent);
	box-shadow: 0 0 0 3px rgba( 240, 101, 2, 0.18 );
}
.h3xms-form__submit {
	flex: 0 0 auto;
	padding: 15px 24px;
	font-size: 17px;
	font-weight: 700;
	color: #fff;
	background: var(--h3xms-accent);
	border: 0;
	border-radius: 10px;
	cursor: pointer;
	transition: background 0.15s ease;
}
.h3xms-form__submit:hover { background: var(--h3xms-accent-dark); }
.h3xms-form__submit.is-loading { opacity: 0.7; cursor: progress; }
.h3xms-form__submit:disabled { cursor: not-allowed; }

.h3xms-form__msg {
	margin-top: 12px;
	font-size: 14px;
	min-height: 18px;
}
.h3xms-form__msg.is-error   { color: #b32d2e; }
.h3xms-form__msg.is-success { color: var(--h3xms-accent-dark); font-weight: 600; }

/* ---- Bottom banner ---- */
.h3xms-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99990;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 12px 48px 12px 16px;
	background: linear-gradient( 90deg, var(--h3xms-accent), var(--h3xms-accent-dark) );
	color: #fff;
	box-shadow: 0 -2px 12px rgba( 0, 0, 0, 0.18 );
	animation: h3xms-slide-up 0.25s ease;
	cursor: pointer;
	transition: filter 0.15s ease;
}
.h3xms-banner:hover { filter: brightness( 1.07 ); }
.h3xms-banner:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }

@keyframes h3xms-slide-up {
	from { transform: translateY( 100% ); }
	to   { transform: none; }
}

.h3xms-banner__text {
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.2px;
	text-align: center;
}

.h3xms-banner__close {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY( -50% );
	border: 0;
	background: rgba( 255, 255, 255, 0.15 );
	color: #fff;
	font-size: 20px;
	line-height: 1;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	cursor: pointer;
}
.h3xms-banner__close:hover { background: rgba( 255, 255, 255, 0.3 ); }

@media ( max-width: 600px ) {
	.h3xms-modal { padding: 36px 22px 28px; border-top-width: 6px; }
	.h3xms-modal__image { max-width: 80%; }
	.h3xms-modal__heading { font-size: 26px; }
	.h3xms-modal__body { font-size: 16px; }
	.h3xms-form__input,
	.h3xms-form__submit { font-size: 16px; }
	.h3xms-banner__text { font-size: 13px; }
}
