/* =========================================================
   DUMAS / Pengaduan Masyarakat — aligned with survey/single
   ========================================================= */
.dm-page {
	--dm-ink: #1a2a20;
	--dm-muted: #667a6c;
	--dm-line: rgba(20, 60, 35, 0.08);
	--dm-soft: #eef5f0;
	--dm-mist: #f5faf6;
	--dm-card: rgba(255, 255, 255, 0.82);
	--dm-accent: #0e9e10;
	--dm-accent-deep: #0a6f0c;
	--dm-accent-mid: #12ba28;
	--dm-accent-soft: rgba(14, 158, 16, 0.1);
	--dm-radius: 22px;
	--dm-radius-sm: 14px;
	--dm-shadow: 0 18px 50px rgba(18, 48, 28, 0.07);
	--dm-font: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
	--dm-display: var(--font-display, 'Source Serif 4', Georgia, serif);
	--dm-header-offset: 142px;
	position: relative;
	isolation: isolate;
	font-family: var(--dm-font);
	color: var(--dm-ink);
	background: var(--dm-mist);
	padding-top: 0;
	padding-bottom: 4rem;
	min-height: 60vh;
	overflow: hidden;
}

.dm-page *,
.dm-page *::before,
.dm-page *::after {
	box-sizing: border-box;
}

.dm-atmosphere {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background:
		radial-gradient(ellipse 80% 50% at 10% 0%, rgba(14, 158, 16, 0.09), transparent 55%),
		radial-gradient(ellipse 60% 40% at 95% 15%, rgba(18, 186, 40, 0.06), transparent 50%),
		linear-gradient(180deg, #eaf4ec 0%, var(--dm-mist) 28%, #f8fbf9 100%);
}

.dm-atmosphere::after {
	content: '';
	position: absolute;
	inset: 0;
	opacity: 0.35;
	background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230e9e10' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.dm-page > *:not(.dm-atmosphere) {
	position: relative;
	z-index: 1;
}

.dm-top {
	padding: 1.15rem 0 0.35rem;
}

.dm-bc {
	margin-bottom: 1.25rem;
	width: 100%;
}

.dm-bc-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 0.15rem;
	list-style: none;
	margin: 0;
	padding: 0.7rem 1.15rem;
	background: rgba(255, 255, 255, 0.62);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.75);
	border-radius: 16px;
	width: 100%;
	box-shadow: 0 6px 24px rgba(18, 48, 28, 0.045);
}

.dm-bc-item {
	display: inline-flex;
	align-items: center;
	font-size: 0.82rem;
	line-height: 1.4;
	color: var(--dm-muted);
	min-width: 0;
}

.dm-bc-item:not(:last-child)::after {
	content: '';
	width: 3px;
	height: 3px;
	margin: 0 0.6rem;
	border-radius: 50%;
	background: rgba(14, 158, 16, 0.35);
	flex-shrink: 0;
}

.dm-bc-item a {
	color: var(--dm-muted);
	text-decoration: none;
	font-weight: 500;
	transition: color 0.2s ease;
}

.dm-bc-item a:hover {
	color: var(--dm-accent);
}

.dm-bc-item.is-current {
	flex: 1 1 auto;
	min-width: 0;
}

.dm-bc-item.is-current span {
	display: block;
	width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--dm-ink);
	font-weight: 600;
}

.dm-lede {
	width: 100%;
	padding-bottom: 1.65rem;
	animation: dmRise 0.55s ease both;
}

.dm-eyebrow {
	display: inline-block;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--dm-accent-deep);
	margin-bottom: 0.85rem;
}

.dm-title {
	font-family: var(--dm-display);
	font-size: clamp(1.85rem, 3.4vw, 2.85rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.18;
	color: var(--dm-ink);
	margin: 0 0 0.85rem;
}

.dm-deck {
	font-size: 1.05rem;
	line-height: 1.7;
	color: var(--dm-muted);
	margin: 0 0 1.25rem;
	width: 100%;
}

.dm-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.dm-meta-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.4rem 0.8rem;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 500;
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid rgba(255, 255, 255, 0.9);
	color: var(--dm-muted);
	box-shadow: 0 2px 10px rgba(18, 48, 28, 0.03);
}

.dm-meta-chip i {
	color: var(--dm-accent);
	font-size: 0.82rem;
}

.dm-shell {
	padding-top: 0;
}

.dm-layout {
	align-items: flex-start;
}

.dm-main {
	background: var(--dm-card);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border: 1px solid rgba(255, 255, 255, 0.85);
	border-radius: var(--dm-radius);
	box-shadow: var(--dm-shadow);
	padding: 1.4rem 1.35rem 1.35rem;
	overflow: hidden;
	animation: dmRise 0.6s ease 0.06s both;
}

.dm-main-head {
	margin-bottom: 1.2rem;
	padding-bottom: 0.95rem;
	border-bottom: 1px solid var(--dm-line);
}

.dm-section-title {
	font-family: var(--dm-display);
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	margin: 0 0 0.3rem;
}

.dm-section-lead {
	margin: 0;
	font-size: 0.9rem;
	color: var(--dm-muted);
	line-height: 1.55;
}

.dm-form {
	display: flex;
	flex-direction: column;
	gap: 0.95rem;
}

.dm-field {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.dm-label {
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--dm-ink);
}

.dm-input,
.dm-textarea {
	width: 100%;
	border: 1px solid rgba(18, 48, 28, 0.12);
	border-radius: 14px;
	background: rgba(238, 245, 240, 0.65);
	padding: 0.75rem 1rem;
	font-family: var(--dm-font);
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--dm-ink);
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
	resize: vertical;
}

.dm-input {
	min-height: 3rem;
}

.dm-textarea {
	min-height: 6rem;
	line-height: 1.55;
}

.dm-textarea--lg {
	min-height: 10rem;
}

.dm-input:hover,
.dm-textarea:hover {
	background: #fff;
	border-color: rgba(14, 158, 16, 0.28);
}

.dm-input:focus,
.dm-textarea:focus {
	background: #fff;
	border-color: rgba(14, 158, 16, 0.45);
	box-shadow: 0 0 0 3px var(--dm-accent-soft);
}

.dm-field--captcha {
	padding-top: 0.15rem;
}

.dm-captcha-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
}

.dm-captcha-media {
	position: relative;
	flex: 0 0 auto;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid rgba(18, 48, 28, 0.1);
	background: #eaf7e8;
	box-shadow: 0 4px 14px rgba(18, 48, 28, 0.05);
}

.dm-captcha-media img {
	display: block;
	width: 168px;
	height: 52px;
	cursor: pointer;
}

.dm-captcha-refresh {
	position: absolute;
	right: 0.35rem;
	bottom: 0.35rem;
	width: 1.85rem;
	height: 1.85rem;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	color: var(--dm-accent-deep);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(18, 48, 28, 0.12);
	transition: background 0.2s ease, transform 0.2s ease;
}

.dm-captcha-refresh:hover {
	background: #fff;
	transform: rotate(45deg);
}

.dm-captcha-input {
	flex: 1 1 12rem;
	min-width: 10rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-weight: 700;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.dm-captcha-hint {
	margin: 0;
	font-size: 0.78rem;
	color: var(--dm-muted);
}

.dm-field--actions {
	padding-top: 0.35rem;
}

.dm-submit {
	appearance: none;
	border: 0;
	min-height: 3.05rem;
	width: 100%;
	max-width: 22rem;
	border-radius: 999px;
	padding: 0.75rem 1.4rem;
	background: linear-gradient(135deg, var(--dm-accent) 0%, var(--dm-accent-mid) 100%);
	color: #fff;
	font-family: var(--dm-font);
	font-size: 0.95rem;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 10px 24px rgba(14, 158, 16, 0.22);
	transition: transform 0.2s ease, filter 0.2s ease;
}

.dm-submit:hover:not(:disabled) {
	transform: translateY(-1px);
	filter: brightness(1.03);
}

.dm-submit:disabled {
	opacity: 0.7;
	cursor: wait;
}

/* Soft sidebar */
.dm-sidebar {
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
	position: sticky;
	top: calc(var(--dm-header-offset) + 12px);
}

.dm-side-panel {
	background: rgba(255, 255, 255, 0.72);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.85);
	border-radius: var(--dm-radius);
	padding: 1.25rem 1.2rem 1.15rem;
	box-shadow: var(--dm-shadow);
}

.dm-side-panel--soft {
	background: linear-gradient(160deg, rgba(238, 245, 240, 0.95), rgba(255, 255, 255, 0.8));
}

.dm-side-title {
	font-family: var(--dm-display);
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--dm-ink);
	margin: 0 0 1rem;
	letter-spacing: -0.02em;
}

.dm-side-cats {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.dm-side-cats a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.65rem 0.75rem;
	border-radius: 12px;
	text-decoration: none;
	color: var(--dm-ink);
	font-size: 0.9rem;
	font-weight: 500;
	transition: background 0.2s ease, transform 0.2s ease;
}

.dm-side-cats a:hover {
	background: rgba(14, 158, 16, 0.08);
	transform: translateX(2px);
	color: var(--dm-accent-deep);
}

.dm-side-cat-count {
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--dm-accent-deep);
	background: rgba(14, 158, 16, 0.12);
	min-width: 1.6rem;
	height: 1.6rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
}

.dm-side-feed {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.dm-side-feed-item {
	display: flex;
	gap: 0.8rem;
	text-decoration: none;
	padding: 0.35rem;
	border-radius: 14px;
	transition: background 0.2s ease, transform 0.2s ease;
}

.dm-side-feed-item:hover {
	background: rgba(14, 158, 16, 0.06);
	transform: translateY(-1px);
}

.dm-side-feed-thumb {
	width: 68px;
	height: 68px;
	border-radius: 12px;
	overflow: hidden;
	flex-shrink: 0;
	background: var(--dm-soft);
}

.dm-side-feed-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.dm-side-feed-body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.25rem;
	min-width: 0;
}

.dm-side-feed-title {
	font-size: 0.88rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--dm-ink);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.dm-side-feed-item:hover .dm-side-feed-title {
	color: var(--dm-accent-deep);
}

.dm-side-feed-date {
	font-size: 0.72rem;
	color: var(--dm-muted);
}

@keyframes dmRise {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (max-width: 991px) {
	.dm-page {
		--dm-header-offset: 136px;
	}

	.dm-sidebar {
		position: static;
	}
}

@media (max-width: 767px) {
	.dm-page {
		--dm-header-offset: 102px;
	}

	.dm-bc-list {
		border-radius: 14px;
		padding: 0.65rem 0.9rem;
	}

	.dm-title {
		font-size: clamp(1.55rem, 7vw, 2rem);
	}

	.dm-submit {
		max-width: none;
	}
}

@media (max-width: 575px) {
	.dm-page {
		--dm-header-offset: 98px;
	}

	.dm-main {
		padding: 1.15rem 1rem 1.05rem;
	}

	.dm-captcha-row {
		flex-direction: column;
		align-items: stretch;
	}

	.dm-captcha-media {
		align-self: flex-start;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dm-lede,
	.dm-main,
	.dm-side-feed-item,
	.dm-captcha-refresh {
		animation: none !important;
		transition: none !important;
		transform: none !important;
	}
}
