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

.tjb-submit-job-form-wrapper {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 0 40px 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

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

/* Flash Messages */
.tjb-message {
	padding: 16px 20px;
	border-radius: 8px;
	margin-bottom: 25px;
	font-size: 14px;
	line-height: 1.5;
}

.tjb-message-success {
	background: #def7ec;
	color: #03543f;
	border: 1px solid #84e1bc;
}

.tjb-message-error {
	background: #fde8e8;
	color: #9b1c1c;
	border: 1px solid #f8b4b4;
}

.tjb-message-warning {
	background: #fdf6b2;
	color: #723b13;
	border: 1px solid #fce96a;
}

.tjb-message-info {
	background: #e1effe;
	color: #1e429f;
	border: 1px solid #a4cafe;
}

/* Info Boxes */
.tjb-package-info {
	background: #ebf8ff;
	border-left: 4px solid #4299e1;
	padding: 16px;
	border-radius: 4px;
	margin-bottom: 25px;
	color: #2c5282;
}

/* Form Container - Remove old card style */
.tjb-submit-job-form {
	background: transparent;
	box-shadow: none;
	padding: 0;
}

/* Sections as Cards */
.tjb-form-section {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 30px;
	margin-bottom: 30px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.tjb-form-section h3 {
	font-size: 20px;
	font-weight: 600;
	margin: 0 0 24px 0;
	color: #2d3748;
	padding-bottom: 0;
	border-bottom: none;
}

.tjb-section-description {
	color: #718096;
	font-size: 14px;
	margin-bottom: 24px;
	margin-top: -15px;
}

/* Grid Layout */
.tjb-form-row {
	display: flex;
	gap: 24px;
	margin-bottom: 24px;
}

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

.tjb-form-field-third {
	flex: 1;
	min-width: 0;
}

/* Fields */
.tjb-form-field {
	margin-bottom: 24px;
}

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

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

.tjb-form-field .optional {
	color: #718096;
	font-weight: 400;
	font-size: 0.9em;
}

.tjb-input {
	width: 100%;
	height: 48px;
	/* Consistent height */
	padding: 10px 16px;
	border: 1px solid #cbd5e0;
	border-radius: 6px;
	font-size: 15px;
	color: #2d3748;
	transition: all 0.2s ease;
	background: #fff;
	box-sizing: border-box;
}

textarea.tjb-input {
	height: auto;
	min-height: 120px;
	padding: 12px 16px;
	line-height: 1.5;
}

.tjb-input:focus {
	outline: none;
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Read-only system fields */
.tjb-read-only-field {
	padding: 12px 0;
	font-size: 15px;
	color: #2d3748;
	font-weight: 500;
	border-bottom: 1px solid #edf2f7;
}

.tjb-field-help {
	font-size: 13px;
	color: #718096;
	margin-top: 6px;
}

/* Radio & Checkbox */
.tjb-radio-group {
	font-display: flex;
	gap: 20px;
	margin-top: 8px;
}

.tjb-radio-label,
.tjb-checkbox-label {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	margin-bottom: 10px;
}

.tjb-radio-label input[type="radio"],
.tjb-checkbox-label input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: #0a66c2;
}

.tjb-checkbox-text {
	font-weight: 400;
	color: #4a5568;
}

/* WP Editor override */
.tjb-form-field .wp-editor-container {
	border: 1px solid #cbd5e0;
	border-radius: 6px;
	overflow: hidden;
}

/* Images & Files */
.tjb-image-upload-wrapper,
.tjb-photos-upload-wrapper {
	border: 2px dashed #cbd5e0;
	border-radius: 8px;
	padding: 20px;
	text-align: center;
	background: #f8fafc;
}

.tjb-image-preview img,
.tjb-photo-item img {
	border-radius: 6px;
	border: 1px solid #edf2f7;
}

/* Dynamic Lists (Responsibilities/Benefits) */
.tjb-responsibility-item,
.tjb-benefit-item {
	margin-bottom: 10px;
}

.tjb-responsibility-item .tjb-form-row,
.tjb-benefit-item .tjb-form-row {
	margin-bottom: 0;
}

/* Actions */
.tjb-form-actions {
	margin-top: 20px;
	display: flex;
	gap: 16px;
	align-items: center;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 20px;
	border-radius: 6px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.2s;
	font-size: 14px;
	height: 44px;
	border: 1px solid transparent;
}

.button-primary {
	background: #0a66c2;
	color: white;
}

.button-primary:hover {
	background: #004182;
}

.tjb-remove-responsibility,
.tjb-remove-benefit {
	background: #fff;
	color: #e53e3e;
	border: 1px solid #fed7d7;
	height: 48px;
	/* Match input height */
}

.tjb-remove-responsibility:hover,
.tjb-remove-benefit:hover {
	background: #fff5f5;
	border-color: #e53e3e;
}

/* Confirmation List */
.tjb-confirmations-list {
	background: #f8fafc;
	border-radius: 8px;
	padding: 20px;
	border: 1px solid #edf2f7;
}

.tjb-confirmation-item {
	padding: 8px 0;
	border-bottom: 1px solid #edf2f7;
}

.tjb-confirmation-item:last-child {
	border-bottom: none;
}

/* Responsive */
@media (max-width: 768px) {
	.tjb-form-row {
		flex-direction: column;
		gap: 16px;
	}

	.tjb-form-section {
		padding: 20px;
	}

	.tjb-submit-job-form-wrapper {
		padding: 0;
	}
}