/* nov2 popup: "5-Pop up info" 2:99531 / "6-Pop up success" 2:100158 (630x660) and their 390 "- Mobile" twins
   (33:32855 / 33:33423, panel 390x657, full screen on phones). Numbers are the frames' own (popup-layout.mjs and
   the design context); the mobile field stack (53px fields, 16px apart) is the mobile frame's. */
#popup-nov2 {
	--popup-width: 630px;
	--popup-height: 660px;
	--popup-max-width: calc(100vw - 20px);
	--form-width: 584px;
	--form-field-padding: 12.5px 10px;
	--form-input-height: 53px;
	--form-input-radius: 6px;
	--form-label-font-size: 17px;
	--form-input-font-size: 17px;
	--form-label-offset-x: 17.75px;
	--form-input-text-indent: 17.75px;
}
/* the page overlay: Figma's rgba(0,0,0,.5) under the mobile panel (popup-form-m); the kit's .85 turned a light page grey */
#popup-nov2 .popup-overlay { background-color: rgba(0, 0, 0, 0.5); }
#popup-nov2 .popup-content {
	position: relative;
	width: var(--popup-width);
	max-width: var(--popup-max-width);
	height: var(--popup-height);
	background: #900200;
}
#popup-nov2 .popup-default,
#popup-nov2 .popup-thanks {
	align-items: flex-start;
	justify-content: flex-start;
	background: none;
}
#popup-nov2 .popup-form { position: static; padding-top: 98px; }
/* the panel art (popup-back: Figma's panel with its pattern and confetti), full bleed behind each step */
#popup-nov2 .nov2-popup-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	background-image: url(../images/hero/popup-back.jpg);
	background-image: -webkit-image-set(url("../images/hero/popup-back.webp") 1x, url("../images/hero/popup-back@2x.webp") 2x);
	background-image: image-set(url("../images/hero/popup-back.webp") 1x, url("../images/hero/popup-back@2x.webp") 2x);
}
#popup-nov2 .form-text,
#popup-nov2 form.uni-style,
#popup-nov2 .nov2-thanks { position: relative; z-index: 1; }
#popup-nov2 .form-text {
	width: max-content;
	max-width: 100%;
	margin: 0 auto 21.2px;
	font-family: 'Bouncy-Black', sans-serif;
	font-weight: 900;
	font-size: 47.27px;
	line-height: 1.17;
	letter-spacing: 2.7px;
	white-space: nowrap;
	color: #ffca00;
	-webkit-text-stroke: 2.7px #000000;
	paint-order: stroke fill;
	text-shadow: 2.7px 2.7px 0 #ffffff;
}
#popup-nov2 form.uni-style input,
#popup-nov2 form.uni-style select { border: 1.315px solid #c3c3c5; color: #373737; }
#popup-nov2 form.uni-style label { color: #373737; font-family: 'Avenir-Roman', 'Avenir', sans-serif; }
#popup-nov2 form.uni-style .form-action { margin-top: 29.5px; display: flex; justify-content: center; }
#popup-nov2 .promoLead {
	display: flex;
	margin: 0 auto;
	width: 136px;
	height: 45px;
	min-height: 0;
	padding: 0;
	border-radius: 54px;
	background: #000000;
	color: #ffffff;
	font-size: 20px;
	line-height: 1;
	letter-spacing: 0;
}
/* the close X: Figma's bars, white, 3px x 27px, at 568,26 (35px box) */
#popup-nov2 .popup-close {
	top: 26.3px;
	right: 26.6px;
	width: 35.4px;
	height: 35.4px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
}
#popup-nov2 .popup-close::before,
#popup-nov2 .popup-close::after {
	width: 3px;
	height: 27px;
	border-radius: 2px;
	background-color: #ffffff;
}
/* success */
#popup-nov2 .nov2-thanks { width: 100%; padding-top: 180px; }
#popup-nov2 .thanks-title {
	margin: 0;
	font-family: 'Bouncy-Black', sans-serif;
	font-weight: 900;
	font-size: 42.27px;
	line-height: 1.25;
	letter-spacing: 2.7px;
	white-space: nowrap;
	color: #ffca00;
	/* revision (ticket reply, Wenqian): Figma's 2.7px OUTSIDE stroke is 2w under paint-order (half sits under the fill);
	   at 2.7px only 1.35px showed and the outline was lost on the red panel */
	-webkit-text-stroke: 5.4px #000000;
	paint-order: stroke fill;
	text-shadow: 2.7px 2.7px 0 #ffffff;
}
#popup-nov2 .thanks {
	margin: 33.5px 0 0 -12px;
	width: 508px;
	font-family: 'Bouncy-Black', sans-serif;
	font-weight: 900;
	font-size: 25px;
	line-height: 38px;
	letter-spacing: 3px;
	color: #ffffff;
}
#popup-nov2 .nov2-thanks .button {
	margin-top: 24px;
	width: 235px;
	height: 45px;
	padding: 0;
	border-radius: 54px;
	background: #000000;
	color: #ffffff;
	font-size: 20px;
	line-height: 1;
}
#popup-nov2 .nov2-thanks .button span { color: #ffffff; }

@media (max-width: 767px) {
	#popup-nov2 .popup-close { top: 11.3px; right: 12.6px; }
}
@media (max-width: 567px) {
	/* full screen on phones (rto-form-popups makes .popup-content 100% x 100% here) */
	#popup-nov2 {
		--popup-width: 100%;
		--popup-height: 100%;
		--popup-max-width: 100%;
		--form-width: 350px;
		--form-width-mobile: 350px;
		--form-field-padding-mobile: 8px 0;
		--form-input-height: 53px;
		--form-input-radius-mobile: 6px;
		--form-label-font-size-mobile: 16px;
		--form-input-font-size-mobile: 16px;
		--form-label-offset-x: 17.75px;
		--form-input-text-indent: 17.75px;
	}
	/* the panel art stays popup-back (pattern + confetti), cropped by cover: the popup-back-m export (33:32857) has the
	   mobile frame's whole form baked in (title, fields, Submit), and it showed through the success step */
	#popup-nov2 .nov2-popup-bg { background-position: center top; }
	#popup-nov2.popup { align-items: flex-start; }
	#popup-nov2 .popup-content { height: 657px; max-height: 100%; }
	#popup-nov2 .popup-form { padding-top: 63.5px; }
	#popup-nov2 .form-text {
		margin-bottom: 14.8px;
		font-size: 34.32px;
		letter-spacing: 1.96px;
		-webkit-text-stroke: 1.96px #000000;
		text-shadow: 1.96px 1.96px 0 #ffffff;
	}
	#popup-nov2 form.uni-style .form-action { margin-top: 18px; }
	#popup-nov2 .nov2-thanks { padding-top: 196px; }
	#popup-nov2 .thanks-title {
		font-size: 29.15px;
		line-height: 1.31;
		letter-spacing: 1.86px;
		/* fix (verify round 2): this was 3.72px, double Figma's mobile form-text (33:33736: OUTSIDE 0.931 -> 2w = 1.862,
		   hard rule 4) — the desktop rule's 2.7 -> 5.4 doubling was mistakenly reapplied here on top of the mobile weight */
		-webkit-text-stroke: 1.86px #000000;
		text-shadow: 1.86px 1.86px 0 #ffffff;
	}
	#popup-nov2 .thanks {
		margin: 21px 0 0;
		width: 100%;
		font-size: 22px;
		line-height: 32px;
		letter-spacing: 3px;
	}
	#popup-nov2 .nov2-thanks .button { margin-top: 20px; }
}
