/**
 * Multi-Step Signup Form Styles
 */

/* Progress Indicator */
.signup-progress {
	margin: 0 0 40px;
	background: #f8f9fa;
	padding: 30px 20px;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.progress-container {
	max-width: 800px;
	margin: 0 auto;
}

.progress-bar {
	position: relative;
	height: 4px;
	background: #e5e7eb;
	border-radius: 2px;
	margin: 0 60px 30px;
}

.progress-fill {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	background: #E88E28;
	border-radius: 2px;
	transition: width 0.3s ease;
	width: 20%; /* Default to step 1 */
}

.progress-steps {
	display: flex;
	justify-content: space-between;
	position: relative;
}

.progress-step {
	text-align: center;
	flex: 1;
	position: relative;
	cursor: pointer;
	transition: all 0.3s ease;
}

.step-number {
	width: 40px;
	height: 40px;
	background: white;
	border: 3px solid #e5e7eb;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 8px;
	font-weight: 600;
	font-size: 16px;
	color: #6b7280;
	position: relative;
	z-index: 2;
	transition: all 0.3s ease;
}

.progress-step.active .step-number {
	background: #E88E28;
	border-color: #E88E28;
	color: white;
	transform: scale(1.1);
}

.progress-step.completed .step-number {
	background: #10b981;
	border-color: #10b981;
	color: white;
}

.progress-step.completed .step-number::after {
	content: '✓';
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
}

.step-label {
	font-size: 14px;
	font-weight: 500;
	color: #6b7280;
	transition: color 0.3s ease;
}

.progress-step.active .step-label,
.progress-step.completed .step-label {
	color: #1f2937;
}

/* Form Steps */
.form-steps {
	min-height: 400px;
	position: relative;
}

.form-step {
	display: none;
	animation: fadeIn 0.3s ease;
}

.form-step.active {
	display: block;
}

.form-step h2 {
	font-size: 28px;
	margin: 0 0 10px;
	color: #1f2937;
}

.step-description {
	font-size: 16px;
	color: #6b7280;
	margin: 0 0 30px;
}

/* Form Navigation */
.form-navigation {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 40px;
	padding-top: 30px;
	border-top: 1px solid #e5e7eb;
}

.form-navigation button {
	padding: 12px 24px;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	gap: 8px;
}

.btn-prev {
	background: white;
	color: #374151;
	border: 1px solid #e5e7eb;
}

.btn-prev:hover {
	background: #f9fafb;
	border-color: #d1d5db;
}

.btn-next,
.btn-submit {
	background: #E88E28;
	color: white;
	margin-left: auto;
}

.btn-next:hover,
.btn-submit:hover {
	background: #d77a1a;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(232, 142, 40, 0.3);
}

.btn-save-draft {
	background: transparent;
	color: #6b7280;
	border: 1px solid #e5e7eb;
}

.btn-save-draft:hover {
	background: #f9fafb;
	color: #374151;
}

/* Review Section */
.review-section {
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 30px;
	margin-bottom: 30px;
}

.review-group {
	margin-bottom: 30px;
	padding-bottom: 30px;
	border-bottom: 1px solid #e5e7eb;
}

.review-group:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
}

.review-group h3 {
	font-size: 18px;
	font-weight: 600;
	color: #1f2937;
	margin: 0 0 15px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.review-group h3 .edit-step {
	font-size: 14px;
	color: #E88E28;
	cursor: pointer;
	margin-left: auto;
}

.review-item {
	display: flex;
	margin-bottom: 10px;
}

.review-label {
	font-weight: 500;
	color: #6b7280;
	min-width: 180px;
}

.review-value {
	color: #1f2937;
	flex: 1;
}

/* Enhanced Form Fields */
#cbhn-signup.multi-step-form .cbhn-column label {
	font-weight: 500;
	color: #374151;
	margin-bottom: 8px;
}

#cbhn-signup.multi-step-form .cbhn-column input,
#cbhn-signup.multi-step-form .cbhn-column select,
#cbhn-signup.multi-step-form .cbhn-column textarea {
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	transition: all 0.2s ease;
}

#cbhn-signup.multi-step-form .cbhn-column input:focus,
#cbhn-signup.multi-step-form .cbhn-column select:focus,
#cbhn-signup.multi-step-form .cbhn-column textarea:focus {
	outline: none;
	border-color: #E88E28;
	box-shadow: 0 0 0 3px rgba(232, 142, 40, 0.1);
}

/* Field Error States */
#cbhn-signup.multi-step-form .cbhn-column input.error,
#cbhn-signup.multi-step-form .cbhn-column select.error,
#cbhn-signup.multi-step-form .cbhn-column textarea.error {
	border-color: #ef4444;
}

.field-error {
	display: block;
	margin-top: 4px;
	font-size: 14px;
	color: #ef4444;
}

/* Select2 Fixes for Multi-Step Form */
#cbhn-signup.multi-step-form .select2-container {
	width: 100% !important;
}

#cbhn-signup.multi-step-form .select2-container .select2-selection {
	min-height: 45px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 4px;
}

#cbhn-signup.multi-step-form .select2-container--default .select2-selection--multiple {
	background-color: white;
}

#cbhn-signup.multi-step-form .select2-container--default .select2-selection--multiple .select2-selection__choice {
	background-color: #E88E28;
	border: 1px solid #E88E28;
	color: white;
	padding: 2px 10px;
	margin: 3px;
}

#cbhn-signup.multi-step-form .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
	color: white;
	margin-right: 5px;
}

#cbhn-signup.multi-step-form .select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field {
	min-width: 200px;
	height: 30px;
	margin: 5px;
	padding: 0 6px;
}

#cbhn-signup.multi-step-form .select2-container--focus .select2-selection {
	border-color: #E88E28;
	box-shadow: 0 0 0 3px rgba(232, 142, 40, 0.1);
}

#cbhn-signup.multi-step-form .select2-dropdown {
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#cbhn-signup.multi-step-form .select2-results__option--highlighted[aria-selected] {
	background-color: #E88E28;
}

/* Password Strength Indicator */
.password-strength {
	margin-top: 8px;
}

.password-strength-bar {
	height: 4px;
	background: #e5e7eb;
	border-radius: 2px;
	overflow: hidden;
	margin-bottom: 8px;
}

.password-strength-fill {
	height: 100%;
	transition: width 0.3s ease, background-color 0.3s ease;
	width: 0;
}

.password-strength-fill.weak {
	background: #ef4444;
	width: 33%;
}

.password-strength-fill.medium {
	background: #f59e0b;
	width: 66%;
}

.password-strength-fill.strong {
	background: #10b981;
	width: 100%;
}

.password-requirements {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 14px;
}

.password-requirements li {
	padding: 4px 0 4px 24px;
	position: relative;
	color: #6b7280;
}

.password-requirements li::before {
	content: '○';
	position: absolute;
	left: 0;
	color: #e5e7eb;
}

.password-requirements li.met {
	color: #10b981;
}

.password-requirements li.met::before {
	content: '✓';
	color: #10b981;
}

/* Animations */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes slideIn {
	from {
		transform: translateX(30px);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}

/* Mobile Responsive */
@media (max-width: 768px) {
	.signup-progress {
		padding: 20px 15px;
	}

	.progress-bar {
		margin: 0 40px 20px;
	}

	.step-number {
		width: 32px;
		height: 32px;
		font-size: 14px;
	}

	.step-label {
		font-size: 12px;
	}

	.form-step h2 {
		font-size: 24px;
	}

	.form-navigation {
		flex-wrap: wrap;
		gap: 10px;
	}

	.form-navigation button {
		flex: 1;
		justify-content: center;
		min-width: 120px;
	}

	.btn-save-draft {
		order: 3;
		width: 100%;
	}

	.review-item {
		flex-direction: column;
		margin-bottom: 15px;
	}

	.review-label {
		margin-bottom: 5px;
		font-size: 14px;
	}
}

/* Loading State */
.form-step.loading {
	opacity: 0.6;
	pointer-events: none;
}

.form-step.loading::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 40px;
	height: 40px;
	border: 3px solid #e5e7eb;
	border-top-color: #E88E28;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	to {
		transform: translate(-50%, -50%) rotate(360deg);
	}
}

/* File Upload Styling */
.file-info {
	margin-top: 8px;
	font-size: 14px;
	color: #6b7280;
}

.file-info .file-name {
	font-weight: 500;
	color: #1f2937;
}

.file-info .file-size {
	color: #9ca3af;
}

.upload-progress {
	margin-top: 8px;
	padding: 12px 16px;
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.upload-progress .upload-message {
	color: #6b7280;
	font-size: 14px;
}

.upload-success {
	margin-top: 8px;
	padding: 12px 16px;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: 8px;
	display: flex;
	align-items: center;
	gap: 8px;
	justify-content: space-between;
}

.upload-success .file-name {
	font-weight: 500;
	color: #166534;
}

.upload-success .file-size {
	color: #15803d;
	font-size: 12px;
}

.upload-success .remove-upload {
	cursor: pointer;
	color: #dc2626;
	font-weight: bold;
	font-size: 16px;
	padding: 4px 6px;
	border-radius: 4px;
	transition: background-color 0.2s ease;
}

.upload-success .remove-upload:hover {
	background-color: rgba(220, 38, 38, 0.1);
}

/* Success State */
.signup-success {
	text-align: center;
	padding: 60px 20px;
}

.signup-success .success-icon {
	width: 80px;
	height: 80px;
	background: #10b981;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 20px;
	font-size: 40px;
	color: white;
}

.signup-success h2 {
	font-size: 32px;
	margin: 0 0 10px;
	color: #1f2937;
}

.signup-success p {
	font-size: 18px;
	color: #6b7280;
	max-width: 600px;
	margin: 0 auto;
}