/* Public careers / application portal */
body.ja-careers {
    background:
        radial-gradient(circle at top right, rgba(146, 193, 233, 0.28), transparent 42%),
        linear-gradient(180deg, #0a1c34 0%, #0C2340 38%, #f4f6f8 38%, #f4f6f8 100%);
    min-height: 100vh;
}

/* Application form: keep a calm light canvas so steps stay readable */
body.ja-careers.ja-apply-form {
    background: #eef2f6;
}

body.ja-careers .ja-main {
    flex: 1;
}

.ja-careers-hero {
    color: #fff;
    padding: 2.5rem 0 2rem;
    text-align: center;
}

.ja-careers-hero img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #fff;
    object-fit: contain;
    margin-bottom: 0.75rem;
}

.ja-careers-hero h1 {
    font-family: "Segoe UI Semibold", "Segoe UI", system-ui, sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    letter-spacing: -0.02em;
    margin: 0;
}

.ja-careers-hero p {
    opacity: 0.9;
    margin: 0.5rem 0 0;
}

.ja-job-card {
    background: #fff;
    border: none;
    border-radius: 1rem;
    box-shadow: 0 10px 28px rgba(12, 35, 64, 0.12);
    overflow: hidden;
    height: 100%;
}

.ja-job-card .card-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ja-job-card h2 {
    color: #0C2340;
    font-size: 1.2rem;
    margin: 0;
}

.ja-job-meta {
    color: #6c757d;
    font-size: 0.9rem;
}

.ja-job-status {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #198754;
    text-transform: uppercase;
}

.ja-apply-shell {
    max-width: 960px;
    margin: 0 auto;
}

.ja-apply-topbar {
    background: linear-gradient(135deg, #0a1c34, #0C2340);
    color: #fff;
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.ja-apply-topbar h1 {
    font-size: 1.45rem;
    margin: 0;
}

.ja-apply-topbar .muted {
    opacity: 0.85;
    font-size: 0.9rem;
    margin: 0.25rem 0 0;
}

.ja-apply-topbar .ja-autosave {
    color: rgba(255, 255, 255, 0.82);
}

.ja-step-nav {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #fff;
    border-radius: 0.85rem;
    box-shadow: 0 4px 14px rgba(12, 35, 64, 0.06);
}

.ja-step-nav button {
    border: 1px solid #d5deea;
    background: #f7f9fc;
    color: #334155;
    border-radius: 999px;
    padding: 0.4rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
}

.ja-step-nav button:hover {
    background: #eef3f9;
    border-color: #b9c7da;
}

.ja-step-nav button.active {
    background: #0C2340;
    border-color: #0C2340;
    color: #fff;
    box-shadow: 0 2px 8px rgba(12, 35, 64, 0.25);
}

.ja-step-nav button.done {
    background: #eaf6ef;
    border-color: #b7dfc8;
    color: #1f6b43;
}

.ja-apply-section {
    display: none;
}

.ja-apply-section.active {
    display: block;
}

.ja-repeat-block {
    border: 1px dashed #c9d7ea;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: #fafcff;
}

.ja-apply-actions {
    position: sticky;
    bottom: 0;
    background: rgba(238, 242, 246, 0.96);
    backdrop-filter: blur(4px);
    padding: 0.85rem 0;
    margin-top: 1rem;
    border-top: 1px solid #dde5ef;
}

.ja-autosave {
    font-size: 0.85rem;
    color: #6c757d;
}

.ja-radio-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ja-radio-pills label {
    border: 1px solid #c8d5ea;
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    background: #fff;
    cursor: pointer;
    margin: 0;
}

.ja-radio-pills input {
    margin-right: 0.35rem;
}

@media (max-width: 768px) {
    body.ja-careers:not(.ja-apply-form) {
        background: linear-gradient(180deg, #0C2340 0%, #0C2340 22%, #f4f6f8 22%);
    }
}

/* Quiet staff entry — visible but unobtrusive */
.ja-staff-signin {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: #5b6b7f !important;
    text-decoration: none;
    letter-spacing: 0.01em;
}

.ja-staff-signin:hover,
.ja-staff-signin:focus {
    color: #0C2340 !important;
    text-decoration: underline;
}

/* DocuSign-style electronic signature */
.ja-esign {
    border: 1px solid #cfd9e6;
    border-radius: 0.85rem;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 36%);
    padding: 1.15rem 1.25rem 1.25rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.ja-esign-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #e3eaf3;
}

.ja-esign-header h3 {
    color: #0C2340;
}

.ja-esign-header p {
    color: #5b6b7f;
    max-width: 42rem;
}

.ja-esign-modes {
    display: inline-flex;
    border: 1px solid #c9d5e6;
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}

.ja-esign-mode {
    border: 0;
    background: transparent;
    padding: 0.4rem 0.95rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #40536c;
}

.ja-esign-mode.active {
    background: #0C2340;
    color: #fff;
}

.ja-esign-pad {
    background: #fff;
    border: 1px solid #d5deea;
    border-radius: 0.65rem;
    padding: 1rem 1.1rem 0.85rem;
}

.ja-esign-preview-wrap,
.ja-esign-draw-wrap {
    position: relative;
    min-height: 120px;
}

.ja-esign-x {
    position: absolute;
    left: 0;
    bottom: 2.1rem;
    color: #94a3b8;
    font-size: 1.1rem;
    line-height: 1;
}

.ja-esign-preview {
    min-height: 84px;
    display: flex;
    align-items: flex-end;
    padding: 0.25rem 0 0.35rem 1.4rem;
    font-family: "Great Vibes", cursive;
    font-size: clamp(2.1rem, 4vw, 3rem);
    line-height: 1;
    color: #0C2340;
    word-break: break-word;
}

.ja-esign-preview:empty::before {
    content: "Your signature will appear here";
    font-family: "Segoe UI", system-ui, sans-serif;
    font-size: 0.95rem;
    color: #94a3b8;
    font-style: italic;
}

.ja-esign-canvas {
    display: block;
    width: 100%;
    height: 160px;
    cursor: crosshair;
    touch-action: none;
    background: transparent;
}

.ja-esign-line {
    height: 1px;
    background: #0C2340;
    margin: 0.15rem 0 0.35rem 1.35rem;
}

.ja-esign-caption {
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
    margin-left: 1.35rem;
}
