.cdd-public {
	--cdd-primary: #4bb568;
	--cdd-secondary: #0f172a;
	--cdd-bg: #f6f8fb;
	--cdd-surface: #ffffff;
	--cdd-surface-soft: #f8fafc;
	--cdd-border: #dfe4ea;
	--cdd-text: #172033;
	--cdd-muted: #64748b;
	--cdd-danger: #dc3545;
	--cdd-warning: #f59e0b;
	--cdd-success: #16a34a;
	--cdd-info: #0ea5e9;
	--cdd-radius: 16px;
	--cdd-shadow: 0 14px 35px rgba(15, 23, 42, .08);
	--cdd-shadow-soft: 0 8px 20px rgba(15, 23, 42, .06);

	color: var(--cdd-text);
	font-size: 16px;
}

.cdd-public * {
	box-sizing: border-box;
}

.cdd-public a {
	color: var(--cdd-primary);
}

.cdd-public-shell {
	width: min(1080px, 100%);
	margin: 0 auto;
	padding: clamp(16px, 3vw, 32px);
}

.cdd-public-header {
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, var(--cdd-secondary), #1e293b);
	color: #fff;
	border-radius: var(--cdd-radius);
	padding: clamp(24px, 4vw, 44px);
	margin-bottom: 28px;
	box-shadow: var(--cdd-shadow);
}

.cdd-public-header::after {
	content: "";
	position: absolute;
	right: -60px;
	top: -60px;
	width: 180px;
	height: 180px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--cdd-primary) 28%, transparent);
}

.cdd-public-header h1,
.cdd-public-header h2,
.cdd-public-header h3 {
	position: relative;
	z-index: 1;
	color: #fff;
	margin: 0 0 8px;
	font-weight: 800;
	letter-spacing: -.03em;
	line-height: 1.15;
}

.cdd-public-header p {
	position: relative;
	z-index: 1;
	max-width: 760px;
	margin: 0;
	color: rgba(255, 255, 255, .78);
}

.cdd-public-card {
	background: var(--cdd-surface);
	border: 1px solid var(--cdd-border);
	border-radius: var(--cdd-radius);
	box-shadow: var(--cdd-shadow-soft);
	padding: clamp(18px, 3vw, 28px);
	margin-bottom: 22px;
}

.cdd-public-section-title {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--cdd-border);
}

.cdd-public-section-title h3,
.cdd-public-section-title h4 {
	margin: 0;
	font-weight: 750;
	color: var(--cdd-text);
}

.cdd-public-section-title p {
	margin: 6px 0 0;
	color: var(--cdd-muted);
}

.cdd-public .form-control,
.cdd-public .form-select {
	border-radius: 12px !important;
	border-color: var(--cdd-border) !important;
	color: var(--cdd-text) !important;
}

.cdd-public .form-control:focus,
.cdd-public .form-select:focus {
	border-color: var(--cdd-primary) !important;
	box-shadow: 0 0 0 0.25rem color-mix(in srgb, var(--cdd-primary) 22%, transparent) !important;
}

.cdd-public .form-floating > label {
	color: var(--cdd-muted);
}

.cdd-public .button,
.cdd-public button,
.cdd-public .btn {
	border-radius: 999px;
}

.cdd-public .btn-primary,
.cdd-public .button-primary,
.cdd-public .cdd-public-btn-primary {
	background: var(--cdd-primary) !important;
	border-color: var(--cdd-primary) !important;
	color: #fff !important;
	font-weight: 700;
	box-shadow: 0 8px 18px color-mix(in srgb, var(--cdd-primary) 22%, transparent);
}

.cdd-public .cdd-public-btn-secondary {
	background: var(--cdd-surface) !important;
	border: 1px solid var(--cdd-border) !important;
	color: var(--cdd-text) !important;
	font-weight: 700;
}

.cdd-public-loader,
.cdd-public-msg {
	position: fixed;
	z-index: 99999;
}

.cdd-public-msg {
	top: 24px;
	right: 24px;
	display: none;
	max-width: 420px;
}

.cdd-public-loader {
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(15, 23, 42, .35);
	backdrop-filter: blur(4px);
}

.cdd-public-loader-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	background: var(--cdd-surface);
	border-radius: var(--cdd-radius);
	padding: 28px;
	box-shadow: var(--cdd-shadow);
}

.cdd-public-loader-card p {
	margin: 0;
	color: var(--cdd-muted);
	font-weight: 650;
}

.cdd-stepper {
	counter-reset: section;
	display: flex;
	justify-content: space-between;
	gap: 0;
	padding: 0;
	margin: 0 0 32px;
	list-style: none;
}

.cdd-stepper li {
	position: relative;
	display: flex;
	flex: 1;
	align-items: flex-start;
}

.cdd-stepper li:not(:last-child)::after {
	content: "";
	position: relative;
	flex: 1;
	height: 1px;
	top: 21px;
	background: var(--cdd-border);
}

.cdd-stepper li.form-stepper-completed::after {
	background: var(--cdd-primary);
}

.cdd-stepper a {
	text-decoration: none;
	color: var(--cdd-muted);
}

.cdd-stepper .form-stepper-circle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 999px;
	background: var(--cdd-surface-soft);
	border: 1px solid var(--cdd-border);
	color: var(--cdd-muted);
}

.cdd-stepper .form-stepper-active .form-stepper-circle {
	background: #fff;
	border: 1px dashed var(--cdd-primary);
	color: var(--cdd-primary);
}

.cdd-stepper .form-stepper-completed .form-stepper-circle {
	background: var(--cdd-primary);
	border-color: var(--cdd-primary);
	color: #fff;
}

.cdd-stepper .label {
	margin-top: 8px;
	font-size: 13px;
	font-weight: 700;
}

.cdd-stepper .form-stepper-active .label,
.cdd-stepper .form-stepper-completed .label {
	color: var(--cdd-primary);
}

.form-step {
	background: var(--cdd-surface);
	border: 1px solid var(--cdd-border);
	border-radius: var(--cdd-radius);
	box-shadow: var(--cdd-shadow-soft);
	padding: clamp(18px, 3vw, 32px);
}

.cdd-public-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.cdd-public-grid .is-full {
	grid-column: 1 / -1;
}

.cdd-anonymous-card {
	background: var(--cdd-surface-soft);
	border: 1px solid var(--cdd-border);
	border-radius: var(--cdd-radius);
	padding: 20px;
	margin-bottom: 20px;
	text-align: center;
}

.cdd-anonymous-card h4 {
	margin: 0 0 14px;
	font-weight: 750;
}

.cdd-segmented-control {
	max-width: 460px;
	margin: 0 auto 12px;
}

.cdd-inline-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 16px;
}

.cdd-inline-header h4 {
	margin: 0;
	font-weight: 750;
}

.cdd-inline-header p {
	margin: 4px 0 0;
	color: var(--cdd-muted);
}

.cdd-responsive-table {
	width: 100%;
	overflow-x: auto;
}

.cdd-empty-row td {
	color: var(--cdd-muted);
	text-align: center;
	padding: 18px !important;
	background: var(--cdd-surface-soft);
	border-radius: 12px;
}

.cdd-public .dropzone {
	border: 2px dashed color-mix(in srgb, var(--cdd-primary) 70%, transparent) !important;
	border-radius: var(--cdd-radius) !important;
	background: color-mix(in srgb, var(--cdd-primary) 5%, transparent) !important;
}

.cdd-success-card {
	width: min(760px, 100%);
	margin: 0 auto;
	background: var(--cdd-surface);
	border: 1px solid var(--cdd-border);
	border-radius: var(--cdd-radius);
	box-shadow: var(--cdd-shadow);
	padding: clamp(24px, 4vw, 38px);
	text-align: center;
}

.cdd-success-card > i {
	font-size: 52px;
	color: var(--cdd-primary);
	margin-bottom: 12px;
}

.cdd-public-summary,
.cdd-public-timeline .card {
	border-radius: var(--cdd-radius) !important;
}

.cdd-status-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 11px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 750;
	background: color-mix(in srgb, var(--cdd-primary) 12%, transparent);
	color: var(--cdd-primary);
}

.border-l4d-compliance {
	border-color: var(--cdd-primary) !important;
}

.text-l4d-compliance,
.color-company {
	color: var(--cdd-primary) !important;
}

@media (max-width: 782px) {
	.cdd-public-shell {
		padding: 12px;
	}

	.cdd-stepper {
		display: none;
	}

	.cdd-public-grid {
		grid-template-columns: 1fr;
	}

	.cdd-inline-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.cdd-inline-header .btn,
	.cdd-inline-header button {
		width: 100%;
	}

	.cdd-segmented-control {
		width: 100%;
	}

	.cdd-public-msg {
		left: 12px;
		right: 12px;
		top: 12px;
		max-width: none;
	}
}

.cdd-status-badge--received {
	background: #fef3c7;
	color: #92400e;
}

.cdd-status-badge--accepted {
	background: #dcfce7;
	color: #166534;
}

.cdd-status-badge--assigned {
	background: #e0f2fe;
	color: #075985;
}

.cdd-status-badge--progress {
	background: #dbeafe;
	color: #1d4ed8;
}

.cdd-status-badge--rejected {
	background: #fee2e2;
	color: #991b1b;
}

.cdd-status-badge--closed {
	background: #e2e8f0;
	color: #475569;
}

.cdd-timeline {
	position: relative;
	display: grid;
	gap: 18px;
}

.cdd-timeline::before {
	content: "";
	position: absolute;
	left: 10px;
	top: 8px;
	bottom: 8px;
	width: 2px;
	background: var(--cdd-border);
}

.cdd-timeline-item {
	position: relative;
	display: grid;
	grid-template-columns: 24px 1fr;
	gap: 16px;
}

.cdd-timeline-marker {
	position: relative;
	z-index: 1;
	width: 22px;
	height: 22px;
	border-radius: 999px;
	background: var(--cdd-primary);
	border: 4px solid var(--cdd-surface);
	box-shadow: 0 0 0 1px var(--cdd-border);
	margin-top: 4px;
}

.cdd-timeline-content {
	background: var(--cdd-surface-soft);
	border: 1px solid var(--cdd-border);
	border-radius: var(--cdd-radius);
	padding: 16px;
}

.cdd-status-pill {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	width: fit-content;
	max-width: 100%;
	border-radius: 999px;
	padding: 6px 10px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	border: 1px solid transparent;
}

.cdd-status-pill i {
	font-size: 7px;
}

.cdd-status-pill--received,
.cdd-status-pill--recieved {
	background: rgba(59, 130, 246, 0.12);
	color: #1d4ed8;
	border-color: rgba(59, 130, 246, 0.24);
}

.cdd-status-pill--accepted {
	background: rgba(34, 197, 94, 0.12);
	color: #15803d;
	border-color: rgba(34, 197, 94, 0.24);
}

.cdd-status-pill--assigned {
	background: rgba(168, 85, 247, 0.12);
	color: #7e22ce;
	border-color: rgba(168, 85, 247, 0.24);
}

.cdd-status-pill--in-progress {
	background: rgba(245, 158, 11, 0.14);
	color: #b45309;
	border-color: rgba(245, 158, 11, 0.28);
}

.cdd-status-pill--rejected {
	background: rgba(239, 68, 68, 0.12);
	color: #b91c1c;
	border-color: rgba(239, 68, 68, 0.24);
}

.cdd-status-pill--closed {
	background: rgba(15, 23, 42, 0.10);
	color: #334155;
	border-color: rgba(15, 23, 42, 0.18);
}

.cdd-public-add-info textarea.form-control {
	min-height: 160px;
}

.cdd-public-add-info .form-text {
	color: var(--cdd-muted, #64748b);
	font-size: 13px;
	margin-top: 6px;
}

.cdd-public-add-info input[type="file"] {
	padding: 10px;
}