.proses-personelim-preview-admin {
	max-width: 1180px;
}

.proses-personelim-preview-shell {
	margin-top: 24px;
	padding: clamp(12px, 2vw, 28px);
	background: #f2f5f7;
	border: 1px solid #d8e0e5;
	border-radius: 16px;
}

.proses-personelim-form {
	--pp-brand: #126e82;
	--pp-brand-dark: #0c4f5e;
	--pp-accent: #e59c24;
	--pp-ink: #1f2a30;
	--pp-muted: #65747d;
	--pp-line: #dce4e8;
	--pp-surface: #ffffff;
	--pp-soft: #f5f8f9;
	color: var(--pp-ink);
	width: 100%;
	max-width: 1120px;
	margin: 0 auto;
	font-size: 16px;
	line-height: 1.55;
}

.proses-personelim-form [hidden] {
	display: none !important;
}

.proses-personelim-form .pp-json-store {
	display: none !important;
}

.proses-personelim-form *,
.proses-personelim-form *::before,
.proses-personelim-form *::after {
	box-sizing: border-box;
}

.pp-hero {
	padding: clamp(24px, 4vw, 44px);
	background: linear-gradient(135deg, var(--pp-brand-dark), var(--pp-brand));
	color: #fff;
	border-radius: 18px;
	margin-bottom: 18px;
	box-shadow: 0 16px 42px rgba(12, 79, 94, .18);
}

.pp-hero h2 {
	color: #fff;
	margin: 0 0 8px;
	font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.pp-hero p {
	margin: 0;
	max-width: 760px;
	color: rgba(255, 255, 255, .9);
}

.pp-preview-badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-bottom: 12px;
	padding: 5px 10px;
	border: 1px solid rgba(255, 255, 255, .45);
	border-radius: 999px;
	font-size: .82rem;
	font-weight: 700;
	letter-spacing: .03em;
}

.pp-progress {
	counter-reset: pp-step;
	position: static;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 10px;
	padding: 10px;
	margin-bottom: 18px;
	background: rgba(255, 255, 255, .96);
	border: 1px solid var(--pp-line);
	border-radius: 14px;
	box-shadow: 0 8px 28px rgba(23, 43, 52, .08);
}

.pp-progress a {
	counter-increment: pp-step;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 9px;
	min-width: 0;
	min-height: 54px;
	padding: 8px 10px;
	border-radius: 9px;
	background: var(--pp-soft);
	color: var(--pp-brand-dark);
	font-size: .83rem;
	font-weight: 700;
	line-height: 1.25;
	text-decoration: none;
}

.pp-progress a::before {
	content: counter(pp-step);
	display: grid;
	place-items: center;
	flex: 0 0 30px;
	width: 30px;
	height: 30px;
	border: 2px solid #a8c8d0;
	border-radius: 50%;
	background: #fff;
	color: var(--pp-brand-dark);
	font-weight: 800;
}

.pp-progress a:not(:last-of-type)::after {
	content: '';
	position: absolute;
	left: calc(100% + 1px);
	top: 50%;
	width: 8px;
	height: 2px;
	background: #a8c8d0;
}

.pp-progress a.is-active {
	background: #dff0f3;
	box-shadow: inset 0 0 0 2px var(--pp-brand);
}

.pp-progress a.is-active::before {
	border-color: var(--pp-brand);
	background: var(--pp-brand);
	color: #fff;
}

.pp-progress a.is-complete {
	background: #eaf4ed;
	color: #24623a;
}

.pp-progress a.is-complete::before {
	content: '✓';
	border-color: #2f7b4c;
	background: #2f7b4c;
	color: #fff;
}

/* CF7 may insert automatic line breaks between anchor tags. They must not
   become extra grid cells in the stepper. */
.pp-progress > br,
.pp-grid > br {
	display: none;
}

.pp-progress a:hover,
.pp-progress a:focus-visible {
	background: #e7f2f4;
	outline: 2px solid var(--pp-brand);
	outline-offset: 1px;
}

.pp-section {
	scroll-margin-top: 28px;
	margin: 0 0 18px;
	background: var(--pp-surface);
	border: 1px solid var(--pp-line);
	border-radius: 16px;
	overflow: clip;
	box-shadow: 0 8px 26px rgba(31, 42, 48, .055);
}

body.admin-bar .pp-section,
body.wp-admin .pp-section {
	scroll-margin-top: 72px;
}

.pp-section > summary {
	display: flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
	list-style: none;
	padding: 19px 22px;
	font-size: 1.08rem;
	font-weight: 750;
	color: var(--pp-brand-dark);
	background: linear-gradient(90deg, #f7fbfc, #fff);
}

.pp-section > summary::-webkit-details-marker {
	display: none;
}

.pp-section > summary::before {
	content: '+';
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	flex: 0 0 28px;
	border-radius: 50%;
	background: var(--pp-brand);
	color: #fff;
	font-size: 1.15rem;
	line-height: 1;
}

.pp-section[open] > summary::before {
	content: '–';
}

.pp-section__body {
	padding: 6px 22px 24px;
}

.pp-section__intro {
	margin: 4px 0 18px;
	color: var(--pp-muted);
	font-size: .92rem;
}

.pp-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 20px;
}

.pp-grid > *:not(br) {
	min-width: 0;
}

.pp-field {
	display: flex;
	flex-direction: column;
	gap: 7px;
	margin: 0;
}

.pp-field--wide,
.pp-grid > .pp-notice,
.pp-grid > .pp-check {
	grid-column: 1 / -1;
}

.pp-label {
	font-size: .9rem;
	font-weight: 700;
	color: #2d3a40;
}

.pp-required {
	color: #b42318;
}

.proses-personelim-form input[type='text'],
.proses-personelim-form input[type='email'],
.proses-personelim-form input[type='tel'],
.proses-personelim-form input[type='date'],
.proses-personelim-form input[type='number'],
.proses-personelim-form input[type='file'],
.proses-personelim-form select,
.proses-personelim-form textarea {
	width: 100%;
	min-height: 48px;
	padding: 11px 13px;
	border: 1px solid #c9d4da;
	border-radius: 9px;
	background: #fff;
	color: var(--pp-ink);
	font: inherit;
	transition: border-color .18s ease, box-shadow .18s ease;
}

.proses-personelim-form textarea {
	height: 128px;
	min-height: 112px;
	resize: vertical;
}

.proses-personelim-form textarea[name='address'] {
	height: 150px;
}

.proses-personelim-form input:focus,
.proses-personelim-form select:focus,
.proses-personelim-form textarea:focus {
	border-color: var(--pp-brand);
	box-shadow: 0 0 0 3px rgba(18, 110, 130, .14);
	outline: 0;
}

.proses-personelim-form input:disabled,
.proses-personelim-form select:disabled,
.proses-personelim-form textarea:disabled {
	background: #edf1f3;
	color: #77858d;
	cursor: not-allowed;
}

.pp-help {
	display: block;
	margin-top: 5px;
	color: var(--pp-muted);
	font-size: .82rem;
}

.pp-notice {
	padding: 12px 14px;
	border-left: 4px solid var(--pp-accent);
	border-radius: 6px;
	background: #fff8e8;
	color: #6a4a10;
	font-size: .9rem;
}

.pp-notice--privacy {
	border-left-color: #b42318;
	background: #fff4f2;
	color: #7a271a;
}

.pp-repeatable {
	display: grid;
	gap: 14px;
}

.pp-repeat-list {
	display: grid;
	gap: 14px;
}

.pp-repeat-card {
	padding: 18px;
	border: 1px solid #d6e0e4;
	border-radius: 12px;
	background: var(--pp-soft);
}

.pp-repeat-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.pp-grid--repeat {
	gap: 14px 16px;
}

.pp-add,
.pp-remove {
	appearance: none;
	border: 0;
	border-radius: 8px;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.pp-add {
	justify-self: start;
	padding: 10px 16px;
	background: #e5f2f4;
	color: var(--pp-brand-dark);
	border: 1px solid #b9d6dc;
}

.pp-add:hover,
.pp-add:focus-visible {
	background: #d5eaee;
	outline: 2px solid var(--pp-brand);
	outline-offset: 2px;
}

.pp-remove {
	padding: 7px 11px;
	background: #fff0ee;
	color: #9b291d;
	border: 1px solid #f2c8c3;
}

.pp-check {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	font-weight: 650;
}

.pp-check input {
	width: 20px;
	height: 20px;
}

.pp-photo-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 150px;
	gap: 20px;
	align-items: start;
}

.pp-photo-preview {
	width: 150px;
	height: 150px;
	object-fit: cover;
	border: 1px solid var(--pp-line);
	border-radius: 12px;
	background: var(--pp-soft);
}

.pp-submit-area {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 22px;
	background: var(--pp-brand-dark);
	border-radius: 14px;
	color: #fff;
}

.pp-submit-area p {
	margin: 0;
	max-width: 650px;
	color: rgba(255,255,255,.88);
}

.proses-personelim-form input[type='submit'] {
	min-height: 50px;
	padding: 12px 24px;
	border: 0;
	border-radius: 9px;
	background: var(--pp-accent);
	color: #1f2a30;
	font-weight: 800;
	cursor: pointer;
}

.proses-personelim-form input[type='submit']:disabled {
	opacity: .65;
	cursor: wait;
}

.proses-personelim-form .wpcf7-not-valid-tip,
.proses-personelim-form [data-photo-status],
.proses-personelim-form [data-repeat-status] {
	color: #b42318;
	font-size: .84rem;
	font-weight: 650;
}

.proses-personelim-form .wpcf7-response-output {
	margin: 18px 0 0;
	padding: 12px 14px;
	border-radius: 8px;
}

.pp-honeypot {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

@media (max-width: 1023px) {
	.pp-progress {
		gap: 6px;
	}

	.pp-grid,
	.pp-grid--repeat,
	.pp-photo-layout {
		grid-template-columns: 1fr;
	}

	.pp-section > summary,
	.pp-section__body {
		padding-left: 16px;
		padding-right: 16px;
	}

	.pp-photo-preview {
		width: 120px;
		height: 120px;
	}

	.pp-submit-area {
		align-items: stretch;
		flex-direction: column;
	}
}

@media (max-width: 600px) {
	.pp-progress {
		gap: 4px;
		padding: 6px;
	}

	.pp-progress a {
		flex-direction: column;
		justify-content: center;
		gap: 4px;
		min-height: 74px;
		padding: 5px 2px;
		font-size: .64rem;
		text-align: center;
		overflow-wrap: anywhere;
	}

	.pp-progress a::before {
		flex-basis: 25px;
		width: 25px;
		height: 25px;
	}

	.pp-progress a:not(:last-of-type)::after {
		width: 3px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.proses-personelim-form * {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}
