/* UA Manpower Jobs — public stylesheet Minimal, theme-friendly. Override in your theme as needed. */

.uamj-parent { background: #ecf5fc; }
.uamj-parent .frm_button_submit { display: inline-flex; align-items: center; gap: 0.5em; }
.uamj-parent .frm_button_submit::after {content: "" !important;display: inline-block;width: 14px;height: 14px;background: url("../../assets/Vector.svg") no-repeat center / contain;}
.uamj-jobs-wrapper {width: 100%;max-width: 1320px;margin: 0px auto;padding: 80px 20px;}
.uamj-application-anchor { margin: 50px 0px; padding: 40px; background: #fff; }
.uamj-empty { padding: 1.5rem !important; background: #f7f7f7; border-left: 4px solid #c0392b;}
.uamj-table-scroll { overflow-x: auto; background: #FFFFFF; }
.uamj-jobs-table { width: 100%; border-collapse: collapse; }
.uamj-jobs-table th,
.uamj-jobs-table td { padding: 0.75rem 0.85rem; border-bottom: 1px solid #e5e5e5; vertical-align: middle; font-size: 0.85rem;text-transform:capitalize;}
.uamj-jobs-table thead th {background: #1d4387;color: #fff;text-align: left;font-weight: 600;white-space: nowrap;}
.uamj-jobs-table tbody tr:nth-child(4n+1) { background: #fafafa; }
.uamj-jobs-table .uamj-sortable { cursor: pointer; user-select: none; }
.uamj-jobs-table .uamj-sortable::after { content: " ↕"; opacity: 0.5; font-size: 0.85em; }
.uamj-jobs-table .uamj-sortable.uamj-sort-asc::after  { content: " ▲"; opacity: 1; }
.uamj-jobs-table .uamj-sortable.uamj-sort-desc::after { content: " ▼"; opacity: 1; }
.uamj-jobs-table .uamj-im-interested{min-width:128px;    font-size: 0.9em;}
.uamj-btn {display: inline-block;padding: 0.55rem 1rem;border: 1px solid transparent;border-radius: 15px;font: inherit;cursor: pointer;text-decoration: none;line-height: 1.2;}
.uamj-btn-primary{ background: #1d4387; color: #fff; }
.uamj-btn-primary:hover { background: #16356b; }
.uamj-btn-secondary {background: #fff; color: #002855; border-color: #002855; }
.uamj-btn-secondary:hover { background: #002855; color: #fff; }
.uamj-btn[disabled] {opacity: 0.6; cursor: not-allowed;}
.uamj-row-flow td { background: #f3f5f8; padding: 1rem 0.85rem; }
.uamj-member-choice { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: flex-end; }
.uamj-member-choice .uamj-ua-member { background: #fdba33; color: #1d4387; border-color: #fdba33; }
.uamj-member-choice .uamj-ua-member:hover { background: #e9a91d; border-color: #e9a91d; color: #1d4387; }
.uamj-member-choice .uamj-non-member { background: #1d4387; color: #fff; border-color: #1d4387; }
.uamj-member-choice .uamj-non-member:hover { background: #16356b; border-color: #16356b; color: #fff; }

.uamj-postings-header{margin:0 0 50px}

/* Modal */
.uamj-modal {position: fixed; inset: 0;background: rgba(0,0,0,0.5);display: flex; align-items: center; justify-content: center;z-index: 100000;}
.page-id-9441 #main-content { position: relative; z-index: 2; }
.uamj-modal[hidden] { display: none; }
.uamj-modal-inner {background: #fff; padding: 2rem; max-width: 480px; width: 90%; border-radius: 4px; position: relative;text-align: center;}
.uamj-modal-body {font-size: 1.15rem; line-height: 1.5; }
.uamj-modal-close {position: absolute; top: 0.5rem; right: 0.75rem;background: none; border: 0; font-size: 1.5rem; cursor: pointer;}

.uamj-modal .uamj-btn-primary{margin-top: 10px;font-size: 14px;background: #16356b;border-color: #16356b;color: #fff;padding: 0.5rem 1rem;}
.uamj-modal .uamj-btn-primary:hover{background: #16356b;border-color: #16356b;color: #fff;}

/* Application intro (above form) */
.uamj-application-intro { margin-bottom: 3rem; }
.uamj-application-intro-title { margin: 0 0 0.5rem; color: #1d4387; }
.uamj-application-intro-content { color: #333; line-height: 1.5; }
.uamj-application-intro-content p:last-child { margin-bottom: 0; }

.uamj-jobs-wrapper .frm_style_formidable-style.with_frm_style .frm_error, 
.uamj-jobs-wrapper .frm_style_formidable-style.with_frm_style .frm_limit_error {background-color: #F2DEDE;border: 1px solid #EBCCD1;color: #B94A48;padding: 5px;}

/* UA API rejection message, relocated by the bridge JS to sit above Submit. */
.uamj-submit-error { margin: 0 0 1rem; font-weight: 600; }

/* Disclaimer (optional — for use inside the Formidable form's HTML disclaimer field) */
.uamj-disclaimer { background: #fff3cd; border-left: 4px solid #ffb000; padding: 0.75rem 1rem; margin-bottom: 1rem; }

/* Thank-you */
.uamj-jobs-wrapper.uamj-thank-you { max-width: 800px; }
.uamj-thank-you { padding: 5em 20px; text-align: center; }
.uamj-thank-you-interest { display: flex; gap: 10px; justify-content: space-between; margin-top: 40px; }
.uamj-thank-you-interest-heading { text-align: left; }
.uamj-thank-you-interest-cta { min-width: 160px; }
.uamj-thank-you-main .uamj-btn-primary:hover { background: #fdba33; }

/* Tablet/down: shrink paragraph text on both Postings and Thank-You pages */
@media only screen and (max-width: 980px) {
	.uamj-jobs-wrapper p {font-size: 0.9em;}
}

@media only screen and (max-width: 1390px) and (min-width: 1024px) {
	.uamj-jobs-table th, .uamj-jobs-table td {padding: 0.5rem 0.6rem;font-size: 0.7rem;}
	.uamj-jobs-table .uamj-im-interested {min-width: 85px;font-size: 0.75em;padding: 0.40rem 0.55rem;}
}

@media only screen and (max-width: 1023px) and (min-width: 768px) {
	.uamj-jobs-table th, .uamj-jobs-table td {padding: 0.3rem 0.2rem;font-size: 0.53rem;}
	.uamj-jobs-table .uamj-im-interested {min-width: 55px;font-size: 0.57em;padding: 0.2rem 0.35rem;}
}
@media only screen and (max-width: 980px) and (min-width: 601px) {
	.uamj-application-anchor .frm_half,
	.uamj-application-anchor .frm6 {grid-column: span 12 / span 12 !important;}
	.uamj-application-anchor .frm_third{grid-column: span 9 / span 9 !important;}
	.uamj-application-anchor .frm_sixth{grid-column: span 3 / span 3 !important;}
}
@media only screen and (max-width: 767px) {
	.uamj-thank-you-interest {flex-wrap: wrap;}
	.uamj-thank-you-interest-cta {min-width: auto;}

	.uamj-jobs-table thead { display: none; }
	.uamj-jobs-table,
	.uamj-jobs-table tbody,
	.uamj-jobs-table tr,
	.uamj-jobs-table td {display: block; width: 100%; }
	.uamj-jobs-table tr {border: 1px solid #e2e2e2; margin-bottom: 0.75rem; }
	.uamj-jobs-table td {display: flex;justify-content: space-between;gap: 1rem;border-bottom: 1px solid #f0f0f0;}
	.uamj-jobs-table td::before {content: attr(data-label);font-weight: 600;color: #002855;}
	.uamj-row-flow td { display: block; }
	.uamj-row-flow td::before { display: none; }
}
