.xfqrm-container {
	margin: 1rem 0;
}

.xfqrm-intro {
	margin-bottom: 0.75rem;
}

.xfqrm-open-button {
	display: inline-block;
	padding: 0.7rem 1rem;
	border: 0;
	border-radius: 6px;
	background: #0f5ea8;
	color: #fff;
	font-size: 1rem;
	line-height: 1.2;
	cursor: pointer;
}

.xfqrm-open-button:hover,
.xfqrm-open-button:focus {
	background: #0d4f8d;
}

.xfqrm-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	background: rgba(0, 0, 0, 0.6);
}

.xfqrm-modal {
	position: relative;
	width: 100%;
	max-width: 520px;
	max-height: 90vh;
	overflow: auto;
	background: #fff;
	border-radius: 12px;
	padding: 1.25rem;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.xfqrm-modal h2 {
	margin-top: 0;
	margin-bottom: 1rem;
	font-size: 1.35rem;
}

.xfqrm-close {
	position: absolute;
	top: 0.5rem;
	right: 0.65rem;
	border: 0;
	background: transparent;
	font-size: 1.8rem;
	line-height: 1;
	cursor: pointer;
	color: #333;
}

.xfqrm-feedback {
	margin-bottom: 0.85rem;
	padding: 0.7rem 0.8rem;
	border-radius: 8px;
	font-size: 0.95rem;
}

.xfqrm-feedback-error {
	background: #fdebec;
	color: #8a1f23;
	border: 1px solid #f6c2c5;
}

.xfqrm-feedback-success {
	background: #e9f8ed;
	color: #165d25;
	border: 1px solid #bde7c7;
}

.xfqrm-field {
	margin-bottom: 0.8rem;
}

.xfqrm-field label {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 600;
}

.xfqrm-field input[type="text"],
.xfqrm-field input[type="email"],
.xfqrm-field input[type="password"] {
	width: 100%;
	padding: 0.65rem 0.7rem;
	border: 1px solid #ccd3da;
	border-radius: 6px;
	font-size: 1rem;
}

.xfqrm-consent label {
	display: flex;
	gap: 0.55rem;
	align-items: flex-start;
	font-weight: 400;
	font-size: 0.95rem;
}

.xfqrm-consent input[type="checkbox"] {
	margin-top: 0.2rem;
}

.xfqrm-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	min-width: 140px;
	padding: 0.7rem 1rem;
	border: 0;
	border-radius: 6px;
	background: #0f5ea8;
	color: #fff;
	font-size: 1rem;
	cursor: pointer;
}

.xfqrm-submit:disabled {
	opacity: 0.8;
	cursor: not-allowed;
}

.xfqrm-spinner {
	display: none;
	width: 1rem;
	height: 1rem;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	animation: xfqrm-spin 0.75s linear infinite;
}

.xfqrm-submit.is-loading .xfqrm-spinner {
	display: inline-block;
}

@keyframes xfqrm-spin {
	to {
		transform: rotate(360deg);
	}
}

.xfqrm-login-link {
	margin-top: 0.8rem;
	margin-bottom: 0;
	font-size: 0.95rem;
}

.xfqrm-footer-text {
	margin-top: 0.85rem;
	font-size: 0.95rem;
	color: #444;
}

.xfqrm-honeypot {
	position: absolute !important;
	left: -9999px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

body.xfqrm-modal-open {
	overflow: hidden;
}

@media (max-width: 560px) {
	.xfqrm-modal {
		padding: 1rem;
		border-radius: 10px;
	}

	.xfqrm-modal h2 {
		font-size: 1.2rem;
		padding-right: 1.5rem;
	}
}

