/* Defensive reset: page builders and themes (e.g. Elementor's global
   normalize/reset styles) often set box-sizing and list rules at very
   broad specificity that would otherwise bleed into the wizard.
   :where() keeps these at zero added specificity so the more specific
   .mvp-* rules later in this file still win as intended. */
.mvp-wizard,
.mvp-wizard :where(*, *::before, *::after) {
	box-sizing: border-box;
}

.mvp-wizard :where(ul, ol) {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mvp-wizard :where(img) {
	max-width: 100%;
}

.mvp-wizard {
	--mvp-primary: #0b3d66;
	--mvp-primary-dark: #082a47;
	--mvp-accent: #1a9c86;
	--mvp-danger: #c0392b;
	--mvp-warning: #b7791f;
	--mvp-border: #d8dee4;
	--mvp-bg-soft: #f4f7fa;
	--mvp-text: #202b36;

	max-width: 900px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--mvp-text);
	background: #fff;
	border: 1px solid var(--mvp-border);
	border-radius: 8px;
	padding: 32px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.mvp-header .mvp-title {
	font-size: 24px;
	font-weight: 700;
	color: var(--mvp-primary-dark);
	margin: 0 0 6px;
}

.mvp-header .mvp-subtitle {
	color: #55636f;
	margin: 0 0 24px;
	font-size: 14px;
}

.mvp-resume-bar {
	background: #eaf6f3;
	border: 1px solid var(--mvp-accent);
	color: #0d5d4f;
	padding: 10px 14px;
	border-radius: 6px;
	margin-bottom: 18px;
	font-size: 13px;
}

/* Progress bar */
.mvp-progress {
	margin-bottom: 20px;
}

.mvp-progress-track {
	height: 6px;
	background: var(--mvp-bg-soft);
	border-radius: 3px;
	overflow: hidden;
	margin-bottom: 14px;
}

.mvp-progress-fill {
	height: 100%;
	background: linear-gradient(90deg, var(--mvp-primary), var(--mvp-accent));
	width: 0;
	transition: width 0.3s ease;
}

.mvp-progress-steps {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 6px;
}

.mvp-progress-step {
	flex: 1 1 auto;
	min-width: 90px;
	text-align: center;
	font-size: 11px;
	color: #8792a0;
}

.mvp-step-dot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--mvp-bg-soft);
	border: 1px solid var(--mvp-border);
	font-weight: 600;
	margin-bottom: 4px;
	font-size: 11px;
}

.mvp-progress-step.is-current .mvp-step-dot {
	background: var(--mvp-primary);
	border-color: var(--mvp-primary);
	color: #fff;
}

.mvp-progress-step.is-complete .mvp-step-dot {
	background: var(--mvp-accent);
	border-color: var(--mvp-accent);
	color: #fff;
}

.mvp-step-label {
	display: block;
}

/* Package meter */
.mvp-package-meter {
	background: var(--mvp-bg-soft);
	border: 1px solid var(--mvp-border);
	border-radius: 6px;
	padding: 10px 14px;
	margin-bottom: 18px;
}

.mvp-package-meter-label {
	display: flex;
	justify-content: space-between;
	font-size: 12px;
	margin-bottom: 6px;
	color: #55636f;
}

.mvp-package-meter-track {
	height: 6px;
	background: #dfe6ec;
	border-radius: 3px;
	overflow: hidden;
}

.mvp-package-meter-fill {
	height: 100%;
	width: 0;
	background: var(--mvp-accent);
	transition: width 0.3s ease;
}

.mvp-package-meter-fill.is-warning {
	background: var(--mvp-warning);
}

.mvp-package-meter-fill.is-danger {
	background: var(--mvp-danger);
}

/* Alerts */
.mvp-alert {
	padding: 12px 16px;
	border-radius: 6px;
	margin-bottom: 18px;
	font-size: 13px;
	font-weight: 500;
}

.mvp-alert-error {
	background: #fdecea;
	color: var(--mvp-danger);
	border: 1px solid #f5c6c2;
}

.mvp-alert-warning {
	background: #fdf3e3;
	color: var(--mvp-warning);
	border: 1px solid #f0dba4;
}

.mvp-alert-success {
	background: #e8f7f0;
	color: #14795a;
	border: 1px solid #a9e0c6;
}

/* Sections */
.mvp-section-title {
	font-size: 19px;
	font-weight: 700;
	color: var(--mvp-primary-dark);
	border-bottom: 2px solid var(--mvp-accent);
	padding-bottom: 10px;
	margin-bottom: 18px;
}

.mvp-section-intro {
	font-size: 13px;
	color: #55636f;
	margin-bottom: 18px;
}

.mvp-fieldset {
	border: 1px solid var(--mvp-border);
	border-radius: 6px;
	padding: 18px 20px 20px;
	margin-bottom: 20px;
}

.mvp-fieldset legend {
	font-weight: 700;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--mvp-primary);
	padding: 0 6px;
}

.mvp-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.mvp-row-3 {
	grid-template-columns: 1fr 1fr 1fr;
}

.mvp-field {
	margin-bottom: 14px;
}

.mvp-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 5px;
	color: #33414d;
}

.mvp-field-hint {
	font-size: 12px;
	color: #7a8794;
	margin: 0 0 6px;
}

.mvp-field input[type="text"],
.mvp-field input[type="email"],
.mvp-field input[type="url"],
.mvp-field input[type="number"],
.mvp-field input[type="date"],
.mvp-field input[type="search"],
.mvp-field textarea,
.mvp-field select {
	width: 100%;
	padding: 9px 11px;
	border: 1px solid var(--mvp-border);
	border-radius: 5px;
	font-size: 14px;
	box-sizing: border-box;
	font-family: inherit;
}

.mvp-field input:focus,
.mvp-field textarea:focus,
.mvp-field select:focus {
	outline: none;
	border-color: var(--mvp-primary);
	box-shadow: 0 0 0 3px rgba(11, 61, 102, 0.12);
}

.mvp-field-error {
	border-color: var(--mvp-danger) !important;
	background: #fff7f6;
}

.mvp-radio-group,
.mvp-checkbox-group {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 20px;
}

.mvp-radio-group label,
.mvp-checkbox-group label {
	font-weight: 400;
	font-size: 13px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.mvp-yesno-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 0;
	border-bottom: 1px dashed var(--mvp-border);
	font-size: 13px;
	gap: 12px;
}

.mvp-yesno-options {
	display: flex;
	gap: 14px;
	white-space: nowrap;
}

.mvp-rating-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 14px;
	font-size: 12px;
}

.mvp-rating-table th,
.mvp-rating-table td {
	border: 1px solid var(--mvp-border);
	padding: 8px;
	text-align: center;
}

.mvp-rating-table th:first-child,
.mvp-rating-table td:first-child {
	text-align: left;
}

/* Repeatable rows */
.mvp-repeatable-row {
	background: var(--mvp-bg-soft);
	border: 1px solid var(--mvp-border);
	border-radius: 6px;
	padding: 14px;
	margin-bottom: 12px;
	position: relative;
}

.mvp-repeatable-row h5 {
	margin: 0 0 10px;
	font-size: 13px;
	color: var(--mvp-primary);
}

/* Category tree */
.mvp-category-search {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 14px;
	gap: 12px;
}

.mvp-category-search input {
	flex: 1;
	padding: 9px 11px;
	border: 1px solid var(--mvp-border);
	border-radius: 5px;
}

.mvp-category-count {
	background: var(--mvp-accent);
	color: #fff;
	padding: 4px 10px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
}

.mvp-category-tree {
	max-height: 480px;
	overflow-y: auto;
	border: 1px solid var(--mvp-border);
	border-radius: 6px;
	padding: 6px 14px;
}

.mvp-category-main {
	border-bottom: 1px solid var(--mvp-border);
	padding: 8px 0;
}

.mvp-category-main summary {
	font-weight: 700;
	cursor: pointer;
	color: var(--mvp-primary-dark);
	padding: 4px 0;
}

.mvp-category-sub h5 {
	font-size: 12px;
	text-transform: uppercase;
	color: #7a8794;
	margin: 10px 0 6px 14px;
}

.mvp-category-detailed-list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px 10px;
	margin-left: 14px;
}

.mvp-category-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	font-size: 13px;
	font-weight: 400;
	padding: 3px 0;
}

/* Attachment blocks */
.mvp-attachment-block {
	background: #fbfcfd;
	border: 1px dashed var(--mvp-primary);
	border-radius: 6px;
	padding: 16px 18px;
	margin-top: 6px;
}

.mvp-attachment-heading {
	margin: 0 0 4px;
	font-size: 14px;
	color: var(--mvp-primary-dark);
}

.mvp-attachment-hint {
	font-size: 12px;
	color: #7a8794;
	margin: 0 0 12px;
}

.mvp-doc-slots {
	display: grid;
	gap: 12px;
}

.mvp-doc-slot {
	border: 1px solid var(--mvp-border);
	border-radius: 6px;
	padding: 12px;
	background: #fff;
}

.mvp-doc-slot-label {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 8px;
}

.mvp-badge {
	font-size: 10px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 10px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.mvp-badge-required {
	background: #fdecea;
	color: var(--mvp-danger);
}

.mvp-badge-optional {
	background: #eef1f4;
	color: #6a7683;
}

.mvp-upload-btn {
	display: inline-block;
	background: var(--mvp-primary);
	color: #fff;
	padding: 7px 14px;
	border-radius: 5px;
	font-size: 12px;
	cursor: pointer;
}

.mvp-upload-btn input {
	display: none;
}

.mvp-upload-progress {
	height: 5px;
	background: var(--mvp-bg-soft);
	border-radius: 3px;
	overflow: hidden;
	margin-top: 8px;
}

.mvp-upload-progress-fill {
	height: 100%;
	width: 0;
	background: var(--mvp-accent);
}

.mvp-file-list {
	list-style: none;
	margin: 10px 0 0;
	padding: 0;
}

.mvp-file-list li {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	padding: 6px 8px;
	background: var(--mvp-bg-soft);
	border-radius: 4px;
	margin-bottom: 6px;
}

.mvp-file-name {
	font-weight: 600;
	flex: 1;
	overflow-wrap: anywhere;
}

.mvp-file-size {
	color: #7a8794;
}

.mvp-file-remove {
	background: none;
	border: none;
	color: var(--mvp-danger);
	cursor: pointer;
	font-size: 13px;
}

/* Declarations */
.mvp-declarations {
	display: grid;
	gap: 12px;
	margin: 16px 0;
}

.mvp-declaration-item {
	display: flex;
	gap: 10px;
	font-size: 13px;
	align-items: flex-start;
	background: var(--mvp-bg-soft);
	padding: 12px;
	border-radius: 6px;
}

.mvp-declaration-item input {
	margin-top: 3px;
}

.mvp-doc-checklist {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mvp-doc-checklist li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 0;
	font-size: 13px;
	border-bottom: 1px dashed var(--mvp-border);
}

.mvp-checklist-icon {
	color: var(--mvp-accent);
}

/* Buttons + nav */
.mvp-btn {
	border: none;
	border-radius: 6px;
	padding: 11px 22px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.mvp-btn-primary {
	background: var(--mvp-primary);
	color: #fff;
}

.mvp-btn-primary:hover {
	background: var(--mvp-primary-dark);
}

.mvp-btn-success {
	background: var(--mvp-accent);
	color: #fff;
}

.mvp-btn-secondary {
	background: #eef1f4;
	color: var(--mvp-text);
}

.mvp-btn-link {
	background: none;
	color: var(--mvp-primary);
	text-decoration: underline;
	padding: 6px 0;
}

.mvp-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.mvp-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 24px;
	padding-top: 18px;
	border-top: 1px solid var(--mvp-border);
	flex-wrap: wrap;
	gap: 10px;
}

.mvp-honeypot {
	position: absolute;
	left: -9999px;
	top: -9999px;
}

/* Review */
.mvp-review-section {
	margin-bottom: 20px;
}

.mvp-review-section h4 {
	color: var(--mvp-primary-dark);
	border-bottom: 1px solid var(--mvp-border);
	padding-bottom: 6px;
}

.mvp-review-row {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	font-size: 13px;
	padding: 6px 0;
	border-bottom: 1px dashed var(--mvp-border);
}

.mvp-review-label {
	color: #7a8794;
	flex: 0 0 45%;
}

.mvp-review-value {
	flex: 1;
	font-weight: 500;
	overflow-wrap: anywhere;
}

.mvp-review-package-summary {
	background: var(--mvp-bg-soft);
	padding: 12px 16px;
	border-radius: 6px;
	font-size: 13px;
}

/* Success */
.mvp-success-screen {
	text-align: center;
	padding: 40px 20px;
}

.mvp-success-icon {
	width: 60px;
	height: 60px;
	line-height: 60px;
	border-radius: 50%;
	background: var(--mvp-accent);
	color: #fff;
	font-size: 28px;
	margin: 0 auto 16px;
}

.mvp-reference-box {
	background: var(--mvp-bg-soft);
	border: 1px solid var(--mvp-border);
	border-radius: 6px;
	padding: 16px;
	margin: 20px auto;
	max-width: 360px;
}

.mvp-reference-box strong {
	display: block;
	font-size: 20px;
	color: var(--mvp-primary-dark);
	margin-top: 4px;
}

/* Modal */
.mvp-modal {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
}

.mvp-modal-inner {
	background: #fff;
	border-radius: 8px;
	padding: 24px;
	max-width: 420px;
	width: 90%;
}

.mvp-modal-inner input {
	width: 100%;
	padding: 9px 11px;
	border: 1px solid var(--mvp-border);
	border-radius: 5px;
	margin: 12px 0;
}

.mvp-modal-actions {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
}

/* Responsive */
@media (max-width: 782px) {
	.mvp-wizard {
		padding: 18px;
	}

	.mvp-row,
	.mvp-row-3 {
		grid-template-columns: 1fr;
	}

	.mvp-category-detailed-list {
		grid-template-columns: 1fr;
	}

	.mvp-progress-step {
		min-width: 60px;
	}

	.mvp-step-label {
		display: none;
	}

	.mvp-nav {
		flex-direction: column;
		align-items: stretch;
	}

	.mvp-nav .mvp-btn {
		width: 100%;
	}
}
