/**
 * Frontend styles for Popup Messages.
 */

.pm-popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgb(203, 239, 255);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow-y: auto;
	padding: 20px;
	box-sizing: border-box;
}

.pm-popup-modal {
	background: #fff;
	border-radius: 8px;
	padding: 40px;
	max-width: 560px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	position: relative;
}

.pm-popup-content {
	margin-bottom: 24px;
	font-size: 16px;
	line-height: 1.6;
	color: #333;
}

.pm-popup-content h1,
.pm-popup-content h2,
.pm-popup-content h3 {
	margin-top: 0;
}

.pm-form-group {
	margin-bottom: 18px;
}

.pm-form-group label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	font-size: 14px;
	color: #333;
}

.pm-required {
	color: #dc3232;
	margin-left: 2px;
}

.pm-input {
	width: 100%;
	padding: 10px 14px;
	font-size: 15px;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
	transition: border-color 0.2s ease;
}

.pm-input:focus {
	outline: none;
	border-color: #0073aa;
	box-shadow: 0 0 0 1px #0073aa;
}

.pm-input.pm-has-error {
	border-color: #dc3232;
}

.pm-checkbox-label {
	display: flex !important;
	align-items: flex-start;
	font-weight: 400 !important;
	cursor: pointer;
	gap: 12px;
	position: relative;
}

.pm-checkbox {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	width: 22px;
	height: 22px;
	min-width: 22px;
	border: 2px solid #ccc;
	border-radius: 4px;
	background: #fff;
	cursor: pointer;
	position: relative;
	margin-top: 1px;
	flex-shrink: 0;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.pm-checkbox:checked {
	background: rgb(6, 242, 206);
	border-color: rgb(6, 242, 206);
}

.pm-checkbox:checked::after {
	content: '';
	position: absolute;
	left: 6px;
	top: 2px;
	width: 6px;
	height: 12px;
	border: solid #1c38ae;
	border-width: 0 2.5px 2.5px 0;
	transform: rotate(45deg);
}

.pm-checkbox:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(6, 242, 206, 0.3);
}

.pm-checkbox-text {
	font-size: 14px;
	line-height: 1.5;
	color: #555;
}

.pm-checkbox-text a {
	color: #1c38ae;
	text-decoration: underline;
}

.pm-checkbox-text a:hover {
	color: #142a82;
}

.pm-field-error {
	color: #dc3232;
	font-size: 13px;
	margin-top: 4px;
}

.pm-form-actions {
	margin-top: 24px;
}

.pm-submit-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 16px 40px;
	font-size: 17px;
	font-weight: 600;
	color: #1c38ae;
	background: #06f2ce;
	border: none;
	border-radius: 50px;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.15s ease;
	width: auto;
	min-width: 180px;
	letter-spacing: 0.3px;
	margin: 0 auto;
}

.pm-submit-btn:hover {
	color: #1c38ae;
	background: #06f2ce;
	transform: translateY(-1px);
}

.pm-submit-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

.pm-form-actions {
	margin-top: 24px;
	text-align: center;
}

.pm-form-message {
	margin-top: 16px;
	padding: 12px 16px;
	border-radius: 4px;
	font-size: 14px;
}

.pm-form-message.pm-success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.pm-form-message.pm-error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

/* Body lock when popup is active */
body.pm-body-locked {
	overflow: hidden !important;
	height: 100% !important;
}

/* Blocked page - minimal body with only the popup */
body.pm-blocked-page {
	margin: 0;
	padding: 0;
	background: rgb(203, 239, 255);
}

/* On blocked page the overlay is not fixed but fills the viewport */
body.pm-blocked-page .pm-popup-overlay--blocked {
	position: relative;
	min-height: 100vh;
}

/* Responsive */
@media (max-width: 600px) {
	.pm-popup-modal {
		padding: 24px 20px;
		margin: 10px;
	}

	.pm-popup-content {
		font-size: 14px;
	}

	.pm-submit-btn {
		padding: 10px 20px;
		font-size: 15px;
	}
}
