/**
 * Frontend styles for Email Access Verification.
 *
 * @package EmailAccessVerification
 */

.eav-app {
	max-width: 520px;
	margin: 0 auto;
	padding: 24px 16px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	color: #374151;
}

.eav-card {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	padding: 24px;
}

.eav-card__title {
	margin: 0 0 10px;
	font-size: xx-large !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	color: #13266f !important;
}

.eav-card__intro {
	margin: 0 0 12px;
	font-size: 14px !important;
	line-height: 1.5;
	color: #6b7280;
}

.eav-form {
	display: flex;
	flex-direction: column;
	gap: 0px;
}

.eav-form > * {
	margin-top: 0;
	margin-bottom: 0;
}

.eav-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
}

.eav-field__label {
	margin: 0;
	font-size: 14px !!important;
	font-weight: 500;
	color: #374151;
	line-height: 1.4;
}

.eav-field__input {
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 10px 14px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 1rem;
	line-height: 1.4;
	color: #111827;
	background: #ffffff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.eav-field__input:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.eav-field__input.eav-field__input--error {
	border-color: #ef4444 !important;
}

.eav-field__input.eav-field__input--error:focus {
	box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.eav-field__error {
	margin: 0;
	font-size: 0.8125rem;
	color: #ef4444;
}

.eav-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin-top: 30px !important;
	padding: 10px 16px;
	border: none;
	border-radius: 6px;
	font-size: 14px !important;
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
	transition: background-color 0.15s ease, opacity 0.15s ease;
}

.eav-button--primary {
	background: #13266f !important;
	color: #ffffff;
}

.eav-button--primary:hover:not(:disabled) {
	background: #13266f !important;
}

.eav-button:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.eav-link {
	color: #2563eb;
	text-decoration: none;
}

.eav-link:hover {
	text-decoration: underline;
}

.eav-link--button {
	background: none;
	border: none;
	padding: 0;
	font: inherit;
	cursor: pointer;
}

.eav-form__footer {
	margin: 0;
	padding-top: 2px;
	text-align: center;
	line-height: 1.4;
}

.eav-messages {
	margin-bottom: 16px;
}

.eav-message {
	padding: 12px 16px;
	border-radius: 6px;
	font-size: 0.875rem;
	line-height: 1.5;
}

.eav-message--success {
	background: #ecfdf5;
	color: #065f46;
	border: 1px solid #a7f3d0;
}

.eav-message--error {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

.eav-protected-content {
	animation: eavFadeIn 0.25s ease;
}

@keyframes eavFadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@media (max-width: 600px) {
	.eav-card {
		padding: 20px 16px;
	}
}

/* Avada / Fusion Builder: hide Resources content until verification completes. */
body.eav-gating-active #sliders-container,
body.eav-gating-active .fusion-page-title-bar,
body.eav-gating-active .fusion-tb-page-title-bar,
body.eav-gating-active #posts-container {
	display: none !important;
}

body.eav-gating-active .eav-gate-shell,
body.eav-gating-active #eav-app {
	display: block !important;
}

body.eav-gating-active .eav-gate-shell {
	margin: 32px auto 48px;
	max-width: 100%;
	padding: 0 16px;
}
