/* ==========================================
   REGISTER STEPPER FORM STYLES
   ========================================== */

.register-stepper-form {
	/* Allow the form to grow naturally and rely on the page scroll */
	max-height: none;
	overflow: visible;
	width: 100%;
	padding-bottom: 1rem;
	scroll-behavior: smooth;
}

/* Stepper progress indicator */
.stepper-progress {
	position: relative;
	margin-bottom: 1.5rem;
}

.progress-container {
	position: relative;
	max-width: 300px;
	margin: 0 auto;
}

/* Progress lines */
.progress-line,
.progress-line-active {
	height: 2px;
	border-radius: 1px;
}

.progress-line-active {
	background: linear-gradient(to right, #6366f1, #8b5cf6);
	transition: width 0.5s ease-in-out;
}

/* Step indicators */
.step-indicator {
	width: 2rem;
	height: 2rem;
	border-width: 2px;
	font-size: 0.875rem;
	font-weight: 600;
	transition: all 0.3s ease;
	position: relative;
	background: white;
}

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

.step-indicator.active {
	background: #6366f1;
	border-color: #6366f1;
	color: white;
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.step-indicator.pending {
	background: white;
	border-color: #d1d5db;
	color: #6b7280;
}

/* Step labels */
.step-labels {
	margin-top: 0.5rem;
}

.step-labels span {
	font-size: 0.75rem;
	color: #6b7280;
	text-align: center;
	flex: 1;
}

/* Step content */
.step-content {
	min-height: 300px;
	animation: fadeIn 0.3s ease-in-out;
}

.step-title {
	color: #374151;
	font-weight: 600;
	margin-bottom: 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid #e5e7eb;
}

/* Summary card */
.summary-card {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 0.5rem;
	padding: 1rem;
}

.summary-grid {
	gap: 0.5rem;
}

.summary-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.25rem 0;
}

/* Step navigation */
.step-navigation {
	border-top: 1px solid #e5e7eb;
	padding-top: 1rem;
	margin-top: 1.5rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
}

.step-counter {
	font-size: 0.875rem;
	color: #6b7280;
	font-weight: 500;
}

.step-navigation button {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	border-radius: 0.5rem;
	font-weight: 500;
	transition: all 0.2s ease;
	border: 1px solid;
	min-width: 120px;
	justify-content: center;
}

.step-navigation button:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.step-navigation button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

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

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Responsive */
@media (max-width: 640px) {
	.register-stepper-form {
		max-height: none;
	}

	.step-labels {
		display: none;
	}

	.register-stepper-form .form-group label,
	.register-stepper-form .form-group label span {
		font-size: 0.95rem;
	}

	.register-stepper-form .form-input {
		font-size: 0.95rem;
		padding: 0.75rem 0.875rem;
	}

	.register-stepper-form .form-input::placeholder {
		font-size: 0.85rem;
	}

	.progress-container {
		max-width: 250px;
	}

	.step-indicator {
		width: 1.75rem;
		height: 1.75rem;
		font-size: 0.75rem;
	}

	.step-content {
		min-height: 250px;
	}

	.step-title {
		font-size: 1.05rem;
		margin-bottom: 0.75rem;
	}

	.step-navigation {
		flex-direction: column;
		gap: 0.75rem;
	}

	.step-navigation .step-counter {
		order: -1;
		align-self: center;
	}

	.step-navigation button {
		width: 100%;
		min-width: auto;
	}

	.step-navigation {
		display: grid;
		grid-template-columns: 1fr auto 1fr;
		grid-template-areas: "prev counter next" "submit submit submit";
		align-items: center;
		gap: 0.5rem;
	}

	.step-navigation #prev-step-btn {
		grid-area: prev;
	}

	.step-navigation .step-counter {
		grid-area: counter;
		order: 0;
	}

	.step-navigation #next-step-btn {
		grid-area: next;
	}

	.step-navigation #submit-step-btn {
		grid-area: submit;
		width: 100%;
	}

	.step-navigation button {
		font-size: 0.95rem;
		padding: 0.65rem 0.75rem;
	}
}

/* Validation states */
.form-input.border-red-500 {
	border-color: #ef4444 !important;
	box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Better contrast */
.step-indicator svg {
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* Landscape mobile optimization */
@media (max-width: 896px) and (max-height: 500px) and (orientation: landscape) {
	.register-stepper-form {
		max-height: none;
		padding-bottom: 0.5rem;
	}

	.step-content {
		min-height: 200px;
	}

	.stepper-progress {
		margin-bottom: 1rem;
	}

	.step-navigation {
		margin-top: 1rem;
		padding-top: 0.5rem;
	}
}
