/* ==========================================================
   JOT - Download Brochure popup (frontend only)
   Brand: green #2C8935 / #3AA642, Poppins, pill buttons
   All classes prefixed .jot-bm to avoid clashing with the site
   ========================================================== */

body.jot-bm-open { overflow: hidden; }

/* ---------- overlay ---------- */
.jot-bm {
	position: fixed;
	top: 0; right: 0; bottom: 0; left: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	visibility: hidden;
	opacity: 0;
	transition: opacity .25s ease, visibility 0s linear .25s;
}
.jot-bm.is-open {
	visibility: visible;
	opacity: 1;
	transition-delay: 0s;
}
.jot-bm__backdrop {
	position: absolute;
	top: 0; right: 0; bottom: 0; left: 0;
	background: rgba(8, 24, 12, .68);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
}

/* ---------- dialog ---------- */
.jot-bm__dialog {
	position: relative;
	display: flex;
	width: 100%;
	max-width: 820px;
	max-height: calc(100vh - 40px);
	overflow: hidden;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
	transform: translateY(24px) scale(.98);
	transition: transform .3s ease;
}
.jot-bm.is-open .jot-bm__dialog { transform: none; }

.jot-bm__close {
	position: absolute;
	top: 14px; right: 14px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px; height: 36px;
	padding: 0;
	color: #666;
	background: #f1f4f2;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
}
.jot-bm__close:hover { color: #fff; background: #2C8935; }
.jot-bm__close svg { width: 16px; height: 16px; }

/* ---------- left brand panel ---------- */
.jot-bm__aside {
	position: relative;
	flex: 0 0 38%;
	padding: 48px 34px;
	color: #fff;
	background: linear-gradient(160deg, #3AA642 0%, #2C8935 45%, #1d5f26 100%);
	overflow: hidden;
}
.jot-bm__aside:after {            /* soft decorative circle */
	content: "";
	position: absolute;
	right: -80px; bottom: -80px;
	width: 240px; height: 240px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .08);
}
.jot-bm__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px; height: 56px;
	margin-bottom: 22px;
	border-radius: 14px;
	background: rgba(255, 255, 255, .16);
}
.jot-bm__icon svg { width: 28px; height: 28px; }
.jot-bm__eyebrow {
	margin-bottom: 8px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	opacity: .85;
}
.jot-bm__aside h3 {
	margin: 0 0 14px;
	font-size: 24px;
	font-weight: 600;
	line-height: 1.25;
	color: #fff;
}
.jot-bm__text {
	margin: 0 0 24px;
	font-size: 14px;
	line-height: 1.6;
	opacity: .9;
}
.jot-bm__list { margin: 0; padding: 0; list-style: none; }
.jot-bm__list li {
	position: relative;
	margin-bottom: 10px;
	padding-left: 26px;
	font-size: 14px;
}
.jot-bm__list li:before {
	content: "";
	position: absolute;
	left: 0; top: 3px;
	width: 16px; height: 16px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .22)
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 8.5l2.3 2.3 4.7-5'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* ---------- right form panel ---------- */
.jot-bm__body {
	flex: 1 1 auto;
	min-width: 0;
	padding: 52px 44px 40px;
	overflow-y: auto;
}
.jot-bm__body h4 {
	margin: 0 0 8px;
	font-size: 24px;
	font-weight: 600;
	color: #222;
}
.jot-bm__sub {
	margin: 0 0 28px;
	font-size: 14px;
	color: #666;
}

.jot-bm__label {
	display: block;
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 600;
	color: #333;
}
.jot-bm__field { position: relative; }
.jot-bm__field svg {
	position: absolute;
	top: 50%; left: 16px;
	width: 18px; height: 18px;
	margin-top: -9px;
	color: #999;
	pointer-events: none;
}
.jot-bm__input {
	display: block;
	width: 100%;
	height: 52px;
	padding: 0 16px 0 44px;
	font-family: inherit;
	font-size: 15px;
	color: #333;
	background: #fff;
	border: 1px solid #d3d9d5;
	border-radius: 10px;
	outline: 0;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.jot-bm__input::-webkit-input-placeholder { color: #a3a9a5; }
.jot-bm__input::-moz-placeholder { color: #a3a9a5; opacity: 1; }
.jot-bm__input:focus {
	border-color: #3AA642;
	box-shadow: 0 0 0 4px rgba(58, 166, 66, .15);
}
.jot-bm__field.has-error .jot-bm__input {
	border-color: #ed3237;
	box-shadow: 0 0 0 4px rgba(237, 50, 55, .10);
}
.jot-bm__error {
	display: none;
	margin-top: 8px;
	font-size: 13px;
	color: #ed3237;
}
.jot-bm__field.has-error + .jot-bm__error { display: block; }

.jot-bm__submit,
.jot-bm__download {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin-top: 20px;
	padding: 15px 30px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	color: #fff;
	background: #2C8935;
	border: 2px solid #2C8935;
	border-radius: 50px;
	cursor: pointer;
	transition: all .25s ease-in-out;
}
.jot-bm__submit:hover,
.jot-bm__download:hover {
	color: #fff;
	background: #3AA642;
	border-color: #3AA642;
}
.jot-bm__submit:focus,
.jot-bm__download:focus { outline: 0; box-shadow: 0 0 0 4px rgba(58, 166, 66, .25); }
.jot-bm__submit[disabled] { opacity: .75; cursor: progress; }

.jot-bm__spinner {
	display: none;
	width: 16px; height: 16px;
	margin-right: 10px;
	border: 2px solid rgba(255, 255, 255, .45);
	border-top-color: #fff;
	border-radius: 50%;
	animation: jot-bm-spin .7s linear infinite;
}
.jot-bm__submit.is-loading .jot-bm__spinner { display: inline-block; }
@keyframes jot-bm-spin { to { transform: rotate(360deg); } }

.jot-bm__note {
	margin: 18px 0 0;
	font-size: 12px;
	line-height: 1.6;
	color: #888;
	text-align: center;
}

/* ---------- success state ---------- */
.jot-bm__success { display: none; text-align: center; padding: 14px 0 0; }
.jot-bm.is-success .jot-bm__form-wrap { display: none; }
.jot-bm.is-success .jot-bm__success { display: block; }

.jot-bm__tick {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px; height: 72px;
	margin: 0 auto 22px;
	color: #2C8935;
	background: #e8f5e9;
	border-radius: 50%;
}
.jot-bm__tick svg { width: 34px; height: 34px; }
.jot-bm__success h4 { margin-bottom: 10px; }
.jot-bm__success .jot-bm__sub { margin-bottom: 6px; }
.jot-bm__done {
	display: inline-block;
	margin-top: 16px;
	padding: 0;
	font: inherit;
	font-size: 13px;
	color: #888;
	background: none;
	border: 0;
	cursor: pointer;
}
.jot-bm__done:hover { color: #2C8935; }

/* ---------- responsive ---------- */
@media (max-width: 767px) {
	.jot-bm { padding: 12px; align-items: flex-end; }
	.jot-bm__dialog {
		flex-direction: column;
		max-height: calc(100vh - 24px);
		overflow-y: auto;
	}
	.jot-bm__aside { flex: 0 0 auto; padding: 22px 24px; display: flex; align-items: center; }
	.jot-bm__aside:after,
	.jot-bm__text,
	.jot-bm__list,
	.jot-bm__eyebrow { display: none; }
	.jot-bm__icon { width: 44px; height: 44px; margin: 0 14px 0 0; flex: 0 0 auto; }
	.jot-bm__aside h3 { margin: 0; font-size: 18px; }
	.jot-bm__body { padding: 28px 24px 28px; overflow: visible; }
	.jot-bm__body h4 { font-size: 20px; }
	.jot-bm__close { top: 12px; right: 12px; color: #fff; background: rgba(255, 255, 255, .2); }
	.jot-bm__close:hover { background: rgba(255, 255, 255, .35); }
}

@media (prefers-reduced-motion: reduce) {
	.jot-bm, .jot-bm__dialog, .jot-bm__input, .jot-bm__submit { transition: none; }
	.jot-bm__spinner { animation-duration: 2s; }
}
