/* Maternity Leave Letter Generator — Compact App */

:root {
	--mll-primary: #8B7BB8;
	--mll-accent: #7BC8B8;
	--mll-text: #3D2F50;
	--mll-text-muted: #695A80;
}

/* Container */

.mll-container {
	max-width: 1100px;
	margin: -16px auto 32px;
	background: #fff;
	border-radius: 14px;
	position: relative;
	z-index: 1;
	box-shadow: 0 8px 32px rgba(61, 47, 80, 0.10);
	display: grid;
	grid-template-columns: 380px 1fr;
	overflow: hidden;
	min-height: 500px;
}

/* Form Panel */

.mll-form-panel {
	background: #faf9fc;
	border-right: 1px solid rgba(139, 123, 184, 0.08);
}

.mll-form-content {
	padding: 20px;
}

.mll-form-section {
	padding: 0 0 16px;
	margin: 0 0 16px;
	border-bottom: 1px solid rgba(139, 123, 184, 0.08);
}

.mll-form-section:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.mll-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--mll-text);
	margin: 8px 0 4px;
}

.mll-optional {
	font-weight: 400;
	color: var(--mll-text-muted);
	font-size: 12px;
}

.mll-input {
	display: block;
	width: 100%;
	padding: 9px 11px;
	border: 1.5px solid rgba(139, 123, 184, 0.12);
	border-radius: 6px;
	font-size: 16px;
	font-family: Nunito, sans-serif;
	color: var(--mll-text);
	background: #fff;
	transition: border-color 0.15s;
	box-sizing: border-box;
}

.mll-input:focus {
	outline: none;
	border-color: var(--mll-primary);
}

.mll-input::placeholder {
	color: #c4bdd4;
}

.mll-select {
	padding: 9px 11px;
	border: 1.5px solid rgba(139, 123, 184, 0.12);
	border-radius: 6px;
	font-size: 16px;
	font-family: Nunito, sans-serif;
	color: var(--mll-text);
	background: #fff;
	appearance: auto;
}

.mll-select:focus {
	outline: none;
	border-color: var(--mll-primary);
}

.mll-select-full {
	display: block;
	width: 100%;
}

.mll-date-row {
	display: flex;
	gap: 6px;
}

.mll-date-row .mll-select {
	flex: 1;
	min-width: 0;
}

/* Toggle pills */

.mll-toggle-row {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	margin-top: 2px;
}

.mll-toggle-option {
	cursor: pointer;
}

.mll-toggle-option input {
	display: none;
}

.mll-toggle-pill {
	display: inline-block;
	padding: 7px 14px;
	border-radius: 16px;
	border: 1.5px solid rgba(139, 123, 184, 0.12);
	font-size: 13px;
	font-weight: 600;
	color: var(--mll-text-muted);
	background: #fff;
	transition: all 0.15s;
}

.mll-toggle-option input:checked + .mll-toggle-pill {
	background: var(--mll-primary);
	color: #fff;
	border-color: var(--mll-primary);
}

/* Checkbox */

.mll-checkbox-label {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 12px 0 0;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	color: var(--mll-text);
}

.mll-checkbox-label input[type="checkbox"] {
	width: 16px;
	height: 16px;
	accent-color: var(--mll-primary);
}

/* Return date */

.mll-return-date {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 8px 0;
	padding: 8px 12px;
	background: #f0faf7;
	border-radius: 6px;
	border: 1px solid rgba(123, 200, 184, 0.25);
}

.mll-return-label {
	font-size: 12px;
	font-weight: 600;
	color: var(--mll-text-muted);
}

.mll-return-value {
	font-size: 13px;
	font-weight: 700;
	color: var(--mll-accent);
}

/* Preview Panel */

.mll-preview-panel {
	padding: 24px 28px;
}

.mll-preview-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
}

.mll-preview-actions {
	display: flex;
	gap: 8px;
}

.mll-copy-btn {
	padding: 8px 18px;
	border-radius: 20px;
	background: var(--mll-primary);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	border: none;
	cursor: pointer;
	font-family: Nunito, sans-serif;
	transition: all 0.15s;
}

.mll-copy-btn:hover {
	background: #7a69a8;
	transform: translateY(-1px);
}

.mll-copy-btn.mll-copied {
	background: var(--mll-accent);
}

.mll-print-btn {
	padding: 8px 18px;
	border-radius: 20px;
	background: #fff;
	color: var(--mll-text-muted);
	font-size: 13px;
	font-weight: 700;
	border: 1.5px solid rgba(139, 123, 184, 0.20);
	cursor: pointer;
	font-family: Nunito, sans-serif;
	transition: all 0.15s;
}

.mll-print-btn:hover {
	border-color: var(--mll-primary);
	color: var(--mll-primary);
}

.mll-preview-label {
	font-size: 11px;
	font-weight: 700;
	color: var(--mll-text-muted);
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 0;
	display: flex;
	align-items: center;
	gap: 6px;
}

.mll-preview-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--mll-accent);
}

.mll-preview-text {
	font-size: 14px;
	line-height: 1.9;
	color: var(--mll-text);
}

.mll-placeholder {
	color: #c4bdd4;
	font-style: italic;
}

/* Tips Section */

.mll-tips-section {
	max-width: 1100px;
	margin: 0 auto 32px;
	padding: 0 16px;
}

.mll-section-title {
	font-size: 14px;
	font-weight: 700;
	color: var(--mll-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin: 0 0 14px;
}

.mll-tips-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}

.mll-tip-card {
	background: #fff;
	border: 1.5px solid rgba(139, 123, 184, 0.10);
	border-radius: 14px;
	padding: 20px;
	text-align: center;
}

.mll-tip-icon {
	font-size: 28px;
	display: block;
	margin-bottom: 8px;
}

.mll-tip-title {
	font-size: 15px;
	font-weight: 700;
	color: var(--mll-text);
	margin: 0 0 6px;
}

.mll-tip-text {
	font-size: 14px;
	color: var(--mll-text-muted);
	line-height: 1.6;
	margin: 0;
}

/* CTA Section */

.mll-cta-section {
	max-width: 600px;
	margin: 0 auto 32px;
	padding: 28px 24px;
	text-align: center;
	background: #faf9fc;
	border-radius: 14px;
	border: 1.5px solid rgba(139, 123, 184, 0.12);
}

.mll-cta-heading {
	font-size: 18px;
	font-weight: 800;
	color: var(--mll-text);
	margin: 0 0 8px;
}

.mll-cta-text {
	font-size: 15px;
	color: var(--mll-text-muted);
	line-height: 1.5;
	margin: 0 0 16px;
}

.mll-cta-btn {
	display: inline-block;
	padding: 12px 32px;
	border-radius: 24px;
	background: linear-gradient(135deg, var(--mll-primary), #a48ed4);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	transition: transform 0.15s, box-shadow 0.15s;
}

.mll-cta-btn:hover {
	text-decoration: none;
	transform: translateY(-2px);
	box-shadow: 0 4px 16px rgba(139, 123, 184, 0.35);
}

.mll-cta-link {
	margin: 12px 0 0;
	font-size: 14px;
}

.mll-cta-link a {
	color: var(--mll-primary);
	font-weight: 600;
}

/* Mobile */

@media (max-width: 768px) {
	.mll-container {
		grid-template-columns: 1fr;
		margin-left: 16px;
		margin-right: 16px;
	}

	.mll-form-panel {
		border-right: none;
		border-bottom: 1px solid rgba(139, 123, 184, 0.08);
	}

	.mll-tips-grid {
		grid-template-columns: 1fr;
	}

	.mll-preview-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}
}

@media (max-width: 600px) {
	.mll-toggle-row {
		flex-direction: column;
	}

	.mll-toggle-pill {
		display: block;
		text-align: center;
	}
}

/* Print styles */
@media print {
	.sticky-nav-wrapper,
	.site-nav,
	.site-footer,
	.hero-stacked,
	.mll-form-panel,
	.mll-preview-header,
	.mll-tips-section,
	.mll-cta-section,
	.a1, .a2, .a3 {
		display: none !important;
	}

	.mll-container {
		display: block;
		box-shadow: none;
		border-radius: 0;
		margin: 0;
	}

	.mll-preview-panel {
		padding: 0;
	}
}
