/**
 * Single Job Listing Styles
 *
 * @package Together_Theme
 */

.tjb-single-job-main {
	padding: 40px 20px;
	background: #fff;
	min-width: 100%;
}

/* Application Form Section */
.tjb-application-form-section {
	margin-top: 60px;
	padding: 40px 20px;
	background: #f9f9f9;
	border-top: 3px solid #447AB3;
}

.tjb-application-form-container {
	max-width: 800px;
	margin: 0 auto;
	background: #fff;
	border-radius: 12px;
	padding: 40px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tjb-application-form-title {
	font-size: 2em;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 30px 0;
	padding-bottom: 15px;
	border-bottom: 2px solid #e0e0e0;
}

.tjb-apply-form {
	margin-top: 20px;
}

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

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

.tjb-apply-form .required {
	color: #dc2626;
}

.tjb-apply-form .tjb-input,
.tjb-apply-form .tjb-textarea {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 15px;
	transition: all 0.3s ease;
	background: #fff;
	font-family: inherit;
}

.tjb-apply-form .tjb-textarea {
	resize: vertical;
	min-height: 120px;
}

.tjb-apply-form .tjb-input:focus,
.tjb-apply-form .tjb-textarea:focus {
	outline: none;
	border-color: #447AB3;
	box-shadow: 0 0 0 3px rgba(68, 122, 179, 0.1);
}

.tjb-view-cv-link {
	color: #447AB3;
	text-decoration: none;
	margin-left: 8px;
	font-size: 0.9rem;
}

.tjb-view-cv-link:hover {
	text-decoration: underline;
}

.tjb-no-cv-notice {
	padding: 15px;
	background: #fff3cd;
	border: 1px solid #ffc107;
	border-radius: 8px;
}

.tjb-no-cv-notice .tjb-notice {
	margin: 0;
	color: #856404;
}

.tjb-no-cv-notice .tjb-notice a {
	color: #447AB3;
	text-decoration: none;
	font-weight: 600;
}

.tjb-no-cv-notice .tjb-notice a:hover {
	text-decoration: underline;
}

.tjb-form-actions {
	margin-top: 30px;
	display: flex;
	gap: 15px;
}

.tjb-submit-application {
	padding: 14px 35px;
	font-size: 1.1em;
	font-weight: 600;
	border-radius: 8px;
	transition: all 0.3s ease;
	cursor: pointer;
	border: none;
}

.tjb-submit-application:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.tjb-form-messages {
	margin-top: 20px;
}

.tjb-message-success {
	background: #d4edda;
	color: #155724;
	padding: 15px 20px;
	border-radius: 8px;
	border: 2px solid #c3e6cb;
}

.tjb-message-error {
	background: #f8d7da;
	color: #721c24;
	padding: 15px 20px;
	border-radius: 8px;
	border: 2px solid #f5c6cb;
}

.tjb-already-applied-message,
.tjb-not-candidate-message,
.tjb-login-required-message {
	text-align: center;
	padding: 40px 20px;
	background: #f9f9f9;
	border-radius: 8px;
	border: 1px solid #e0e0e0;
}

.tjb-already-applied-message p,
.tjb-not-candidate-message p,
.tjb-login-required-message p {
	margin: 0 0 20px 0;
	color: #666;
	font-size: 1.1rem;
}

.tjb-cv-upload-section {
	margin-bottom: 25px;
}

.tjb-cv-upload-section label {
	display: block;
	font-weight: 600;
	color: #333;
	margin-bottom: 8px;
	font-size: 0.95rem;
}

.tjb-button-secondary {
	background: #6c757d;
	color: #fff;
	border-color: #6c757d;
}

.tjb-button-secondary:hover {
	background: #5a6268;
	border-color: #545b62;
	color: #fff;
}

.tjb-cv-preview {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 10px;
	padding: 10px;
	background: #f5f5f5;
	border-radius: 6px;
}

.tjb-cv-preview .dashicons {
	color: #447AB3;
	font-size: 20px;
	width: 20px;
	height: 20px;
}

.tjb-cv-name {
	flex: 1;
	font-weight: 500;
	color: #333;
}

.tjb-remove-cv {
	background: none;
	border: none;
	color: #dc2626;
	cursor: pointer;
	padding: 0;
	display: flex;
	align-items: center;
}

.tjb-remove-cv:hover {
	color: #991b1b;
}

.tjb-remove-cv .dashicons {
	color: inherit;
}

.tjb-upload-progress {
	margin-top: 10px;
	color: #666;
	font-style: italic;
	font-size: 0.9rem;
}

@media (max-width: 768px) {
	.tjb-application-form-container {
		padding: 25px 20px;
	}
	
	.tjb-application-form-title {
		font-size: 1.5em;
	}
	
	.tjb-form-actions {
		flex-direction: column;
	}
	
	.tjb-submit-application {
		width: 100%;
	}
}

.tjb-single-job-container {
	max-width: 1400px;
	margin: 0 auto;
}

@media (min-width: 1200px) {
	.tjb-single-job-container {
		min-width: 1200px;
	}
}

.tjb-single-job-content {
	display: grid;
	grid-template-columns: 1fr 380px;
	gap: 40px;
	align-items: start;
}

/* Left Column */
.tjb-single-job-left {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

/* Job Header */
.tjb-job-header {
	display: flex;
	gap: 20px;
	align-items: flex-start;
}

.tjb-company-logo-large {
	width: 80px;
	height: 80px;
	flex-shrink: 0;
	border-radius: 8px;
	overflow: hidden;
	background: #f5f5f5;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tjb-company-logo-large img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 10px;
}

.tjb-job-title-section {
	flex: 1;
}

.tjb-single-job-title {
	font-size: 32px;
	font-weight: 700;
	margin: 0 0 15px 0;
	color: #333;
	line-height: 1.3;
	display: flex;
	align-items: center;
	gap: 10px;
}

.tjb-verified-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	background: #10b981;
	color: #fff;
	border-radius: 50%;
	font-size: 14px;
	line-height: 1;
}

.tjb-job-attributes {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin-bottom: 15px;
}

.tjb-job-attr {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #666;
}

.tjb-job-attr svg {
	flex-shrink: 0;
	color: #999;
}

.tjb-job-tags {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 15px;
}

.tjb-job-tag {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
}

.tjb-tag-fulltime {
	background: #3b82f6;
	color: #fff;
}

.tjb-tag-urgent {
	background: #f97316;
	color: #fff;
}

.tjb-application-deadline {
	font-size: 14px;
	color: #666;
	margin-top: 10px;
}

.tjb-application-deadline strong {
	color: #dc2626;
	font-weight: 600;
}

/* Job Actions Top */
.tjb-job-actions-top {
	display: flex;
	align-items: center;
	gap: 15px;
}

.tjb-apply-button-large {
	display: inline-block;
	padding: 14px 40px;
	background: #3b82f6;
	color: #fff;
	text-decoration: none;
	border-radius: 6px;
	font-weight: 600;
	font-size: 16px;
	transition: background 0.3s;
}

.tjb-apply-button-large:hover {
	background: #2563eb;
	color: #fff;
}

.tjb-bookmark-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: 2px solid #ddd;
	border-radius: 6px;
	background: #fff;
	cursor: pointer;
	transition: all 0.3s;
	color: #666;
}

.tjb-bookmark-button:hover {
	border-color: #3b82f6;
	color: #3b82f6;
}

.tjb-bookmark-button svg {
	width: 24px;
	height: 24px;
}

/* Job Description Section */
.tjb-job-description-section,
.tjb-job-responsibilities-section {
	margin-bottom: 30px;
}

.tjb-section-title {
	font-size: 24px;
	font-weight: 700;
	margin: 0 0 20px 0;
	color: #333;
}

.tjb-job-description-content,
.tjb-job-responsibilities-content {
	font-size: 15px;
	line-height: 1.8;
	color: #333;
}

.tjb-job-description-content p,
.tjb-job-responsibilities-content p {
	margin-bottom: 15px;
}

.tjb-job-description-content ul,
.tjb-job-responsibilities-content ul {
	margin: 0 0 15px 0;
	padding-left: 30px;
}

.tjb-job-description-content li,
.tjb-job-responsibilities-content li {
	margin-bottom: 8px;
}

/* Job Navigation */
.tjb-job-navigation {
	padding-top: 30px;
	border-top: 1px solid #e0e0e0;
}

.tjb-job-nav-links {
	display: flex;
	justify-content: space-between;
	gap: 20px;
}

.tjb-nav-link {
	display: inline-block;
	padding: 10px 20px;
	color: #666;
	text-decoration: none;
	border: 1px solid #ddd;
	border-radius: 6px;
	transition: all 0.3s;
	font-size: 14px;
}

.tjb-nav-link:hover {
	border-color: #3b82f6;
	color: #3b82f6;
}

/* Right Sidebar */
.tjb-single-job-sidebar {
	position: sticky;
	top: 20px;
}

.tjb-job-details-sidebar {
	background: #f9fafb;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 25px;
}

.tjb-sidebar-title {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 25px 0;
	color: #333;
}

.tjb-job-detail-item {
	display: flex;
	gap: 15px;
	padding: 15px 0;
	border-bottom: 1px solid #e0e0e0;
}

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

.tjb-job-detail-item svg {
	flex-shrink: 0;
	color: #666;
	margin-top: 2px;
}

.tjb-job-detail-item > div {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.tjb-job-detail-item strong {
	font-size: 13px;
	font-weight: 600;
	color: #666;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.tjb-job-detail-item span {
	font-size: 15px;
	color: #333;
	font-weight: 500;
}

/* Job Skills Section */
.tjb-job-skills-section {
	margin-top: 25px;
	padding-top: 25px;
	border-top: 1px solid #e0e0e0;
}

.tjb-skills-title {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 15px 0;
	color: #333;
}

.tjb-job-skills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tjb-skill-tag {
	display: inline-block;
	padding: 6px 14px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 20px;
	font-size: 13px;
	color: #666;
}

/* Responsive */
@media (max-width: 1024px) {
	.tjb-single-job-content {
		grid-template-columns: 1fr;
	}

	.tjb-single-job-sidebar {
		position: static;
	}
}

@media (max-width: 768px) {
	.tjb-single-job-main {
		padding: 20px 15px;
	}

	.tjb-single-job-title {
		font-size: 24px;
	}

	.tjb-job-header {
		flex-direction: column;
	}

	.tjb-job-attributes {
		flex-direction: column;
		gap: 10px;
	}

	.tjb-job-nav-links {
		flex-direction: column;
	}
}

.tjb-button {
	display: inline-block;
	padding: 12px 24px;
	border-radius: 8px;
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.3s ease;
	cursor: pointer;
	border: 1px solid transparent;
}

.tjb-button-primary {
	background: #447AB3;
	color: #fff;
	border-color: #447AB3;
}

.tjb-button-primary:hover {
	background: #3a6a9a;
	border-color: #3a6a9a;
	color: #fff;
	text-decoration: none;
}

.tjb-submit-application {
	background: #447AB3;
	color: #fff;
	border-color: #447AB3;
}

.tjb-submit-application:hover:not(:disabled) {
	background: #3a6a9a;
	border-color: #3a6a9a;
}


