/* =============================================
 * RSA Job Plugin – Sovereign Navigator Design
 * v2.1 – Redesigned list cards, Quick Facts,
 *        CTA inline form, popup success modal
 * ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;600&display=swap');

/* ── Design tokens ── */
:root {
	--rsa-crimson:  #8D0018;
	--rsa-crimson2: #B41828;
	--rsa-charcoal: #201A1D;
	--rsa-blush:    #FDF0F4;
	--rsa-cream:    #FFF8F9;
	--rsa-border:   #E5D6D9;
	--rsa-gold:     #FFDF9E;
	--rsa-gold-dk:  #795900;
	--rsa-font-sans: 'Be Vietnam Pro', system-ui, sans-serif;
	--rsa-font-disp: 'Plus Jakarta Sans', 'Inter', sans-serif;
	--rsa-font-mono: 'JetBrains Mono', ui-monospace, monospace;
	--rsa-radius: 14px;
	--rsa-shadow: 0 4px 24px rgba(32,26,29,0.08);
}

/* ============================================================
 * JOB LISTING SECTION
 * ============================================================ */

.rsa-openings-section {
	
	padding: 56px 16px;
	font-family: var(--rsa-font-sans);
}

.rsa-openings-container {
	max-width: 1440px;
	margin: 0 auto;
}

/* ── Section Header ── */
.rsa-openings-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 28px;
	flex-wrap: wrap;
}

.rsa-openings-title {
	font-family: var(--rsa-font-disp);
	font-weight: 800;
	font-size: 2rem;
	color: var(--rsa-charcoal);
	margin: 0 0 6px;
	line-height: 1.2;
}

.rsa-openings-subtitle {
	color: rgba(32,26,29,0.6);
	font-size: .875rem;
	margin: 0;
}

/* ── Search bar ── */
.rsa-search-wrap {
	display: flex;
	align-items: center;
	gap: 0;
	border: 2px solid var(--rsa-border);
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	min-width: 260px;
	box-shadow: 0 2px 8px rgba(32,26,29,0.06);
	transition: border-color .2s, box-shadow .2s;
}

.rsa-search-wrap:focus-within {
	border-color: var(--rsa-crimson);
	box-shadow: 0 0 0 3px rgba(141,0,24,.10), 0 2px 8px rgba(32,26,29,.06);
}

.rsa-search-input {
	flex: 1;
	border: none;
	outline: none;
	padding: 11px 16px;
	font-size: .9rem;
	color: var(--rsa-charcoal);
	background: transparent;
	font-family: var(--rsa-font-sans);
}

.rsa-search-input::placeholder {
	color: rgba(32,26,29,.38);
}

.rsa-search-btn {
	background: var(--rsa-crimson);
	border: none;
	cursor: pointer;
	padding: 11px 16px;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .18s;
	flex-shrink: 0;
}

.rsa-search-btn:hover { background: var(--rsa-crimson2); }

/* ── Category tabs ── */
.rsa-cat-tabs {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 24px;
}

.rsa-cat-tab {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 16px;
	border-radius: 999px;
	border: 1.5px solid var(--rsa-border);
	font-size: .8rem;
	font-weight: 600;
	color: rgba(32,26,29,0.65);
	text-decoration: none;
	background: #fff;
	transition: all .18s;
}

.rsa-cat-tab:hover,
.rsa-cat-tab.is-active {
	border-color: var(--rsa-crimson);
	color: var(--rsa-crimson);
	background: var(--rsa-blush);
}

.rsa-cat-count {
	background: var(--rsa-border);
	border-radius: 999px;
	padding: 1px 7px;
	font-size: .7rem;
	font-family: var(--rsa-font-mono);
}

/* ============================================================
 * JOB CARD – Redesigned Layout
 * Left: category tag + title + meta row (vessel/location/rotation)
 * Right: salary + apply button
 * ============================================================ */

.rsa-openings-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.rsa-job-card {
	background: #fff;
	border: 1.5px solid var(--rsa-border);
	border-radius: var(--rsa-radius);
	padding: 22px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	transition: box-shadow .2s, border-color .2s, transform .15s;
}

.rsa-job-card:hover {
	border-color: var(--rsa-crimson);
	box-shadow: 0 6px 28px rgba(141,0,24,.10);
	transform: translateY(-1px);
}

/* LEFT: main content */
.rsa-job-card-main {
	flex: 1;
	min-width: 0;
}

/* Category tag */
.rsa-job-category-tag {
	font-family: var(--rsa-font-mono);
	font-size: .65rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: var(--rsa-crimson);
	display: inline-block;
	margin-bottom: 5px;
	background: rgba(141,0,24,.07);
	padding: 2px 8px;
	border-radius: 4px;
}

/* Title row (title + urgent badge inline) */
.rsa-job-card-head {
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 10px;
	margin-bottom: 10px;
}

.rsa-job-card-title {
	font-family: var(--rsa-font-disp);
	font-weight: 700;
	font-size: 1.35rem;
	color: var(--rsa-charcoal);
	margin: 0;
	line-height: 1.3;
}

.rsa-job-card-title a {
	text-decoration: none;
	color: inherit;
}
.rsa-job-card-title a:hover {
	color:var(--rsa-crimson)!important;
}
.rsa-job-card-title a:hover { color: var(--rsa-crimson); }

.rsa-badge-urgent {
	flex-shrink: 0;
	background: var(--rsa-crimson);
	color: #fff;
	font-size: .68rem;
	font-weight: 800;
	padding: 3px 9px;
	border-radius: 999px;
	font-family: var(--rsa-font-mono);
	letter-spacing: .04em;
	white-space: nowrap;
	align-self: center;
}

/* Meta pills row — vessel / location / rotation / duration */
.rsa-job-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	align-items: center;
}

.rsa-meta-pill {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: .78rem;
	color: rgba(32,26,29,.60);
	font-family: var(--rsa-font-sans);
	font-weight: 500;
	white-space: nowrap;
}

.rsa-meta-pill svg {
	flex-shrink: 0;
	color: var(--rsa-crimson);
	opacity: .75;
}

.rsa-meta-divider {
	color: var(--rsa-border);
	font-size: .7rem;
	user-select: none;
}

/* RIGHT: salary + button */
.rsa-job-card-side {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
	flex-shrink: 0;
}

.rsa-salary-tag {
	font-family: var(--rsa-font-mono);
	font-weight: 700;
	font-size: .8rem;
	color: var(--rsa-gold-dk);
	background: rgba(255,223,158,.35);
	padding: 5px 12px;
	border-radius: 8px;
	white-space: nowrap;
	border: 1px solid rgba(121,89,0,.15);
}

.rsa-apply-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--rsa-crimson);
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	font-size: .82rem;
	font-family: var(--rsa-font-disp);
	padding: 10px 20px;
	border-radius: 10px;
	transition: background .18s, transform .12s;
	white-space: nowrap;
}

.rsa-apply-btn:hover {
	background: var(--rsa-crimson2);
	color: #fff;
	transform: translateY(-1px);
}

/* Empty state */
.rsa-empty-state {
	padding: 60px 20px;
	text-align: center;
	color: rgba(32,26,29,.45);
	font-size: .95rem;
}

.rsa-empty-state svg { display: block; margin: 0 auto 12px; }

/* Pagination */
.rsa-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: 32px;
}

.rsa-page-btn {
	min-width: 38px;
	height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1.5px solid var(--rsa-border);
	border-radius: 8px;
	font-size: .82rem;
	font-weight: 600;
	color: var(--rsa-charcoal);
	text-decoration: none;
	background: #fff;
	transition: all .18s;
	font-family: var(--rsa-font-mono);
}

.rsa-page-btn:hover { border-color: var(--rsa-crimson); color: var(--rsa-crimson); }
.rsa-page-btn.is-active { background: var(--rsa-crimson); color: #fff; border-color: var(--rsa-crimson); }
.rsa-page-btn.is-disabled { opacity: .4; pointer-events: none; }

/* ============================================================
 * SINGLE JOB PAGE
 * ============================================================ */

.rsa-single-job-page { background: var(--rsa-cream); font-family: var(--rsa-font-sans); }

/* Hero */
.rsa-hero-block {
	background: var(--rsa-blush);
	border-bottom: 1.5px solid var(--rsa-border);
	padding: 48px 24px;
}

.rsa-hero-inner {
	max-width: 1080px;
	margin: 0 auto;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 32px;
	flex-wrap: wrap;
}

.rsa-hero-left { flex: 1 1 0; }

.rsa-tag {
	display: inline-block;
	background: var(--rsa-crimson);
	color: #fff;
	font-family: var(--rsa-font-mono);
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .1em;
	padding: 4px 12px;
	border-radius: 4px;
	margin-bottom: 14px;
}

.rsa-job-title {
	font-family: var(--rsa-font-disp);
	font-weight: 800;
	font-size: clamp(2rem, 5vw, 3rem);
	color: var(--rsa-charcoal);
	line-height: 1.15;
	margin: 0 0 20px;
}

.rsa-meta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.rsa-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	border-radius: 8px;
	border: 1.5px solid var(--rsa-border);
	font-size: .78rem;
	font-family: var(--rsa-font-mono);
	font-weight: 600;
	background: var(--rsa-cream);
	color: rgba(32,26,29,.75);
}

.rsa-chip--red  { color: var(--rsa-crimson);  background: rgba(141,0,24,.05);  border-color: rgba(141,0,24,.2); }
.rsa-chip--gold { color: var(--rsa-gold-dk);   background: rgba(255,223,158,.3); border-color: rgba(121,89,0,.2); }

/* Hero right side */
.rsa-hero-right {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 16px;
	padding: 28px 32px;
	background: rgba(255,248,249,.6);
	border: 1.5px solid var(--rsa-border);
	border-radius: var(--rsa-radius);
}

.rsa-company-sup { font-family: var(--rsa-font-mono); font-size: .65rem; font-weight: 700; color: rgba(32,26,29,.4); letter-spacing: .1em; text-transform: uppercase; }
.rsa-company-main { font-family: var(--rsa-font-disp); font-weight: 700; font-size: .95rem; color: var(--rsa-crimson); text-transform: uppercase; }
.rsa-company-label { text-align: right; }

/* Apply button (shared) */
.rsa-apply-hero-btn {
	background: var(--rsa-crimson);
	color: #fff;
	border: none;
	cursor: pointer;
	font-family: var(--rsa-font-disp);
	font-weight: 800;
	font-size: .9rem;
	padding: 14px 28px;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(141,0,24,.25);
	transition: background .18s, transform .12s;
	white-space: nowrap;
}

.rsa-apply-hero-btn:hover { background: var(--rsa-crimson2); transform: translateY(-1px); }
.rsa-apply-hero-btn--full { width: 100%; text-align: center; }

/* Job body layout */
.rsa-job-body {
	max-width: 1080px;
	margin: 0 auto;
	padding: 40px 24px 80px;
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 36px;
	align-items: start;
}

@media (max-width: 768px) {
	.rsa-job-body { grid-template-columns: 1fr; }
	.rsa-job-sidebar { order: -1; }
}

/* Content sections */
.rsa-section {
	background: #fff;
	border: 1.5px solid var(--rsa-border);
	border-radius: var(--rsa-radius);
	padding: 28px 32px;
	margin-bottom: 20px;
}

.rsa-section--dark    { background: #181416; border-color: #181416; }
.rsa-section--crimson { background: var(--rsa-crimson); border-color: var(--rsa-crimson); }

.rsa-section-title {
	font-family: var(--rsa-font-disp);
	font-weight: 800;
	font-size: 1.3rem;
	color: var(--rsa-crimson);
	margin: 0 0 18px;
	padding-bottom: 12px;
	border-bottom: 1.5px solid var(--rsa-border);
}

.rsa-section-title--light { color: #fff; border-color: rgba(255,255,255,.15); }

.rsa-prose {
	font-size: .9rem;
	line-height: 1.75;
	color: rgba(32,26,29,.85);
}

/* Checklist */
.rsa-checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .rsa-checklist { grid-template-columns: 1fr; } }

.rsa-check-item {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: .84rem;
	line-height: 1.55;
	color: rgba(32,26,29,.85);
}

.rsa-check-item svg { flex-shrink: 0; margin-top: 2px; }

/* Requirements */
.rsa-req-list {
	margin: 0;
	padding: 0 0 0 20px;
	list-style: disc;
	color: rgba(255,255,255,.85);
	font-size: .875rem;
	line-height: 1.9;
}

/* Benefits */
.rsa-benefits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .rsa-benefits-grid { grid-template-columns: 1fr; } }

.rsa-benefit-card {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: .84rem;
	color: rgba(255,255,255,.9);
	line-height: 1.55;
}

/* ============================================================
 * CTA BLOCK – "Ready to join the fleet?" inline form
 * ============================================================ */
.rsa-cta-block {
	background: var(--rsa-charcoal);
	border: none;
	border-radius: var(--rsa-radius);
	padding: 36px 36px 32px;
	text-align: center;
	margin-bottom: 20px;
}

.rsa-cta-block .rsa-cta-title {
	font-family: var(--rsa-font-disp);
	font-weight: 800;
	font-size: 1.3rem;
	color: #fff;
	margin: 0 0 4px;
}

.rsa-cta-block .rsa-cta-sub {
	font-size: .82rem;
	color: rgba(255,255,255,.55);
	margin: 0 0 24px;
	font-family: var(--rsa-font-mono);
}

/* Inline form inside CTA */
.rsa-cta-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.rsa-cta-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

@media (max-width: 580px) { .rsa-cta-grid { grid-template-columns: 1fr; } }

.rsa-cta-field {
	display: flex;
	flex-direction: column;
	gap: 5px;
	text-align: left;
}

.rsa-cta-label {
	font-family: var(--rsa-font-mono);
	font-size: .62rem;
	font-weight: 700;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: rgba(255,255,255,.45);
}

.rsa-cta-input {
	width: 100%;
	box-sizing: border-box;
	padding: 11px 14px;
	border: 1.5px solid rgba(255,255,255,.12);
	border-radius: 10px;
	font-family: var(--rsa-font-sans);
	font-size: .875rem;
	color: #fff;
	background: rgba(255,255,255,.07);
	outline: none;
	transition: border-color .18s, background .18s;
}

.rsa-cta-input::placeholder { color: rgba(255,255,255,.28); }
.rsa-cta-input:focus {
	border-color: var(--rsa-gold);
	background: rgba(255,255,255,.10);
	box-shadow: 0 0 0 3px rgba(255,223,158,.12);
}

.rsa-cta-input[readonly] {
	background: rgba(255,255,255,.04);
	color: rgba(255,255,255,.45);
	cursor: default;
}

.rsa-cta-textarea {
	resize: vertical;
	min-height: 90px;
}

/* CTA file drop */
.rsa-cta-file-drop {
	border: 2px dashed rgba(255,255,255,.18);
	border-radius: 10px;
	padding: 20px;
	text-align: center;
	cursor: pointer;
	transition: border-color .18s, background .18s;
	position: relative;
	background: rgba(255,255,255,.04);
}

.rsa-cta-file-drop:hover,
.rsa-cta-file-drop.is-drag {
	border-color: var(--rsa-gold);
	background: rgba(255,223,158,.06);
}

.rsa-cta-file-drop.has-file {
	border-color: rgba(121,89,0,.6);
	background: rgba(255,223,158,.08);
}

.rsa-cta-file-input {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
	width: 100%;
	height: 100%;
}

.rsa-cta-file-placeholder span {
	font-size: .82rem;
	color: rgba(255,255,255,.55);
	font-weight: 600;
	display: block;
	margin-top: 8px;
}

.rsa-cta-file-placeholder small {
	font-size: .7rem;
	color: rgba(255,255,255,.28);
	font-family: var(--rsa-font-mono);
}

.rsa-cta-file-selected {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-weight: 600;
	font-size: .82rem;
	color: var(--rsa-gold);
}

.rsa-cta-file-selected button {
	background: rgba(255,223,158,.12);
	border: none;
	cursor: pointer;
	border-radius: 6px;
	padding: 2px 8px;
	color: var(--rsa-gold);
	font-size: .8rem;
	position: relative;
	z-index: 2;
}

.rsa-cta-errors {
	background: rgba(254,242,242,.12);
	border: 1.5px solid rgba(252,165,165,.4);
	border-radius: 10px;
	padding: 12px 16px;
	font-size: .82rem;
	color: #fca5a5;
	line-height: 1.7;
	text-align: left;
}

.rsa-cta-disclaimer {
	font-family: var(--rsa-font-mono);
	font-size: .6rem;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: rgba(255,255,255,.3);
	text-align: center;
	margin: 0;
	line-height: 1.6;
}

.rsa-cta-submit-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: linear-gradient(135deg, #FFDF9E, #f5c842);
	color: var(--rsa-charcoal);
	border: none;
	cursor: pointer;
	font-family: var(--rsa-font-disp);
	font-weight: 800;
	font-size: .95rem;
	padding: 15px 28px;
	border-radius: 12px;
	box-shadow: 0 4px 16px rgba(255,223,158,.3);
	transition: opacity .18s, transform .12s;
	width: 100%;
}

.rsa-cta-submit-btn:hover { opacity: .93; transform: translateY(-1px); }
.rsa-cta-submit-btn:disabled { opacity: .5; cursor: wait; }

/* ============================================================
 * SIDEBAR – Quick Facts (new fields)
 * ============================================================ */

.rsa-job-sidebar {}

.rsa-facts-card, .rsa-cat-card {
	background: var(--rsa-blush);
	border: 1.5px solid var(--rsa-border);
	border-radius: var(--rsa-radius);
	padding: 22px;
	margin-bottom: 18px;
}

.rsa-facts-header {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: var(--rsa-font-disp);
	font-weight: 800;
	font-size: 1rem;
	color: var(--rsa-charcoal);
	text-transform: uppercase;
	letter-spacing: .04em;
	padding-bottom: 14px;
	border-bottom: 1.5px solid var(--rsa-border);
	margin-bottom: 14px;
}

.rsa-fact-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 8px;
	padding: 10px 0;
	border-bottom: 1px solid rgba(229,214,217,.5);
}

.rsa-fact-row:last-child { border-bottom: none; }

.rsa-fact-label {
	font-family: var(--rsa-font-mono);
	font-size: .65rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .09em;
	color: rgba(32,26,29,.42);
	display: flex;
	align-items: center;
	gap: 5px;
	flex-shrink: 0;
}

.rsa-fact-label svg { color: var(--rsa-crimson); opacity: .7; flex-shrink: 0; }

.rsa-fact-value {
	font-family: var(--rsa-font-mono);
	font-weight: 700;
	font-size: .78rem;
	color: var(--rsa-charcoal);
	text-align: right;
}

.rsa-urgent-label { color: var(--rsa-crimson); }

.rsa-cat-chip {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	border: 1.5px solid var(--rsa-border);
	font-size: .75rem;
	font-weight: 600;
	color: var(--rsa-crimson);
	background: #fff;
	text-decoration: none;
}

.rsa-cat-chip:hover { background: var(--rsa-crimson); color: #fff; border-color: var(--rsa-crimson); }

/* ============================================================
 * APPLY MODAL (button-triggered)
 * ============================================================ */

.rsa-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.rsa-modal[hidden] { display: none; }

.rsa-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(32,26,29,.65);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.rsa-modal-box {
	position: relative;
	background: var(--rsa-cream);
	border-radius: 20px;
	box-shadow: 0 24px 80px rgba(32,26,29,.28);
	width: 100%;
	max-width: 620px;
	max-height: 92vh;
	overflow-y: auto;
	padding: 32px;
	animation: rsaModalIn .22s ease;
}

@keyframes rsaModalIn {
	from { opacity: 0; transform: translateY(20px) scale(.97); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}

.rsa-modal-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
	padding-bottom: 18px;
	border-bottom: 1.5px solid var(--rsa-border);
}

.rsa-modal-title {
	font-family: var(--rsa-font-disp);
	font-weight: 800;
	font-size: 1.4rem;
	color: var(--rsa-charcoal);
	margin: 0 0 4px;
}

.rsa-modal-subtitle {
	font-size: .8rem;
	color: rgba(32,26,29,.55);
	margin: 0;
}

.rsa-modal-close {
	background: rgba(141,0,24,.08);
	border: none;
	cursor: pointer;
	font-size: 1rem;
	color: var(--rsa-crimson);
	width: 36px;
	height: 36px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: background .15s;
}

.rsa-modal-close:hover { background: rgba(141,0,24,.16); }

/* Modal form */
.rsa-apply-form { display: flex; flex-direction: column; gap: 18px; }

.rsa-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

@media (max-width: 520px) { .rsa-form-grid { grid-template-columns: 1fr; } }

.rsa-field { display: flex; flex-direction: column; gap: 6px; }
.rsa-field--full { grid-column: 1 / -1; }

.rsa-label {
	font-family: var(--rsa-font-mono);
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .08em;
	color: rgba(32,26,29,.6);
}

.rsa-required { color: var(--rsa-crimson); }

.rsa-input {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1.5px solid var(--rsa-border);
	border-radius: 10px;
	font-family: var(--rsa-font-sans);
	font-size: .875rem;
	color: var(--rsa-charcoal);
	background: #fff;
	outline: none;
	transition: border-color .18s;
}

.rsa-input:focus { border-color: var(--rsa-crimson); box-shadow: 0 0 0 3px rgba(141,0,24,.08); }
.rsa-input[readonly] { background: var(--rsa-blush); color: rgba(32,26,29,.65); cursor: default; }

.rsa-textarea { resize: vertical; min-height: 100px; }

/* File upload */
.rsa-file-drop {
	border: 2px dashed var(--rsa-border);
	border-radius: 12px;
	padding: 28px;
	text-align: center;
	cursor: pointer;
	transition: border-color .18s, background .18s;
	position: relative;
	background: #fff;
}

.rsa-file-drop:hover, .rsa-file-drop.is-drag { border-color: var(--rsa-crimson); background: var(--rsa-blush); }
.rsa-file-drop.has-file { border-color: var(--rsa-gold-dk); background: rgba(255,223,158,.1); }

.rsa-file-input {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
	width: 100%;
	height: 100%;
}

.rsa-file-placeholder svg { display: block; margin: 0 auto 10px; }
.rsa-file-placeholder span { font-weight: 600; font-size: .875rem; color: var(--rsa-charcoal); display: block; margin-bottom: 4px; }
.rsa-file-placeholder small { font-size: .75rem; color: rgba(32,26,29,.45); font-family: var(--rsa-font-mono); }

.rsa-file-selected {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-weight: 600;
	font-size: .875rem;
	color: var(--rsa-gold-dk);
}

.rsa-file-selected button {
	background: rgba(121,89,0,.1);
	border: none;
	cursor: pointer;
	border-radius: 6px;
	padding: 2px 8px;
	color: var(--rsa-gold-dk);
	font-size: .8rem;
	z-index: 2;
	position: relative;
}

/* Form errors */
.rsa-form-errors {
	background: #fef2f2;
	border: 1.5px solid #fecaca;
	border-radius: 10px;
	padding: 12px 16px;
	font-size: .82rem;
	color: #dc2626;
	line-height: 1.7;
}

/* Form footer */
.rsa-form-footer {
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: stretch;
}

.rsa-disclaimer {
	font-family: var(--rsa-font-mono);
	font-size: .65rem;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: rgba(32,26,29,.45);
	text-align: center;
	margin: 0;
	line-height: 1.6;
}

.rsa-submit-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: linear-gradient(135deg, var(--rsa-crimson), var(--rsa-crimson2));
	color: #fff;
	border: none;
	cursor: pointer;
	font-family: var(--rsa-font-disp);
	font-weight: 800;
	font-size: .95rem;
	padding: 15px 28px;
	border-radius: 12px;
	box-shadow: 0 4px 16px rgba(141,0,24,.25);
	transition: opacity .18s, transform .12s;
}

.rsa-submit-btn:hover { opacity: .93; transform: translateY(-1px); }
.rsa-submit-btn:disabled { opacity: .6; cursor: wait; }

/* ============================================================
 * SUCCESS POPUP MODAL (after form submit)
 * ============================================================ */

.rsa-success-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.rsa-success-modal[hidden] { display: none; }

.rsa-success-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(32,26,29,.70);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.rsa-success-box {
	position: relative;
	background: #fff;
	border-radius: 24px;
	box-shadow: 0 32px 100px rgba(32,26,29,.3);
	width: 100%;
	max-width: 480px;
	padding: 48px 40px 40px;
	text-align: center;
	animation: rsaSuccessIn .3s cubic-bezier(.34,1.56,.64,1);
}

@keyframes rsaSuccessIn {
	from { opacity: 0; transform: scale(.85) translateY(20px); }
	to   { opacity: 1; transform: scale(1) translateY(0); }
}

.rsa-success-icon {
	width: 72px;
	height: 72px;
	background: linear-gradient(135deg, #22c55e, #16a34a);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 24px;
	box-shadow: 0 8px 24px rgba(34,197,94,.3);
}

.rsa-success-icon svg { display: block; }

.rsa-success-title {
	font-family: var(--rsa-font-disp);
	font-weight: 800;
	font-size: 1.5rem;
	color: var(--rsa-charcoal);
	margin: 0 0 10px;
}

.rsa-success-msg {
	font-size: .9rem;
	line-height: 1.65;
	color: rgba(32,26,29,.65);
	margin: 0 0 8px;
}

.rsa-success-ref {
	display: inline-block;
	background: var(--rsa-blush);
	border: 1.5px solid var(--rsa-border);
	color: var(--rsa-crimson);
	font-family: var(--rsa-font-mono);
	font-size: .8rem;
	font-weight: 700;
	padding: 6px 16px;
	border-radius: 8px;
	margin: 12px 0 24px;
	letter-spacing: .05em;
}

.rsa-success-actions {
	display: flex;
	gap: 10px;
	justify-content: center;
}

.rsa-success-close-btn {
	background: var(--rsa-crimson);
	color: #fff;
	border: none;
	cursor: pointer;
	font-family: var(--rsa-font-disp);
	font-weight: 700;
	font-size: .88rem;
	padding: 12px 28px;
	border-radius: 10px;
	transition: background .18s;
}

.rsa-success-close-btn:hover { background: var(--rsa-crimson2); }

.rsa-success-browse-btn {
	background: var(--rsa-blush);
	color: var(--rsa-crimson);
	border: 1.5px solid var(--rsa-border);
	cursor: pointer;
	font-family: var(--rsa-font-disp);
	font-weight: 700;
	font-size: .88rem;
	padding: 12px 20px;
	border-radius: 10px;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	transition: background .18s;
}

.rsa-success-browse-btn:hover { background: var(--rsa-crimson); color: #fff; border-color: var(--rsa-crimson); }

/* ============================================================
 * HONEYPOT (invisible)
 * ============================================================ */

.rsa-hp-field {
	position: absolute !important;
	left: -9999px !important;
	opacity: 0 !important;
	height: 0 !important;
	width: 0 !important;
	overflow: hidden !important;
	pointer-events: none !important;
}

/* ============================================================
 * RESPONSIVE
 * ============================================================ */

@media (max-width: 640px) {
	.rsa-openings-top { flex-direction: column; }
	.rsa-search-wrap { width: 100%; }
	.rsa-job-card { flex-direction: column; align-items: flex-start; }
	.rsa-job-card-side {
		flex-direction: row;
		align-items: center;
		width: 100%;
		justify-content: space-between;
	}
	.rsa-hero-right { width: 100%; align-items: stretch; }
	.rsa-modal-box { padding: 22px; }
	.rsa-success-box { padding: 36px 24px 28px; }
	.rsa-success-actions { flex-direction: column; }
	.rsa-cta-block { padding: 24px 20px; }
}

/* ============================================================
 * v3.0 ADDITIONS – Search enhancements
 * ============================================================ */

/* Clear (×) button trong search box */
.openings-search-clear {
	display: none;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	cursor: pointer;
	padding: 6px 4px 6px 0;
	color: rgba(32,26,29,.4);
	border-radius: 50%;
	transition: color .15s, background .15s;
	flex-shrink: 0;
}
.openings-search-clear:hover {
	color: var(--rsa-crimson);
	background: rgba(141,0,24,.07);
}

/* Result count label */
.rsa-search-result-info {
	font-family: var(--rsa-font-mono);
	font-size: .72rem;
	font-weight: 600;
	color: rgba(32,26,29,.45);
	margin-bottom: 16px;
	padding: 6px 0 0;
}

/* Loading overlay */
.rsa-list-loading {
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.rsa-spinner {
	display: inline-block;
	width: 28px;
	height: 28px;
	border: 3px solid rgba(141,0,24,.15);
	border-top-color: var(--rsa-crimson);
	border-radius: 50%;
	animation: rsaSpin .7s linear infinite;
}
@keyframes rsaSpin { to { transform: rotate(360deg); } }
