.ldf-wrapper {
	display: inline-block;
}

.ldf-open-btn,
.ldf-submit-btn {
	background: #2271b1;
	color: #fff;
	border: none;
	padding: 10px 22px;
	border-radius: 6px;
	font-family: inherit;
	font-size: 15px;
	cursor: pointer;
	transition: background 0.15s ease;
}

.ldf-open-btn:hover,
.ldf-submit-btn:hover {
	background: #135e96;
}

body.ldf-modal-active {
	overflow: hidden;
}

.ldf-modal-overlay {
	display: flex;
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.28);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	z-index: 999999;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
	box-sizing: border-box;
	overflow-y: auto;
	overscroll-behavior: contain;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.28s ease, visibility 0.28s ease;
}

.ldf-modal-overlay.ldf-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.ldf-modal {
	background: #fff;
	border-radius: 10px;
	padding: 30px;
	width: 100%;
	max-width: 420px;
	position: relative;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
	direction: rtl;
	text-align: right;
	font-family: inherit;
	flex-shrink: 0;
	margin: auto;
	opacity: 0;
	transform: scale(0.96) translateY(12px);
	transition: opacity 0.28s ease, transform 0.28s ease;
}

.ldf-modal-overlay.ldf-open .ldf-modal {
	opacity: 1;
	transform: scale(1) translateY(0);
}

.ldf-modal h3 {
	margin-top: 0;
	margin-bottom: 18px;
	font-size: 18px;
}

.ldf-modal-close {
	position: absolute;
	top: 10px;
	left: 14px;
	background: none;
	border: none;
	font-family: inherit;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #666;
}

.ldf-modal-close:hover {
	color: #000;
}

.ldf-field {
	margin-bottom: 14px;
}

.ldf-field label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 600;
}

.ldf-field input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccd0d4;
	border-radius: 6px;
	font-family: inherit;
	font-size: 14px;
	box-sizing: border-box;
}

.ldf-field input:focus {
	outline: none;
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
}

.ldf-form-message {
	font-size: 14px;
	padding: 8px 12px;
	border-radius: 6px;
}

.ldf-form-message.ldf-success {
	background: #edfaef;
	color: #1e7c34;
}

.ldf-form-message.ldf-error {
	background: #fbeaea;
	color: #b32d2e;
}

.ldf-submit-btn[disabled] {
	opacity: 0.6;
	cursor: not-allowed;
}
