/* EducationalEngine Credit Hub — signup form, shared by the shortcode, the
   popup, and the Gutenberg block (see templates/partials/signup-form.php). */

.ee-ch-signup {
	max-width: 420px;
	padding: 20px;
	border: 1px solid #ddd;
	border-radius: 8px;
	background: #fff;
}

.ee-ch-signup__title {
	margin-top: 0;
}

.ee-ch-signup__blurb {
	color: #555;
}

.ee-ch-signup__notice--error {
	background: #fce8e8;
	border-left: 4px solid #d63638;
	padding: 8px 12px;
	margin-bottom: 12px;
}

.ee-ch-signup__field {
	display: flex;
	flex-direction: column;
	margin-bottom: 12px;
}

.ee-ch-signup__field label {
	font-weight: 600;
	margin-bottom: 4px;
}

.ee-ch-signup__field input[type="email"],
.ee-ch-signup__field input[type="password"] {
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	width: 100%;
	box-sizing: border-box;
}

.ee-ch-signup__terms label {
	font-weight: normal;
	display: flex;
	align-items: flex-start;
	gap: 6px;
}

.ee-ch-signup__submit {
	margin-top: 16px;
}

.ee-ch-signup__button {
	width: 100%;
}

/* Honeypot — invisible to sighted users, still reachable by simple bots
   that fill every field regardless of visibility (see class-ee-ch-signup.php). */
.ee-ch-signup__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Site-wide popup (EE_CH_Signup_Popup) */
.ee-ch-signup-popup {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 100000;
	max-width: 360px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
	border-radius: 10px;
	opacity: 0;
	transform: translateY(16px);
	pointer-events: none;
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.ee-ch-signup-popup--visible {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.ee-ch-signup-popup .ee-ch-signup {
	border-radius: 10px;
	position: relative;
}

.ee-ch-signup-popup__close {
	position: absolute;
	top: 8px;
	right: 10px;
	background: none;
	border: none;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	color: #777;
}

@media (max-width: 480px) {
	.ee-ch-signup-popup {
		left: 12px;
		right: 12px;
		bottom: 12px;
		max-width: none;
	}
}
