.sd-jotform-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.sd-jotform-modal[hidden] {
	display: none !important;
}

.sd-jotform-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.65);
	backdrop-filter: blur(2px);
}

.sd-jotform-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(720px, 100%);
	max-height: min(92vh, 980px);
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.sd-jotform-modal__title {
	margin: 0;
	padding: 18px 56px 12px 24px;
	font-size: 20px;
	line-height: 1.3;
	font-weight: 700;
	color: #111;
}

.sd-jotform-modal__close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0 !important;
	border-radius: 50% !important;
	background: #f3f4f6 !important;
	color: #111 !important;
	font-size: 28px !important;
	line-height: 1 !important;
	box-shadow: none !important;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	z-index: 2;
}

.sd-jotform-modal__close:hover,
.sd-jotform-modal__close:focus {
	background: #e5e7eb;
	outline: none;
}

.sd-jotform-modal__body {
	flex: 1 1 auto;
	min-height: 0;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
	background: #fff;
}

.sd-jotform-modal__iframe {
	display: block;
	width: 100%;
	min-height: 640px;
	height: 72vh;
	border: 0;
	background: #fff;
}

body.sd-jotform-modal-open {
	overflow: hidden;
}

.btn-jot {
	cursor: pointer;
}

@media (max-width: 767px) {
	.sd-jotform-modal {
		padding: 0;
		align-items: stretch;
	}

	.sd-jotform-modal__dialog {
		width: 100%;
		max-height: 100vh;
		height: 100%;
		border-radius: 0;
	}

	.sd-jotform-modal__iframe {
		height: calc(100vh - 70px);
		min-height: calc(100vh - 70px);
	}
}
