/* Lawn Instant Quote — self-contained widget styles.
 * Themeable: operators override the variables below in their own CSS.
 * Palette is drawn from the subject: turf green + the fresh-cut
 * chartreuse used for the trace polygon on the map. */

#liq-widget.liq {
	--liq-ink: #14231a;        /* deep turf, near-black green */
	--liq-green: #1e6b3c;      /* mower-deck green */
	--liq-cut: #c8e948;        /* fresh-cut chartreuse accent */
	--liq-bg: #ffffff;
	--liq-line: #dde5dd;
	--liq-radius: 10px;

	max-width: 480px;
	margin: 0 auto;
	background: var(--liq-bg);
	color: var(--liq-ink);
	border: 1px solid var(--liq-line);
	border-radius: var(--liq-radius);
	padding: 20px;
	font-family: inherit;
	line-height: 1.45;
	box-sizing: border-box;
}
#liq-widget.liq *, #liq-widget.liq *::before, #liq-widget.liq *::after { box-sizing: border-box; }

.liq-head { margin-bottom: 14px; }
.liq-kicker {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--liq-green);
	background: color-mix(in srgb, var(--liq-cut) 30%, transparent);
	padding: 3px 8px;
	border-radius: 999px;
	margin-bottom: 6px;
}
.liq-title { margin: 0; font-size: 1.35rem; line-height: 1.2; }

.liq-label { display: block; font-size: 0.85rem; font-weight: 600; margin: 12px 0 4px; }
.liq-input {
	width: 100%;
	padding: 11px 12px;
	border: 1px solid var(--liq-line);
	border-radius: 8px;
	font-size: 1rem;
	background: #fff;
	color: var(--liq-ink);
}
.liq-input:focus { outline: 2px solid var(--liq-green); outline-offset: 1px; }

.liq-row { display: flex; gap: 8px; }
.liq-row .liq-input { flex: 1; }

.liq-btn {
	background: var(--liq-green);
	color: #fff;
	border: 0;
	border-radius: 8px;
	padding: 11px 16px;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
}
.liq-btn:hover { filter: brightness(1.08); }
.liq-btn:focus-visible { outline: 2px solid var(--liq-ink); outline-offset: 2px; }
.liq-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.liq-btn-wide { width: 100%; margin-top: 12px; }

.liq-btn-ghost {
	background: none;
	border: 0;
	color: var(--liq-green);
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
	padding: 4px 6px;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.liq-hint { font-size: 0.8rem; color: #5a6a5e; margin: 8px 0 0; }
.liq-instruct { font-size: 0.9rem; margin: 0 0 8px; }

.liq-map {
	width: 100%;
	height: 320px;
	border-radius: 8px;
	border: 1px solid var(--liq-line);
	overflow: hidden;
	touch-action: manipulation;
}

.liq-trace-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
}
.liq-sqft { font-size: 0.95rem; }
.liq-sqft strong { font-size: 1.1rem; color: var(--liq-green); }

.liq-freq { display: flex; gap: 6px; margin-bottom: 12px; }
.liq-freq-opt {
	flex: 1;
	padding: 9px 4px;
	border: 1px solid var(--liq-line);
	border-radius: 8px;
	background: #fff;
	color: var(--liq-ink);
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
}
.liq-freq-opt.is-active {
	border-color: var(--liq-green);
	background: var(--liq-green);
	color: #fff;
}

/* The signature moment: the price reveal. Chartreuse underline
 * echoes the polygon the customer just drew. */
.liq-price-card { text-align: center; padding: 18px 0 14px; }
.liq-price {
	font-size: 3rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1;
	display: inline-block;
	background-image: linear-gradient(var(--liq-cut), var(--liq-cut));
	background-repeat: no-repeat;
	background-size: 100% 0.28em;
	background-position: 0 88%;
	padding: 0 4px;
}
.liq-price-per { font-size: 0.85rem; color: #5a6a5e; margin-top: 6px; }

.liq-card-box {
	border: 1px solid var(--liq-line);
	border-radius: 8px;
	padding: 12px;
	background: #fff;
}

.liq-error {
	color: #a1231b;
	font-size: 0.85rem;
	background: #fdeceb;
	border-radius: 6px;
	padding: 8px 10px;
	margin: 10px 0 0;
}

.liq-done { text-align: center; padding: 10px 0; }

@media (max-width: 420px) {
	#liq-widget.liq { padding: 14px; }
	.liq-row { flex-direction: column; }
	.liq-map { height: 280px; }
	.liq-price { font-size: 2.4rem; }
}

@media (prefers-reduced-motion: no-preference) {
	.liq-step { animation: liq-fade 0.25s ease; }
	@keyframes liq-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}

.liq-consent {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	font-size: 0.82rem;
	line-height: 1.4;
	margin-top: 12px;
	color: var(--liq-ink);
	cursor: pointer;
}
.liq-consent input { margin-top: 2px; flex-shrink: 0; }

.liq-conditions { margin-bottom: 14px; }
.liq-check {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	font-size: 0.9rem;
	margin: 6px 0;
	cursor: pointer;
}
.liq-check input { margin-top: 3px; flex-shrink: 0; }
.liq-gate-q { margin-left: 22px; }

.liq-gate-block {
	background: #fdf6e3;
	border-left: 3px solid #d9a514;
	padding: 8px 10px;
	border-radius: 0 6px 6px 0;
}

.liq-parcel-banner {
	background: color-mix(in srgb, var(--liq-cut) 18%, #fff);
	border: 1px solid var(--liq-green);
	border-radius: 8px;
	padding: 12px;
	margin-bottom: 10px;
}
.liq-parcel-text { margin: 0 0 10px; font-size: 0.9rem; }

/* hidden attribute must always win over display rules */
#liq-widget [hidden] { display: none !important; }
