/* Email Verifier Free — self-contained styles. All scoped under .efv-wrap. */

.efv-wrap {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	color: #161618;
	box-sizing: border-box;
}

.efv-wrap *,
.efv-wrap *::before,
.efv-wrap *::after {
	box-sizing: border-box;
}

/* ===== Hero ===== */

.efv-hero {
	max-width: 800px;
	margin: 0 auto 24px auto;
	padding: 24px 16px 0;
	text-align: center;
}

.efv-hero-title {
	font-size: 32px;
	line-height: 1.2;
	font-weight: 700;
	color: #161618;
	margin: 0 0 12px 0;
}

.efv-hero-desc {
	font-size: 16px;
	line-height: 1.55;
	color: #797984;
	max-width: 600px;
	margin: 0 auto;
}

/* ===== Card ===== */

.efv-card {
	max-width: 700px;
	margin: 0 auto;
	background: #FFFFFF;
	border: 1px solid #EDEFF3;
	border-radius: 12px;
	padding: 32px;
}

/* ===== Form ===== */

.efv-form {
	display: flex;
	gap: 12px;
	margin-bottom: 20px;
}

.efv-input {
	flex: 1;
	min-width: 0;
	height: 48px;
	padding: 0 16px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 400;
	color: #161618;
	background: #FFFFFF;
	border: 1px solid #EDEFF3;
	border-radius: 10px;
	outline: none;
	transition: border-color 0.2s ease;
}

.efv-input:focus {
	border-color: #4875FF;
}

.efv-input::placeholder {
	color: #9CA3AF;
}

.efv-btn {
	flex-shrink: 0;
	height: 48px;
	padding: 0 28px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	color: #FFFFFF;
	background: #4875FF;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: opacity 0.2s ease;
}

.efv-btn:hover {
	opacity: 0.9;
}

.efv-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.efv-btn-spinner {
	display: none;
}

.efv-btn.is-loading {
	min-width: 120px;
	position: relative;
	overflow: hidden;
	pointer-events: none;
}

.efv-btn.is-loading .efv-btn-label {
	display: none;
}

.efv-btn.is-loading .efv-btn-spinner {
	display: inline-flex;
}

.efv-btn.is-loading::after {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
	animation: efv-shimmer 1.2s infinite;
}

@keyframes efv-shimmer {
	0%   { left: -100%; }
	100% { left: 100%; }
}

.efv-btn-spinner svg {
	animation: efv-spin 0.8s linear infinite;
}

@keyframes efv-spin {
	from { transform: rotate(0deg); }
	to   { transform: rotate(360deg); }
}

.efv-card.is-verifying {
	animation: efv-pulse 1.5s ease-in-out infinite;
	border-color: rgba(72, 117, 255, 0.3);
}

@keyframes efv-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(72, 117, 255, 0); }
	50%      { box-shadow: 0 0 0 6px rgba(72, 117, 255, 0.08); }
}

/* ===== Usage bar ===== */

.efv-usage-bar {
	margin-bottom: 20px;
}

.efv-usage-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 6px;
}

.efv-usage-label {
	font-size: 14px;
	font-weight: 500;
	color: #797984;
}

.efv-usage-count {
	font-size: 14px;
	font-weight: 500;
	color: #161618;
}

.efv-usage-track {
	height: 4px;
	background: #EDEFF3;
	border-radius: 2px;
	overflow: hidden;
}

.efv-usage-fill {
	height: 100%;
	background: #4875FF;
	border-radius: 2px;
	transition: width 0.3s ease;
}

/* ===== Error ===== */

.efv-error {
	margin-bottom: 16px;
	padding: 12px 16px;
	background: #FEF2F2;
	border: 1px solid #FECACA;
	border-radius: 8px;
}

.efv-error p {
	color: #EF4444;
	font-size: 14px;
	margin: 0;
}

/* ===== Result ===== */

.efv-result {
	border-top: 1px solid #EDEFF3;
	padding-top: 24px;
	margin-top: 4px;
	animation: efv-slide-in 0.4s ease-out;
}

@keyframes efv-slide-in {
	from { opacity: 0; transform: translateY(12px); }
	to   { opacity: 1; transform: translateY(0); }
}

.efv-result-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 20px;
}

.efv-result-email {
	font-size: 18px;
	font-weight: 600;
	color: #161618;
	word-break: break-all;
}

.efv-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 10px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	animation: efv-badge-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes efv-badge-pop {
	from { transform: scale(0.6); opacity: 0; }
	to   { transform: scale(1);   opacity: 1; }
}

.efv-badge-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	flex-shrink: 0;
}

.efv-badge.is-valid    { border: 1px solid #10B981; color: #10B981; background: transparent; }
.efv-badge.is-valid    .efv-badge-dot { background: #10B981; }
.efv-badge.is-invalid  { border: 1px solid #EF4444; color: #EF4444; background: transparent; }
.efv-badge.is-invalid  .efv-badge-dot { background: #EF4444; }
.efv-badge.is-unknown  { border: 1px solid #F59E0B; color: #F59E0B; background: transparent; }
.efv-badge.is-unknown  .efv-badge-dot { background: #F59E0B; }

.efv-result-details {
	display: flex;
	flex-direction: column;
}

.efv-result-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 0;
	border-bottom: 1px solid #EDEFF3;
	gap: 12px;
}

.efv-result-row:last-child {
	border-bottom: none;
}

.efv-result-row-label {
	font-size: 14px;
	font-weight: 500;
	color: #797984;
}

.efv-result-row-value {
	font-size: 14px;
	font-weight: 500;
	color: #161618;
	word-break: break-all;
	text-align: right;
}

/* ===== CTA ===== */

.efv-upgrade-cta {
	margin-top: 24px;
	padding: 16px 20px;
	background: rgba(72, 117, 255, 0.05);
	border-radius: 8px;
	text-align: center;
}

.efv-upgrade-cta p {
	font-size: 14px;
	color: #797984;
	margin: 0;
}

.efv-upgrade-cta a {
	color: #4875FF;
	font-weight: 600;
	text-decoration: none;
}

.efv-upgrade-cta a:hover {
	text-decoration: underline;
}

/* ===== Optional SEO sections ===== */

.efv-seo {
	max-width: 1000px;
	margin: 60px auto 0;
	padding: 0 16px;
}

.efv-seo-section {
	padding: 40px 0;
	text-align: center;
}

.efv-seo-section-alt {
	background: #F5F7FA;
	border-radius: 12px;
}

.efv-seo-h2 {
	font-size: 28px;
	line-height: 1.2;
	font-weight: 700;
	color: #161618;
	margin: 0 0 32px 0;
}

.efv-seo-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	padding: 0 16px;
}

.efv-seo-card,
.efv-seo-step {
	text-align: center;
	padding: 24px 16px;
	background: #FFFFFF;
	border: 1px solid #EDEFF3;
	border-radius: 12px;
}

.efv-seo-section-alt .efv-seo-step {
	background: transparent;
	border: none;
}

.efv-seo-card h3,
.efv-seo-step h3 {
	font-size: 18px;
	font-weight: 600;
	color: #161618;
	margin: 0 0 12px 0;
}

.efv-seo-card p,
.efv-seo-step p {
	font-size: 15px;
	line-height: 1.5;
	color: #797984;
	margin: 0;
}

.efv-step-num {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #4875FF;
	color: #FFFFFF;
	font-size: 20px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
}

/* ===== Responsive ===== */

@media (max-width: 640px) {
	.efv-card {
		padding: 20px;
	}

	.efv-form {
		flex-direction: column;
	}

	.efv-btn {
		width: 100%;
	}

	.efv-result-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.efv-seo-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.efv-hero-title {
		font-size: 24px;
	}
}
