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

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

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

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

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

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

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

.mfx-ss__opt {
	font-weight: 400;
	color: var(--ss-muted);
}

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

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

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

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

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

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

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

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

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

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

.mfx-ss__btn--ghost:hover {
	background: var(--ss-soft);
}

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

.mfx-ss__note {
	margin: 0 0 20px;
	font-size: 0.84rem;
	color: var(--ss-muted);
}

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

.mfx-ss__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-ss__symbol {
	font-size: 3.2rem;
	line-height: 1;
	color: var(--ss-gold);
	margin: 6px 0 0;
}

.mfx-ss__sign {
	margin: 2px 0 0;
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 700;
	font-size: clamp(1.6rem, 4vw, 2.1rem);
}

.mfx-ss__hook {
	max-width: 520px;
	margin: 14px auto 0;
	font-style: italic;
	color: var(--ss-green-dark);
	font-size: 1rem;
}

.mfx-ss__meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 22px 0 0;
}

.mfx-ss__meta-item {
	flex: 1 1 140px;
	max-width: 180px;
	background: var(--ss-soft);
	border-radius: 14px;
	padding: 12px 10px;
}

.mfx-ss__meta-label {
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ss-gold);
}

.mfx-ss__meta-value {
	margin-top: 4px;
	font-weight: 700;
	font-size: 1rem;
	color: var(--ss-text);
}

.mfx-ss__themes {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 20px 0 0;
}

.mfx-ss__theme {
	display: inline-flex;
	align-items: center;
	padding: 6px 14px;
	border: 1px solid var(--ss-line);
	border-radius: 999px;
	font-size: 0.86rem;
	font-weight: 600;
	color: var(--ss-green-dark);
	background: #fff;
}

.mfx-ss__identity-row {
	margin-top: 18px;
	font-size: 0.92rem;
	color: var(--ss-muted);
}

.mfx-ss__identity {
	font-weight: 800;
	color: var(--ss-text);
}

.mfx-ss__range {
	margin-top: 6px;
	font-size: 0.82rem;
	color: var(--ss-muted);
}

.mfx-ss__preview {
	width: 100%;
	max-width: 300px;
	margin: 24px auto 0;
}

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

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

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

.mfx-ss__share .mfx-ss__btn {
	min-width: 180px;
}

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

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

/* ---- Embedded into the page's calculator box ---- */
.mfx-ss--embedded .mfx-ss__card {
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	background: none;
}

.mfx-ss--embedded .mfx-ss__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-ss__card {
		padding: 20px;
	}
	.mfx-ss--embedded .mfx-ss__card {
		padding: 0;
	}
	.mfx-ss__btn {
		width: 100%;
	}
	.mfx-ss__meta-item {
		flex: 1 1 100%;
		max-width: none;
	}
}

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