/**
 * RTG JobAdder Integration — Base Styles
 * These are minimal structural styles only.
 * Override in your theme stylesheet using the class names below.
 */

/* Listings */
.rtg-ja-listings {
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.rtg-ja-listing {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 0;
	border-bottom: 1px solid #e5e5e5;
	gap: 20px;
}

.rtg-ja-listing:last-child {
	border-bottom: none;
}

.rtg-ja-listing__title {
	margin: 0 0 8px;
	font-size: 1.1em;
}

.rtg-ja-listing__title a {
	text-decoration: none;
}

.rtg-ja-listing__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.rtg-ja-meta-item {
	font-size: 0.9em;
	color: #666;
}

.rtg-ja-listing__summary {
	margin-top: 10px;
	font-size: 0.95em;
	color: #444;
	line-height: 1.5;
}

.rtg-ja-listing__action {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: flex-end;
}

/* Single Job */
.rtg-ja-single-job {
	max-width: 800px;
	margin: 0 auto;
	padding: 40px 20px;
}

.rtg-ja-single-job__back {
	margin-bottom: 20px;
}

.rtg-ja-single-job__title {
	margin-bottom: 16px;
}

.rtg-ja-single-job__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 32px;
	padding-bottom: 24px;
	border-bottom: 1px solid #e5e5e5;
}

.rtg-ja-single-job__apply-top {
	margin-top: 20px;
}

.rtg-ja-single-job__body {
	margin-top: 32px;
}

.rtg-ja-single-job__summary {
	font-size: 1.05em;
	color: #444;
	line-height: 1.6;
	margin-bottom: 24px;
}

.rtg-ja-single-job__bullets {
	margin-bottom: 24px;
}

.rtg-ja-single-job__bullets ul {
	padding-left: 20px;
	margin: 0;
}

.rtg-ja-single-job__bullets li {
	margin-bottom: 6px;
	line-height: 1.5;
}

.rtg-ja-single-job__description {
	line-height: 1.7;
}

.rtg-ja-single-job__description h2,
.rtg-ja-single-job__description h3 {
	margin-top: 24px;
}

.rtg-ja-single-job__apply-bottom {
	margin-top: 40px;
	padding-top: 32px;
	border-top: 1px solid #e5e5e5;
}

/* Application Form */
.rtg-ja-application-form {
	max-width: 680px;
}

.rtg-ja-form__row {
	margin-bottom: 20px;
}

.rtg-ja-form__row--split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

@media (max-width: 600px) {
	.rtg-ja-form__row--split {
		grid-template-columns: 1fr;
	}
}

.rtg-ja-form__field label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
}

.rtg-ja-form__field input[type="text"],
.rtg-ja-form__field input[type="email"],
.rtg-ja-form__field input[type="tel"],
.rtg-ja-form__field input[type="number"],
.rtg-ja-form__field select,
.rtg-ja-form__field textarea {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 1em;
	box-sizing: border-box;
}

.rtg-ja-form__field textarea {
	resize: vertical;
}

.rtg-ja-form__field--checkbox label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-weight: normal;
	cursor: pointer;
}

.rtg-ja-form__field--checkbox input {
	margin-top: 3px;
	flex-shrink: 0;
}

.rtg-ja-form__help {
	margin: 0 0 8px;
	color: #666;
	font-size: 0.9em;
}

.required {
	color: red;
}

/* Buttons */
.rtg-ja-btn {
	display: inline-block;
	padding: 12px 24px;
	border: none;
	border-radius: 4px;
	font-size: 1em;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: opacity 0.2s;
}

.rtg-ja-btn:hover {
	opacity: 0.85;
}

.rtg-ja-btn--primary {
	background: #005eb8;
	color: #fff;
}

.rtg-ja-btn--submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Form response messages */
.rtg-ja-form-response {
	padding: 14px 18px;
	border-radius: 4px;
	margin-bottom: 20px;
	font-weight: 600;
}

.rtg-ja-form-response--success {
	background: #e6f4ea;
	color: #1e6e2e;
	border: 1px solid #b7dfbe;
}

.rtg-ja-form-response--error {
	background: #fce8e8;
	color: #a00;
	border: 1px solid #f5b8b8;
}

.rtg-ja-no-jobs {
	padding: 20px 0;
	color: #666;
}
