/* Moodfex Solar Return Calculator — matches the mfx-* design language. */
.mfx-sr {
	--sr-bg: #ffffff;
	--sr-soft: #edf2e9;
	--sr-text: #20241f;
	--sr-muted: #687066;
	--sr-green: #52644d;
	--sr-green-dark: #34412f;
	--sr-gold: #aa8f58;
	--sr-line: #e1e6dd;
	width: 100%;
	max-width: 720px;
	margin: 0 auto;
	color: var(--sr-text);
	font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
	line-height: 1.6;
}
.mfx-sr *, .mfx-sr *::before, .mfx-sr *::after { box-sizing: border-box; }
.mfx-sr [hidden] { display: none !important; }
.mfx-sr__card {
	background: var(--sr-bg);
	border: 1px solid var(--sr-line);
	border-radius: 20px;
	padding: 28px;
	box-shadow: 0 12px 32px rgba(40, 50, 38, 0.06);
}
.mfx-sr__title {
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 500;
	font-size: clamp(1.5rem, 3.5vw, 2rem);
	line-height: 1.2;
	margin: 0 0 8px;
}
.mfx-sr__lead { margin: 0 0 22px; color: var(--sr-muted); font-size: 1.02rem; }
.mfx-sr__field { margin-bottom: 16px; min-width: 0; }
.mfx-sr__row { display: flex; gap: 14px; }
.mfx-sr__row .mfx-sr__field { flex: 1 1 0; }
.mfx-sr__label { display: block; font-weight: 700; font-size: 0.92rem; margin-bottom: 8px; }
.mfx-sr__opt { font-weight: 400; color: var(--sr-muted); }
.mfx-sr__input {
	display: block; width: 100%; min-width: 0; max-width: 100%;
	padding: 13px 15px; font-size: 16px; font-family: inherit; text-align: left;
	color: var(--sr-text); background: #fbfcfa; border: 1px solid #cad5c5; border-radius: 12px;
	-webkit-appearance: none; appearance: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.mfx-sr__input:focus { outline: none; border-color: var(--sr-green); box-shadow: 0 0 0 3px rgba(82, 100, 77, 0.18); }
.mfx-sr__input:disabled { opacity: 0.5; background: #f0f0ec; }
.mfx-sr__input::-webkit-date-and-time-value { text-align: left; margin: 0; }
select.mfx-sr__input { cursor: pointer; }
.mfx-sr__check {
	display: flex; align-items: center; gap: 9px; margin-top: 10px;
	font-size: 0.92rem; color: var(--sr-muted); cursor: pointer; min-height: 44px;
}
.mfx-sr__check input { width: 20px; height: 20px; accent-color: var(--sr-green); }
.mfx-sr__error { margin: 4px 0 0; min-height: 1.2em; color: #a8452f; font-size: 0.9rem; font-weight: 600; }
.mfx-sr__error:empty { min-height: 0; margin: 0; }
.mfx-sr__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 14px; }
.mfx-sr__btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 44px; padding: 13px 22px; font-size: 0.98rem; font-family: inherit;
	font-weight: 800; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.mfx-sr__btn:focus-visible { outline: 3px solid rgba(82, 100, 77, 0.45); outline-offset: 2px; }
.mfx-sr__btn:disabled { opacity: 0.6; cursor: default; }
.mfx-sr__btn--primary { background: var(--sr-green-dark); color: #ffffff; }
.mfx-sr__btn--primary:hover { background: #2a3527; }
.mfx-sr__btn--ghost { background: #ffffff; color: var(--sr-green-dark); border-color: #cad5c5; }
.mfx-sr__btn--ghost:hover { background: var(--sr-soft); }
.mfx-sr__privacy { margin: 0; font-size: 0.84rem; color: var(--sr-muted); }

/* ---- Result ---- */
.mfx-sr__result { margin-top: 24px; text-align: center; }
.mfx-sr__result-title {
	margin: 0 0 6px; font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.3rem, 3vw, 1.7rem); line-height: 1.25;
}
.mfx-sr__meta-line { margin: 0 0 6px; font-size: 0.92rem; color: var(--sr-muted); }
.mfx-sr__preview { width: 100%; max-width: 340px; margin: 18px auto 0; }
.mfx-sr__preview-loading {
	display: flex; align-items: center; justify-content: center; aspect-ratio: 9 / 16;
	border: 1px solid var(--sr-line); border-radius: 18px; background: var(--sr-soft);
	color: var(--sr-muted); font-size: 0.92rem;
}
.mfx-sr__card-img {
	display: block; width: 100%; height: auto; border-radius: 18px;
	border: 1px solid var(--sr-line); box-shadow: 0 14px 36px rgba(40, 50, 38, 0.12);
}
.mfx-sr__share { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 18px; }
.mfx-sr__share .mfx-sr__btn { min-width: 180px; }
.mfx-sr__share-status { flex-basis: 100%; margin: 4px 0 0; min-height: 1.1em; font-size: 0.88rem; color: var(--sr-muted); }
.mfx-sr__share-status:empty { min-height: 0; }

.mfx-sr--embedded { max-width: none; }
.mfx-sr--embedded .mfx-sr__card { padding: 0; border: 0; border-radius: 0; box-shadow: none; background: none; }
.mfx-sr--embedded .mfx-sr__title { display: none; }

@media ( max-width: 800px ) {
	.mfx-grid { grid-template-columns: 1fr !important; }
	.mfx-grid > .mfx-box { min-width: 0 !important; max-width: 100% !important; width: auto !important; }
}
@media ( max-width: 600px ) {
	.mfx-sr__card { padding: 20px; }
	.mfx-sr--embedded .mfx-sr__card { padding: 0; }
	.mfx-sr__row { flex-direction: column; gap: 0; }
	.mfx-sr__btn { width: 100%; }
}
@media ( prefers-reduced-motion: reduce ) {
	.mfx-sr *, .mfx-sr *::before, .mfx-sr *::after { transition: none !important; }
}
