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

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

/* The HTML [hidden] attribute must win over the widget's display rules. */
.mfx-bc [hidden] {
	display: none !important;
}

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

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

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

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

.mfx-bc__row .mfx-bc__field {
	flex: 1 1 0;
}

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

.mfx-bc__opt {
	font-weight: 400;
	color: var(--bc-muted);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

.mfx-bc__btn--ghost:hover {
	background: var(--bc-soft);
}

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

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

.mfx-bc__timenote {
	margin: 0 auto 16px;
	max-width: 460px;
	padding: 10px 14px;
	font-size: 0.88rem;
	color: var(--bc-green-dark);
	background: var(--bc-soft);
	border-radius: 12px;
}

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

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

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

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

.mfx-bc__share .mfx-bc__btn {
	min-width: 180px;
}

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

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

/* ---- Embedded into the page's calculator box ---- */
.mfx-calculator.mfx-calc-hydrated {
	min-height: 0;
	padding: 0;
	border: 0;
	background: none;
	display: block;
	place-items: initial;
	text-align: left;
}

.mfx-bc--embedded {
	max-width: none;
}

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

.mfx-bc--embedded .mfx-bc__title {
	display: none;
}

/* ---- Fix the page's calculator grid overflow on tablet/mobile ---- */
@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-bc__card {
		padding: 20px;
	}
	.mfx-bc--embedded .mfx-bc__card {
		padding: 0;
	}
	.mfx-bc__row {
		flex-direction: column;
		gap: 0;
	}
	.mfx-bc__btn {
		width: 100%;
	}
}

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