/* Brochure Lead Popup — scoped styles that resist theme overrides. */

.blp-wrap { --blp-bg: #0779a8; --blp-color: #fff; --blp-radius: 12px; margin: 0; }
.blp-wrap.blp-align-left { text-align: left; }
.blp-wrap.blp-align-center { text-align: center; }
.blp-wrap.blp-align-right { text-align: right; }

.blp-wrap .blp-button,
.blp-wrap .blp-button:visited {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 20px;
	margin: 0;
	border: 1px solid rgba(255, 255, 255, .25);
	border-radius: var(--blp-radius);
	background: var(--blp-bg);
	color: var(--blp-color);
	font-family: inherit;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
	transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
	-webkit-appearance: none;
	appearance: none;
}
.blp-wrap .blp-button:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0, 0, 0, .2); color: var(--blp-color); background: var(--blp-bg); }
.blp-wrap .blp-button:focus-visible { outline: 3px solid rgba(7, 121, 168, .45); outline-offset: 3px; }
.blp-wrap .blp-icon { flex: 0 0 auto; width: 22px; height: 22px; }

.blp-notice { padding: 10px 14px; border-left: 4px solid #d63638; background: #fcf0f1; font-size: 14px; }

/* ---------- Lightbox ---------- */
.blp-modal { position: fixed; inset: 0; z-index: 999999; display: flex; align-items: center; justify-content: center; padding: 16px; box-sizing: border-box; }
.blp-modal[hidden] { display: none; }
.blp-modal *, .blp-modal *::before, .blp-modal *::after { box-sizing: border-box; }
.blp-modal__overlay { position: absolute; inset: 0; background: rgba(10, 20, 30, .65); backdrop-filter: blur(3px); animation: blpFade .2s ease; }
.blp-modal__dialog {
	position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow-y: auto;
	background: #fff; color: #1d2327; border-radius: 16px; padding: 32px 28px 26px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .3); animation: blpPop .22s ease;
	font-family: inherit; text-align: left;
}
/* Buttons inside the popup: scoped + !important so theme "button" styles can't override them. */
.blp-modal .blp-modal__close,
.blp-modal .blp-modal__close:focus,
.blp-modal .blp-modal__close:active {
	position: absolute !important; top: 10px !important; right: 10px !important; left: auto !important; bottom: auto !important;
	display: flex !important; align-items: center !important; justify-content: center !important;
	width: 36px !important; height: 36px !important; min-width: 0 !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important;
	border: 0 !important; outline: none; border-radius: 50% !important; background: transparent !important; background-image: none !important;
	box-shadow: none !important; color: #50575e !important; font-family: Arial, sans-serif !important; font-size: 26px !important; font-weight: 400 !important;
	line-height: 1 !important; letter-spacing: 0 !important; text-transform: none !important; text-decoration: none !important; cursor: pointer;
	transform: none !important; transition: background-color .15s ease, color .15s ease;
}
.blp-modal .blp-modal__close:hover { background: #f0f0f1 !important; color: #1d2327 !important; }
.blp-modal .blp-modal__close:focus-visible { outline: 2px solid rgba(7, 121, 168, .5) !important; outline-offset: 2px; }
.blp-modal__head { display: flex; gap: 14px; align-items: center; margin: 0 0 6px; }
.blp-modal__badge { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: var(--blp-bg, #0779a8); color: var(--blp-color, #fff); }
.blp-modal__title { margin: 0; padding: 0; font-size: 22px; font-weight: 700; line-height: 1.25; color: #1d2327; }
.blp-modal__sub { margin: 8px 0 20px; font-size: 14px; line-height: 1.5; color: #50575e; }

.blp-form { margin: 0; }
.blp-field { margin: 0 0 14px; }
.blp-field label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 600; color: #1d2327; }
.blp-field label .blp-req { color: #d63638; }
.blp-field input[type="text"],
.blp-field input[type="email"],
.blp-field input[type="tel"] {
	display: block; width: 100%; height: 46px; margin: 0; padding: 0 14px;
	border: 1px solid #c3c4c7; border-radius: 10px; background: #fff; color: #1d2327;
	font-size: 16px; font-family: inherit; line-height: normal; box-shadow: none;
}
.blp-field input:focus { outline: none; border-color: var(--blp-bg, #0779a8); box-shadow: 0 0 0 3px rgba(7, 121, 168, .18); }
.blp-field.has-error input { border-color: #d63638; }
.blp-field__err { display: block; min-height: 0; margin: 5px 0 0; font-size: 12px; color: #d63638; }
.blp-field__err:empty { display: none; }
.blp-consent label { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; font-size: 13px; }
.blp-consent input { margin: 3px 0 0; }

.blp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.blp-modal .blp-submit,
.blp-modal .blp-submit:focus,
.blp-modal .blp-submit:active {
	display: flex !important; align-items: center !important; justify-content: center !important; gap: 8px;
	width: 100% !important; height: 50px !important; min-height: 0 !important; margin: 6px 0 0 !important; padding: 0 16px !important;
	border: 0 !important; outline: none; border-radius: 10px !important;
	background: var(--blp-bg, #0779a8) !important; background-image: none !important; color: var(--blp-color, #fff) !important;
	box-shadow: none !important; font-size: 16px !important; font-weight: 700 !important; font-family: inherit !important;
	line-height: 1.2 !important; letter-spacing: 0 !important; text-transform: none !important; text-decoration: none !important;
	cursor: pointer; transform: none !important; transition: filter .15s ease;
}
.blp-modal .blp-submit span { color: inherit !important; }
.blp-modal .blp-submit:hover { background: var(--blp-bg, #0779a8) !important; color: var(--blp-color, #fff) !important; filter: brightness(1.08); }
.blp-modal .blp-submit:focus-visible { outline: 3px solid rgba(7, 121, 168, .45) !important; outline-offset: 2px; }
.blp-modal .blp-submit[disabled] { opacity: .7; cursor: wait; }
.blp-spinner { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: blpSpin .7s linear infinite; }

.blp-msg { margin: 12px 0 0; font-size: 14px; }
.blp-msg:empty { display: none; }
.blp-msg.is-error { color: #d63638; }
.blp-success { text-align: center; padding: 10px 0 4px; }
.blp-success__icon { display: inline-flex; width: 64px; height: 64px; border-radius: 50%; align-items: center; justify-content: center; background: #e7f6ec; color: #00a32a; margin-bottom: 12px; }
.blp-success p { margin: 0 0 10px; font-size: 16px; color: #1d2327; }
.blp-success a { color: var(--blp-bg, #0779a8); font-size: 14px; text-decoration: underline; }

body.blp-lock { overflow: hidden; }

@keyframes blpFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes blpPop { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes blpSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .blp-modal__overlay, .blp-modal__dialog, .blp-spinner { animation: none; } }
@media (max-width: 480px) { .blp-modal__dialog { padding: 26px 18px 20px; border-radius: 14px; } .blp-wrap .blp-button { font-size: 16px; } }
