/**
 * Location Propose Form Styles
 *
 * @package LocationSearchPlugin
 */

.lsp-propose-container {
	max-width: 900px;
	margin: 0 auto;
	padding: 20px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.lsp-propose-form {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	overflow: hidden;
}

.lsp-propose-header {
	background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
	color: #fff;
	padding: 30px;
	text-align: center;
}

.lsp-propose-header h2 {
	margin: 0 0 10px;
	font-size: 28px;
	font-weight: 600;
}

.lsp-propose-header p {
	margin: 0;
	opacity: 0.9;
	font-size: 16px;
}

.lsp-form-section {
	padding: 25px 30px;
	border-bottom: 1px solid #e2e8f0;
}

.lsp-form-section:last-of-type {
	border-bottom: none;
}

.lsp-form-section-required {
	background: #fff5f5;
}

.lsp-section-title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 20px;
	padding-bottom: 10px;
	border-bottom: 2px solid #e2e8f0;
	color: #1a365d;
	font-size: 18px;
	font-weight: 600;
}

.lsp-section-icon {
	font-size: 20px;
	color: #2c5282;
}

.lsp-form-row {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin-bottom: 20px;
}

.lsp-form-row:last-child {
	margin-bottom: 0;
}

.lsp-form-row-2 .lsp-form-group {
	flex: 1 1 calc(50% - 10px);
}

.lsp-form-row-3 .lsp-form-group {
	flex: 1 1 calc(33.333% - 14px);
}

.lsp-form-group {
	flex: 1 1 100%;
}

.lsp-form-group-full {
	flex: 1 1 100%;
}

.lsp-form-group label {
	display: flex;
	align-items: center;
	margin-bottom: 6px;
	font-weight: 500;
	color: #2d3748;
	font-size: 14px;
}

.lsp-required {
	color: #e53e3e;
}

.lsp-input,
.lsp-select,
.lsp-textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #cbd5e0;
	border-radius: 6px;
	font-size: 14px;
	transition: border-color 0.2s, box-shadow 0.2s;
	box-sizing: border-box;
}

.lsp-input:focus,
.lsp-select:focus,
.lsp-textarea:focus {
	outline: none;
	border-color: #4299e1;
	box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

.lsp-input::placeholder {
	color: #a0aec0;
}

.lsp-textarea {
	resize: vertical;
	min-height: 80px;
}

.lsp-checkbox-group {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
}

.lsp-checkbox-label {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-size: 14px;
	color: #2d3748;
}

.lsp-checkbox-label input[type="checkbox"] {
	display: none;
}

.lsp-checkbox-custom {
	width: 20px;
	height: 20px;
	border: 2px solid #cbd5e0;
	border-radius: 4px;
	/*display: flex;*/
	display: inline-block;
	align-items: center;
	justify-content: center;
	transition: all 0.2s;
}

.lsp-field-inline {
	display: inline-block;
}

.lsp-checkbox-label input[type="checkbox"]:checked+.lsp-checkbox-custom {
	background: #4299e1;
	border-color: #4299e1;
}

.lsp-checkbox-label input[type="checkbox"]:checked+.lsp-checkbox-custom::after {
	content: '✓';
	color: #fff;
	font-size: 14px;
	font-weight: bold;
	text-align: center;
	display: block;
	margin-top: 1px;
}

.lsp-checkbox-label input[type="checkbox"]:checked+.lsp-checkbox-custom {
	background-image: none;
}

.lsp-checkbox-required .lsp-checkbox-custom {
	border-color: #e53e3e;
}

.lsp-radio-group {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
}

.lsp-radio-label {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-size: 14px;
	color: #2d3748;
}

.lsp-radio-label input[type="radio"] {
	display: none;
}

.lsp-radio-custom {
	width: 20px;
	height: 20px;
	border: 2px solid #cbd5e0;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s;
}

.lsp-radio-label input[type="radio"]:checked+.lsp-radio-custom {
	border-color: #4299e1;
	background: #4299e1;
}

.lsp-radio-label input[type="radio"]:checked+.lsp-radio-custom::after {
	content: '';
	width: 8px;
	height: 8px;
	background: #fff;
	border-radius: 50%;
}

.lsp-checkbox-toggle {
	display: flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
}

.lsp-checkbox-toggle input[type="checkbox"] {
	display: none;
}

.lsp-toggle-slider {
	width: 50px;
	height: 26px;
	background: #cbd5e0;
	border-radius: 26px;
	position: relative;
	transition: background 0.3s;
}

.lsp-toggle-slider::before {
	content: '';
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	background: #fff;
	border-radius: 50%;
	transition: transform 0.3s;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.lsp-checkbox-toggle input[type="checkbox"]:checked+.lsp-toggle-slider {
	background: #48bb78;
}

.lsp-checkbox-toggle input[type="checkbox"]:checked+.lsp-toggle-slider::before {
	left: 27px;
}

.lsp-toggle-label {
	font-weight: 500;
	color: #2d3748;
}

.lsp-conditional-field {
	display: none !important;
}

.lsp-conditional-field.lsp-visible {
	display: flex !important;
	flex-direction: column;
	gap: 20px;
	margin-top: 15px;
	padding-top: 15px;
	border-top: 1px dashed #e2e8f0;
}

.lsp-conditional-field.lsp-visible .lsp-form-row,
.lsp-conditional-field.lsp-visible .lsp-form-row-3 {
	display: flex !important;
	flex-wrap: wrap;
	gap: 20px;
	margin-bottom: 0;
	width: 100%;
}

.lsp-conditional-field.lsp-visible .lsp-form-row-3 .lsp-form-group {
	flex: 1 1 calc(33.333% - 14px);
}

.lsp-conditional-field.lsp-visible .lsp-form-row .lsp-form-group {
	flex: 1 1 100%;
}

.lsp-conditional-field.lsp-show-default {
	display: flex !important;
	flex-direction: column;
	gap: 20px;
}

.lsp-conditional-field.lsp-show-default.lsp-hidden {
	display: none !important;
}

.lsp-conditional-field.lsp-show-default.lsp-visible {
	border-top: none !important;
	padding-top: 0 !important;
	margin-top: 0 !important;
}

.lsp-styles-tree {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.lsp-style-parent {
	background: #f7fafc;
	border-radius: 8px;
	padding: 15px;
}

.lsp-style-parent-label {
	display: block;
	font-weight: 600;
	color: #1a365d;
	margin-bottom: 10px;
	padding-bottom: 8px;
	border-bottom: 1px solid #e2e8f0;
}

.lsp-style-children {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.lsp-style-child {
	background: #fff;
	padding: 8px 12px;
	border-radius: 20px;
	border: 1px solid #e2e8f0;
	font-weight: normal;
}

.lsp-style-child:hover {
	border-color: #4299e1;
}

.lsp-tags-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 10px;
}

.lsp-tag-item {
	background: #f7fafc;
	padding: 10px 15px;
	border-radius: 6px;
	border: 1px solid #e2e8f0;
}

.lsp-tag-item:hover {
	border-color: #4299e1;
}

.lsp-dropzone {
	border: 2px dashed #cbd5e0;
	border-radius: 8px;
	padding: 40px;
	text-align: center;
	background: #f7fafc;
	transition: all 0.3s;
	cursor: pointer;
}

.lsp-dropzone:hover,
.lsp-dropzone.dragover {
	border-color: #4299e1;
	background: #ebf8ff;
}

.lsp-dropzone-text {
	margin: 0;
	color: #4a5568;
}

.lsp-dropzone-text .dashicons {
	font-size: 48px;
	height: 48px;
	width: 48px;
	color: #a0aec0;
	margin-bottom: 10px;
}

.lsp-btn-browse {
	margin-top: 10px;
	background: #4299e1;
	border-color: #4299e1;
	color: #fff;
	padding: 8px 20px;
	border-radius: 6px;
	font-weight: 500;
}

.lsp-btn-browse:hover {
	background: #3182ce;
	border-color: #3182ce;
}

.lsp-image-preview {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 15px;
}

.lsp-image-preview-item {
	position: relative;
	width: 100px;
	height: 100px;
	border-radius: 6px;
	overflow: hidden;
	border: 2px solid #e2e8f0;
}

.lsp-image-preview-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.lsp-image-preview-item .remove-image {
	position: absolute;
	top: 5px;
	right: 5px;
	width: 24px;
	height: 24px;
	background: rgba(229, 62, 62, 0.9);
	border: none;
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	line-height: 1;
	padding: 0;
}

.lsp-image-preview-item .remove-image:hover {
	background: #c53030;
}

.lsp-image-preview-item .upload-progress {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: #e2e8f0;
}

.lsp-image-preview-item .upload-progress-bar {
	height: 100%;
	background: #48bb78;
	width: 0;
	transition: width 0.3s;
}

.lsp-helper {
	font-size: 12px;
	color: #718096;
	margin-top: 8px;
}

.lsp-count-badge {
	font-size: 12px;
	font-weight: normal;
	color: #718096;
}

.lsp-form-submit {
	background: #f7fafc;
	text-align: center;
}

.lsp-btn-submit {
	background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
	color: #fff;
	border: none;
	padding: 15px 50px;
	font-size: 18px;
	font-weight: 600;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s;
	box-shadow: 0 4px 6px rgba(72, 187, 120, 0.3);
}

.lsp-btn-submit:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 12px rgba(72, 187, 120, 0.4);
}

.lsp-btn-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

.lsp-btn-loading .dashicons {
	animation: spin 1s linear infinite;
}

@keyframes spin {
	from {
		transform: rotate(0deg);
	}

	to {
		transform: rotate(360deg);
	}
}

.lsp-form-message {
	padding: 20px;
	margin: 20px;
	border-radius: 8px;
	text-align: center;
	font-size: 16px;
}

.lsp-form-message.success {
	background: #c6f6d5;
	color: #22543d;
	border: 1px solid #9ae6b4;
}

.lsp-form-message.error {
	background: #fed7d7;
	color: #742a2a;
	border: 1px solid #feb2b2;
}

.lsp-status-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
}

.lsp-status-pending {
	background: #fefcbf;
	color: #744210;
}

.lsp-status-approved {
	background: #c6f6d5;
	color: #22543d;
}

.lsp-status-rejected {
	background: #fed7d7;
	color: #742a2a;
}

@media (max-width: 768px) {
	.lsp-propose-container {
		padding: 10px;
	}

	.lsp-form-section {
		padding: 20px 15px;
	}

	.lsp-form-row-2 .lsp-form-group,
	.lsp-form-row-3 .lsp-form-group {
		flex: 1 1 100%;
	}

	.lsp-tags-grid {
		grid-template-columns: 1fr 1fr;
	}

	.lsp-btn-submit {
		width: 100%;
	}
}