/* Multi-step form styles */
.form-page {
	min-height: 100vh;
	background: var(--bg);
}

.form-container {
	max-width: 640px;
	margin: 0 auto;
	padding: 2rem 1.5rem;
}

/* Progress bar */
.progress {
	display: flex;
	justify-content: space-between;
	margin-bottom: 2rem;
	position: relative;
}
.progress::before {
	content: "";
	position: absolute;
	top: 16px;
	left: 24px;
	right: 24px;
	height: 3px;
	background: var(--border);
	z-index: 0;
}
.progress__step {
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
	z-index: 1;
	flex: 1;
}
.progress__dot {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--white);
	border: 3px solid var(--border);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--text-light);
	transition: all 0.3s;
}
.progress__step.active .progress__dot {
	border-color: var(--primary);
	background: var(--primary);
	color: var(--white);
}
.progress__step.done .progress__dot {
	border-color: var(--accent);
	background: var(--accent);
	color: var(--white);
}
.progress__label {
	font-size: 0.7rem;
	color: var(--text-light);
	margin-top: 0.4rem;
	text-align: center;
}
.progress__step.active .progress__label { color: var(--primary); font-weight: 600; }

/* Form card */
.form-card {
	background: var(--white);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	border: 1px solid var(--border);
	padding: 2rem;
}
.form-card h2 {
	font-size: 1.3rem;
	margin-bottom: 0.5rem;
}
.form-card .subtitle {
	color: var(--text-light);
	margin-bottom: 1.5rem;
	font-size: 0.95rem;
}

/* Form steps */
.form-step { display: none; }
.form-step.active { display: block; }

/* Radio options */
.radio-group { display: flex; flex-direction: column; gap: 0.75rem; }
.radio-option {
	display: flex;
	align-items: center;
	padding: 0.85rem 1rem;
	border: 2px solid var(--border);
	border-radius: var(--radius);
	cursor: pointer;
	transition: all 0.2s;
}
.radio-option:hover { border-color: var(--primary-light); }
.radio-option.selected { border-color: var(--primary); background: #f0f7ff; }
.radio-option.disabled {
	opacity: 0.5;
	cursor: not-allowed;
	background: #f5f5f5;
}
.radio-option input { display: none; }
.radio-option__dot {
	width: 20px; height: 20px;
	border: 2px solid var(--border);
	border-radius: 50%;
	margin-right: 0.75rem;
	flex-shrink: 0;
	position: relative;
}
.radio-option.selected .radio-option__dot {
	border-color: var(--primary);
}
.radio-option.selected .radio-option__dot::after {
	content: "";
	position: absolute;
	top: 3px; left: 3px;
	width: 10px; height: 10px;
	background: var(--primary);
	border-radius: 50%;
}
.radio-option__label { font-weight: 500; }
.radio-option__soon {
	margin-left: auto;
	font-size: 0.75rem;
	color: var(--text-light);
	background: #f0f0f0;
	padding: 0.15rem 0.5rem;
	border-radius: 4px;
}

/* Select dropdown */
.form-select {
	width: 100%;
	padding: 0.85rem 1rem;
	border: 2px solid var(--border);
	border-radius: var(--radius);
	font-size: 1rem;
	color: var(--text);
	background: var(--white);
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237f8c8d' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	cursor: pointer;
}
.form-select:focus { border-color: var(--primary); outline: none; }

/* Multi-select checkboxes */
.checkbox-group { display: flex; flex-direction: column; gap: 0.6rem; }
.checkbox-option {
	display: flex;
	align-items: center;
	padding: 0.7rem 1rem;
	border: 2px solid var(--border);
	border-radius: var(--radius);
	cursor: pointer;
	transition: all 0.2s;
}
.checkbox-option:hover { border-color: var(--primary-light); }
.checkbox-option.selected { border-color: var(--primary); background: #f0f7ff; }
.checkbox-option input { display: none; }
.checkbox-option__box {
	width: 20px; height: 20px;
	border: 2px solid var(--border);
	border-radius: 4px;
	margin-right: 0.75rem;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.75rem;
	color: var(--white);
}
.checkbox-option.selected .checkbox-option__box {
	border-color: var(--primary);
	background: var(--primary);
}
.checkbox-option.selected .checkbox-option__box::after { content: "\2713"; }

/* Text inputs */
.form-input {
	width: 100%;
	padding: 0.85rem 1rem;
	border: 2px solid var(--border);
	border-radius: var(--radius);
	font-size: 1rem;
	color: var(--text);
	margin-bottom: 1rem;
}
.form-input:focus { border-color: var(--primary); outline: none; }
.form-input.error { border-color: #e74c3c; }
.input-label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.4rem;
	font-size: 0.95rem;
}
.input-note { font-size: 0.8rem; color: var(--text-light); margin-top: -0.7rem; margin-bottom: 1rem; }

/* Navigation buttons */
.form-nav {
	display: flex;
	justify-content: space-between;
	margin-top: 1.5rem;
	gap: 1rem;
}
.form-nav .btn { min-width: 120px; }
.btn--back {
	background: var(--white);
	color: var(--text);
	border: 2px solid var(--border);
}
.btn--back:hover { background: var(--bg); }

/* Loading state */
.loading-overlay {
	display: none;
	position: fixed;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(255,255,255,0.9);
	z-index: 1000;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}
.loading-overlay.active { display: flex; }
.spinner {
	width: 48px; height: 48px;
	border: 4px solid var(--border);
	border-top-color: var(--primary);
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text {
	margin-top: 1rem;
	font-size: 1.1rem;
	color: var(--text);
}

/* Responsive */
@media (max-width: 768px) {
	.form-container { padding: 1rem; }
	.form-card { padding: 1.5rem; }
	.progress__label { display: none; }
}
