.jo-mp,
.jo-mp *,
.jo-mp *::before,
.jo-mp *::after {
	box-sizing: border-box;
}

.jo-mp[hidden] {
	display: none !important;
}

.jo-mp {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: grid;
	place-items: center;
	padding: clamp(10px, 2vw, 20px);
	font-family: inherit;
}

.jo-mp__overlay {
	position: absolute;
	inset: 0;
	background: rgba(13, 18, 16, 0.62);
	backdrop-filter: blur(8px);
}

.jo-mp__dialog {
	position: relative;
	display: grid;
	grid-template-columns: minmax(240px, 0.76fr) minmax(0, 1.24fr);
	width: min(1040px, calc(100vw - 28px));
	height: min(680px, calc(100vh - 28px));
	height: min(680px, calc(100dvh - 28px));
	overflow: hidden;
	background: #fff;
	border: 1px solid rgba(33, 58, 48, 0.14);
	border-radius: 8px;
	box-shadow: 0 28px 80px rgba(13, 18, 16, 0.34);
	color: #17231f;
	outline: none;
}

.jo-mp__visual {
	position: relative;
	min-height: 0;
	overflow: hidden;
	background:
		linear-gradient(145deg, rgba(26, 65, 51, 0.92), rgba(47, 87, 73, 0.9)),
		linear-gradient(180deg, #f2f7f4, #dae9e0);
}

.jo-mp__visual::before {
	content: "";
	position: absolute;
	inset: 20px;
	z-index: 2;
	border: 1px solid rgba(255, 255, 255, 0.24);
	border-radius: 6px;
	pointer-events: none;
}

.jo-mp__visual::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	z-index: 1;
	height: 48%;
	background: linear-gradient(0deg, rgba(15, 39, 31, 0.54), rgba(15, 39, 31, 0));
	pointer-events: none;
}

.jo-mp__visual img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 34% 22%;
	display: block;
}

.jo-mp__mark {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: grid;
	place-items: center;
	padding: 36px;
	text-align: center;
	color: #f7fbf8;
}

.jo-mp__mark span {
	position: absolute;
	width: 58%;
	aspect-ratio: 1;
	border: 1px solid rgba(255, 255, 255, 0.32);
	border-radius: 50%;
}

.jo-mp__mark strong {
	position: relative;
	display: grid;
	place-items: center;
	width: 112px;
	aspect-ratio: 1;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.26);
	font-size: 34px;
	font-weight: 700;
	letter-spacing: 0;
}

.jo-mp__content {
	display: grid;
	align-content: center;
	min-height: 0;
	min-width: 0;
	overflow: hidden;
	padding: clamp(24px, 3vw, 40px);
}

.jo-mp__icon-close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid rgba(23, 35, 31, 0.12);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.94);
	color: #17231f;
	font-size: 0;
	line-height: 1;
	cursor: pointer;
	transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.jo-mp__icon-close span {
	position: relative;
	display: block;
	width: 16px;
	height: 16px;
}

.jo-mp__icon-close span::before,
.jo-mp__icon-close span::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 17px;
	height: 4px;
	border-radius: 999px;
	background: currentColor;
	transform-origin: center;
}

.jo-mp__icon-close span::before {
	transform: translate(-50%, -50%) rotate(45deg);
}

.jo-mp__icon-close span::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.jo-mp__icon-close:hover,
.jo-mp__icon-close:focus-visible {
	transform: scale(1.04);
	border-color: rgba(26, 65, 51, 0.42);
	background: #fff;
}

.jo-mp__eyebrow {
	margin: 0 0 10px;
	color: #0e1724;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.jo-mp__title {
	margin: 0 42px 14px 0;
	color: #17231f;
	font-size: clamp(28px, 3.5vw, 36px);
	font-weight: 700;
	line-height: 1.04;
	letter-spacing: 0;
	overflow-wrap: break-word;
	white-space: normal;
}

.jo-mp__copy,
.jo-mp__secondary,
.jo-mp__note {
	color: #52625b;
	font-size: 15px;
	line-height: 1.48;
}

.jo-mp__copy p,
.jo-mp__secondary p,
.jo-mp__note {
	margin: 0;
}

.jo-mp__copy p + p {
	margin-top: 12px;
}

.jo-mp__form {
	display: grid;
	gap: 10px;
	margin-top: 16px;
}

.jo-mp__field label,
.jo-mp__privacy label {
	display: block;
	margin: 0 0 5px;
	color: #25342f;
	font-size: 13px;
	font-weight: 700;
}

.jo-mp__field input[type="text"],
.jo-mp__field input[type="email"] {
	width: 100%;
	min-height: 44px;
	padding: 10px 14px;
	border: 1px solid #cfdad4;
	border-radius: 6px;
	background: #fbfdfc;
	color: #17231f;
	font: inherit;
	transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.jo-mp__field input[type="text"]:focus,
.jo-mp__field input[type="email"]:focus {
	border-color: #2d6b53;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(45, 107, 83, 0.15);
	outline: none;
}

.jo-mp__privacy label {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	margin: 0;
	color: #52625b;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.35;
}

.jo-mp__privacy input {
	width: 17px;
	height: 17px;
	margin: 1px 0 0;
	accent-color: #2d6b53;
	flex: 0 0 auto;
}

.jo-mp__actions {
	margin: 2px 0 0;
}

.jo-mp__submit,
.jo-mp__button {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	min-height: 46px;
	padding: 12px 18px;
	border: 1px solid rgba(126, 92, 6, 0.28);
	border-radius: 6px;
	background: linear-gradient(135deg, #ffeab4 0%, #c9a227 54%, #a98113 100%);
	color: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 800;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 14px 30px rgba(201, 162, 39, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.42);
	transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.jo-mp__submit:hover,
.jo-mp__submit:focus-visible,
.jo-mp__button:hover,
.jo-mp__button:focus-visible {
	transform: translateY(-1px);
	border-color: rgba(255, 244, 214, 0.34);
	background: linear-gradient(135deg, rgba(8, 17, 31, 0.98) 0%, rgba(14, 23, 36, 0.96) 58%, rgba(12, 61, 84, 0.78) 100%);
	color: #fff;
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.12);
	outline: none;
}

.jo-mp input[type="submit"].jo-mp__submit {
	border-color: rgba(126, 92, 6, 0.28) !important;
	background: linear-gradient(135deg, #ffeab4 0%, #c9a227 54%, #a98113 100%) !important;
	color: #fff !important;
	box-shadow: 0 14px 30px rgba(201, 162, 39, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.42) !important;
}

.jo-mp input[type="submit"].jo-mp__submit:hover,
.jo-mp input[type="submit"].jo-mp__submit:focus-visible {
	border-color: rgba(255, 244, 214, 0.34) !important;
	background: linear-gradient(135deg, rgba(8, 17, 31, 0.98) 0%, rgba(14, 23, 36, 0.96) 58%, rgba(12, 61, 84, 0.78) 100%) !important;
	color: #fff !important;
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

.jo-mp__secondary {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid #e6eee9;
	font-size: 13px;
}

.jo-mp__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-top: 12px;
}

.jo-mp__decline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 10px 16px;
	border: 1px solid rgba(255, 244, 214, 0.34);
	border-radius: 6px;
	background: linear-gradient(135deg, rgba(8, 17, 31, 0.98) 0%, rgba(14, 23, 36, 0.96) 58%, rgba(12, 61, 84, 0.78) 100%);
	color: #ffffff;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.12);
	transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.jo-mp__decline:hover,
.jo-mp__decline:focus-visible {
	border-color: #c9a227;
	background: linear-gradient(135deg, #ffeab4 0%, #c9a227 54%, #a98113 100%);
	color: #fff;
	box-shadow: 0 10px 22px rgba(201, 162, 39, 0.26);
	outline: none;
}

.jo-mp__note {
	max-width: 240px;
	color: #0e1724;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.35;
	text-align: right;
}

body.jo-mp-open {
	overflow: auto;
}

@media (max-height: 720px) and (min-width: 781px) {
	.jo-mp__dialog {
		grid-template-columns: minmax(220px, 0.68fr) minmax(0, 1.32fr);
		height: calc(100vh - 24px);
		height: calc(100dvh - 24px);
	}

	.jo-mp__content {
		padding: 22px 32px;
	}

	.jo-mp__title {
		font-size: 30px;
	}

	.jo-mp__copy {
		font-size: 14px;
		line-height: 1.42;
	}

	.jo-mp__secondary,
	.jo-mp__note {
		display: none;
	}
}

@media (max-width: 780px) {
	.jo-mp {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		min-width: 0;
		overflow: hidden;
		padding: 8px;
	}

	.jo-mp__dialog {
		grid-template-columns: 1fr;
		grid-template-rows: minmax(92px, 22vh) minmax(0, 1fr);
		width: calc(100vw - 16px);
		max-width: calc(100vw - 16px);
		min-width: 0;
		height: calc(100vh - 16px);
		height: calc(100dvh - 16px);
	}

	.jo-mp__visual {
		min-height: 0;
	}

	.jo-mp__visual img {
		object-position: 42% 20%;
	}

	.jo-mp__visual::before {
		inset: 12px;
	}

	.jo-mp__mark strong {
		width: 76px;
		font-size: 24px;
	}

	.jo-mp__content {
		width: 100%;
		max-width: 100%;
		min-width: 0;
		padding: 18px 18px 16px;
	}

	.jo-mp__title {
		max-width: 100%;
		margin-right: 38px;
		margin-bottom: 10px;
		font-size: clamp(22px, 6vw, 26px);
		line-height: 1.08;
		overflow-wrap: anywhere;
		white-space: normal !important;
	}

	.jo-mp__copy,
	.jo-mp__secondary {
		max-width: 100%;
		font-size: 13px;
		line-height: 1.42;
		overflow-wrap: anywhere;
	}

	.jo-mp__form {
		max-width: 100%;
		min-width: 0;
		gap: 8px;
		margin-top: 12px;
	}

	.jo-mp__field,
	.jo-mp__privacy,
	.jo-mp__actions,
	.jo-mp__footer {
		max-width: 100%;
		min-width: 0;
	}

	.jo-mp__field input[type="text"],
	.jo-mp__field input[type="email"] {
		min-height: 40px;
		padding: 8px 12px;
	}

	.jo-mp__submit,
	.jo-mp__button {
		min-height: 42px;
		padding: 10px 16px;
	}

	.jo-mp__footer {
		display: grid;
		gap: 8px;
		margin-top: 10px;
	}

	.jo-mp__secondary,
	.jo-mp__note {
		display: none;
	}
}

@media (max-width: 520px) {
	.jo-mp {
		justify-content: flex-start;
	}

	.jo-mp__dialog {
		width: min(calc(100vw - 16px), 374px);
	}
}

@media (max-height: 720px) and (max-width: 780px) {
	.jo-mp__dialog {
		grid-template-rows: minmax(76px, 18vh) minmax(0, 1fr);
	}

	.jo-mp__content {
		padding: 14px 16px 12px;
	}

	.jo-mp__eyebrow {
		margin-bottom: 7px;
		font-size: 11px;
	}

	.jo-mp__title {
		margin-bottom: 8px;
		font-size: 22px;
	}

	.jo-mp__copy {
		font-size: 12px;
		line-height: 1.35;
	}

	.jo-mp__form {
		gap: 6px;
		margin-top: 9px;
	}

	.jo-mp__field label,
	.jo-mp__privacy label {
		font-size: 11px;
	}

	.jo-mp__field input[type="text"],
	.jo-mp__field input[type="email"],
	.jo-mp__submit,
	.jo-mp__button {
		min-height: 38px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.jo-mp__icon-close,
	.jo-mp__submit,
	.jo-mp__button,
	.jo-mp__field input {
		transition: none;
	}
}
