.mlqp-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, .56);
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 18px;
}

.mlqp-overlay.is-open {
	display: flex;
}

.mlqp-modal {
	width: min(var(--mlqp-width), calc(100vw - 28px));
	max-height: 92vh;
	overflow: auto;
	background: var(--mlqp-bg);
	color: var(--mlqp-text);
	border-radius: var(--mlqp-radius);
	box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
	position: relative;
	padding: 36px;
}

.mlqp-close {
	all: unset !important;
	box-sizing: border-box !important;
	position: absolute !important;
	right: 16px !important;
	top: 16px !important;
	width: 36px !important;
	height: 36px !important;
	border-radius: 999px !important;
	background: #f3f4f6 !important;
	cursor: pointer !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	z-index: 10 !important;
	transition: .2s !important;
}

.mlqp-close:hover {
	background: #e5e7eb !important;
	transform: rotate(90deg) !important;
}

.mlqp-close span {
	position: absolute;
	width: 16px;
	height: 2px;
	background: #111827;
	border-radius: 2px;
}

.mlqp-close span:first-child {
	transform: rotate(45deg);
}

.mlqp-close span:last-child {
	transform: rotate(-45deg);
}

.mlqp-close-outside .mlqp-close {
	top: -44px !important;
	right: 0 !important;
	background: #fff !important;
}

.mlqp-progress-wrap {
	width: 100%;
	height: 6px;
	background: #e5e7eb;
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: 26px;
}

.mlqp-progress-bar {
	width: 0;
	height: 100%;
	background: var(--mlqp-progress);
	transition: width .25s ease;
}

.mlqp-logo {
	margin-bottom: 18px;
}

.mlqp-logo.top_center {
	text-align: center;
}

.mlqp-logo.top_left {
	text-align: left;
}

.mlqp-logo.top_right {
	text-align: right;
}

.mlqp-logo img {
	max-width: 100%;
	height: auto;
}

.mlqp-title {
	font-size: clamp(25px, 4vw, 40px);
	line-height: 1.1;
	margin: 0 0 14px;
	font-weight: 800;
}

.mlqp-text {
	font-size: 17px;
	line-height: 1.65;
	color: #4b5563;
	margin: 0 0 26px;
}

.mlqp-question {
	font-size: clamp(24px, 3vw, 34px);
	line-height: 1.18;
	margin: 0 0 24px;
	font-weight: 800;
}

.mlqp-options {
	display: grid;
	gap: 12px;
}

.mlqp-option {
	width: 100%;
	border: 1px solid #e5e7eb;
	background: #fff;
	border-radius: 15px;
	padding: 16px 18px;
	text-align: left;
	font-size: 16px;
	cursor: pointer;
	transition: .18s;
	color: var(--mlqp-text);
}

.mlqp-option:hover {
	border-color: var(--mlqp-primary);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--mlqp-primary) 12%, transparent);
	transform: translateY(-1px);
}

.mlqp-option.is-selected {
	background: #0b66c3 !important;
	border-color: #0b66c3 !important;
	color: #fff !important;
	box-shadow: 0 0 0 4px rgba(11, 102, 195, .16) !important;
	transform: translateY(-1px);
}

.mlqp-option.is-selected:hover {
	background: #0a5daf !important;
	border-color: #0a5daf !important;
	color: #fff !important;
}

.mlqp-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 26px;
}

.mlqp-btn {
	border: 0;
	border-radius: 999px;
	background: var(--mlqp-btn);
	color: var(--mlqp-btn-text);
	padding: 13px 22px;
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.mlqp-btn.secondary {
	background: #f3f4f6;
	color: #111827;
}

.mlqp-btn:hover {
	filter: brightness(.96);
	color: var(--mlqp-btn-text);
}

.mlqp-btn.secondary:hover {
	color: #111827;
}

.mlqp-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.mlqp-field-full {
	grid-column: 1 / -1;
}

.mlqp-field label {
	display: block;
	font-weight: 700;
	margin-bottom: 6px;
}

.mlqp-field input,
.mlqp-field textarea {
	width: 100%;
	border: 1px solid #d1d5db;
	border-radius: 12px;
	padding: 12px 14px;
	font-size: 15px;
	background: #fff;
	color: #111827;
}

.mlqp-error {
	background: #fef2f2;
	color: #b91c1c;
	padding: 11px 13px;
	border-radius: 12px;
	margin-top: 14px;
	display: none;
}

.mlqp-success-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 22px;
}

.mlqp-shortcode-button {
	border: 0;
	border-radius: 999px;
	background: var(--mlqp-btn, #1ea064);
	color: var(--mlqp-btn-text, #fff);
	padding: 13px 22px;
	font-weight: 700;
	cursor: pointer;
}

.mlqp-loader {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, .5);
	border-top-color: #fff;
	border-radius: 50%;
	animation: mlqpSpin .8s linear infinite;
	margin-left: 8px;
}

@keyframes mlqpSpin {
	to {
		transform: rotate(360deg);
	}
}

@media (max-width: 640px) {
	.mlqp-overlay {
		padding: 12px;
		align-items: flex-start;
		overflow: auto;
	}

	.mlqp-modal {
		padding: 26px 18px;
		margin-top: 20px;
		max-height: none;
	}

	.mlqp-fields {
		grid-template-columns: 1fr;
	}

	.mlqp-title,
	.mlqp-question {
		font-size: 25px;
	}

	.mlqp-close {
		right: 12px !important;
		top: 12px !important;
	}

	.mlqp-close-outside .mlqp-close {
		top: 10px !important;
		right: 10px !important;
	}
}

/* Visibility fix for text inputs/textarea */
.mlqp-field input.mlqp-step-input,
.mlqp-field textarea.mlqp-step-input,
.mlqp-step-input {
	color: #111827 !important;
	-webkit-text-fill-color: #111827 !important;
	caret-color: #111827 !important;
	background: #ffffff !important;
	border: 1.5px solid #d1d5db !important;
	box-shadow: none !important;
	outline: none !important;
}

.mlqp-field input.mlqp-step-input::placeholder,
.mlqp-field textarea.mlqp-step-input::placeholder,
.mlqp-step-input::placeholder {
	color: #9ca3af !important;
	-webkit-text-fill-color: #9ca3af !important;
	opacity: 1 !important;
}

.mlqp-field input.mlqp-step-input:focus,
.mlqp-field textarea.mlqp-step-input:focus,
.mlqp-step-input:focus {
	color: #111827 !important;
	-webkit-text-fill-color: #111827 !important;
	border-color: #0b66c3 !important;
	box-shadow: 0 0 0 3px rgba(11, 102, 195, .12) !important;
}

.mlqp-field input.mlqp-step-input:autofill,
.mlqp-field input.mlqp-step-input:-webkit-autofill {
	-webkit-text-fill-color: #111827 !important;
	box-shadow: 0 0 0 1000px #ffffff inset !important;
}