/**
 * Submit Job Form Styles
 *
 * @package Together_Job_Board
 * @since 1.0.0
 */

.tjb-submit-job-form-wrapper {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
}

.tjb-submit-job-form-wrapper .tjb-page-title {
	font-size: 28px;
	font-weight: 700;
	margin-bottom: 30px;
	color: #333;
}

.tjb-package-info {
	background: #e8f4f8;
	border: 1px solid #bee;
	border-radius: 4px;
	padding: 15px;
	margin-bottom: 25px;
	color: #369;
}

.tjb-package-selection-section {
	background: #f9f9f9;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 25px;
	margin-bottom: 30px;
}

.tjb-package-selection-section h3 {
	margin-top: 0;
}

.tjb-section-description {
	color: #666;
	font-size: 14px;
	margin-bottom: 20px;
}

.tjb-field-description {
	font-size: 13px;
	color: #666;
	margin-top: 8px;
	margin-bottom: 0;
	font-style: italic;
}

.tjb-submit-job-form {
	background: #fff;
	border-radius: 8px;
	padding: 30px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tjb-form-section {
	margin-bottom: 40px;
	padding-bottom: 30px;
	border-bottom: 1px solid #e0e0e0;
}

.tjb-form-section:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.tjb-form-section h3 {
	font-size: 20px;
	font-weight: 600;
	margin-bottom: 20px;
	color: #333;
}

.tjb-form-field {
	margin-bottom: 25px;
}

.tjb-form-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
	color: #333;
}

.tjb-form-field .required {
	color: #d63638;
}

.tjb-form-field .tjb-input {
	width: 100%;
	padding: 12px 15px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	transition: border-color 0.3s ease;
}

.tjb-form-field .tjb-input:focus {
	outline: none;
	border-color: #3d4ef3;
	box-shadow: 0 0 0 2px rgba(61, 78, 243, 0.1);
}

.tjb-form-row {
	display: flex;
	gap: 20px;
	margin-bottom: 25px;
}

.tjb-form-field-half {
	flex: 1;
}

.tjb-image-upload-wrapper {
	margin-top: 10px;
}

.tjb-image-preview {
	position: relative;
	display: inline-block;
	margin-bottom: 15px;
}

.tjb-image-preview img {
	max-width: 300px;
	height: auto;
	border-radius: 4px;
	border: 1px solid #ddd;
}

.tjb-remove-image {
	position: absolute;
	top: 5px;
	right: 5px;
	background: #d63638;
	color: #fff;
	border: none;
	border-radius: 3px;
	padding: 5px 10px;
	cursor: pointer;
	font-size: 12px;
}

.tjb-remove-image:hover {
	background: #b32d2e;
}

.tjb-upload-image {
	margin-top: 10px;
}

.tjb-form-actions {
	margin-top: 30px;
	padding-top: 20px;
	border-top: 1px solid #e0e0e0;
}

.tjb-form-actions .button {
	margin-right: 10px;
}

/* Rich text editor adjustments */
.tjb-form-field .wp-editor-container {
	border: 1px solid #ddd;
	border-radius: 4px;
}

.tjb-form-field .wp-editor-container:focus-within {
	border-color: #3d4ef3;
	box-shadow: 0 0 0 2px rgba(61, 78, 243, 0.1);
}

/* Message styles */
.tjb-message {
	padding: 15px 20px;
	border-radius: 4px;
	margin-bottom: 25px;
}

.tjb-message-success {
	background: #d4edda;
	border: 1px solid #c3e6cb;
	color: #155724;
}

.tjb-message-error {
	background: #f8d7da;
	border: 1px solid #f5c6cb;
	color: #721c24;
}

.tjb-message-warning {
	background: #fff3cd;
	border: 1px solid #ffc107;
	color: #856404;
}

/* Photos upload */
.tjb-photos-upload-wrapper {
	margin-top: 10px;
}

.tjb-photos-preview {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	margin-bottom: 15px;
}

.tjb-photo-item {
	position: relative;
	width: 120px;
	height: 120px;
	border: 1px solid #ddd;
	border-radius: 4px;
	overflow: hidden;
}

.tjb-photo-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tjb-remove-photo {
	position: absolute;
	top: 5px;
	right: 5px;
	background: #d63638;
	color: #fff;
	border: none;
	border-radius: 50%;
	width: 24px;
	height: 24px;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tjb-remove-photo:hover {
	background: #b32d2e;
}

/* Map preview */
#tjb-map-preview {
	background: #f5f5f5;
}

/* Responsive */
@media (max-width: 768px) {
	.tjb-submit-job-form-wrapper {
		padding: 15px;
	}

	.tjb-submit-job-form {
		padding: 20px;
	}

	.tjb-form-row {
		flex-direction: column;
		gap: 0;
	}

	.tjb-form-field-half {
		width: 100%;
	}
}
