/**
 * SLMA Theme — submit.css
 * Submit listing form styles
 */

/* ============================================================
   FORM SECTION
   ============================================================ */

.form-section {
	background: var(--page-bg);
	padding: 60px 0;
	margin-bottom: 40px;
}

.form-container {
	max-width: 600px;
}

/* ============================================================
   PROGRESS BAR
   ============================================================ */

.progress-bar {
	margin-bottom: 40px;
}

.step-circles {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
}

.step-circle {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--page-bg);
	border: 2px solid var(--border);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	color: var(--text-secondary);
	transition: all 0.2s ease;
	font-size: 14px;
	position: relative;
	z-index: 1;
}

.step-circle.active {
	background: var(--accent);
	color: var(--white);
	border-color: var(--accent);
}

.step-circle.complete {
	background: var(--green);
	color: var(--white);
	border-color: var(--green);
}

.step-circle.complete::after {
	content: '✓';
	position: absolute;
	font-size: 16px;
}

.step-circle.complete .step-number {
	display: none;
}

.step-line {
	width: 60px;
	height: 2px;
	background: var(--border);
	margin: 0 -8px;
}

.step-circle.complete ~ .step-line {
	background: var(--green);
}

.step-circle.active ~ .step-line {
	background: var(--accent);
}

/* ============================================================
   FORM CARD STYLES
   ============================================================ */

.listing-form {
	background: var(--white);
	border-radius: 10px;
	overflow: hidden;
}

.step-card {
	display: none;
	padding: 40px;
	animation: slideIn 0.3s ease;
}

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

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

.step-card h2 {
	margin-top: 0;
	margin-bottom: 32px;
	font-size: 24px;
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */

.form-group {
	margin-bottom: 24px;
}

.form-group:last-of-type {
	margin-bottom: 24px;
}

.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.form-row .form-group {
	margin-bottom: 0;
}

label {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
	color: var(--text-primary);
	font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="file"],
select,
textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--border);
	border-radius: 6px;
	font-family: var(--font-family);
	font-size: 14px;
	transition: all 0.2s ease;
	background: var(--white);
	color: var(--text-primary);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="file"]:focus,
select:focus,
textarea:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-light);
}

input.error,
select.error,
textarea.error {
	border-color: #ef4444;
	background: #fef2f2;
}

textarea {
	resize: vertical;
	min-height: 120px;
}

.form-help {
	font-size: 12px;
	color: var(--text-muted);
	margin-top: 4px;
}

/* ============================================================
   CHECKBOX GROUP
   ============================================================ */

.checkbox-group {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}

.checkbox-item {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 12px;
	background: var(--page-bg);
	border-radius: 6px;
	transition: all 0.2s ease;
	cursor: pointer;
}

.checkbox-item:hover {
	background: var(--accent-light);
}

.checkbox-item input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin-top: 2px;
	cursor: pointer;
	flex-shrink: 0;
}

.checkbox-item span {
	font-size: 14px;
	color: var(--text-primary);
	font-weight: 500;
}

/* ============================================================
   RADIO GROUP (PLAN SELECTOR)
   ============================================================ */

.radio-group {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}

.radio-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px;
	background: var(--page-bg);
	border-radius: 6px;
	transition: all 0.2s ease;
	cursor: pointer;
}

.radio-item:hover {
	background: var(--accent-light);
}

.radio-item input[type="radio"] {
	width: 18px;
	height: 18px;
	margin: 0;
	cursor: pointer;
	flex-shrink: 0;
}

.radio-item span {
	font-size: 14px;
	color: var(--text-primary);
	font-weight: 500;
}

/* ============================================================
   PLAN SELECTOR CARDS
   ============================================================ */

.plan-selector {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

.plan-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 24px 16px;
	border: 2px solid var(--border);
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s ease;
	background: var(--white);
	text-decoration: none;
	color: var(--text-primary);
}

.plan-card:hover {
	border-color: var(--accent);
	background: var(--accent-light);
}

.plan-card input[type="radio"] {
	position: absolute;
	opacity: 0;
	cursor: pointer;
}

.plan-card input[type="radio"]:checked + .plan-name,
.plan-card input[type="radio"]:checked + .plan-name + .plan-price {
	color: var(--accent);
	font-weight: 700;
}

.plan-card input[type="radio"]:checked {
	display: none;
}

.plan-name {
	font-size: 16px;
	font-weight: 600;
	color: var(--text-primary);
}

.plan-price {
	font-size: 20px;
	font-weight: 700;
	color: var(--accent);
}

/* ============================================================
   STEP ACTIONS
   ============================================================ */

.step-actions {
	display: flex;
	gap: 12px;
	margin-top: 32px;
	justify-content: space-between;
}

.step-actions .btn {
	flex: 1;
	max-width: none;
}

.step-actions .btn-ghost {
	flex: 0 1 140px;
}

/* ============================================================
   RESPONSIVE - TABLET
   ============================================================ */

@media (max-width: 768px) {
	.form-section {
		padding: 40px 0;
	}

	.step-card {
		padding: 32px;
	}

	.form-row {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.checkbox-group {
		grid-template-columns: 1fr;
	}

	.plan-selector {
		grid-template-columns: 1fr;
	}

	.step-actions {
		flex-direction: column;
	}

	.step-actions .btn {
		max-width: 100%;
	}

	.step-actions .btn-ghost {
		flex: 1;
		max-width: none;
	}
}

/* ============================================================
   RESPONSIVE - MOBILE
   ============================================================ */

@media (max-width: 480px) {
	.progress-bar {
		margin-bottom: 32px;
		overflow-x: auto;
	}

	.step-circles {
		gap: 4px;
	}

	.step-circle {
		width: 36px;
		height: 36px;
		font-size: 12px;
	}

	.step-line {
		width: 40px;
		margin: 0 -4px;
	}

	.form-section {
		padding: 24px 0;
	}

	.form-container {
		max-width: 100%;
	}

	.step-card {
		padding: 24px 16px;
	}

	.step-card h2 {
		font-size: 20px;
		margin-bottom: 24px;
	}

	.form-group {
		margin-bottom: 16px;
	}

	label {
		font-size: 13px;
		margin-bottom: 6px;
	}

	input[type="text"],
	input[type="email"],
	input[type="url"],
	input[type="tel"],
	input[type="number"],
	input[type="password"],
	input[type="file"],
	select,
	textarea {
		font-size: 13px;
		padding: 8px 10px;
	}

	textarea {
		min-height: 100px;
	}

	.checkbox-group {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.checkbox-item,
	.radio-item {
		padding: 8px;
		font-size: 13px;
	}

	.checkbox-item input[type="checkbox"],
	.radio-item input[type="radio"] {
		width: 16px;
		height: 16px;
	}

	.plan-selector {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.plan-card {
		padding: 20px 12px;
	}

	.plan-name {
		font-size: 14px;
	}

	.plan-price {
		font-size: 16px;
	}

	.step-actions {
		flex-direction: column;
		margin-top: 24px;
		gap: 8px;
	}

	.step-actions .btn {
		font-size: 13px;
		padding: 10px 16px;
	}
}
