/* Moodfex Natal Retrograde Planet Checker — matches the mfx-* design language. */
.mfx-dn {
	--dn-bg: #ffffff;
	--dn-soft: #edf2e9;
	--dn-text: #20241f;
	--dn-muted: #687066;
	--dn-green: #52644d;
	--dn-green-dark: #34412f;
	--dn-gold: #aa8f58;
	--dn-line: #e1e6dd;
	width: 100%;
	max-width: 720px;
	margin: 0 auto;
	color: var(--dn-text);
	font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
	line-height: 1.6;
}

.mfx-dn *,
.mfx-dn *::before,
.mfx-dn *::after {
	box-sizing: border-box;
}

.mfx-dn [hidden] {
	display: none !important;
}

.mfx-dn__card {
	background: var(--dn-bg);
	border: 1px solid var(--dn-line);
	border-radius: 20px;
	padding: 28px;
	box-shadow: 0 12px 32px rgba(40, 50, 38, 0.06);
}

.mfx-dn__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-dn__lead {
	margin: 0 0 22px;
	color: var(--dn-muted);
	font-size: 1.02rem;
}

.mfx-dn__field {
	margin-bottom: 16px;
	min-width: 0;
}

.mfx-dn__row {
	display: flex;
	gap: 14px;
}

.mfx-dn__row .mfx-dn__field {
	flex: 1 1 0;
}

.mfx-dn__label {
	display: block;
	font-weight: 700;
	font-size: 0.92rem;
	margin-bottom: 8px;
}

.mfx-dn__opt {
	font-weight: 400;
	color: var(--dn-muted);
}

.mfx-dn__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(--dn-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-dn__input:focus {
	outline: none;
	border-color: var(--dn-green);
	box-shadow: 0 0 0 3px rgba(82, 100, 77, 0.18);
}

.mfx-dn__input:disabled {
	opacity: 0.5;
	background: #f0f0ec;
}

.mfx-dn__input::-webkit-date-and-time-value {
	text-align: left;
	margin: 0;
}

.mfx-dn__check {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-top: 10px;
	font-size: 0.92rem;
	color: var(--dn-muted);
	cursor: pointer;
	min-height: 44px;
}

.mfx-dn__check input {
	width: 20px;
	height: 20px;
	accent-color: var(--dn-green);
}

.mfx-dn__error {
	margin: 4px 0 0;
	min-height: 1.2em;
	color: #a8452f;
	font-size: 0.9rem;
	font-weight: 600;
}

.mfx-dn__error:empty {
	min-height: 0;
	margin: 0;
}

.mfx-dn__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 18px 0 14px;
}

.mfx-dn__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-dn__btn:focus-visible {
	outline: 3px solid rgba(82, 100, 77, 0.45);
	outline-offset: 2px;
}

.mfx-dn__btn:disabled {
	opacity: 0.6;
	cursor: default;
}

.mfx-dn__btn--primary {
	background: var(--dn-green-dark);
	color: #ffffff;
}

.mfx-dn__btn--primary:hover {
	background: #2a3527;
}

.mfx-dn__btn--ghost {
	background: #ffffff;
	color: var(--dn-green-dark);
	border-color: #cad5c5;
}

.mfx-dn__btn--ghost:hover {
	background: var(--dn-soft);
}

.mfx-dn__privacy {
	margin: 0;
	font-size: 0.84rem;
	color: var(--dn-muted);
}

/* ---- Result ---- */
.mfx-dn__result {
	margin-top: 24px;
	text-align: center;
}

.mfx-dn__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-dn__note {
	margin: 0 0 10px;
	font-size: 0.86rem;
	font-style: italic;
	color: var(--dn-muted);
}

.mfx-dn__hint {
	margin: 6px 0 0;
	font-size: 0.84rem;
	color: var(--dn-muted);
}

.mfx-dn__details {
	margin: 16px 0 0;
	text-align: left;
	border: 1px solid var(--dn-line);
	border-radius: 12px;
	padding: 4px 16px;
	background: var(--dn-soft);
}

.mfx-dn__details summary {
	cursor: pointer;
	font-weight: 700;
	padding: 12px 0;
	min-height: 44px;
	display: flex;
	align-items: center;
}

.mfx-dn__breakdown {
	padding: 4px 0 16px;
	font-size: 0.9rem;
	color: var(--dn-text);
	line-height: 1.7;
}

.mfx-dn__breakdown div {
	margin-bottom: 4px;
}

.mfx-dn__list {
	margin: 14px 0 0;
	text-align: left;
}

.mfx-dn__list:empty {
	margin: 0;
}

.mfx-dn__list-item {
	padding: 12px 16px;
	margin-bottom: 10px;
	background: var(--dn-soft);
	border-radius: 12px;
	font-size: 0.94rem;
}

.mfx-dn__list-item strong {
	display: block;
	font-size: 1rem;
	margin-bottom: 2px;
}

.mfx-dn__preview {
	width: 100%;
	max-width: 340px;
	margin: 18px auto 0;
}

.mfx-dn__preview-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 9 / 16;
	border: 1px solid var(--dn-line);
	border-radius: 18px;
	background: var(--dn-soft);
	color: var(--dn-muted);
	font-size: 0.92rem;
}

.mfx-dn__card-img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 18px;
	border: 1px solid var(--dn-line);
	box-shadow: 0 14px 36px rgba(40, 50, 38, 0.12);
}

.mfx-dn__share {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 18px;
}

.mfx-dn__share .mfx-dn__btn {
	min-width: 180px;
}

.mfx-dn__share-status {
	flex-basis: 100%;
	margin: 4px 0 0;
	min-height: 1.1em;
	font-size: 0.88rem;
	color: var(--dn-muted);
}

.mfx-dn__share-status:empty {
	min-height: 0;
}

/* ---- Embedded into the page's calculator box ---- */
.mfx-dn--embedded {
	max-width: none;
}

.mfx-dn--embedded .mfx-dn__card {
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	background: none;
}

.mfx-dn--embedded .mfx-dn__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-dn__card {
		padding: 20px;
	}
	.mfx-dn--embedded .mfx-dn__card {
		padding: 0;
	}
	.mfx-dn__row {
		flex-direction: column;
		gap: 0;
	}
	.mfx-dn__btn {
		width: 100%;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.mfx-dn *,
	.mfx-dn *::before,
	.mfx-dn *::after {
		transition: none !important;
	}
}
