/*
 * Brochure download popup — shared by the two Download buttons (Blue e+
 * Final CTA, Edge DC Explore Further). One overlay + panel component,
 * holding a HubSpot "Download ... Brochure" form. Hidden by default so a
 * page with JS disabled never blocks the real download link (see
 * brochure-modal.js).
 *
 * The HubSpot field styling at the bottom of this file is self-contained.
 * product-hero.css styles .hs-form for the dark hero panel and is not
 * even enqueued on a Blue-E-only page, so the rules there are scoped
 * under .brochure-modal and written for this white panel instead.
 */

.brochure-modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background-color: rgba(0, 0, 0, .75);
}

.brochure-modal.is-open {
	display: flex;
}

.brochure-modal__panel {
	position: relative;
	width: 100%;
	max-width: 480px;
	max-height: calc(100svh - 48px);
	overflow-y: auto;
	padding: 40px;
	background-color: #fff;
	border-radius: 4px;
	box-sizing: border-box;
}

.brochure-modal__close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 32px;
	height: 32px;
	padding: 0;
	background: none;
	border: 0;
	color: #333;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	opacity: .7;
	transition: opacity .2s;
}

.brochure-modal__close:hover,
.brochure-modal__close:focus-visible {
	opacity: 1;
}

.brochure-modal__title {
	margin: 0 0 8px;
	color: #000;
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.3;
}

.brochure-modal__intro {
	margin: 0 0 24px;
	color: rgba(0, 0, 0, .6);
	font-family: Helvetica, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
	.brochure-modal__close {
		transition: none;
	}
}

@media (max-width: 480px) {
	.brochure-modal__panel {
		padding: 28px 20px;
	}

	.brochure-modal__title {
		font-size: 20px;
	}
}

/* ==========================================
   HubSpot form (white panel)
========================================== */

.brochure-modal__form {
	/* Reserve height so the panel does not jump as the embed renders. */
	min-height: 120px;
}

.brochure-modal .hs-form {
	max-width: 100%;
	margin: 0;
	font-family: Helvetica, Arial, sans-serif;
}

.brochure-modal fieldset.form-columns-1,
.brochure-modal fieldset.form-columns-2 {
	max-width: 100% !important;
}

/* HubSpot's two-column rows are too narrow for this panel; stack them. */
.brochure-modal fieldset.form-columns-2 {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.brochure-modal fieldset.form-columns-1 .field.hs-form-field,
.brochure-modal fieldset.form-columns-2 .field.hs-form-field {
	width: 100% !important;
	padding: 0;
}

/* Labels are hidden visually; placeholders carry the field names. */
.brochure-modal .hs-form label:not(.hs-error-msg):not(.hs-form-booleancheckbox-display) {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.brochure-modal .hs-form .hs-form-field {
	margin-bottom: 14px;
}

.brochure-modal .hs-form .input {
	margin: 0 !important;
}

.brochure-modal .hs-form input[type="text"],
.brochure-modal .hs-form input[type="email"],
.brochure-modal .hs-form input[type="tel"],
.brochure-modal .hs-form input[type="number"],
.brochure-modal .hs-form textarea,
.brochure-modal .hs-form select {
	width: 100% !important;
	height: 32px;
	padding: 2px 0 0;
	background: transparent;
	border: none;
	border-bottom: 1.27px solid rgba(0, 0, 0, .35);
	border-radius: 0;
	/*
	 * Declared, not inherited: form controls take the UA font, which
	 * left the textarea rendering in monospace.
	 */
	font-family: Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 24px;
	color: #000;
	transition: .3s;
	box-sizing: border-box;
	-webkit-appearance: none;
}

.brochure-modal .hs-form input::placeholder,
.brochure-modal .hs-form textarea::placeholder {
	color: #777;
	font-family: Helvetica, Arial, sans-serif;
	font-size: 16px;
	opacity: 1;
}

.brochure-modal .hs-form input:focus,
.brochure-modal .hs-form textarea:focus,
.brochure-modal .hs-form select:focus {
	outline: none;
	border-bottom: 2px solid #e50043;
}

.brochure-modal .hs-form textarea {
	height: 54px;
	resize: vertical;
}

.brochure-modal .hs-button,
.brochure-modal .hs-form input[type="submit"] {
	width: 100%;
	height: 40px;
	margin-top: 10px;
	padding: 0;
	background: #e50043 !important;
	color: #fff !important;
	border: none;
	border-radius: 4px;
	font-family: Helvetica, Arial, sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 22.857px;
	cursor: pointer;
	transition: background-color .3s;
}

.brochure-modal .hs-button:hover,
.brochure-modal .hs-form input[type="submit"]:hover {
	background: #c8003a !important;
}

.brochure-modal ul.no-list.hs-error-msgs.inputs-list {
	margin: 5px 0 0;
	padding: 0;
	list-style: none;
}

.brochure-modal .hs-error-msg,
.brochure-modal .hs-main-font-element {
	color: #dc3232;
	font-size: 13px;
}

/* HubSpot's post-submit thank-you text, before the redirect lands. */
.brochure-modal .submitted-message {
	color: #333;
	font-family: Helvetica, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
	.brochure-modal .hs-form input[type="text"],
	.brochure-modal .hs-form input[type="email"],
	.brochure-modal .hs-form input[type="tel"],
	.brochure-modal .hs-form input[type="number"],
	.brochure-modal .hs-form textarea,
	.brochure-modal .hs-form select,
	.brochure-modal .hs-button,
	.brochure-modal .hs-form input[type="submit"] {
		transition: none;
	}
}
