/* Zemen Jobs Salary Calculator — front-end styles
   Design: a two-pane "payslip desk". Left = plain input note.
   Right = a payslip receipt card that fills in and gets a verification
   seal once calculated. Numbers set in a monospace ledger face. */

.zsc-widget {
	--zsc-primary: #0E6B4F;
	--zsc-primary-dark: #0A4E39;
	--zsc-gold: #D4A73B;
	--zsc-clay: #B5452F;
	--zsc-paper: #FBF7EE;
	--zsc-ink: #1B2420;
	--zsc-ink-soft: #5B665F;
	--zsc-line: #E4DCC8;

	box-sizing: border-box;
	max-width: 880px;
	margin: 0 auto;
	color: var(--zsc-ink);
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: 16px;
	line-height: 1.5;
}
.zsc-widget *, .zsc-widget *::before, .zsc-widget *::after { box-sizing: border-box; }

.zsc-card {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	background: var(--zsc-primary-dark);
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 20px 50px -20px rgba(10, 40, 30, 0.45);
}

/* ---------- Input pane ---------- */
.zsc-input-pane {
	padding: 36px 32px;
	background: linear-gradient(155deg, var(--zsc-primary) 0%, var(--zsc-primary-dark) 100%);
	color: #F3F7F1;
}
.zsc-eyebrow {
	margin: 0 0 6px;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--zsc-gold);
}
.zsc-title {
	margin: 0 0 8px;
	font-family: 'Fraunces', Georgia, serif;
	font-size: 30px;
	font-weight: 600;
	line-height: 1.15;
	color: #fff;
}
.zsc-subtitle {
	margin: 0 0 26px;
	font-size: 14.5px;
	color: rgba(243, 247, 241, 0.78);
	max-width: 34ch;
}
.zsc-field-label {
	display: block;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: rgba(243, 247, 241, 0.7);
	margin: 18px 0 8px;
}
.zsc-input-wrap {
	display: flex;
	align-items: stretch;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.22);
	overflow: hidden;
	transition: border-color 0.15s ease, background 0.15s ease;
}
.zsc-input-wrap:focus-within {
	border-color: var(--zsc-gold);
	background: rgba(255, 255, 255, 0.12);
}
.zsc-input-prefix {
	display: flex;
	align-items: center;
	padding: 0 12px;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 14px;
	color: rgba(243, 247, 241, 0.6);
	border-right: 1px solid rgba(255, 255, 255, 0.15);
}
.zsc-gross-input {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	padding: 14px 14px;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 19px;
	color: #fff;
	outline: none;
}
.zsc-gross-input::placeholder { color: rgba(243, 247, 241, 0.35); }

.zsc-select-wrap { position: relative; }
.zsc-scheme-select {
	width: 100%;
	appearance: none;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.22);
	color: #fff;
	padding: 12px 36px 12px 14px;
	font-size: 14.5px;
	font-family: inherit;
	cursor: pointer;
}
.zsc-select-wrap::after {
	content: "";
	position: absolute;
	right: 14px; top: 50%;
	width: 8px; height: 8px;
	border-right: 2px solid rgba(243, 247, 241, 0.7);
	border-bottom: 2px solid rgba(243, 247, 241, 0.7);
	transform: translateY(-70%) rotate(45deg);
	pointer-events: none;
}
.zsc-scheme-select:focus { outline: 2px solid var(--zsc-gold); outline-offset: 2px; }

.zsc-calculate-btn {
	width: 100%;
	margin-top: 26px;
	padding: 14px 18px;
	border: none;
	border-radius: 12px;
	background: var(--zsc-gold);
	color: #2A1F05;
	font-family: 'Inter', sans-serif;
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0.01em;
	cursor: pointer;
	transition: transform 0.12s ease, filter 0.12s ease;
}
.zsc-calculate-btn:hover { filter: brightness(1.06); }
.zsc-calculate-btn:active { transform: translateY(1px); }
.zsc-calculate-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.zsc-error {
	margin: 12px 0 0;
	font-size: 13.5px;
	color: #FFD9CF;
}

/* ---------- Payslip pane ---------- */
.zsc-payslip-pane {
	padding: 30px;
	background: #EFE9D8;
	display: flex;
}
.zsc-payslip {
	position: relative;
	width: 100%;
	background: var(--zsc-paper);
	border-radius: 14px;
	padding: 28px 26px;
	box-shadow: 0 1px 0 rgba(0,0,0,0.03), 0 10px 24px -16px rgba(30, 30, 20, 0.4);
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 320px;
}

.zsc-payslip-empty {
	margin: auto;
	text-align: center;
	color: var(--zsc-ink-soft);
}
.zsc-empty-icon { width: 44px; height: 44px; margin-bottom: 10px; opacity: 0.5; }
.zsc-payslip-empty p { margin: 0; font-size: 14px; }

.zsc-payslip-result { position: relative; }

.zsc-payslip-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding-bottom: 14px;
	margin-bottom: 14px;
	border-bottom: 1px dashed var(--zsc-line);
	font-family: 'Fraunces', Georgia, serif;
	font-weight: 600;
	font-size: 18px;
	color: var(--zsc-ink);
}
.zsc-payslip-period {
	font-family: 'Inter', sans-serif;
	font-weight: 500;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--zsc-ink-soft);
}

.zsc-line-items { margin: 0; }
.zsc-line {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 7px 0;
	font-size: 14.5px;
}
.zsc-line dt { margin: 0; color: var(--zsc-ink-soft); font-weight: 400; }
.zsc-line dd { margin: 0; font-family: 'IBM Plex Mono', monospace; font-size: 14.5px; }
.zsc-line--pension dd { color: var(--zsc-ink-soft); }
.zsc-line--tax dd { color: var(--zsc-clay); }

.zsc-net-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-top: 14px;
	padding-top: 16px;
	border-top: 2px solid var(--zsc-gold);
}
.zsc-net-label {
	font-family: 'Fraunces', Georgia, serif;
	font-weight: 600;
	font-size: 15px;
	color: var(--zsc-ink);
}
.zsc-net-value {
	font-family: 'IBM Plex Mono', monospace;
	font-weight: 600;
	font-size: 27px;
	color: var(--zsc-primary-dark);
}
.zsc-effective-rate {
	margin: 8px 0 0;
	font-size: 12.5px;
	color: var(--zsc-ink-soft);
}
.zsc-effective-rate span { font-family: 'IBM Plex Mono', monospace; color: var(--zsc-ink); }

/* Verification stamp */
.zsc-stamp {
	position: absolute;
	right: -6px;
	bottom: -6px;
	width: 92px;
	height: 92px;
	color: var(--zsc-clay);
	opacity: 0.9;
	transform: rotate(-14deg) scale(0.4);
	animation: zsc-stamp-in 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) 0.15s forwards;
}
.zsc-stamp svg { width: 100%; height: 100%; }
@keyframes zsc-stamp-in {
	0% { opacity: 0; transform: rotate(-14deg) scale(0.3); }
	60% { opacity: 0.95; transform: rotate(-14deg) scale(1.08); }
	100% { opacity: 0.9; transform: rotate(-14deg) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
	.zsc-stamp { animation: none; opacity: 0.9; transform: rotate(-14deg) scale(1); }
}

/* ---------- Below-card content ---------- */
.zsc-disclaimer {
	margin: 16px 4px 0;
	font-size: 12px;
	color: var(--zsc-ink-soft, #6b7280);
	opacity: 0.85;
}
.zsc-info-block {
	margin: 18px 4px 0;
	padding: 16px 18px;
	background: #F6F2E6;
	border: 1px solid var(--zsc-line);
	border-radius: 12px;
}
.zsc-info-block summary {
	cursor: pointer;
	font-weight: 600;
	font-family: 'Fraunces', Georgia, serif;
	font-size: 16px;
}
.zsc-info-block p { margin: 10px 0 0; font-size: 14px; color: var(--zsc-ink-soft, #444); }

.zsc-cta {
	display: inline-block;
	margin: 20px 4px 0;
	padding: 12px 22px;
	border-radius: 999px;
	background: var(--zsc-primary);
	color: #fff !important;
	text-decoration: none !important;
	font-weight: 600;
	font-size: 14.5px;
	transition: filter 0.12s ease;
}
.zsc-cta:hover { filter: brightness(1.08); }
.zsc-cta:focus-visible { outline: 2px solid var(--zsc-primary-dark); outline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
	.zsc-card { grid-template-columns: 1fr; }
	.zsc-input-pane { padding: 26px 22px; }
	.zsc-title { font-size: 25px; }
	.zsc-payslip-pane { padding: 22px; }
	.zsc-net-value { font-size: 24px; }
}
