/* Emma Website Check
 * Colours are variables: override them in Elementor → Site Settings → Custom CSS, e.g.
 * .ewc { --ewc-accent: #F2B705; --ewc-ink: #1F2A1D; }
 * Fonts inherit from your theme so headings and text match the rest of the site.
 */
.ewc {
	--ewc-ink: #1F2A1D;
	--ewc-muted: #5F6656;
	--ewc-bg: #FBF7EE;
	--ewc-card: #FFFFFF;
	--ewc-line: #E7E0CF;
	--ewc-accent: #F2B705;
	--ewc-accent-soft: #FFF4CC;
	--ewc-bad: #B3402C;
	--ewc-warn: #B87900;
	--ewc-good: #2F7A4B;
	--ewc-radius: 18px;

	box-sizing: border-box;
	max-width: 760px;
	margin: 0 auto;
	padding: clamp(24px, 5vw, 48px);
	background: var(--ewc-bg);
	border-radius: var(--ewc-radius);
	color: var(--ewc-ink);
	font-family: inherit;
	line-height: 1.55;
	text-align: left;
}
.ewc *, .ewc *::before, .ewc *::after { box-sizing: inherit; }

.ewc-eyebrow {
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ewc-muted);
}
.ewc h2.ewc-title {
	margin: 0 0 10px;
	font-size: clamp(28px, 4.5vw, 40px);
	line-height: 1.15;
	color: var(--ewc-ink);
}
.ewc-lead { margin: 0 0 28px; font-size: 18px; color: var(--ewc-muted); max-width: 560px; }

/* Form */
.ewc-form { display: grid; gap: 12px; }
.ewc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ewc-field label { display: block; font-size: 14px; font-weight: 600; margin: 0 0 6px; }
.ewc-field input {
	width: 100%;
	height: 52px;
	padding: 0 16px;
	font: inherit;
	font-size: 17px;
	color: var(--ewc-ink);
	background: var(--ewc-card);
	border: 1.5px solid var(--ewc-line);
	border-radius: 12px;
	outline: none;
	transition: border-color .15s, box-shadow .15s;
}
.ewc-field input:focus { border-color: var(--ewc-ink); box-shadow: 0 0 0 4px rgba(242, 183, 5, .35); }
.ewc-field input[aria-invalid="true"] { border-color: var(--ewc-bad); }
.ewc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.ewc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 54px;
	padding: 0 28px;
	font: inherit;
	font-size: 17px;
	font-weight: 700;
	color: var(--ewc-ink);
	background: var(--ewc-accent);
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	text-decoration: none;
	transition: transform .1s, filter .15s;
}
.ewc-btn:hover { filter: brightness(.95); color: var(--ewc-ink); }
.ewc-btn:active { transform: translateY(1px); }
.ewc-btn:focus-visible { outline: 3px solid var(--ewc-ink); outline-offset: 3px; }
.ewc-btn--dark { background: var(--ewc-ink); color: #fff; }
.ewc-btn--dark:hover { color: #fff; }
.ewc-submit { justify-self: start; margin-top: 4px; }

.ewc-fine { margin: 4px 0 0; font-size: 13px; color: var(--ewc-muted); }
.ewc-fine a { color: inherit; }
.ewc-error {
	margin: 0;
	padding: 12px 16px;
	border-radius: 12px;
	background: #FBE9E5;
	color: var(--ewc-bad);
	font-size: 15px;
}
.ewc-trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 24px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--ewc-muted); }
.ewc-trust li::before { content: "✓ "; color: var(--ewc-good); font-weight: 700; }

/* Loading */
.ewc-loading { text-align: center; padding: 24px 0; }
.ewc-flower { width: 72px; height: 72px; margin: 0 auto 20px; animation: ewc-spin 6s linear infinite; }
@keyframes ewc-spin { to { transform: rotate(360deg); } }
.ewc-step { min-height: 1.6em; margin: 0 0 18px; font-size: 18px; }
.ewc-bar { height: 8px; max-width: 360px; margin: 0 auto; background: var(--ewc-line); border-radius: 99px; overflow: hidden; }
.ewc-bar span { display: block; height: 100%; width: 0; background: var(--ewc-accent); border-radius: inherit; transition: width .6s ease; }
.ewc-wait { margin: 14px 0 0; font-size: 14px; color: var(--ewc-muted); }

/* Result */
.ewc-head { display: flex; align-items: center; gap: 24px; margin: 0 0 28px; }
.ewc-ring { flex: 0 0 auto; width: 120px; height: 120px; position: relative; }
.ewc-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ewc-ring .track { stroke: var(--ewc-line); }
.ewc-ring .arc { transition: stroke-dashoffset 1.2s ease; }
.ewc-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; line-height: 1; }
.ewc-ring b small { display: block; font-size: 13px; font-weight: 400; color: var(--ewc-muted); margin-top: 4px; text-align: center; }
.ewc-grade { margin: 0 0 4px; font-size: clamp(24px, 4vw, 32px); line-height: 1.2; }
.ewc-site { margin: 0; color: var(--ewc-muted); word-break: break-all; }

.ewc-findings { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 10px; }
.ewc-finding {
	display: grid;
	grid-template-columns: 28px 1fr;
	gap: 12px;
	padding: 16px 18px;
	background: var(--ewc-card);
	border: 1px solid var(--ewc-line);
	border-radius: 14px;
}
.ewc-icon { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 15px; font-weight: 700; }
.ewc-finding--bad .ewc-icon { background: var(--ewc-bad); }
.ewc-finding--warn .ewc-icon { background: var(--ewc-warn); }
.ewc-finding--good .ewc-icon { background: var(--ewc-good); }
.ewc-finding strong { display: block; font-size: 17px; margin-bottom: 2px; }
.ewc-finding p { margin: 0; color: var(--ewc-muted); font-size: 15px; }

.ewc-offer { padding: clamp(20px, 4vw, 28px); background: var(--ewc-accent-soft); border-radius: 16px; }
.ewc-offer h3 { margin: 0 0 6px; font-size: 22px; line-height: 1.25; color: var(--ewc-ink); }
.ewc-price { display: inline-block; margin-left: 6px; padding: 2px 10px; font-size: 15px; font-weight: 700; background: var(--ewc-card); border-radius: 99px; vertical-align: middle; }
.ewc-offer p { margin: 0 0 18px; font-size: 16px; }
.ewc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.ewc-link { color: var(--ewc-ink); font-weight: 600; }
.ewc-terms { margin: 14px 0 0 !important; font-size: 14px !important; color: var(--ewc-muted); }

.ewc-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 22px; font-size: 14px; color: var(--ewc-muted); }
.ewc-again { background: none; border: 0; padding: 0; font: inherit; color: var(--ewc-ink); text-decoration: underline; cursor: pointer; }

@media (max-width: 600px) {
	.ewc-row { grid-template-columns: 1fr; }
	.ewc-submit { width: 100%; }
	.ewc-head { gap: 16px; }
	.ewc-ring { width: 96px; height: 96px; }
	.ewc-ring b { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
	.ewc-flower, .ewc-ring .arc, .ewc-bar span { animation: none; transition: none; }
}

/* v2 — the acknowledgement view, shown instead of an instant report. */
.ewc-ack {
	background: var(--ewc-card, #fff);
	border: 1px solid rgba(42, 36, 26, .12);
	border-left: 4px solid var(--ewc-accent, #E0A32E);
	border-radius: 12px;
	padding: 26px 28px;
	margin-top: 6px;
}
.ewc-ack .ewc-grade { margin: 0 0 14px; }

/* 2.0.9: the result heading must stay inside the card, whatever the address length or screen.
   Many WordPress themes (Elementor's kit among them) size every h2 with a selector that beats
   ".ewc-grade", which made this heading about 60px and pushed a long address out of the card.
   "h2.ewc-grade" inside ".ewc" is stronger than ".elementor-kit-N h2", so the size below applies. */
.ewc h2.ewc-grade {
	font-size: clamp(24px, 4.6vw, 36px);
	line-height: 1.18;
	max-width: 100%;
	overflow-wrap: anywhere;
	hyphens: none;
}
.ewc h2.ewc-grade .ewc-host {
	display: block;
	margin-top: 4px;
	font-size: .8em;
	line-height: 1.2;
	max-width: 100%;
	overflow-wrap: anywhere;
	word-break: break-word;
}
.ewc .ewc-ack { min-width: 0; max-width: 100%; box-sizing: border-box; }
.ewc .ewc-ack > * { min-width: 0; max-width: 100%; }
@media (max-width: 600px) {
	.ewc-ack { padding: 20px 18px; }
	.ewc h2.ewc-grade { font-size: clamp(22px, 6.4vw, 28px); }
}
.ewc-ack .ewc-lead { margin: 0 0 10px; }
.ewc-ack .ewc-fine { margin: 0; }
.ewc-headline {
	margin: 0 0 16px;
	padding: 14px 16px;
	background: rgba(224, 163, 46, .13);
	border-radius: 8px;
	font-size: 1.02rem;
	line-height: 1.55;
}
