/**
 * Fig1 Lead Popup styles.
 *
 * Everything is scoped under .fig1-lp so nothing can leak into Divi's styles,
 * and no !important is used against global Divi selectors. Colours are CSS
 * variables so a site can retheme without editing this file.
 */

.fig1-lp {
	--fig1-lp-accent: #c8102e;
	--fig1-lp-accent-hover: #a50d26;
	--fig1-lp-text: #1d1d1f;
	--fig1-lp-muted: #5b5b60;
	--fig1-lp-border: #d6d6da;
	--fig1-lp-bad: #b3261e;
	--fig1-lp-radius: 6px;

	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.fig1-lp[hidden] {
	display: none;
}

.fig1-lp__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}

.fig1-lp__dialog {
	position: relative;
	width: 100%;
	max-width: 520px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	background: #fff;
	border-radius: var(--fig1-lp-radius);
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
	padding: 32px 32px 28px;
	color: var(--fig1-lp-text);
	font-size: 15px;
	line-height: 1.5;
}

.fig1-lp__close {
	position: absolute;
	top: 8px;
	right: 12px;
	border: 0;
	background: none;
	font-size: 30px;
	line-height: 1;
	color: var(--fig1-lp-muted);
	cursor: pointer;
	padding: 4px 8px;
	border-radius: 4px;
}

.fig1-lp__close:hover,
.fig1-lp__close:focus-visible {
	color: var(--fig1-lp-text);
	background: #f2f2f4;
}

.fig1-lp__title {
	margin: 0 0 8px;
	font-size: 24px;
	line-height: 1.25;
	font-weight: 700;
	color: var(--fig1-lp-text);
}

.fig1-lp__sub {
	margin: 0 0 20px;
	color: var(--fig1-lp-muted);
}

.fig1-lp__label {
	display: block;
	margin: 0 0 5px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.01em;
}

.fig1-lp__input {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 11px 13px;
	margin: 0 0 14px;
	border: 1px solid var(--fig1-lp-border);
	border-radius: var(--fig1-lp-radius);
	font-size: 15px;
	font-family: inherit;
	color: var(--fig1-lp-text);
	background: #fff;
}

.fig1-lp__input:focus {
	outline: none;
	border-color: var(--fig1-lp-accent);
	box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.15);
}

.fig1-lp__input--bad {
	border-color: var(--fig1-lp-bad);
}

.fig1-lp__row {
	display: flex;
	gap: 14px;
}

.fig1-lp__col {
	flex: 1 1 0;
	min-width: 0;
}

.fig1-lp__btn {
	display: block;
	width: 100%;
	margin-top: 6px;
	padding: 13px 18px;
	border: 0;
	border-radius: var(--fig1-lp-radius);
	background: var(--fig1-lp-accent);
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
}

.fig1-lp__btn:hover:not(:disabled) {
	background: var(--fig1-lp-accent-hover);
}

.fig1-lp__btn:disabled {
	opacity: 0.65;
	cursor: default;
}

.fig1-lp__err {
	margin: -9px 0 12px;
	font-size: 13px;
	color: var(--fig1-lp-bad);
}

.fig1-lp__err--form {
	margin-top: 12px;
}

/* Honeypot: off-screen rather than display:none, which some bots skip. */
.fig1-lp__hp {
	position: absolute;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Step 1 is a marketing panel, so it is centred and the offer leads. */
.fig1-lp__teaser {
	text-align: center;
}

.fig1-lp__eyebrow {
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--fig1-lp-accent);
}

.fig1-lp__teaser .fig1-lp__title {
	font-size: 27px;
}

.fig1-lp__teaser .fig1-lp__sub {
	margin-bottom: 24px;
}

/* Deliberately low-contrast: a visible, easy dismiss is both better UX and
   what Google's interstitial guidance asks for. */
.fig1-lp__dismiss {
	display: block;
	width: 100%;
	margin: 10px 0 0;
	padding: 6px;
	border: 0;
	background: none;
	color: var(--fig1-lp-muted);
	font-size: 13px;
	font-family: inherit;
	text-decoration: underline;
	cursor: pointer;
}

.fig1-lp__dismiss:hover {
	color: var(--fig1-lp-text);
}

.fig1-lp__fineprint {
	margin: 14px 0 0;
	font-size: 12px;
	line-height: 1.45;
	color: var(--fig1-lp-muted);
}

.fig1-lp__fineprint a {
	color: var(--fig1-lp-muted);
	text-decoration: underline;
}

.fig1-lp__fineprint a:hover {
	color: var(--fig1-lp-text);
}

.fig1-lp__done {
	text-align: center;
}

body.fig1-lp-open {
	overflow: hidden;
}

@media (max-width: 600px) {
	.fig1-lp {
		padding: 12px;
	}

	.fig1-lp__dialog {
		padding: 26px 20px 22px;
	}

	.fig1-lp__title {
		font-size: 20px;
	}

	.fig1-lp__row {
		display: block;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.fig1-lp__dialog {
		animation: fig1-lp-in 160ms ease-out;
	}

	@keyframes fig1-lp-in {
		from { opacity: 0; transform: translateY(8px); }
		to   { opacity: 1; transform: none; }
	}
}
