/* ==========================================================================
   PPID Pengaduan — Frontend Styles
   ========================================================================== */

.ppidp-wrap {
	--ppidp-blue: #0B4C8C;
	--ppidp-blueDark: #062F52;
	--ppidp-sky: #1E9DE3;
	--ppidp-gold: #E4A93D;
	--ppidp-ink: #10243B;
	--ppidp-muted: #5D7285;
	--ppidp-bg: #F5F9FC;
	--ppidp-line: #E1EAF2;
	--ppidp-danger: #D64545;
	--ppidp-success: #16794F;
	--ppidp-radius: 16px;
	--ppidp-font-display: 'Poppins', 'Segoe UI', sans-serif;
	--ppidp-font-body: 'Inter', 'Segoe UI', sans-serif;

	font-family: var(--ppidp-font-body);
	color: var(--ppidp-ink);
	max-width: 780px;
	margin: 0 auto;
}

.ppidp-wrap *, .ppidp-wrap *::before, .ppidp-wrap *::after { box-sizing: border-box; }

/* ---------------------------- Tabs ---------------------------- */
.ppidp-tabs {
	display: flex;
	gap: 8px;
	background: var(--ppidp-bg);
	border: 1px solid var(--ppidp-line);
	border-radius: 999px;
	padding: 6px;
	margin-bottom: 24px;
}

.ppidp-tab {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 14px;
	border: none;
	background: transparent;
	border-radius: 999px;
	font-family: var(--ppidp-font-display);
	font-weight: 600;
	font-size: 14px;
	color: var(--ppidp-muted);
	cursor: pointer;
	transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.ppidp-tab svg { width: 18px; height: 18px; flex-shrink: 0; }

.ppidp-tab.is-active {
	background: linear-gradient(135deg, var(--ppidp-blue), var(--ppidp-blueDark));
	color: #fff;
	box-shadow: 0 6px 16px -6px rgba(11, 76, 140, .5);
}

.ppidp-tab:hover:not(.is-active) { color: var(--ppidp-blue); }

/* ---------------------------- Panels ---------------------------- */
.ppidp-panel { display: none; }
.ppidp-panel.is-active { display: block; animation: ppidp-fade .35s ease; }

@keyframes ppidp-fade {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: translateY(0); }
}

.ppidp-intro h3 {
	font-family: var(--ppidp-font-display);
	font-weight: 700;
	font-size: 20px;
	color: var(--ppidp-blueDark);
	margin: 0 0 6px;
}

.ppidp-intro p {
	color: var(--ppidp-muted);
	font-size: 14px;
	margin: 0 0 22px;
}

/* ---------------------------- Form ---------------------------- */
.ppidp-fieldset {
	border: 1px solid var(--ppidp-line);
	border-radius: var(--ppidp-radius);
	padding: 20px 20px 8px;
	margin: 0 0 20px;
}

.ppidp-fieldset legend {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 8px;
	font-family: var(--ppidp-font-display);
	font-weight: 600;
	font-size: 15px;
	color: var(--ppidp-blueDark);
}

.ppidp-legend-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--ppidp-sky), var(--ppidp-blue));
	color: #fff;
	font-size: 12px;
}

.ppidp-row { margin-bottom: 16px; }

.ppidp-row-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

@media (max-width: 520px) {
	.ppidp-row-2 { grid-template-columns: 1fr; }
}

.ppidp-row label {
	display: block;
	font-weight: 600;
	font-size: 13.5px;
	margin-bottom: 6px;
	color: var(--ppidp-ink);
}

.ppidp-row .req { color: var(--ppidp-danger); }

.ppidp-row input[type="text"],
.ppidp-row input[type="email"],
.ppidp-row input[type="file"],
.ppidp-row select,
.ppidp-row textarea {
	width: 100%;
	padding: 10px 13px;
	border-radius: 10px;
	border: 1.5px solid var(--ppidp-line);
	font-family: var(--ppidp-font-body);
	font-size: 14px;
	color: var(--ppidp-ink);
	background: #fff;
	transition: border-color .18s ease, box-shadow .18s ease;
}

.ppidp-row textarea { resize: vertical; }

.ppidp-row input:focus,
.ppidp-row select:focus,
.ppidp-row textarea:focus {
	outline: none;
	border-color: var(--ppidp-sky);
	box-shadow: 0 0 0 4px rgba(30, 157, 227, .15);
}

.ppidp-hint {
	font-size: 12.5px;
	color: var(--ppidp-muted);
	margin: -8px 0 16px;
}

.ppidp-bukti-field { transition: opacity .2s ease; }
.ppidp-hidden { display: none !important; }

.ppidp-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ppidp-consent-row {
	background: var(--ppidp-bg);
	border: 1px solid var(--ppidp-line);
	border-radius: 12px;
	padding: 14px 16px;
	margin-bottom: 18px;
}

.ppidp-consent-row label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13.5px;
	color: var(--ppidp-muted);
	cursor: pointer;
}

.ppidp-consent-row input[type="checkbox"] {
	margin-top: 3px;
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	accent-color: var(--ppidp-blue);
}

.ppidp-submit-btn {
	width: 100%;
	padding: 14px 20px;
	border: none;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--ppidp-blue), var(--ppidp-blueDark));
	color: #fff;
	font-family: var(--ppidp-font-display);
	font-weight: 600;
	font-size: 15px;
	cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
	box-shadow: 0 10px 24px -10px rgba(11, 76, 140, .6);
}

.ppidp-submit-btn:hover:not(:disabled) { transform: translateY(-1px); }
.ppidp-submit-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.ppidp-form-message {
	display: none;
	padding: 13px 16px;
	border-radius: 10px;
	font-size: 13.5px;
	margin-bottom: 16px;
	line-height: 1.6;
}

.ppidp-form-message.is-success {
	display: block;
	background: rgba(22, 121, 79, .08);
	border: 1px solid rgba(22, 121, 79, .25);
	color: var(--ppidp-success);
}

.ppidp-form-message.is-error {
	display: block;
	background: rgba(214, 69, 69, .08);
	border: 1px solid rgba(214, 69, 69, .25);
	color: var(--ppidp-danger);
}

.ppidp-ticket-code {
	display: inline-block;
	margin-top: 6px;
	padding: 4px 12px;
	border-radius: 999px;
	background: #fff;
	border: 1px dashed var(--ppidp-success);
	font-family: var(--ppidp-font-display);
	font-weight: 700;
	letter-spacing: .04em;
}

/* ---------------------------- Info Cards (Offline / Elektronik) ---------------------------- */
.ppidp-info-card {
	background: #fff;
	border: 1px solid var(--ppidp-line);
	border-radius: var(--ppidp-radius);
	padding: 28px;
	text-align: center;
	box-shadow: 0 8px 24px -16px rgba(11, 76, 140, .25);
}

.ppidp-info-icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 14px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--ppidp-sky), var(--ppidp-blue));
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ppidp-info-icon svg { width: 26px; height: 26px; }

.ppidp-info-card h3 {
	font-family: var(--ppidp-font-display);
	font-weight: 700;
	font-size: 18px;
	color: var(--ppidp-blueDark);
	margin: 0 0 10px;
}

.ppidp-info-card p { color: var(--ppidp-muted); font-size: 14px; margin: 0 0 6px; }

.ppidp-address {
	font-weight: 500;
	color: var(--ppidp-ink) !important;
	line-height: 1.7;
}

.ppidp-divider {
	height: 1px;
	background: var(--ppidp-line);
	margin: 18px 0;
}

.ppidp-label { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ppidp-muted) !important; }

.ppidp-highlight {
	font-family: var(--ppidp-font-display);
	font-weight: 600;
	color: var(--ppidp-blueDark) !important;
	font-size: 15.5px;
}

.ppidp-outline-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 18px;
	padding: 10px 20px;
	border-radius: 999px;
	border: 1.5px solid var(--ppidp-blue);
	color: var(--ppidp-blue);
	font-weight: 600;
	font-size: 13.5px;
	text-decoration: none;
	transition: background-color .18s ease, color .18s ease;
}

.ppidp-outline-btn:hover { background: var(--ppidp-blue); color: #fff; }

.ppidp-solid-btn {
	display: inline-block;
	margin-top: 8px;
	padding: 11px 22px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--ppidp-gold), #c98d21);
	color: #fff;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	word-break: break-word;
}

.ppidp-elek-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}

@media (max-width: 620px) {
	.ppidp-elek-grid { grid-template-columns: 1fr; }
	.ppidp-tab { font-size: 12.5px; padding: 10px 8px; }
	.ppidp-tab svg { width: 15px; height: 15px; }
}
