.registration-wizard-progress {
	padding: 1.25rem 1.5rem;
	background: #f7fafc;
	border-bottom: 1px solid #e2e8f0;
}

.rw-hidden {
	display: none !important;
}

.wizard-steps {
	display: flex;
	justify-content: space-between;
	margin-bottom: 1rem;
	position: relative;
}

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

.wizard-step:hover .step-number {
	transform: scale(1.05);
	box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.wizard-step .step-number {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #e2e8f0;
	color: #718096;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	font-size: 0.9375rem;
	margin-bottom: 0.5rem;
	transition: all 0.3s ease;
}

.wizard-step.active .step-number {
	background: #3182ce;
	color: white;
	box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.2);
}

.wizard-step.completed .step-number {
	background: #38a169;
	color: white;
}

.wizard-step .step-label {
	font-size: 0.8125rem;
	color: #718096;
	font-weight: 500;
	letter-spacing: 0.01em;
}

.wizard-step.active .step-label {
	color: #2c5282;
	font-weight: 600;
}

.wizard-step.completed .step-label {
	color: #38a169;
}

.wizard-progress-bar {
	height: 3px;
	background: #e2e8f0;
	border-radius: 1.5px;
	overflow: hidden;
}

.wizard-progress-fill {
	height: 100%;
	background: linear-gradient(90deg, #3182ce 0%, #2c5282 100%);
	transition: width 0.4s ease;
}

.wizard-step-content {
	animation: fadeIn 0.3s ease;
	padding-bottom: 20px;
}

/* Step 1 specific layout - custom flexbox grid */
.rw-step1-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 20px;
	margin-bottom: 1rem;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

.rw-step1-field {
	flex: 0 1 calc(50% - 10px);
	min-width: 0;
	margin-bottom: 1rem;
}

@media (max-width: 767px) {
	.rw-step1-field {
		flex: 0 1 100%;
	}
}

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

.input-group .validation-icon {
	position: absolute;
	right: 0;
	top: 0;
	height: 100%;
	z-index: 10;
	pointer-events: none;
}

.input-group .validation-icon .input-group-text {
	background: transparent;
	border: none;
	padding-right: 0.625rem;
}

.wizard-step-content .row {
	margin-bottom: 0.5rem;
}

.wizard-step-content .mb-3 {
	margin-bottom: 1rem;
}

.form-control.is-valid {
	border-color: #38a169;
	padding-right: calc(1.5em + .75rem);
	background-color: #f0fff4;
}

.form-control.is-invalid {
	border-color: #e53e3e;
	padding-right: calc(1.5em + .75rem);
	background-color: #fff5f5;
}

.field-error {
	font-size: 0.8125rem;
	margin-top: 0.375rem;
	color: #e53e3e;
}

label.required:after {
	content: ' *';
	color: #dc3545;
}

.modal-lg {
	max-width: 900px;
}

#registerModal {
	/* Ensure the modal itself occupies the viewport */
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	overflow: hidden;
	-webkit-overflow-scrolling: touch;
}

#registerModal .modal-dialog {
	max-width: 900px;
	margin: 1.75rem auto;
	height: calc(100vh - 3.5rem);
	max-height: calc(100vh - 3.5rem);
	display: flex;
	flex-direction: column;
}

#registerModal .modal-content {
	display: flex;
	flex-direction: column;
	height: 100%;
	max-height: 100%;
	border-radius: 8px;
	overflow: auto;
}

#registerModal .modal-header {
	flex-shrink: 0;
	border-bottom: 1px solid #dee2e6;
	padding: 1rem 1.5rem;
}

#registerModal .register-modal-title {
	font-size: 1.25rem;
	margin: 0;
	font-weight: 600;
}

#registerModal .modal-header .close {
	padding: 0;
	margin: 0;
	font-size: 1.5rem;
	line-height: 1;
}

#registerModal .registration-wizard-progress {
	flex-shrink: 0;
}

#registerModal .modal-body {
	flex: 1 1 auto;
	overflow-y: auto;
	overflow-x: hidden;
	padding: 1.5rem 2rem;
	-webkit-overflow-scrolling: touch;
}

#registerModal .modal-footer {
	flex-shrink: 0;
	border-top: 1px solid #e2e8f0;
	padding: 1rem 1.5rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #f7fafc;
	gap: 0.75rem;
}

#registerModal .wizard-buttons {
	display: flex;
	gap: 0.75rem;
	align-items: center;
	width: 100%;
	justify-content: space-between;
}

#registerModal .wizard-buttons button {
	margin: 0;
	white-space: nowrap;
	font-weight: 500;
	padding: 0.625rem 1.25rem;
	border-radius: 6px;
	transition: all 0.2s ease;
}

#registerModal .wizard-buttons button:not([style*="display: none"]):hover:not(:disabled) {
	transform: translateY(-1px);
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#registerModal .wizard-buttons button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.step-intro {
	padding: 10px 15px;
	background-color: #e8f4fd;
	border-left: 3px solid #3182ce;
	margin-bottom: 20px;
	border-radius: 4px;
}

.step-intro p {
	margin: 0;
	color: #2c5282;
	font-size: 0.9rem;
}

.file-input-wrapper {
	margin-bottom: 0.5rem;
}

#registerModal .file-input {
	margin-bottom: 0.75rem;
}

/* Krajee bootstrap-fileinput: compact + responsive */
#registerModal .file-drop-zone {
	min-height: 74px;
	padding: 0.5rem 0.6rem;
	margin: 0;
	border: 1px dashed #cbd5e0;
	border-radius: 0.5rem;
	background: #fff;
}

#registerModal .file-drop-zone-title {
	padding: 0.35rem 0.25rem;
	font-size: 0.85rem;
	line-height: 1.2;
	color: #4a5568;
}

#registerModal .file-preview {
	padding: 0.4rem;
	margin: 0 0 0.5rem 0;
	border-radius: 0.5rem;
}

#registerModal .file-preview-thumbnails {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

#registerModal .file-preview-frame {
	margin: 0;
	padding: 0.35rem;
	border-radius: 0.5rem;
}

#registerModal .rw-file-actions {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 0.5rem;
	margin-top: 0.5rem;
}

#registerModal .rw-file-actions .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	white-space: nowrap;
}

#registerModal .rw-file-actions .btn-remove {
	display: none;
}

#registerModal .file-preview-frame {
	border: none;
	padding: 0;
	margin: 0 0 0.5rem 0;
}

#registerModal .file-preview-frame .kv-file-content {
	width: 100%;
	text-align: center;
}

#registerModal .file-thumbnail-footer {
	padding: 0.5rem 0;
	border-top: 1px solid #e2e8f0;
	margin-top: 0.5rem;
}

#registerModal .file-footer-caption {
	font-size: 0.875rem;
	color: #4a5568;
	text-align: center;
	word-break: break-word;
}

#registerModal .file-actions {
	display: none;
}

@media (max-width: 576px) {
	#registerModal .rw-file-actions {
		flex-direction: column;
		align-items: stretch;
	}

	#registerModal .rw-file-actions .btn {
		width: 100%;
	}
}

.custom-control-label {
	font-size: 0.9rem;
	line-height: 1.5;
}

.alert-info {
	background-color: #e8f4fd;
	border-color: #bee3f8;
	color: #2c5282;
}

.alert-info .alert-link {
	color: #2b6cb0;
	font-weight: 600;
}

@media (max-width: 768px) {
	#registerModal .modal-dialog {
		margin: 0.5rem;
		max-width: calc(100% - 1rem);
		height: calc(100vh - 1rem);
		max-height: calc(100vh - 1rem);
	}
	
	#registerModal .modal-content {
		height: 100%;
		max-height: 100%;
	}
	
	#registerModal .modal-body {
		padding: 1rem 1.25rem;
	}
	
	#registerModal .wizard-buttons {
		flex-direction: column;
		gap: 0.5rem;
	}
	
	#registerModal .wizard-buttons button {
		width: 100%;
	}
	
	.wizard-step .step-label {
		font-size: 0.7rem;
	}
	
	.wizard-step .step-number {
		width: 35px;
		height: 35px;
		font-size: 0.875rem;
	}
}

@media (max-width: 576px) {
	.registration-wizard-progress {
		padding: 1rem;
	}
	
	#registerModal .modal-header {
		padding: 0.75rem 1rem;
	}
	
	#registerModal .register-modal-title {
		font-size: 1.1rem;
	}
}
