/* Demo Popup styles. Scoped under .demo-popup-* to avoid theme collisions. */

.demo-popup-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.6);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 999999;
	padding: 20px;
	box-sizing: border-box;
	opacity: 0;
	transition: opacity 180ms ease;
}

.demo-popup-overlay.is-open {
	display: flex;
	opacity: 1;
}

.demo-popup-modal {
	background: #fff;
	width: 100%;
	max-width: 460px;
	border-radius: 10px;
	padding: 32px;
	box-sizing: border-box;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
	position: relative;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: #1f2937;
	max-height: 90vh;
	overflow-y: auto;
	transform: translateY(10px);
	transition: transform 180ms ease;
}

.demo-popup-overlay.is-open .demo-popup-modal {
	transform: translateY(0);
}

.demo-popup-close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 32px;
	height: 32px;
	border: none;
	background: transparent;
	font-size: 24px;
	line-height: 1;
	color: #6b7280;
	cursor: pointer;
	border-radius: 4px;
}

.demo-popup-close:hover {
	background: #f3f4f6;
	color: #111827;
}

.demo-popup-heading {
	margin: 0 0 8px;
	font-size: 22px;
	font-weight: 600;
	color: #111827;
}

.demo-popup-description {
	margin: 0 0 20px;
	font-size: 14px;
	color: #4b5563;
	line-height: 1.5;
}

.demo-popup-field {
	margin-bottom: 14px;
}

.demo-popup-field label {
	display: block;
	font-size: 13px;
	font-weight: 500;
	margin-bottom: 6px;
	color: #374151;
}

.demo-popup-req {
	color: #dc2626;
}

.demo-popup-field input {
	width: 100%;
	padding: 10px 12px;
	font-size: 14px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	box-sizing: border-box;
	background: #fff;
	color: #111827;
	transition: border-color 120ms ease, box-shadow 120ms ease;
}

.demo-popup-field input:focus {
	outline: none;
	border-color: #10b981;
	box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.demo-popup-field.has-error input {
	border-color: #dc2626;
}

.demo-popup-error {
	display: block;
	min-height: 16px;
	font-size: 12px;
	color: #dc2626;
	margin-top: 4px;
}

.demo-popup-pre-submit {
	font-size: 12px;
	color: #6b7280;
	margin: 8px 0 16px;
	line-height: 1.5;
}

.demo-popup-submit {
	display: block;
	width: 100%;
	padding: 12px 16px;
	font-size: 15px;
	font-weight: 600;
	color: #fff;
	background: #10b981;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: background 120ms ease;
}

.demo-popup-submit:hover {
	background: #059669;
}

.demo-popup-submit:disabled {
	background: #6ee7b7;
	cursor: not-allowed;
}

.demo-popup-message {
	margin-top: 14px;
	font-size: 14px;
	min-height: 20px;
	text-align: center;
}

.demo-popup-message.is-success {
	color: #047857;
}

.demo-popup-message.is-error {
	color: #dc2626;
}

body.demo-popup-open {
	overflow: hidden;
}
