/* Multi Step Popup Form - Frontend Styles */

.mspf-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 20, 25, 0.65);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

.mspf-modal {
	background: #ffffff;
	width: 100%;
	max-width: 520px;
	max-height: 90vh;
	overflow-y: auto;
	border-radius: 14px;
	padding: 32px 28px 24px;
	position: relative;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	animation: mspfPop 0.25s ease;
}

@keyframes mspfPop {
	from { opacity: 0; transform: translateY(16px) scale(0.97); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}

.mspf-close {
	position: absolute;
	top: 14px;
	right: 16px;
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #888;
}
.mspf-close:hover { color: #222; }

.mspf-progress-wrap {
	background: #eee;
	height: 6px;
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 8px;
}
.mspf-progress-bar {
	height: 100%;
	width: 14.28%;
	background: linear-gradient(90deg, #4f46e5, #7c3aed);
	transition: width 0.3s ease;
}

.mspf-step-count {
	font-size: 12px;
	color: #999;
	margin: 0 0 14px;
	text-align: right;
}

.mspf-title {
	margin: 0 0 4px;
	font-size: 22px;
	font-weight: 700;
	color: #1a1a1a;
}
.mspf-subtitle {
	margin: 0 0 20px;
	font-size: 14px;
	color: #666;
}

.mspf-question {
	font-size: 17px;
	font-weight: 600;
	color: #222;
	margin: 0 0 16px;
}

.mspf-options {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 10px;
}

.mspf-option {
	display: flex;
	align-items: center;
	gap: 10px;
	border: 1.5px solid #e2e2e2;
	border-radius: 10px;
	padding: 12px 14px;
	cursor: pointer;
	transition: all 0.15s ease;
	font-size: 14px;
	color: #333;
}
.mspf-option:hover { border-color: #a5a5f5; background: #f8f8ff; }
.mspf-option input[type="radio"] { accent-color: #4f46e5; width: 16px; height: 16px; }
.mspf-option:has(input:checked) {
	border-color: #4f46e5;
	background: #f0f0ff;
	font-weight: 600;
}

.mspf-fields {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 8px;
}
.mspf-input {
	width: 100%;
	padding: 12px 14px;
	border: 1.5px solid #e2e2e2;
	border-radius: 10px;
	font-size: 14px;
	box-sizing: border-box;
	font-family: inherit;
}
.mspf-input:focus {
	outline: none;
	border-color: #4f46e5;
}

.mspf-error {
	color: #dc2626;
	font-size: 13px;
	margin: 6px 0 0;
}

.mspf-nav {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	margin-top: 22px;
}

.mspf-btn {
	flex: 1;
	padding: 13px 18px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	border: none;
	transition: opacity 0.15s ease;
}
.mspf-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.mspf-btn-primary {
	background: linear-gradient(90deg, #4f46e5, #7c3aed);
	color: #fff;
}
.mspf-btn-primary:hover:not(:disabled) { opacity: 0.9; }
.mspf-btn-secondary {
	background: #f1f1f4;
	color: #333;
	flex: 0 0 auto;
	min-width: 90px;
}
.mspf-btn-secondary:hover { background: #e6e6ea; }

.mspf-open-btn {
	background: linear-gradient(90deg, #4f46e5, #7c3aed);
	color: #fff;
	border: none;
	padding: 12px 22px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

@media (max-width: 480px) {
	.mspf-modal { padding: 24px 18px 18px; border-radius: 10px; }
	.mspf-title { font-size: 19px; }
}
