/* Brochure lead form popup — minimal, self-contained styling.
   Adjust colors/spacing to match the theme; classnames intentionally
   mirror the existing #pre-register-form-popup pattern already in use. */

.brochure-lead-form-popup {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	z-index: 9999;
	display: none;
}

/* Always flex/centered regardless of what display value JS/jQuery
   toggles on the outer .brochure-lead-form-popup (block vs none) —
   this element's display is never touched by JS, so the centering
   can't be knocked out by an inline style on the parent. */
.brochure-lead-form-popup .brochure-lead-form-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.brochure-lead-form-popup .brochure-lead-form-card {
	position: relative;
	background: #fff;
	max-width: 420px;
	width: 90%;
	padding: 36px 30px 30px;
	border-radius: 10px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
	float: none;
}

.brochure-lead-form-card h3 {
	margin-top: 0;
	margin-bottom: 20px;
}

/* Trigger button: plain text + download icon, no button chrome —
   matches the original bare <a download> link it replaced. */
button.brochure-lead-trigger {
	background-color: transparent;
	border: none;
	height: auto;
	padding: 20px 0px;
}

button.brochure-lead-trigger h3 {
	margin: 0px;
}

.brochure-lead-close {
	position: absolute;
	top: -14px;
	right: -14px;
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border: none;
	border-radius: 50%;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	color: #333;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
	transition: background-color 0.2s ease, color 0.2s ease;
	z-index: 2;
}

.brochure-lead-close:hover {
	background: #F58421;
	color: #fff;
}

.brochure-lead-form .form-row {
	margin-bottom: 18px;
}

.brochure-lead-form label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	font-size: 13px;
	color: #333;
}

.brochure-lead-form input[type="text"],
.brochure-lead-form input[type="email"],
.brochure-lead-form input[type="tel"] {
	width: 100%;
	height: 46px;
	padding: 0 14px;
	line-height: normal;
	border: 1px solid #dcdcdc;
	border-radius: 8px;
	font-size: 14px;
	font-family: inherit;
	background: #fafafa;
	box-sizing: border-box;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.brochure-lead-form input[type="text"]:focus,
.brochure-lead-form input[type="email"]:focus,
.brochure-lead-form input[type="tel"]:focus {
	outline: none;
	border-color: #F58421;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(245, 132, 33, 0.15);
}

.brochure-lead-honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.brochure-lead-response {
	min-height: 20px;
	font-size: 13px;
}

.brochure-lead-response.is-error {
	color: #c0392b;
}

.brochure-lead-response.is-success {
	color: #27ae60;
}

.brochure-lead-submit {
	display: block;
	width: 100%;
	background-color: #F58421;
	color: #fff;
	border: none;
	padding: 13px 30px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 15px;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.brochure-lead-submit:hover:not(:disabled) {
	background-color: #d9721d;
}

.brochure-lead-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

body.brochure-lead-modal-open {
	overflow: hidden;
}
